1 2008-08-04 Jerome Lambourg <lambourg@adacore.com>
3 * g-comlin.adb (Group_Switches): Preserve the switch order when
4 grouping and allow switch grouping of switches with more than one
5 character extension (e.g. gnatw.x).
6 (Args_From_Expanded): Remove this now obsolete method.
8 2008-08-04 Ed Schonberg <schonberg@adacore.com>
10 * exp_ch4.adb (Get_Allocator_Final_List): Freeze anonymous type for
11 chain at once, to ensure that type is properly decorated for back-end,
12 when allocator appears within a loop.
14 2008-08-04 Kevin Pouget <pouget@adacore.com>
16 * snames.h, snames.adb, snames.ads:
17 Add Attr_To_Any, Attr_From_Any and Attr_TypeCode defines.
19 * exp_dist.ads, exp_dist.adb: Add Build_From_Any_Call,
20 Build_To_Any_Call and Build_TypeCode_Call procedures.
22 * exp_attr.adb, sem_attr.adb: Add corresponding cases.
24 * rtsfind.ads: Add corresponding names.
26 * tbuild.adb: Update prefix restrictions to allow '_' character.
28 2008-08-04 Doug Rupp <rupp@adacore.com>
30 * gigi.h (fill_vms_descriptor): Add third parameter gnat_actual
31 * trans.c (call_to_gnu): Call fill_vms_descriptor with new parameter.
32 * utils2.c (fill_vms_descriptor): Add third parameter for error sloc and
33 use it. Calculate pointer range overflow using 64bit types.
35 2008-08-04 Ed Schonberg <schonberg@adacore.com>
37 * sem_ch3.adb (Access_Definition): A formal object declaration is a
38 legal context for an anonymous access to subprogram.
40 * sem_ch4.adb (Analyze_One_Call): If the call can be interpreted as an
41 indirect call, report success to the caller to include possible
44 * sem_ch6.adb (Check_Return_Type_Indication): Apply proper conformance
46 of the extended return is an anonymous access_to_subprogram type.
49 (Resolve_Call): Insert a dereference if the type of the subprogram is an
50 access_to_subprogram and the context requires its return type, and a
51 dereference has not been introduced previously.
53 2008-08-04 Arnaud Charlet <charlet@adacore.com>
55 * usage.adb (Usage): Minor rewording of -gnatwz switch, to improve
56 gnatcheck support in GPS.
58 2008-08-04 Vincent Celier <celier@adacore.com>
60 * mlib.adb (Create_Sym_Links): Create relative symbolic links when
63 2008-08-04 Vincent Celier <celier@adacore.com>
65 * gprep.adb (Process_One_File): Call Prep.Preprocess with a Boolean
66 variable, but don't check the resulting value as it has no impact on
70 (Generate_Processed_File): New Boolean flag, set to True in the compiler
71 when switch -gnateG is used.
74 (Preprocess): new Boolean out parameter Source_Modified. Set it to True
75 when the source is modified by the preprocessor and there is no
78 * prep.ads (Preprocess): new Boolean out parameter Source_Modified
81 (Load_File): Output the result of preprocessing if the source text was
84 * switch-c.adb (Scan_Front_End_Switches): Recognize switch -gnateG
86 * switch-m.adb (Normalize_Compiler_Switches): Normalize switch -gnateG
88 * ug_words: Add VMS equivalent for -gnateG
91 Add VMS option /GENERATE_PROCESSED_SOURCE, equivalent to switch -gnateG
93 2008-08-04 Doug Rupp <rupp@adacore.com>
95 * gcc-interface/utils2.c:
96 (fill_vms_descriptor): Raise CE if attempt made to pass 64bit pointer
99 2008-08-04 Robert Dewar <dewar@adacore.com>
101 * par-ch10.adb: Minor reformatting
103 * i-cobol.adb: Minor reformatting.
105 2008-08-04 Ed Schonberg <schonberg@adacore.com>
107 * sem_ch3.adb (Access_Definition): Create an itype reference for an
108 anonymous access return type of a regular function that is not a
111 2008-08-04 Vincent Celier <celier@adacore.com>
113 * prj-attr.adb: New Builder attribute Global_Compilation_Switches
115 * snames.adb: New standard name Global_Compilation_Switches
117 * snames.ads: New standard name Global_Compilation_Switches
119 * make.adb: Correct spelling error in comment
121 2008-08-04 Arnaud Charlet <charlet@adacore.com>
123 * sem_prag.adb (Check_Form_Of_Interface_Name): Fix handling for CLI
126 2008-08-04 Thomas Quinot <quinot@adacore.com>
128 * sem_ch10.adb: Minor comment fix.
130 2008-08-04 Robert Dewar <dewar@adacore.com>
132 * restrict.adb: Improved messages for restriction warnings
134 * restrict.ads: Improved messages for restriction messages
136 * s-rident.ads (Profile_Name): Add No_Profile
138 2008-08-04 Robert Dewar <dewar@adacore.com>
140 * system-darwin-x86.ads: Correct bad definition of Max_Nonbinary_Modulus
142 2008-08-04 Robert Dewar <dewar@adacore.com>
144 * freeze.adb (Freeze_Entity): Check for size clause for boolean warning
146 2008-08-04 Vincent Celier <celier@adacore.com>
149 (Copy_Package_Declarations): When inheriting package Naming from a
150 project being extended, do not inherit source exception names.
152 2008-08-04 Ed Schonberg <schonberg@adacore.com>
154 * sem_prag.adb (Check_Precondition_Postcondition): When scanning the
155 list of declaration to find previous subprogram, do not go to the
156 original node of a generic unit.
158 2008-08-02 Eric Botcazou <ebotcazou@adacore.com>
160 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR, MINUS_EXPR>:
161 New case. Convert BOOLEAN_TYPE operation to the default integer type.
163 2008-08-01 Eric Botcazou <ebotcazou@adacore.com>
165 * gcc-interface/ada-tree.h (DECL_PARM_ALT): Now DECL_PARM_ALT_TYPE.
166 * gcc-interface/decl.c (gnat_to_gnu_param): Fix formatting, simplify
167 and adjust for above renaming.
168 * gcc-interface/utils.c (convert_vms_descriptor): Likewise. Add new
169 gnu_expr_alt_type parameter. Convert the expression to it instead
170 of changing its type in place.
171 (build_function_stub): Adjust call to above function.
173 2008-08-01 Eric Botcazou <ebotcazou@adacore.com>
175 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Remove dead
176 code. Do not get full definition of deferred constants with address
177 clause for a use. Do not ignore deferred constant definitions with
178 address clause. Ignore constant definitions already marked with the
180 <object>: Remove obsolete comment. For a deferred constant with
181 address clause, get the initializer from the full view.
182 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Definition_Clause>:
183 Rework and remove obsolete comment.
184 <N_Object_Declaration>: For a deferred constant with address clause,
185 mark the full view with the error node.
186 * gcc-interface/utils.c (convert_to_fat_pointer): Rework and fix
189 2008-08-01 Hristian Kirtchev <kirtchev@adacore.com>
191 * rtsfind.ads: Add block IO versions of stream routines for Strings.
193 * bindgen.adb, gnat_rm.texi, gnat_ugn.texi, opt.ads,
194 sem_prag.adb, snames.adb, snames.ads, snames.h,
195 par-prag.adb: Undo previous stream related changes.
197 * s-rident.ads: Add new restriction No_Stream_Optimizations.
199 * s-ststop.ads, s-ststop.adb: Comment reformatting.
200 Define enumeration type to designate different IO mechanisms.
201 Enchance generic package Stream_Ops_Internal to include an
202 implementation of Input and Output.
204 * exp_attr.adb (Find_Stream_Subprogram): If restriction
205 No_Stream_Optimization is active, choose the default byte IO
206 implementations of stream attributes for Strings.
207 Otherwise use the corresponding block IO version.
209 2008-08-01 Olivier Hainque <hainque@adacore.com>
211 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>: Do not
212 turn Ada Pure into GCC const, now implicitely implying nothrow as well.
214 2008-08-01 Robert Dewar <dewar@adacore.com>
216 * par-ch3.adb (P_Defining_Identifier): Avoid repeated attempt to
217 convert plain identifier into defining identifier.
219 2008-08-01 Robert Dewar <dewar@adacore.com>
221 * sem_prag.adb (Check_Form_Of_Interface_Name): Refine and improve
224 * lib-xref.adb: Add error defense.
226 2008-08-01 Bob Duff <duff@adacore.com>
228 * ioexcept.ads, sequenio.ads, directio.ads: Correct comment.
230 2008-08-01 Gary Dismukes <dismukes@adacore.com>
232 * exp_ch6.adb (Expand_Call): Adjustment to previous fix for passing
233 correct accessibility levels. In the "when others" case, retrieve the
234 access level of the Etype of Prev rather than Prev_Orig, because the
235 original exression has not always been analyzed.
237 2008-08-01 Robert Dewar <dewar@adacore.com>
239 * prj-nmsc.adb: Minor reformatting
241 * sem_ch4.adb: Minor reformatting
242 Minor code reorganization
244 * prj.ads: Minor reformatting
246 * s-os_lib.adb: Minor reformatting
248 * par-prag.adb (Prag, case Wide_Character_Encoding): Deal with upper
251 * scans.ads: Minor reformatting.
253 * sem_prag.adb (Analyze_Pragma): Put entries in alpha order
254 (Analyze_Pragma): Make sure all GNAT pragmas call GNAT_Pragma
257 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
259 * sem_ch12.adb: Minor comment reformatting
261 * par-ch3.adb (P_Type_Declaration): Properly handle missing type
264 2008-08-01 Robert Dewar <dewar@adacore.com>
266 * sem_ch6.adb (Process_PPCs): Don't copy spec PPC to body if not
269 2008-08-01 Ed Schonberg <schonberg@adacore.com>
271 * checks.adb (Apply_Float_Conversion_Check): If the expression to be
272 converted is a real literal and the target type has static bounds,
273 perform the conversion exactly to prevent floating-point anomalies on
276 2008-08-01 Vincent Celier <celier@adacore.com>
278 * prj-attr.adb: New attribute Compiler'Name_Syntax (<lang>)
280 * prj-nmsc.adb (Process_Compiler): Recognize attribute Name_Syntax
282 * prj.adb (Object_Exist_For): Use Object_Generated, not
283 Objects_Generated that is removed and was never modified anyway.
286 (Path_Syntax_Kind): New enumeration type
287 (Language_Config): New component Path_Syntax, defaulted to Host.
288 Components PIC_Option and Objects_Generated removed, as they are not
291 * snames.adb: New standard name Path_Syntax
293 * snames.ads: New standard name Path_Syntax
295 2008-08-01 Vincent Celier <celier@adacore.com>
298 (Adalib_Path): New variable to store the path of the adalib directory
299 when procedure Specify_Adalib_Dir is called.
300 (Lib_Directory): If Adalib_Path is not null, return its value
301 (Specify_Adalib_Dir): New procedure
303 * mlib-utl.ads (Specify_Adalib_Dir): New procedure
305 2008-08-01 Ed Schonberg <schonberg@adacore.com>
308 (Check_Precondition_Postcondition): If not generating code, analyze the
309 expression in a postcondition that appears in a subprogram body, so that
310 it is properly decorated for ASIS use.
312 2008-08-01 Gary Dismukes <dismukes@adacore.com>
314 * exp_ch6.adb (Expand_Call): Remove ugly special-case code that resets
315 Orig_Prev to Prev in the case where the actual is N_Function_Call or
316 N_Identifier. This was interfering with other cases that are rewritten
317 as N_Identifier, such as allocators, resulting in passing of the wrong
318 accessibility level, and based on testing this code is apparently no
319 longer needed at all.
321 2008-08-01 Ed Schonberg <schonberg@adacore.com>
323 * sem_ch4.adb (Analyze_One_Call): Handle complex overloading of a
324 procedure call whose prefix
325 is a parameterless function call that returns an access_to_procedure.
327 2008-08-01 Jose Ruiz <ruiz@adacore.com>
329 * adaint.c (__gnat_tmp_name): Refine the generation of temporary names
330 for RTX. Adding a suffix that is incremented at each iteration.
332 2008-08-01 Robert Dewar <dewar@adacore.com>
334 * sem_ch6.adb (Analyze_Subprogram_Body): Remove special casing of
337 2008-08-01 Jerome Lambourg <lambourg@adacore.com>
339 * s-os_lib.adb (Normalize_Pathname): Take care of double-quotes in
340 paths, which are authorized by Windows but can lead to errors when used
343 2008-08-01 Ed Schonberg <schonberg@adacore.com>
345 * sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create
346 a pending instantiation for the body of a subprogram that is to be
350 (Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body.
352 * sem_prag.adb (Make_Inline): If the pragma applies to an instance,
353 create a pending instance for its body, so that calls to the subprogram
354 can be inlined by the back-end.
356 2008-08-01 Jose Ruiz <ruiz@adacore.com>
358 * gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and
361 2008-08-01 Robert Dewar <dewar@adacore.com>
363 * scng.adb (Error_Illegal_Wide_Character): Bump scan pointer
365 2008-08-01 Doug Rupp <rupp@adacore.com>
367 * gnat_rm.texi: Document new mechanism Short_Descriptor.
369 * types.ads (Mechanism_Type): Modify range for new Short_Descriptor
372 * sem_prag.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
373 mechanism and Short_Descriptor mechanism values.
375 * snames.adb (preset_names): Add short_descriptor entry.
377 * snames.ads: Add Name_Short_Descriptor.
379 * types.h: Add new By_Short_Descriptor mechanism values.
381 * sem_mech.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
382 mechanism and Short_Descriptor mechanism values.
384 * sem_mech.ads (Mechanism_Type): Add new By_Short_Descriptor mechanism
386 (Descriptor_Codes): Modify range for new mechanism values.
388 * treepr.adb (Print_Entity_Enfo): Handle new By_Short_Descriptor
391 * gcc-interface/decl.c (gnat_to_gnu_entity): Handle By_Short_Descriptor.
392 (gnat_to_gnu_param): Handle By_Short_Descriptor.
394 * gcc-interface/gigi.h (build_vms_descriptor64): Remove prototype.
395 (build_vms_descriptor32): New prototype.
396 (fill_vms_descriptor): Remove unneeded gnat_actual parameter.
398 * gcc-interface/trans.c (call_to_gnu): Removed unneeded gnat_actual
399 argument in call fill_vms_descriptor.
401 * gcc-interface/utils.c (build_vms_descriptor32): Renamed from
402 build_vms_descriptor and enhanced to hande Short_Descriptor mechanism.
403 (build_vms_descriptor): Renamed from build_vms_descriptor64.
404 (convert_vms_descriptor32): New function.
405 (convert_vms_descriptor64): New function.
406 (convert_vms_descriptor): Rewrite to handle both 32bit and 64bit
409 * gcc-interface/utils2.c (fill_vms_descriptor): Revert previous changes,
412 2008-08-01 Jose Ruiz <ruiz@adacore.com>
414 * adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam
415 nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary
418 2008-08-01 Jose Ruiz <ruiz@adacore.com>
420 * cstreams.c (__gnat_full_name): RTSS applications cannot ask for the
421 current directory so only fully qualified names are allowed.
423 2008-08-01 Robert Dewar <dewar@adacore.com>
426 Minor editing, remove uncomfortable use of semicolon
428 * s-ststop.adb: Add some ??? comments
430 * sem_ch10.adb: Minor reformatting
433 Minor comment fixes, some pragmas were not properly
434 categorized in the comments, documentation change only
436 * xref_lib.adb: Minor reformatting
438 * sinput.adb: Minor reformatting
440 * gnatchop.adb: Minor reformatting
442 * sem_util.ads: Minor reformatting.
444 * opt.ads: Minor documentation fix
446 * scng.adb: Minor reformatting
448 * prj-part.adb: Update comments
450 2008-08-01 Ed Schonberg <schonberg@adacore.com>
452 * exp_disp.adb (Expand_Interface_Conversion): If the target type is a
453 tagged synchronized type, use corresponding record type.
455 2008-08-01 Doug Rupp <rupp@adacore.com>
457 * mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a
458 dummy transfer address for debugging.
460 * mlib-tgt-specific-vms-ia64.adb (Build_Dynamic_Library): Likewise.
462 * vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING
464 2008-07-31 Eric Botcazou <ebotcazou@adacore.com>
466 * gcc-interface/decl.c (gnat_to_gnu_entity): Fix formatting.
467 * gcc-interface/utils.c (create_field_decl): Avoid superfluous work.
469 2008-07-31 Pascal Obry <obry@adacore.com>
471 * prj-nmsc.adb: Keep Object and Exec directory casing.
473 2008-07-31 Jose Ruiz <ruiz@adacore.com>
475 * system-rtx-rtss.ads
476 Change the default stack size. It is important to set the commit part.
479 (Initialize): Get the clock resolution.
480 (RT_Resolution): Return the clock resolution that is indicated by the
483 * s-parame-vxworks.adb
484 Document that this body is used for RTX in RTSS (kernel) mode.
486 * gcc-interface/Makefile.in
487 (LIBGNAT_TARGET_PAIRS for the rtx_rtss run time): Use the
488 s-parame-vxworks.adb body in order to have reasonable stack sizes in
489 RTX RTSS kernel mode. Virtual memory is not used in that case, so we
490 cannot ask for too big values.
492 2008-07-31 Robert Dewar <dewar@adacore.com>
494 * exp_aggr.adb: Minor reformatting
496 * makeutl.adb: Minor reformatting
498 * prj-env.adb: Minor reformatting
500 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
502 * exp_disp.adb (Prim_Op_Kind): Retrieve the full view when a private
503 tagged type is completed by a concurrent type.
505 2008-07-31 Gary Dismukes <dismukes@adacore.com>
508 (Resolve_Record_Aggregate): Bypass error that a type without
509 components must have a "null record" aggregate when compiling for Ada
510 2005, since it's legal to give an aggregate of form (others => <>)
513 2008-07-31 Javier Miranda <miranda@adacore.com>
515 * sem_ch4.adb (Valid_First_Argument_Of): Complete its functionality to
516 handle synchronized types. Required to handle well the object.operation
517 notation applied to synchronized types.
519 2008-07-31 Quentin Ochem <ochem@adacore.com>
521 * s-stausa.adb (Fill_Stack): Stack_Used_When_Filling is now stored
522 anymore - just used internally.
523 Added handling of very small tasks - when the theoretical size is
524 already full at the point of the call.
525 (Report_Result): Fixed result computation, Stack_Used_When_Filling does
526 not need to be added to the result.
528 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
530 * sem_ch6.adb (Disambiguate_Spec): Continue the disambiguation if the
531 corresponding spec is a primitive wrapper. Update comment.
533 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
535 * bindgen.adb Comment reformatting. Update the list of run-time globals.
536 (Gen_Adainit_Ada): Add the declaration, import and value set for
537 configuration flag Canonical_Streams.
538 (Gen_Adainit_C): Add the declaration and initial value of external
539 symbol __gl_canonical_streams.
541 * init.c: Update the list of global values computed by the binder.
543 * opt.ads: Add flag Canonical_Streams.
545 * par-prag.adb (Prag): Include Pragma_Canonical_Streams to the list of
546 semantically handled pragmas.
548 * sem_prag.adb: Add an entry into enumeration type Sig_Flags.
549 (Analyze_Pragma): Add case for pragma Canonical_Streams.
551 * snames.adb: Add character value for name Canonical_Streams.
554 Add Name_Canonical_Streams to the list of configuration pragmas.
555 Add Pragma_Canonical_Streams to enumeration type Pragma_Id.
557 * snames.h: Add a definition for Pragma_Canonical_Streams.
560 Add a flag and import to seize the value of external symbol
561 __gl_canonical_streams. Update comment and initial value of constant
564 * gnat_rm.texi: Add section of pragma Canonical_Streams.
567 Add pragma Canonical_Streams to the list of configuration pragmas.
569 2008-07-31 Ed Schonberg <schonberg@adacore.com>
571 * sem_ch10.adb (Build_Unit_Name): If the unit name in a with_clause
572 has the form A.B.C and B is a unit renaming, analyze its compilation
573 unit and add a with_clause on A.b to the context.
575 2008-07-31 Vincent Celier <celier@adacore.com>
577 * makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails,
578 return the empty string, instead of raising Constraint_Error.
580 2008-07-31 Gary Dismukes <dismukes@adacore.com>
582 * checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.
584 * checks.adb (Apply_Accessibility_Check): Insert the check on
588 (Expand_N_Attribute_Refernce, Attribute_Access): Pass attribute node
589 to new parameter Insert_Node on call to Apply_Accessibility_Check.
590 Necessary to distinguish the insertion node because the dereferenced
591 formal may come from a rename, but the check must be inserted in
592 front of the attribute.
595 (Expand_N_Allocator): Pass actual for new Insert_Node parameter on
596 call to Apply_Accessibility_Check.
597 (Expand_N_Type_Conversion): Pass actual for new Insert_Node parameter
598 on call to Apply_Accessibility_Check.
601 2008-07-31 Javier Miranda <miranda@adacore.com>
603 * sem_type.adb (Has_Compatible_Type): Complete support for synchronized
604 types when the candidate type is a synchronized type.
606 * sem_res.adb (Resolve_Actuals): Reorganize code handling synchronized
607 types, and complete management of synchronized types adding missing
608 code to handle formal that is a synchronized type.
610 * sem_ch4.adb (Try_Primitive_Operation): Avoid testing attributes that
611 are not available and cause the compiler to blowup. Found compiling
612 test with switch -gnatc
614 * sem_ch6.adb (Check_Synchronized_Overriding): Remove local subprogram
615 Has_Correct_Formal_Mode plus code cleanup.
617 2008-07-31 Bob Duff <duff@adacore.com>
619 * sinput.adb (Skip_Line_Terminators): Fix handling of LF/CR -- it was
620 recognized as two end-of-lines, but it should be just one.
622 2008-07-31 Thomas Quinot <quinot@adacore.com>
624 * exp_ch9.adb: Minor reformatting
626 * tbuild.ads: Fix several occurrences of incorrectly referring to
627 Name_Find as Find_Name.
629 2008-07-31 Ed Schonberg <schonberg@adacore.com>
631 * exp_aggr.adb (Aggr_Size_OK): If the aggregate has a single component
632 and the context is an object declaration with non-static bounds, treat
633 the aggregate as non-static.
635 2008-07-31 Vincent Celier <celier@adacore.com>
637 * prj-part.adb, prj-part.ads, prj.adb, prj.ads, prj-env.adb:
638 Move back spec of Parse_Single_Project to body, as it is not called
639 outside of package Prj.Part.
640 (Project_Data): Remove components Linker_Name, Linker_Path and
641 Minimum_Linker_Options as they are no longer set.
642 Remove function There_Are_Ada_Sources from package Prj and move code
643 in the only place it was used, in Prj.Env.Set_Ada_Paths.
645 2008-07-31 Arnaud Charlet <charlet@adacore.com>
647 * mlib-utl.ads: Fix typo.
649 2008-07-31 Robert Dewar <dewar@adacore.com>
651 * sem_ch12.adb: Minor reformatting
653 2008-07-31 Sergey Rybin <rybin@adacore.com>
655 * gnat_ugn.texi: Change the description of the
656 Overly_Nested_Control_Structures: now the rule always requires a
657 positive parameter for '+R' option
659 2008-07-31 Thomas Quinot <quinot@adacore.com>
661 * g-pehage.adb: Minor reformatting
663 2008-07-31 Pascal Obry <obry@adacore.com>
665 * s-finimp.ads: Minor reformatting.
667 2008-07-31 Vincent Celier <celier@adacore.com>
669 * s-regexp.ads: Minor comment fix
671 2008-07-31 Arnaud Charlet <charlet@adacore.com>
673 * s-direio.adb (Reset): Replace pragma Unmodified by Warnings (Off),
674 so that we can compile this file successfully with -gnatc.
676 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
678 * exp_attr.adb (Find_Stream_Subprogram): Check the base type instead
679 of the type when looking for stream subprograms for type String,
680 Wide_String and Wide_Wide_String.
682 * s-ststop.adb: Change the initialization expression of constant
685 2008-07-31 Geert Bosch <bosch@adacore.com>
688 New file implementing __gnat_mulv64 signed integer multiplication with
691 * fe.h (Backend_Overflow_Checks_On_Target): Define for use by Gigi
693 * gcc-interface/gigi.h:
694 (standard_types): Add ADT_mulv64_decl
695 (mulv64_decl): Define subprogram declaration for __gnat_mulv64
697 * gcc-interface/utils.c:
698 (init_gigi_decls): Add initialization of mulv64_decl
700 * gcc-interface/trans.c:
701 (build_unary_op_trapv): New function
702 (build_binary_op_trapv): New function
703 (gnat_to_gnu): Use the above functions instead of
704 build_{unary,binary}_op
706 * gcc-interface/Makefile.in
707 (LIBGNAT_SRCS): Add arit64.c
708 (LIBGNAT_OBJS): Add arit64.o
710 2008-07-31 Vincent Celier <celier@adacore.com>
712 * prj-nmsc.adb (Check_Library_Attributes): Check if Linker'Switches or
713 Linker'Default_Switches are declared. Warn if they are declared.
715 2008-07-31 Ed Schonberg <schonberg@adacore.com>
717 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Use
718 Insert_Actions to place the pointer declaration in the code, rather
719 than Insert_Before_And_Analyze, so that insertions of temporaries are
720 kept in the proper order when transient scopes are present.
723 2008-07-31 Robert Dewar <dewar@adacore.com>
725 * einfo.adb (Spec_PPC): Now defined for generic subprograms
727 * einfo.ads (Spec_PPC): Now defined for generic subprograms
729 * sem_prag.adb (Check_Precondition_Postcondition): Handle generic
732 2008-07-31 Vincent Celier <celier@adacore.com>
734 * s-os_lib.adb: Minor comment fix
736 2008-07-31 Ed Schonberg <schonberg@adacore.com>
738 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): After analysis,
739 transfer pre/postconditions from generic copy to original tree, so that
740 they will appear in each instance.
741 (Process_PPCs): Do not transform postconditions into a procedure in a
742 generic context, to prevent double expansion of check pragmas.
744 * sem_attr.adb: In an instance, the prefix of the 'result attribute
745 can be the renaming of the
746 current instance, so check validity of the name accordingly.
748 2008-07-31 Robert Dewar <dewar@adacore.com>
750 * mlib-utl.ads: Minor reformatting
752 2008-07-31 Ed Schonberg <schonberg@adacore.com>
754 sem_attr.adb: 'Result can have an ambiguous prefix, and is resolved
755 from context. This attribute must be usable in Ada95 mode.
756 The attribute can appear in the body of a function marked
757 Inline_Always, but in this case the postocondition is not enforced.
759 sem_prag.adb (Check_Precondition_Postcondition): within the expansion
760 of an inlined call pre- and postconditions are legal
762 2008-07-31 Vincent Celier <celier@adacore.com>
764 * prj.adb, prj.ads, clean.adb, prj-nmsc.adb: Remove declarations that
765 were for gprmake only
767 2008-07-31 Robert Dewar <dewar@adacore.com>
769 * gnat_ugn.texi: Update -gnatN documentation.
771 * gnat_rm.texi: Add note about pre/postcondition
772 pragmas not checked in conjunction with front-end inlining.
774 2008-07-31 Robert Dewar <dewar@adacore.com>
776 * g-pehage.adb, g-pehage.ads: Minor reformatting
778 2008-07-31 Arnaud Charlet <charlet@adacore.com>
780 * mlib-utl.ads, prj-makr.ads: Add comments.
782 2008-07-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
784 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS)
785 [WINDOWS]: Add s-winext.o.
787 2008-07-30 Eric Botcazou <ebotcazou@adacore.com>
790 * back_end.adb (Call_Back_End): Pass Standard_Boolean to gigi.
791 * gcc-interface/gigi.h (gigi): Take new standard_boolean parameter.
792 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Subtype>:
793 Set precision to 1 for subtype of BOOLEAN_TYPE.
794 (set_rm_size): Set TYPE_RM_SIZE_NUM for BOOLEAN_TYPE.
795 (make_type_from_size): Deal with BOOLEAN_TYPE.
796 * gcc-interface/misc.c (gnat_print_type): Likewise.
797 * gcc-interface/trans.c (gigi): Take new standard_boolean parameter.
798 Set boolean_type_node as its translation in the table, as well
799 as boolean_false_node for False and boolean_true_node for True.
800 * gcc-interface/utils.c (gnat_init_decl_processing): Create custom
801 8-bit boolean_type_node and set its TYPE_RM_SIZE_NUM.
802 (create_param_decl): Deal with BOOLEAN_TYPE.
803 (build_vms_descriptor): Likewise.
804 (build_vms_descriptor64): Likewise.
805 (convert): Deal with BOOLEAN_TYPE like with ENUMERAL_TYPE.
807 2008-07-30 Robert Dewar <dewar@adacore.com>
809 * exp_ch9.adb: Minor reformatting
811 * exp_util.ads (Find_Prim_Op): Document that Program_Error is raised
812 if no primitive operation is found.
814 * exp_util.adb: (Find_Prim_Op): Add comments for previous change
816 * sem_ch8.adb: Minor reformatting
818 2008-07-30 Laurent Pautet <pautet@adacore.com>
821 Remove a limitation on the length of the words handled by the minimal
822 perfect hash function generator.
825 Detail the use of subprograms Insert, Initialize, Compute and Finalize.
828 2008-07-30 Robert Dewar <dewar@adacore.com>
830 * gnatlink.adb: Minor reformatting
832 2008-07-30 Thomas Quinot <quinot@adacore.com>
834 * rtsfind.adb (Check_RPC): Check version consistency even when not
835 generating RCI stubs. Provide more detailed error message in case of
838 2008-07-30 Ed Schonberg <schonberg@adacore.com>
840 * sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute
841 as a actual in an instance, check for a missing attribute to prevent
842 program_error on an illegal program.
844 * exp_util.adb (Find_Prim_Op): Rather than Assert (False), raise program
845 error if primitive is not found, so that exception can be handled
846 elsewhere on illegal programs.
848 2008-07-30 Robert Dewar <dewar@adacore.com>
850 * uintp.adb (UI_GCD): Fix potential overflow
852 2008-07-30 Hristian Kirtchev <kirtchev@adacore.com>
854 * einfo.adb: Flag245 is now used.
855 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Relax the assertion
856 check to include functions.
857 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
858 (Wrapped_Entity, Set_Wrapped_Entity): Relax the assertion check to
860 (Write_Entity_Flags): Move flag Is_Primitive, add Is_Private_Primitive
861 to the list of displayed flags.
863 * einfo.ads: Update comment on the usage of Is_Primitive_Wrapper and
864 Wrapped_Entity. These two flags are now present in functions.
865 New flag Is_Private_Primitive.
866 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
869 (Build_Wrapper_Bodies): New subprogram.
870 (Build_Wrapper_Body): The spec and body have been moved to in
871 Build_Wrapper_ Bodies. Code cleanup.
872 (Build_Wrapper_Spec): Moved to the spec of Exp_Ch9. Code cleanup.
873 Wrappers are now generated for primitives declared between the private
874 and full view of a concurrent type that implements an interface.
875 (Build_Wrapper_Specs): New subprogram.
876 (Expand_N_Protected_Body): Code reformatting. Replace the wrapper body
877 creation mechanism with a call to Build_Wrapper_Bodies.
878 (Expand_N_Protected_Type_Declaration): Code reformatting. Replace the
879 wrapper spec creation mechanism with a call to Build_Wrapper_Specs.
880 (Expand_N_Task_Body): Replace the wrapper body creation
881 mechanism with a call to Build_Wrapper_Bodies.
882 (Expand_N_Task_Type_Declaration): Replace the wrapper spec
883 creation mechanism with a call to Build_Wrapper_Specs.
884 (Is_Private_Primitive_Subprogram): New subprogram.
885 (Overriding_Possible): Code cleanup.
886 (Replicate_Entry_Formals): Renamed to Replicate_Formals, code cleanup.
888 * exp_ch9.ads (Build_Wrapper_Spec): Moved from the body of Exp_Ch9.
890 * sem_ch3.adb: Add with and use clause for Exp_Ch9.
891 (Process_Full_View): Build wrapper specs for all primitives
892 that belong to a private view completed by a concurrent type
893 implementing an interface.
895 * sem_ch6.adb (Analyze_Subprogram_Body): When the current subprogram
897 concurrent type with a private view that implements an interface, try to
898 find the proper spec.
899 (Analyze_Subprogram_Declaration): Mark a subprogram as a private
900 primitive if the type of its first parameter is a non-generic tagged
902 (Analyze_Subprogram_Specification): Code reformatting.
903 (Disambiguate_Spec): New routine.
904 (Find_Corresponding_Spec): Add a flag to controll the output of errors.
905 (Is_Private_Concurrent_Primitive): New routine.
908 (Find_Corresponding_Spec): Add a formal to control the output of errors.
910 2008-07-30 Doug Rupp <rupp@adacore.com>
912 * gigi.h (build_vms_descriptor64): New function prototype.
913 (fill_vms_descriptor): Modified function prototype.
915 * utils.c (build_vms_descriptor64): New function.
917 * utils2.c (fill_vms_descriptor): Fix handling on 32bit systems.
919 * trans.c (call_to_gnu): Call fill_vms_descriptor with new third
922 * decl.c (gnat_to_gnu_tree): For By_Descriptor mech, build both a
923 64bit and 32bit descriptor and save the 64bit version as an alternate
924 TREE_TYPE in the parameter.
925 (make_type_from_size) <RECORD_TYPE>: Use the appropriate mode for the
928 * ada-tree.h (DECL_PARM_ALT, SET_DECL_PARM_ALT): New macros.
930 2008-07-30 Robert Dewar <dewar@adacore.com>
932 * make.adb: Minor reformatting
934 * mlib-utl.adb: Minor reformatting
936 * osint.ads: Minor reformatting
938 2008-07-30 Jose Ruiz <ruiz@adacore.com>
941 (__gnat_file_exists): Do not use __gnat_stat for RTX.
942 (__main for RTX in RTSS mode): Create this dummy procedure symbol to
943 avoid the use of this symbol from libgcc.a in RTX kernel mode.
946 (put_int, put_int_stderr, put_char, put_char_stderr): For RTX we call
947 the function RtPrintf for console output.
949 * argv.c Do not use the environ variable for RTX.
951 * gnatlink.adb (gnatlink): The part that handles the --RTS option has
952 been moved before the call to Osint.Add_Default_Search_Dirs in order
953 to take into account the flags in system.ads (RTX_RTSS_Kernel_Module)
954 from the appropriate run time.
957 (RTX_RTSS_Kernel_Module_On_Target): Add this flag that is set to True if
958 target is a RTSS module for RTX.
960 * targparm.adb (Targparm_Tags, RTX_Str, Targparm_Str): Add tag RTX for
961 RTX_RTSS_Kernel_Module
962 (Get_Target_Parameters): Add processing of RTX_RTSS_Kernel_Module flag.
964 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for RTX): Use gcc
965 exception handling mechanism for Windows and RTX in Win32 mode, but
966 not for RTX in kernel mode (RTSS).
967 (LIBGNAT_SRCS): Remove ada.h
969 2008-07-30 Paolo Bonzini <bonzini@gnu.org>
971 * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove X_ADAFLAGS and
972 T_ADAFLAGS, replace ALL_ADA_CFLAGS with ADA_CFLAGS.
973 (ALL_ADA_CFLAGS): Remove, replace throughout with ADA_CFLAGS.
974 * gcc-interface/Makefile.in (XCFLAGS, X_CFLAGS, X_CPPFLAGS, T_CPPFLAGS,
975 X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS, ADA_CFLAGS,
976 ALL_ADA_CFLAGS): Remove.
977 (ALL_ADAFLAGS, MOST_ADAFLAGS): Remove X_ADAFLAGS and T_ADAFLAGS,
978 replace ALL_ADA_CFLAGS with ADA_CFLAGS.
979 (GCC_CFLAGS): Remove X_CFLAGS.
980 (LOOSE_CFLAGS): Remove X_CFLAGS and XCFLAGS.
981 (ALL_CPPFLAGS): Remove X_CPPFLAGS and T_CPPFLAGS.
982 (ADA_CFLAGS): Substitute.
984 2008-07-30 Laurent Guerby <laurent@guerby.net>
987 * gcc-interface/Makefile.in (MULTISUBDIR, RTSDIR): New variables.
988 Pass MULTISUBDIR to recursive make. Use $(RTSDIR) instead of rts.
989 Replace stamp-gnatlib* by stamp-gnatlib*-rts.
990 * gcc-interface/Make-lang.in: Replace stamp-gnatlib2
991 by stamp-gnatlib2-rts.
993 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
995 PR documentation/15479
996 * gnat-style.texi: Remove AdaCore copyright statement and GPL
997 statement for GNAT. Add @copying stanza, use it. Update to
998 GFDL 1.2. Do not list GFDL as Invariant Section, do not list
999 title as Front-Cover Text.
1000 * gnat_rm.texi: Likewise.
1001 * gnat_ugn.texi: Likewise.
1003 2008-07-29 Jan Hubicka <jh@suse.cz>
1005 * trans.c (process_inlined_subprograms): Remove tree_really_inline
1008 2008-07-29 Arnaud Charlet <charlet@adacore.com>
1010 * gcc-interface: New directory.
1012 * ada-tree.def, cuintp.c, gigi.h, Makefile.in, targtyps.c, ada.h,
1013 utils.c, ada-tree.h, decl.c, lang.opt, Make-lang.in, trans.c,
1014 config-lang.in, deftarg.c, lang-specs.h, misc.c, utils2.c: Moved
1015 to gcc-interface subdirectory.
1017 2008-07-29 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1019 * Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o.
1021 2008-07-28 Jan Hubicka <jh@suse.cz>
1023 * misc.c (gnat_post_options): Do not set flag_no_inline.
1025 2008-07-28 Richard Guenther <rguenther@suse.de>
1027 Merge from gimple-tuples-branch.
1029 2008-07-22 Olivier Hainque <hainque@adacore.com>
1031 * gigi.h (end_subprog_body): New ELAB_P argument, saying if
1032 this is called for an elab proc to be discarded if empty.
1033 * utils.c (end_subprog_body): Honor ELAB_P.
1034 (build_function_stub): Adjust call to end_subprog_body.
1035 * trans.c (Subprogram_Body_to_gnu): Likewise.
1036 (gigi): Reorganize processing of elab procs to prevent
1037 gimplifying twice, using the new end_subprog_body argument.
1039 2008-07-19 Richard Guenther <rguenther@suse.de>
1041 * Make-lang.in (trans.o): Add tree-iterator.h dependency.
1042 (utils.o): Likewise.
1043 * trans.c: Include tree-iterator.h.
1044 (gnat_gimplify_expr): Adjust prototype. Fix typo.
1045 (gnat_gimplify_stmt): Use SET_EXPR_LOCATION.
1046 (set_expr_location_from_node): Likewise.
1048 * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead
1050 * utils.c: Include tree-iterator.h.
1051 * gigi.h (gnat_gimplify_expr): Adjust prototype.
1053 2008-07-18 Aldy Hernandez <aldyh@redhat.com>
1055 * trans.c: Include gimple.h instead of tree-gimple.h.
1058 2008-07-14 Aldy Hernandez <aldyh@redhat.com>
1060 * trans.c (gnat_gimplify_expr): Use gimplify_assign.
1062 2008-07-25 Jan Hubicka <jh@suse.cz>
1064 * utils.c (end_subprog_body): Remove inline trees check.
1065 * misc.c (gnat_post_options): Do not set flag_inline_trees.
1067 2008-07-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1069 * raise-gcc.c: Move tsystem.h before tm.h.
1071 2008-07-20 Arnaud Charlet <charlet@adacore.com>
1073 * gnathtml.pl: New file.
1075 2008-07-19 Olivier Hainque <hainque@adacore.com>
1077 * targtyps.c (get_target_default_allocator_alignment): Use
1078 MALLOC_ABI_ALIGNMENT.
1080 2008-07-17 Olivier Hainque <hainque@adacore.com>
1082 * adaint.c (__MINGW32__ section): Include ctype.h and define
1083 a fallback ISALPHA if IN_RTS.
1084 (__gnat_is_absolute_path): Use ISALPHA instead of isalpha.
1086 2008-07-17 Olivier Hainque <hainque@adacore.com>
1088 * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
1089 argument, to apply to references in addition to definitions. Prevent
1090 setting TREE_STATIC on externals.
1091 (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
1093 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1095 PR documentation/15479
1096 * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
1097 Replace backets around optional parameters with @ovar
1098 where possible, use @r{[}, @r{]} otherwise.
1099 Replace some @r, @i, and @emph with @var where appropriate.
1101 2008-07-02 Eric Botcazou <ebotcazou@adacore.com>
1103 * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
1105 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1107 * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
1108 -Wc++-compat warnings.
1109 * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
1110 __gnat_locate_exec_on_path): Likewise.
1111 * decl.c (annotate_value): Likewise.
1112 * misc.c (gnat_handle_option): Likewise.
1113 * trans.c (gnat_to_gnu, extract_encoding, decode_name,
1114 post_error_ne_tree): Likewise.
1116 2008-06-27 Eric Botcazou <ebotcazou@adacore.com>
1118 * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
1119 version of its type, attempt to first convert its elements.
1121 2008-06-26 Chris Proctor <chrisp_42@bigpond.com>
1123 * Makefile.in: Fix *86 kfreebsd target specific pairs.
1125 2008-06-25 Samuel Tardieu <sam@rfc1149.net>
1127 * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
1129 2008-06-24 Eric Botcazou <ebotcazou@adacore.com>
1131 * utils2.c (known_alignment): Derive the alignment from pointed-to
1132 types only if it is otherwise unknown.
1133 <INTEGER_CST>: Tidy.
1134 <MULT_EXPR>: Likewise.
1135 <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
1138 2008-06-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1141 * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
1143 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1145 * gnat_rm.texi (Implementation Defined Characteristics)
1146 (Standard Library Routines): Use @smallexample for indented
1147 text. Drop Indentation outside examples.
1148 * gnat_ugn.texi: Likewise.
1150 2008-06-13 Olivier Hainque <hainque@adacore.com>
1152 * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
1154 (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
1155 realignment with force_align_arg_pointer attribute on foreign
1156 convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
1158 2008-06-13 Olivier Hainque <hainque@adacore.com>
1160 * utils.c (rest_of_record_type_compilation): When computing
1161 encodings for the components of a variable size type, early
1162 strip conversions on the current position expression to make
1163 sure it's shape is visible. Use remove_conversions for this
1166 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
1168 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
1169 constrained subtype of a discriminated type, discard the fields that
1170 are beyond its limits according to its size.
1172 2008-06-10 Olivier Hainque <hainque@adacore.com>
1174 * utils.c (create_subprog_decl): If this is for the 'main' entry
1175 point according to the asm name, redirect main_identifier_node.
1177 2008-06-09 Eric Botcazou <ebotcazou@adacore.com>
1179 * decl.c (components_to_record): Adjust the packedness for the
1180 qualified union as well.
1182 2008-06-09 Arnaud Charlet <charlet@adacore.com>
1184 * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
1187 2008-06-07 Samuel Tardieu <sam@rfc1149.net>
1189 * sem_res.adb (Large_Storage_Type): A type is large if it
1190 requires as many bits as Positive to store its values and its
1191 bounds are known at compile time.
1192 * sem_ch13.adb (Minimum_Size): Note that this function returns
1193 0 if the size is not known at compile time.
1195 2008-06-06 Nicolas Setton <setton@adacore.com>
1196 Olivier Hainque <hainque@adacore.com>
1198 * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
1199 attribute, parallel descriptive type attached to another
1200 type for debug info generation purposes.
1201 * utils.c (add_parallel_type): New function, register
1202 parallel type to be attached to a type.
1203 (get_parallel_type): New function, fetch a registered
1204 parallel type, if any.
1205 (rest_of_record_type_compilation): Register the parallel
1206 type we make for variable size records.
1207 * gigi.h (add_parallel_type, get_parallel_type): Declare.
1208 * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
1209 parallel debug types we make.
1210 * trans.c (extract_encoding, decode_name): New functions.
1211 (gigi): If the DWARF attribute extensions are available, setup
1213 * lang.opt: Register language specific processing request
1215 * misc.c (gnat_dwarf_extensions): New global variable. How much
1216 do we want of our DWARF extensions. 0 by default.
1217 (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
1218 (gnat_post_options): Map gnat_dwarf_extensions to the
1219 commonuse_gnu_debug_info_extensions for later processing.
1221 2008-06-04 Samuel Tardieu <sam@rfc1149.net>
1223 * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
1225 2008-06-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1227 * Makefile.in (common_tools): Fix typos in $(exeext) extension.
1228 * gnat_ugn.texi (Style Checking)
1229 (Adding the Results of Compiler Checks to gnatcheck Output)
1230 (Example of Binder Output File): Fix typos.
1231 * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
1232 exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
1233 s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
1234 s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
1235 sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
1236 sinfo.ads, utils.c: Fix typos in comments.
1237 * sem_ch6.adb, vms_data.ads: Fix typos in strings.
1239 2008-05-29 Thomas Quinot <quinot@adacore.com>
1241 * sem_eval.adb: Minor reformatting
1243 2008-05-29 Ed Schonberg <schonberg@adacore.com>
1245 * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
1246 is abstract, do not apply abstractness check on subprogram if this is
1247 a renaming declaration.
1249 2008-05-29 Arnaud Charlet <charlet@adacore.com>
1252 * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
1253 allow recognition of program suffix in addition to prefix.
1255 * gnatchop.adb (Locate_Executable): Add support for prefix.
1257 * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
1258 mlib-utl.adb: Adjust calls to Program_Name.
1260 2008-05-29 Robert Dewar <dewar@adacore.com>
1262 * sem_ch3.adb: Minor reformatting
1263 * sem_prag.adb: Minor reformatting
1264 * sem_res.adb: Minor reformatting
1265 * sinput-p.ads: Minor reformatting
1267 2008-05-29 Javier Miranda <miranda@adacore.com>
1270 (Abstract_Interface_List): Add missing support for full type-declaration
1271 associated with synchronized types.
1273 2008-05-29 Robert Dewar <dewar@adacore.com>
1275 * sem_eval.adb (Is_Same_Value): Take care of several more cases
1277 2008-05-28 Ed Schonberg <schonberg@adacore.com>
1279 * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
1280 access type, wrap the expression in a conversion to force an
1281 accessibility check.
1283 * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
1284 accessibility checks even when expansion is disabled in order to
1285 generate messages in the presence of previous errors or in
1286 semantics-only mode.
1288 2008-05-28 Eric Botcazou <ebotcazou@adacore.com>
1290 * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
1291 * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
1293 2008-05-28 Vincent Celier <celier@adacore.com>
1296 * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
1297 preprocessing expressions
1299 2008-05-28 Vincent Celier <celier@adacore.com>
1301 * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
1304 * sinput-p.ads: Minor comment update and reformatting
1306 2008-05-28 Ed Schonberg <schonberg@adacore.com>
1308 * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
1309 type has a deeper level than any master only when it is the type of an
1312 2008-05-28 Javier Miranda <miranda@adacore.com>
1314 * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
1316 2008-05-28 Javier Miranda <miranda@adacore.com>
1318 * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
1319 * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
1320 * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
1321 Add code that was previously located in
1322 Find_Overridden_Synchronized_Primitive because it is only used here.
1324 2008-05-28 Sergey Rybin <rybin@adacore.com>
1326 * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
1327 Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
1329 2008-05-28 Robert Dewar <dewar@adacore.com>
1332 Add missing restrictions, and properly label all GNAT defined ones
1335 Add entry for Ada_Real_Time.Timing_Events.Timing_Event
1336 Add entry for Ada.Task_Termination.Set_Specific_Handler
1337 Add entry for Ada.Task_Termination.Specific_Handler
1340 Add missing restrictions and properly mark all gnat defined ones
1343 (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
1346 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
1348 * gnat_rm.texi: Add missing restrictions, and properly label all
1351 2008-05-28 Robert Dewar <dewar@adacore.com>
1354 (Check_Restriction): violation of restriction No_Finalization is
1355 treated as a serious error to stop expansion
1357 2008-05-28 Robert Dewar <dewar@adacore.com>
1359 * exp_util.adb: Minor reformatting
1360 * exp_util.ads: Minor reformatting.
1362 2008-05-28 Arnaud Charlet <charlet@adacore.com>
1364 * Make-lang.in: Remove gprmake.
1366 * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
1368 2008-05-28 Ed Schonberg <schonberg@adacore.com>
1370 * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
1371 improper progenitor names, and avoid cascaded errors.
1373 2008-05-28 Robert Dewar <dewar@adacore.com>
1375 * gnat_rm.texi: Add note on Old giving warning when applied to constant
1377 * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
1380 2008-05-28 Robert Dewar <dewar@adacore.com>
1382 * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
1385 2008-05-28 Robert Dewar <dewar@adacore.com>
1388 (Expand_Simple_Function_Return): Copy unaligned result into temporary
1390 2008-05-28 Javier Miranda <miranda@adacore.com>
1392 * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
1393 for user-defined predefined primitives.
1395 * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
1396 (Find_Overridden_Synchronized_Primitive): Ditto.
1398 * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
1400 2008-05-27 Arnaud Charlet <charlet@adacore.com>
1402 * a-ststio.adb, s-direio.adb:
1403 Further code clean up of previous change.
1406 2008-05-27 Vincent Celier <celier@adacore.com>
1408 * prj-nmsc.adb: Minor reformatting
1410 2008-05-27 Bob Duff <duff@adacore.com>
1412 * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
1413 untagged private type with a tagged full type, where the full type has
1414 a self reference, create the corresponding class-wide type early, in
1415 case the self reference is "access T'Class".
1417 2008-05-27 Ed Schonberg <schonberg@adacore.com>
1419 * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
1420 tasks and context is an object declaration. create master entity before
1423 2008-05-27 Robert Dewar <dewar@adacore.com>
1425 * mlib-prj.adb: Minor reformatting
1427 * prj-part.adb: Minor reformatting
1429 * prj.ads: Minor reformatting
1431 * exp_ch3.adb: Minor reformatting.
1433 * sem_ch3.ads: Minor reformatting
1435 * sem_eval.adb: Minor reformatting
1437 2008-05-27 Vincent Celier <celier@adacore.com>
1440 <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
1442 2008-05-27 Ed Schonberg <schonberg@adacore.com>
1444 * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
1445 tasks, create an activation chain now, before the expansion into
1446 assignments and build-in-place calls that require the presence of an
1448 (Backend_Processing_Possible): If the component type is inherently
1449 limited, the aggregate must be expanded into individual built-in-place
1452 * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
1453 determine whether an allocation extra parameter must be built, to
1454 handle case of a private type whose full type is a discriminated type
1457 2008-05-27 Bob Duff <duff@adacore.com>
1460 Document the new behavior regarding trampolines.
1462 2008-05-27 Arnaud Charlet <charlet@adacore.com>
1464 * a-direio.adb, a-sequio.adb: Replace address clause by
1465 unrestricted_access, simpler and compatible with .NET.
1467 2008-05-27 Vincent Celier <celier@adacore.com>
1470 (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
1471 a project file, so that symbolic links are not resolved.
1473 2008-05-27 Arnaud Charlet <charlet@adacore.com>
1475 * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
1476 Replace heavy address clause by 'Unrestricted_Access, cleaner and more
1477 portable across GNAT targets, since this kind of address clause is not
1478 supported by VM back-ends (.NET/JGNAT).
1480 2008-05-27 Arnaud Charlet <charlet@adacore.com>
1482 * bindgen.adb: Update comments.
1484 * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
1486 2008-05-27 Vincent Celier <celier@adacore.com>
1488 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
1489 prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
1490 mlib-tgt.adb, prj-env.adb, prj-env.ads:
1491 (Path_Information): New record type
1492 Use component of type Path_Information when there are two paths, one in
1493 canonical format and one in display format.
1494 Update the project manager to these new components.
1496 2008-05-27 Robert Dewar <dewar@adacore.com>
1498 * makeutl.adb: Minor reformatting
1499 * prj-nmsc.adb: Minor reformatting
1500 * s-stausa.adb: Minor reformatting
1501 * s-stausa.ads: Minor reformatting
1502 * sem_ch6.adb: Minor reformatting
1504 2008-05-27 Thomas Quinot <quinot@adacore.com>
1506 * sem_res.adb: Minor comment fixes
1508 2008-05-27 Thomas Quinot <quinot@adacore.com>
1510 * makeutl.adb: Minor code reorganization
1512 * exp_aggr.adb: Add ??? comment
1515 * exp_ch6.adb: Minor reformatting
1517 2008-05-27 Quentin Ochem <ochem@adacore.com>
1519 * s-stausa.adb (Initialize): Updated result initialization, and
1520 initialization of environment stack.
1521 (Fill_Stack): Improved computation of the pattern zone, taking into
1522 account already filled at the calling point.
1523 (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
1524 Measure and Overflow_Guard.
1525 (Report_Result): Fixed computation of the result using new fields of
1528 * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
1529 params by more explicit Stack_Size / Max_Pattern_Size params.
1530 (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
1531 Added Stack_Used_When_Filling field.
1532 (Task_Result): Replaced Measure / Overflow_Guard by more explicit
1533 Min_Measure and Max_Measure fields.
1535 * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
1537 2008-05-27 Vincent Celier <celier@adacore.com>
1540 (Check_File): Make sure that a unit that replaces the same unit in a
1541 project being extended is properly processed.
1543 2008-05-27 Ed Schonberg <schonberg@adacore.com>
1546 (Get_Discr_Value): Remove obsolete code that failed to find the value
1547 of a discriminant for an inherited task component appearing in a type
1550 2008-05-27 Thomas Quinot <quinot@adacore.com>
1552 (System.File_IO.{Close, Delete, Reset}):
1553 Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
1555 (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
1556 Pass File parameter by reference.
1558 2008-05-27 Vincent Celier <celier@adacore.com>
1561 (Process_Sources_In_Multi_Language_Mode): Check that there are not two
1562 sources of the same project that have the same object file name.
1563 (Find_Explicit_Sources): Always remove a source exception that was not
1566 2008-05-27 Thomas Quinot <quinot@adacore.com>
1568 * sem_ch3.adb: Minor reformatting
1570 2008-05-27 Ed Schonberg <schonberg@adacore.com>
1573 (Is_Interface_Conformant): Handle properly a primitive operation that
1574 overrides an interface function with a controlling access result.
1575 (Type_Conformance): If Skip_Controlling_Formals is true, when matching
1576 inherited and overriding operations, omit as well the conformance check
1577 on result types, to prevent spurious errors.
1579 2008-05-27 Vincent Celier <celier@adacore.com>
1581 * makeutl.ads, makeutl.adb:
1582 (Set_Location): New procedure
1583 (Get_Location): New function
1584 (Update_Main): New procedure
1586 2008-05-27 Vincent Celier <celier@adacore.com>
1589 (Check_Library): Allow standard project to be extended as a static
1591 (Get_Mains): Do not inherit attribute Main in an extending library
1594 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
1596 * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
1597 * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
1598 * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
1599 * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
1600 * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
1601 * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
1602 * system-mingw.ads (Always_Compatible_Rep): Likewise.
1603 * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
1604 * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
1605 * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
1607 2008-05-27 Ed Schonberg <schonberg@adacore.com>
1609 * sem_attr.adb: add guard to previous patch.
1611 2008-05-27 Ed Schonberg <schonberg@adacore.com>
1613 * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
1614 a synchronized tagged type, do not attempt to build dispatch table for
1615 full view. The table is built for the corresponding record type, which
1616 has its own declaration.
1618 2008-05-27 Gary Dismukes <dismukes@adacore.com>
1620 * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
1621 to the known type entity E, rather than setting it to Any_Type. Fixes
1622 possible blowup in function Base_Init_Proc, as called from Freeze_Entity
1623 for objects whose type had an illegal constraint.
1625 2008-05-27 Vincent Celier <celier@adacore.com>
1628 Add succinct documentation for attribute Excluded_Source_List_File
1630 2008-05-27 Vincent Celier <celier@adacore.com>
1632 * prj-attr.adb: Add new project level attribute Map_File_Option
1634 * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
1636 * prj.ads: Minor reformatting and comment update
1637 (Project_Configuration): New component Map_File_Option
1639 * snames.adb: New standard name Map_File_Option
1641 * snames.ads: New standard name Map_File_Option
1643 2008-05-27 Vincent Celier <celier@adacore.com>
1645 * xsnames.adb: Remove unused variable Oname
1647 2008-05-27 Doug Rupp <rupp@adacore.com>
1650 (Expand_N_Function_Call): Fix comments. Minor reformatting.
1653 (Expand_Vax_Foreign_Return): Fix comments.
1655 2008-05-27 Thomas Quinot <quinot@adacore.com>
1657 * exp_dist.adb: Minor reformating
1659 2008-05-26 Gary Dismukes <dismukes@adacore.com>
1661 * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
1662 No_Default_Initialization, which is now delayed until the freeze point
1663 of the object. Add a comment about deferral of the check.
1665 * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
1666 on objects is moved here.
1668 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
1670 * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
1671 (Compare_Array_S16): Adjust for above change.
1672 * s-casi32.adb (Uword): Likewise.
1673 (Compare_Array_S32): Likewise.
1674 * s-casi64.adb (Uword): Likewise.
1675 (Compare_Array_S64): Likewise.
1676 * s-caun16.adb (Uhalf): Likewise.
1677 (Compare_Array_U16): Likewise.
1678 * s-caun32.adb (Uword): Likewise.
1679 (Compare_Array_U32): Likewise.
1680 * s-caun64.adb (Uword): Likewise.
1681 (Compare_Array_U64): Likewise.
1683 2008-05-26 Robert Dewar <dewar@adacore.com>
1685 * exp_ch6.adb: Add ??? comment for previous change
1687 * exp_vfpt.adb: Minor reformatting
1689 * exp_vfpt.ads: Add ??? comment for last change
1691 * sem_attr.adb: Add some ??? comments for previous change
1693 * s-vaflop.ads: Add comments for previous change
1695 2008-05-26 Doug Rupp <rupp@adacore.com>
1697 * s-vaflop-vms-alpha.adb:
1698 Remove System.IO use clause, to prevent spurious ambiguities when
1699 package is access through rtsfind.
1701 2008-05-26 Sergey Rybin <rybin@adacore.com>
1703 * tree_io.ads (ASIS_Version_Number): Update because of the changes
1706 2008-05-26 Ed Schonberg <schonberg@adacore.com>
1709 (Resolve_Attribute, case 'address): S (A .. B)' address can be safely
1710 converted to S (A)'address only if A .. B is known to be a non-null
1713 2008-05-26 Doug Rupp <rupp@adacore.com>
1716 (Return_D, Return_F, Return_G): New functions.
1719 (Return_D, Return_F, Return_G): New functions.
1722 (Expand_Vax_Foreign_Return): New procedure
1725 (Expand_Vax_Foreign_Return): New procedure
1728 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
1729 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
1733 (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
1735 * s-vaflop-vms-alpha.adb:
1736 (Return_D, Return_F, Return_G): New functions.
1738 2008-05-26 Gary Dismukes <dismukes@adacore.com>
1740 * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
1741 init proc entity when there is actual default initialization associated
1742 with the component type, to avoid spurious errors on objects of scalar
1743 array types that are marked Is_Public when No_Default_Initialization
1746 2008-05-26 Thomas Quinot <quinot@adacore.com>
1748 * rtsfind.ads, rtsfind.adb:
1749 (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
1750 (Check_RPC): Support per-PCS-kind API versioning.
1752 exp_dist.ads, exp_dist.adb:
1753 (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
1754 (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
1755 library function Get_RACW.
1756 (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
1757 library function Get_Reference.
1758 (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
1759 through an intermediate Any.
1760 (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
1761 going through an intermediate Any.
1763 * sem_dist.adb: Minor reformatting.
1765 2008-05-26 Javier Miranda <miranda@adacore.com>
1767 * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
1768 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
1769 (Is_Internal): Adding documentation on internal entities that have
1770 attribute Interface_Alias (old attribute Abstract_Interface_Alias)
1772 * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
1773 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
1774 Added assertion to force entities with this attribute to have
1775 attribute Is_Internal set to True.
1776 (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
1778 * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
1779 renamed as Derive_Progenitor_Subprograms. In addition, its code is
1780 a new implementation.
1781 (Add_Interface_Tag_Components): Remove special management of
1782 synchronized interfaces.
1783 (Analyze_Interface_Declaration): Minor reformating
1784 (Build_Derived_Record_Type): Minor reformating
1785 (Check_Abstract_Overriding): Avoid reporting error in case of abstract
1786 predefined primitive inherited from interface type because the body of
1787 internally generated predefined primitives of tagged types are generated
1788 later by Freeze_Type
1789 (Derive_Subprogram): Avoid generating an internal name if the parent
1790 subprogram overrides an interface primitive.
1791 (Derive_Subprograms): New implementation that keeps separate the
1792 management of tagged types not implementing interfaces, from tagged
1793 types that implement interfaces.
1794 (Is_Progenitor): New implementation.
1795 (Process_Full_View): Add documentation
1796 (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
1797 by call to Derive_Progenitor_Subprograms.
1799 * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
1800 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
1801 Skip_Controlling_Formals.
1803 * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
1804 (Check_Conventions): New implementation. Remove local subprogram
1805 Skip_Check. Remove formal Search_From of routine Check_Convention.
1806 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
1807 Skip_Controlling_Formals.
1808 (New_Overloaded_Entity): Enable addition of predefined dispatching
1812 (Find_Primitive_Covering_Interface): New subprogram.
1814 * sem_disp.adb (Check_Dispatching_Operation): Disable registering
1815 the task body procedure as a primitive of the corresponding tagged
1817 (Check_Operation_From_Private_Type): Avoid adding twice an entity
1818 to the list of primitives.
1819 (Find_Primitive_Covering_Interface): New subprogram.
1820 (Override_Dispatching_Operation): Add documentation.
1822 * sem_type.adb (Covers): Minor reformatings
1824 * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
1827 (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
1828 (Implements_Interface): New subprogram.
1829 (Is_Parent): Removed.
1830 (Primitive_Names_Match): New subprogram.
1831 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
1832 (Ultimate_Alias): New subprogram.
1834 * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
1836 Remove special management for synchronized types. Rename formal. Remove
1837 internal subprograms Interface_Present_In_Parent and Add_Interface.
1838 (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
1839 on non-record types by code to return false in such case.
1840 (Implements_Interface): New subprogram.
1841 (Is_Parent): Removed. No special management is now required for
1842 synchronized types covering interfaces.
1843 (Primitive_Names_Match): New subprogram.
1844 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
1845 (Ultimate_Alias): New subprogram.
1847 * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
1848 Add internal entities associated with secondary dispatch tables to
1849 the list of tagged type primitives that are not interfaces.
1850 (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
1851 (Make_Predefined_Primitive_Specs): Code reorganization to improve
1852 the management of predefined equality operator. In addition, if
1853 the type has an equality function corresponding with a primitive
1854 defined in an interface type, the inherited equality is abstract
1855 as well, and no body can be created for it.
1857 * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
1858 exp_util to exp_disp.
1859 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
1860 an entity corresponds with one of the predefined primitives required
1861 to implement interfaces.
1862 Update copyright notice.
1864 * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
1865 final check on abstract subprograms all the primitives associated with
1866 interface primitives because they must be visible in the public and
1868 (Write_DT): Use Find_Dispatching_Type to locate the name of the
1869 interface type. This allows the use of this routine, for debugging
1870 purposes, when the tagged type is not fully decorated.
1871 (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
1872 Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
1873 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
1874 entity corresponds with one of the predefined primitives required to
1875 implement interfaces.
1877 * exp_util.adb (Find_Interface_ADT): New implementation
1878 (Find_Interface): Removed.
1880 * sprint.adb (Sprint_Node_Actual): Generate missing output for the
1881 list of interfaces associated with nodes
1882 N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
1884 2008-05-26 Thomas Quinot <quinot@adacore.com>
1886 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
1887 condition for assignment to temporary.
1889 2008-05-26 Ed Schonberg <schonberg@adacore.com>
1891 * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
1892 checks on the upper bound if the index type is a modular type, to
1893 prevent wrap-around computations when size is close to upper bound of
1896 2008-05-26 Robert Dewar <dewar@adacore.com>
1898 * sem_ch3.adb: Minor reformatting
1900 2008-05-26 Ed Schonberg <schonberg@adacore.com>
1902 * sem_ch12.adb (Remove_Parent): Use specification of instance
1903 to retrieve generic parent,
1904 to handle properly the case where the instance is a child unit.
1905 Add guard to handle properly wrapper packages.
1908 2008-05-26 Thomas Quinot <quinot@adacore.com>
1910 * sinfo.ads: Minor reformatting
1912 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
1914 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
1915 Generate a tag check when the result subtype of a function, defined by
1916 an access definition, designates a specific tagged type.
1917 (Make_Tag_Check): New routine.
1919 2008-05-26 Arnaud Charlet <charlet@adacore.com>
1921 * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
1923 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
1925 * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
1926 (builtin_decl_for): Likewise.
1927 * trans.c (gigi): Likewise.
1928 * utils.c (def_builtin_1): Fix formatting.
1930 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
1932 * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
1933 Create the statements which map a string name to protected or task
1936 * exp_ch9.adb: Add with and use clause for Stringt.
1937 Minor code reformatting.
1938 (Build_Entry_Names): New routine.
1939 (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
1940 for flag Build_Entry_Names which controls the allocation of the data
1941 structure for the string names of entries.
1943 * exp_ch9.ads (Build_Entry_Names): New subprogram.
1945 * exp_util.adb (Entry_Names_OK): New function.
1947 * exp_util.ads (Entry_Names_OK): New function.
1949 * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
1950 enumerations RE_Id and RE_Unit_Table.
1952 * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
1953 (Free_Entry_Names_Array): New routine.
1955 * s-taskin.ads: Comment reformatting.
1956 Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
1957 Add component Entry_Names to record Ada_Task_Control_Block.
1958 (Free_Entry_Names_Array): New routine.
1960 * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
1961 dynamically allocate an array
1962 of string pointers. This structure holds string entry names.
1963 (Free_Entry_Names): New routine.
1964 (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
1965 (Set_Entry_Names): New routine.
1968 (Create_Task): Add formal Build_Entry_Names. The flag is used to
1969 control the allocation of the data structure which stores entry names.
1970 (Set_Entry_Name): New routine.
1973 Add with and use clause for Ada.Unchecked_Conversion.
1974 (Finalize): Deallocate the entry names array.
1975 (Free_Entry_Names): New routine.
1976 (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
1977 create an array of string pointers to hold the entry names.
1978 (Set_Entry_Name): New routine.
1981 Add field Entry_Names to record Protection_Entries.
1982 (Initialize_Protection_Entries): Add formal Build_Entry_Names.
1983 (Set_Entry_Name): New routine.
1985 2008-05-26 Vincent Celier <celier@adacore.com>
1988 (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
1991 (Project_Configuration): New component Shared_Lib_Driver
1993 2008-05-26 Ed Schonberg <schonberg@adacore.com>
1996 (Cleanup_Scopes): For a protected operation, transfer finalization list
1997 to protected body subprogram, to force cleanup actions when needed.
1999 2008-05-26 Robert Dewar <dewar@adacore.com>
2001 * sem_cat.adb: Minor reformatting
2003 * gnatname.adb: Minor reformatting
2005 * osint.ads: Minor reformatting
2007 * s-carun8.ads: Minor reformatting
2009 * g-heasor.ads: Minor comment fix (unit is now pure)
2011 2008-05-26 Robert Dewar <dewar@adacore.com>
2014 (Expand_Current_Value): Properly type generated integer literal
2016 2008-05-26 Sergey Rybin <rybin@adacore.com>
2018 * gnat_ugn.texi: Add description for the new gnatcheck rule -
2019 Separate_Numeric_Error_Handlers.
2021 2008-05-26 Pascal Obry <obry@adacore.com>
2023 * sem_aggr.adb: Minor reformatting.
2025 2008-05-26 Jose Ruiz <ruiz@adacore.com>
2028 (To_Target_Priority): Setting the time slice value to 0 or greater sets
2029 the scheduling policy to FIFO within priorities or round-robin
2031 Hence, the priority must be set in this case to the one selected by the
2034 2008-05-26 Ed Schonberg <schonberg@adacore.com>
2037 (Remove_Parent): If the enclosing scope is an instance whose generic
2038 parent is declared within some parent scope of the just completed
2039 instance, make full views of the entities in that parent visible, when
2042 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
2044 * mingw32.h (STD_MINGW): Set to true for target w64.
2046 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
2048 * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
2049 instead of TREE_STATIC on the ADDR_EXPR.
2051 2008-05-24 Eric Botcazou <ebotcazou@adacore.com>
2053 * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
2054 (Sloc_to_locus): Do not overwrite known GCC locations when translating
2055 GNAT standard locations.
2057 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
2059 * gigi.h (mark_visited): Declare.
2060 * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
2061 only the topmost node of expressions.
2062 (elaborate_expression_1): Look deeper for read-only variables.
2063 * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
2064 (mark_visited): Move logic to mark_visited_r. Invoke walk_tree.
2065 (mark_visited_r): New function.
2067 2008-05-23 Vincent Celier <celier@adacore.com>
2069 * snames.adb: New standard name Excluded_Source_List_File.
2071 * snames.ads: New standard name Excluded_Source_List_File.
2073 * prj-attr.adb: New project level attribute Excluded_Source_List_File.
2075 * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
2076 Get excluded sources from
2077 file indicated by attribute Excluded_Source_List_File, when present and
2078 neither Excluded_Source_Files nor Locally_Removed_Files are declared.
2080 2008-05-23 Robert Dewar <dewar@adacore.com>
2082 * exp_dist.adb: Minor reformatting
2084 2008-05-23 Ed Schonberg <schonberg@adacore.com>
2086 * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
2087 slice, convert it to an indexed component, which is equivalent, more
2088 efficient, and usable even if the slice itself is not addressable.
2090 2008-05-23 Olivier Hainque <hainque@adacore.com>
2092 * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
2093 convention also allows access to named compiler built-in subprograms
2094 such as the GCC __builtin family.
2096 2008-05-23 Vincent Celier <celier@adacore.com>
2098 * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
2099 sep. If there are several possibilities, choose the one with the
2102 2008-05-23 Vincent Celier <celier@adacore.com>
2104 * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
2105 back end switches when executable specified with --GCC= is same as
2106 default, even if there are additional options.
2109 Document when the back end switches from the ALI file are taken into
2110 account when gnatlink is invoked with --GCC=
2112 2008-05-23 Thomas Quinot <quinot@adacore.com>
2115 (copy_File): Do not open destination file if source file is unreadable.
2117 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
2119 * utils.c (handle_type_generic_attribute): Adjust to accept
2120 fixed arguments before an elipsis.
2122 2008-05-21 Thomas Quinot <quinot@adacore.com>
2124 * g-sothco.ads, g-sothco.adb: New files.
2126 2008-05-20 Thomas Quinot <quinot@adacore.com>
2128 * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
2130 * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
2131 Add missing "with" of Ada.Unchecked_Conversion
2133 * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads,
2134 g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads,
2135 g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
2136 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
2137 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
2138 g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads:
2139 Move common code out of GNAT.Sockets.Thin implementations and into
2141 New constant SIZEOF_fd_set
2142 New flag Has_Sockaddr_Len
2143 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
2145 * g-stsifd-sockets.adb
2146 (Create): Remove call to Set_Length; use Set_Family to set the family
2147 and (on appropriate platforms) length fields in struct sockaddr.
2149 * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb,
2150 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb,
2151 g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
2152 Move common code out of GNAT.Sockets.Thin implementations and into
2155 * g-socket.ads, g-socket.adb:
2156 Move common code out of GNAT.Sockets.Thin implementations and into
2158 (Connect_Socket, Accept_Socket): Provide new versions of these two
2159 routines that operate with a user specified timeout.
2160 (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
2161 this is now handled automatically by Set_Family on platforms that
2165 Move common code out of GNAT.Sockets.Thin implementations and into
2167 (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
2168 this constant to 0 (not -1) because we use it to initialize an
2169 unsigned_char value.
2170 Align values for numeric constants only.
2171 Handle the case of systems that do not support AF_INET6.
2172 New constant SIZEOF_fd_set
2173 New flag Has_Sockaddr_Len
2174 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
2176 * gsocket.h: New flag Has_Sockaddr_Len
2177 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
2179 2008-05-20 Santiago Uruena <uruena@adacore.com>
2181 * i-cobol.ads: Interfaces.COBOL should be preelaborate.
2183 2008-05-20 Arnaud Charlet <charlet@adacore.com>
2185 * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
2186 the underlying issue with malloc/free has been fixed. Remove associated
2189 Related to PR ada/24533
2191 2008-05-20 Robert Dewar <dewar@adacore.com>
2193 * ali.adb: Correct casing of ASCII.NUL
2195 * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
2198 2008-05-20 Robert Dewar <dewar@adacore.com>
2199 Gary Dismukes <dismukes@adacore.com>
2201 * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
2202 overflow if result converted to wider integer type.
2203 (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
2204 discriminated types when discriminant checks are suppressed.
2206 2008-05-20 Vincent Celier <celier@adacore.com>
2208 * cstand.adb (Print_Standard): Issue the correct Size clause for type
2209 Wide_Wide_Character.
2211 2008-05-20 Tristan Gingold <gingold@adacore.com>
2213 * decl.c: Do not emit a variable for a object that has an address
2214 representation clause whose value is known at compile time.
2215 When a variable has an address clause whose value is known at compile
2216 time, refer to this variable by using directly the address instead of
2217 dereferencing a pointer.
2219 2008-05-20 Robert Dewar <dewar@adacore.com>
2222 * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
2223 subtypes, always False for non-modular types.
2224 Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
2225 entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
2226 for Shared_Storage package.
2227 (Is_RACW_Stub_Type): New entity flag.
2230 (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
2231 case where we have a modular type with a non-binary modules.
2232 Comments reformattings.
2234 * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
2237 2008-05-20 Javier Miranda <miranda@adacore.com>
2240 (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
2241 tests did not covered the case in which the type of the aggregate has
2242 no progenitors but some its parents has progenitors.
2244 2008-05-20 Gary Dismukes <dismukes@adacore.com>
2245 Hristian Kirtchev <kirtchev@adacore.com>
2248 (Expand_N_Object_Declaration): Correct the condition which triggers the
2249 generation of a call to Displace when initializing a class-wide object.
2250 (Build_Dcheck_Functions): Build discriminant-checking for null variants
2251 when Frontend_Layout_On_Target is true to ensure that they're available
2252 for calling when a record variant size function is built in Layout.
2254 2008-05-20 Ed Schonberg <schonberg@adacore.com>
2256 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
2257 procedure for a derived type retrieve the discriminant values from the
2258 parent using the corresponding discriminant.
2259 (Expand_N_Assignment_Statement): Skip generation of implicit
2260 if-statement associated with controlled types if we are
2261 compiling with restriction No_Finalization.
2263 2008-05-20 Vincent Celier <celier@adacore.com>
2265 * prj.adb (Hash (Project_Id)): New function
2266 (Project_Empty): Add new component Interfaces_Defined
2268 * prj.ads (Source_Data): New component Object_Linked
2269 (Language_Config): New components Object_Generated and Objects_Linked
2270 (Hash (Project_Id)): New function
2271 (Source_Data): New Boolean components In_Interfaces and
2272 Declared_In_Interfaces.
2273 (Project_Data): New Boolean component Interfaces_Defined
2276 New project level attribute Object_Generated and Objects_Linked
2277 Add new project level attribute Interfaces
2279 * prj-dect.adb: Use functions Present and No throughout
2280 (Parse_Variable_Declaration): If a string type is specified as a simple
2281 name and is not found in the current project, look for it also in the
2282 ancestors of the project.
2285 Replace procedure Make with procedures Initialize, Process and Finalize
2286 to implement H414-023: process different directories with different
2288 Use functions Present and No throughout
2291 Replace procedure Make with procedures Initialize, Process and Finalize
2294 (Add_Source): Set component Object_Exists and Object_Linked accordnig to
2295 the language configuration.
2296 (Process_Project_Level_Array_Attributes): Process new attributes
2297 Object_Generated and Object_Linked.
2298 (Report_No_Sources): New Boolean parameter Continuation, defaulted to
2299 False, to indicate that the erreor/warning is a continuation.
2300 (Check): Call Report_No_Sources with Contnuation = True after the first
2302 (Error_Msg): Process successively contnuation character and warning
2304 (Find_Explicit_Sources): Check that all declared sources have been found
2305 (Check_File): Indicate in hash table Source_Names when a declared source
2307 (Check_File): Set Other_Part when found
2308 (Find_Explicit_Sources): In multi language mode, check if all exceptions
2309 to the naming scheme have been found. For Ada, report an error if an
2310 exception has not been found. Otherwise, disregard the exception.
2311 (Check_Interfaces): New procedure
2312 (Add_Source): When Other_Part is defined, set mutual pointers in spec
2314 (Check): In multi-language mode, call Check_Interfaces
2315 (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
2316 for an excluded source.
2317 (Remove_Source): A source replacing a source in the interfaces is also
2320 * prj-pars.adb: Use function Present
2322 * prj-part.adb: Use functions Present and No throughout
2323 (Parse_Single_Project): Set the parent project for child projects
2324 (Create_Virtual_Extending_Project): Register project with no qualifier
2325 (Parse_Single_Project): Allow an abstract project to be extend several
2326 times. Do not allow an abstract project to extend a non abstract
2329 * prj-pp.adb: Use functions Present and No throughout
2330 (Print): Take into account the full associative array attribute
2333 * prj-proc.adb: Use functions Present and No throughout
2334 (Expression): Call itself with the same From_Project_Node for the
2335 default value of an external reference.
2337 * prj-strt.adb: Use functions Present and No throughout
2338 (Parse_Variable_Reference): If a variable is specified as a simple name
2339 and is not found in the current project, look for it also in the
2340 ancestors of the project.
2342 * prj-tree.ads, prj-tree.adb (Present): New function
2344 Use functions Present and No throughout
2345 (Parent_Project_Of): New function
2346 (Set_Parent_Project_Of): New procedure
2348 * snames.ads, snames.adb:
2349 Add new standard names Object_Generated and Objects_Linked
2351 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
2353 * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
2354 and the derived type are of the same kind.
2355 (Expand_Call): Generate type conversions for actuals of
2356 record or array types when the parent and the derived types differ in
2357 size and/or packed status.
2359 2008-05-20 Javier Miranda <miranda@adacore.com>
2360 Ed Schonberg <schonberg@adacore.com>
2362 * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
2363 generating dispatch tables of locally defined tagged types statically.
2364 Remove implicit if-statement that is no longer required.
2365 (Expand_Dispatching_Call): If this is a call to an instance of the
2366 generic dispatching constructor, the type of the first argument may be
2367 a subtype of Tag, so always use the base type to recognize this case.
2369 2008-05-20 Thomas Quinot <quinot@adacore.com>
2372 (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
2373 and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
2374 assigning NULL into the result, to avoid a spurious warning.
2375 (Add_RACW_Features, case Same_Scope): Add assertion that designated type
2377 (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
2379 (Build_From_Any_Function, Build_To_Any_Function,
2380 Build_TypeCode_Function): For a type that has user-specified stream
2381 attributes, use an opaque sequence of octets as the representation.
2383 2008-05-20 Kevin Pouget <pouget@adacore.com>
2385 * exp_smem.ads, exp_smem.adb: Construction of access and assign
2386 routines has been replaced by an instantiation of
2387 System.Shared_Storage.Shared_Var_Procs generic package, while expanding
2388 shared variable declaration.
2389 Calls to access and assign routines have been replaced by calls to
2390 Read/Write routines of System.Shared_Storage.Shared_Var_Procs
2391 instantiated package.
2393 * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
2394 It identifies the new generic package added in s-shasto.
2396 * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
2397 is instantiated for each shared passive variable. It provides
2398 supporting procedures called upon each read or write access by the
2402 For this runtime unit (always compiled in GNAT mode), we allow
2403 stream attributes references for limited types for the case where
2404 shared passive objects are implemented using stream attributes,
2405 which is the default in GNAT's persistent storage implementation.
2407 2008-05-20 Ed Schonberg <schonberg@adacore.com>
2410 (Freeze_Enumeration_Type): For a subtype that inherits a foreign
2411 convention from its base type, do not set the type to that of integer,
2412 because it may inherit a size clause.
2413 Warn on a size clause with a size different
2414 from that of Integer, if the type has convention C.
2416 2008-05-20 Vincent Celier <celier@adacore.com>
2419 (Scan_Args): Rewrite to take into account new switch --and to separate
2420 arguments into sections.
2421 (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
2422 section, then Finalize.
2424 2008-05-20 Tristan Gingold <gingold@adacore.com>
2426 * init.c: Enable stack probing on ppc-linux.
2428 * tracebak.c: Add symbolic traceback for ppc-linux.
2430 * system-linux-ppc.ads: Enable stack probing on ppc-linux.
2432 2008-05-20 Arnaud Charlet <charlet@adacore.com>
2435 (common-tools): New rule, to avoid parallel build failure on gnat tools.
2436 Reenable parallel builds on this Makefile.
2438 * Make-lang.in: Update dependencies.
2440 2008-05-20 Robert Dewar <dewar@adacore.com>
2442 * opt.ads (Treat_Restrictions_As_Warnings): New switch
2444 * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
2445 Treat_Restrictions_As_Warnings.
2447 * switch-c.adb: Recognize new switch -gnatr
2449 * usage.adb: Add line for -gnatr
2451 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
2454 (P_Access_Definition): Change the error message when parsing "access
2455 all" in Ada 95 mode. The message no longer forces the user to recompile
2456 in 05 mode only to discover that anonymous access types are not allowed
2459 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
2462 (P_Protected): Update the error message on missing "-gnat05" switch when
2463 using interfaces in conjunction with protected types. Remove the
2464 incorrect error message associated with the presence of "private" after
2467 2008-05-20 Ed Schonberg <schonberg@adacore.com>
2469 * sem_aggr.adb: Update comments.
2470 Improve previous change for PR ada/17985
2472 2008-05-20 Thomas Quinot <quinot@adacore.com>
2475 (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
2476 the visible part of the spec of a remote types unit.
2477 (Validate_Remote_Access_Object_Type_Declaration):
2478 New local subprogram Is_Valid_Remote_Object_Type, replaces
2479 Is_Recursively_Limited_Private.
2480 (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
2481 non-controlling formals (and the return type, even though this is not
2482 explicit in the standard) must support external streaming.
2483 (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
2484 as above for of RAS types and RCI subprograms. (The return type is not
2486 Update comments related to RACWs designating limited interfaces per
2487 ARG ruling on AI05-060.
2489 * sem_util.ads, sem_util.adb
2490 (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
2491 Is_Remote_Call_Interface to identify RACW types in a stable and
2492 consistent way. We used to rely in this predicate on the privateness of
2493 the designated type and its ancestors, but depending on the currently
2494 visible private parts, this caused false negatives. We now uniformly
2495 rely on checks made at the point where the RACW type is declared.
2496 (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
2498 2008-05-20 Javier Miranda <miranda@adacore.com>
2499 Ed Schonberg <schonberg@adacore.com>
2500 Hristian Kirtchev <kirtchev@adacore.com>
2503 (Analyze_Object_Declaration): Fix over-conservative condition
2504 restricting use of predefined assignment with tagged types that have
2506 (Analyze_Object_Declaration): Relax the check regarding deferred
2507 constants declared in scopes other than packages since they can be
2508 completed with pragma Import.
2509 Add missing escaping of all-caps word 'CPP' in error messages.
2510 (Build_Discriminated_Subtype): Do not inherit representation clauses
2511 from parent type if subtype already carries them, because they are
2512 inherited earlier during derivation and already include those that may
2513 come from a partial view.
2515 * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
2516 Check the declarations of a subprogram body for proper deferred
2517 constant completion.
2519 * sem_ch7.ads, sem_ch7.adb
2520 (Inspect_Deferred_Constant_Completion): Moved to sem_util.
2522 2008-05-20 Ed Schonberg <schonberg@adacore.com>
2523 Thomas Quinot <quinot@adacore.com>
2526 (Try_Indexed_Call): Handle properly a construct of the form F(S) where
2527 F is a parameterless function that returns an array, and S is a subtype
2529 (Analyze_Call): Insert dereference when the prefix is a parameterless
2530 function that returns an access to subprogram and the call has
2532 Reject a non-overloaded call whose name resolves to denote
2533 a primitive operation of the stub type generated to support a remote
2534 access-to-class-wide type.
2536 2008-05-20 Ed Schonberg <schonberg@adacore.com>
2539 (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
2540 when there is a use clause for the same entity in the context.
2541 (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
2542 created for a stream attribute of an abstract type or interface type.
2544 2008-05-20 Thomas Quinot <quinot@adacore.com>
2546 * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
2550 (Add_One_Interp): Ignore any interpretation that is a primitive
2551 operation of an RACW stub type (these primitives are only executed
2552 through dispatching, never through static calls).
2553 (Collect_Interps): When only one interpretation has been found, set N's
2554 Entity and Etype to that interpretation, otherwise Entity and Etype may
2555 still refer to an interpretation that was ignored by Add_One_Interp,
2556 in which case would end up with being marked as not overloaded but with
2557 an Entity attribute not pointing to its (unique) correct interpretation.
2559 2008-05-20 Ed Schonberg <schonberg@adacore.com>
2562 (Eval_Slice): Warn when a slice whose discrete range is a subtype name
2563 denotes the whole array of its prefix.
2565 2008-05-20 Robert Dewar <dewar@adacore.com>
2567 * sem_res.adb (Resolve_Op_Not): Warn on double negation
2569 2008-05-20 Ed Schonberg <schonberg@adacore.com>
2572 (Print_Itype): Do not modify the sloc of the component type of a
2573 (packed) array itype, because it is an unrelated type whose source
2574 location is independent of the point of creation of the itype itself.
2576 2008-05-20 Thomas Quinot <quinot@adacore.com>
2578 * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
2581 2008-05-20 Robert Dewar <dewar@adacore.com>
2582 Vincent Celier <celier@adacore.com>
2584 * vms_data.ads: Add entry for -gnatr
2585 Put GNAT SYNC section in proper alpha order
2586 Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
2588 * gnat_ugn.texi: Add documentation for new gnatname switch --and
2589 Update the style checks section
2590 Add documentation of -gnatr
2591 Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
2592 subsection the explanation how compiler checks should be disabled for
2594 Update the list of Ada 95 reserved words used by in the project language
2595 Add documentation for project qualifiers.
2596 Document that abstract projects may be extended by different projects in
2597 the same project tree.
2598 Add documentation for gnatmake switch -d
2600 * ug_words: Add -gnatyy VMS equivalence string.
2601 Add entry for -gnatr
2603 2008-05-20 Bob Duff <duff@adacore.com>
2606 (Set_Handler): Remove code from both of these that implements
2607 RM-D.15(15/2), because it causes a race condition and potential
2609 (Process_Queued_Events): Add comment explaining "exception when others
2610 => null". Add clarifying ".all", even though implicit .all is legal
2613 2008-05-20 Arnaud Charlet <charlet@adacore.com>
2615 * s-winext.ads: Replace representation clause by pragma Pack. Gives
2616 equivalent representation, but has the advantage of allowing
2617 compilation of this file under 64 bits platforms.
2619 * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
2621 * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
2624 Don't define dummy implementation of convert_addresses on ppc-linux.
2626 2008-05-20 Ed Schonberg <schonberg@adacore.com>
2629 (Expand_Ctrl_Function_Call): Do not attach result to finalization list
2630 if expression is aggregate component.
2632 2008-05-20 Robert Dewar <dewar@adacore.com>
2634 * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
2635 sem_ch12.adb: Update comments. Minor reformatting.
2639 * s-unstyp.ads: Fixed some typos in comments.
2641 2008-05-20 Arnaud Charlet <charlet@adacore.com>
2643 * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
2646 * g-socthi-vxworks.ads: Update to latest socket changes.
2648 * a-caldel-vms.adb: Resync with a-caldel spec.
2650 * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
2653 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
2655 * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
2656 for dummy types pointed to by the converted pointer types.
2658 2008-05-15 Eric Botcazou <ebotcazou@adacore.com>
2660 * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
2661 of records and unions.
2662 (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
2664 2008-05-14 Samuel Tardieu <sam@rfc1149.net>
2665 Robert Dewar <dewar@adacore.com>
2667 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
2668 restrictions to the prefix of 'Old.
2669 * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
2670 * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
2673 2008-05-13 Eric Botcazou <ebotcazou@adacore.com>
2677 * utils.c (convert) <INTEGER_TYPE>: When converting an additive
2678 expression to an integral type with lower precision, use NOP_EXPR
2679 directly in a couple of special cases.
2681 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
2682 Ed Schonberg <schonberg@adacore.com>
2684 * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
2685 constraint expressions.
2687 2008-05-12 Tomas Bily <tbily@suse.cz>
2689 * utils2.c (known_alignment, contains_save_expr_p)
2690 (gnat_mark_addressable): Use CASE_CONVERT.
2691 * decl.c (annotate_value): Likewise.
2692 * trans.c (maybe_stabilize_reference): Likewise.
2693 * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
2694 * utils.c (rest_of_record_type_compilation): Likewise.
2695 * trans.c (protect_multiple_eval, Attribute_to_gnu)
2696 (protect_multiple_eval): Likewise.
2698 2008-05-08 Andreas Schwab <schwab@suse.de>
2700 * utils.c (handle_pure_attribute, init_gigi_decls): Rename
2701 DECL_IS_PURE to DECL_PURE_P.
2703 2008-05-05 Eric Botcazou <ebotcazou@adacore.com>
2705 * decl.c (maybe_pad_type): Add ??? comment.
2707 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
2709 * decl.c (components_to_record): Zero the alignment of the qualified
2710 union built for the variant part upon creating it.
2712 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
2714 * decl.c (maybe_pad_type): Try to get a form of the type with integral
2715 mode even if the alignment is not a factor of the original size. But
2716 make sure to create the inner field with the original size. Reorder.
2717 * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
2718 record as always addressable.
2719 * utils.c (convert): Deal specially with conversions between original
2720 and packable versions of a record type.
2721 * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
2722 recognizing an assignment between padded objects.
2724 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
2726 * decl.c (make_packable_type): Resize the last component to its RM size
2727 only if it is of an aggregate type.
2728 * trans.c (call_to_gnu): Fix nit in comment.
2729 (gnat_to_gnu): Likewise.
2731 2008-04-30 Samuel Tardieu <sam@rfc1149.net>
2733 * Makefile.in: Adapt sh4-linux target.
2735 2008-04-29 Ed Schonberg <schonberg@adacore.com>
2738 * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
2739 tagged type by an untagged protected or task type.
2741 2008-04-28 Eric Botcazou <ebotcazou@adacore.com>
2742 Tristan Gingold <gingold@adacore.com>
2745 * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
2746 of aliased objects with an unconstrained nominal subtype.
2747 Cap the promotion to the effective alignment of the word mode.
2749 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2751 * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
2752 (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
2753 Use '&&' instead of ';'.
2755 2008-04-24 Olivier Hainque <hainque@adacore.com>
2757 * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
2758 doesn't require signed arithmetic anymore.
2760 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
2762 * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
2763 (call_to_gnu): Don't set TREE_INVARIANT.
2764 * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
2766 2008-04-22 Joel Sherrill <joel.sherrill@oarcorp.com>
2768 * s-osinte-rtems.adb: Add sigalstack function.
2769 * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
2770 function. Add Alternate_Stack and Alternate_Stack_Size.
2771 Add missing process_shared field to pthread_condattr_t
2772 and change ss_low_priority to int from timespec.
2774 2008-04-22 Samuel Tardieu <sam@rfc1149.net>
2776 * i-forbla.adb: Link against -llapack and -lblas by default
2777 instead of the private -lgnalasup.
2779 2008-04-21 Olivier Hainque <hainque@adacore.com>
2781 Access to most C builtins from Ada
2782 * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
2783 (handle_pure_attribute, handle_novops_attribute,
2784 handle_nonnull_attribute, handle_sentinel_attribute,
2785 handle_noreturn_attribute, handle_malloc_attribute,
2786 handle_type_generic_attribute): New attribute handlers, from C fe.
2787 (gnat_internal_attribute_table): Map the new handlers.
2788 (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
2789 (init_gigi_decls): ... here.
2790 (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
2791 Move to a section dedicated to builtins processing.
2792 (build_void_list_node, builtin_type_for_size): New functions.
2793 (def_fn_type, get_nonnull_operand): Likewise.
2794 (install_builtin_elementary_type, install_builtin_function_types,
2795 install_builtin_attributes): Likewise.
2796 (fake_attribute_handler): Fake handler for attributes we don't
2798 (def_builtin_1): New function, worker for DEF_BUILTIN.
2799 (install_builtin_functions): New function.
2800 (gnat_install_builtins): Move to the builtins processing section.
2801 Now calling the newly introduced installers.
2803 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
2805 * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
2806 constant objects, but not exceptions.
2807 * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
2809 * utils.c (create_var_decl_1): Likewise.
2810 * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
2811 the type when copying to padded object and the source is a constructor.
2813 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
2815 * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
2816 alignment, reset it to zero if it would end up not being greater
2817 than that of the type.
2819 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
2821 * decl.c (maybe_pad_type): Only generate the XVS parallel type if
2822 the padded type has a variable size.
2824 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
2826 * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
2827 target pointer mechanism as soon as the size is not constant.
2829 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
2831 * gigi.h (create_var_decl_1): Declare.
2832 (create_var_decl): Turn into a macro invoking create_var_decl_1.
2833 (create_true_var_decl): Likewise.
2834 * utils.c (create_var_decl_1): Make global and reorder parameters.
2835 (create_var_decl): Delete.
2836 (create_true_var_decl): Likewise.
2838 2008-04-17 Eric Botcazou <ebotcazou@adacore.com>
2840 * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
2842 * fe.h (Debug_Flag_Dot_A): Delete.
2843 * debug.adb (-gnatd.a): Update documentation.
2845 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
2847 * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
2848 "not null" parameter.
2850 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
2852 * g-socket.adb: Add a message "IPv6 not supported" to the
2853 Socket_Error exception.
2855 2008-04-16 Samuel Tardieu <sam@rfc1149.net>
2858 * sem_ch12.adb (Instantiate_Type): Check whether the full view of
2859 the type is known instead of the underlying type.
2861 2008-04-15 Ed Schonberg <schonberg@adacore.com>
2864 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
2865 procedure for a derived type retrieve the discriminant values from
2866 the parent using the corresponding discriminant.
2868 2008-04-15 Samuel Tardieu <sam@rfc1149.net>
2869 Gary Dismukes <dismukes@adacore.com>
2872 * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
2873 which is not an entity (and hence not a package).
2874 (End_Use_Package): Ditto.
2876 2008-04-15 Ed Schonberg <schonberg@adacore.com>
2879 * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
2880 protected operation that matches the signature, not only an entry, a
2881 regular subprogram or a literal.
2883 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
2885 * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
2886 * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
2887 if a size or alignment is specified. Do not take into account
2888 alignment promotions for the computation of the object's size.
2889 <type>: Call maybe_pad_type only if a size or alignment is specified.
2890 (maybe_pad_type): Really reuse the RM_Size of the original type if
2892 * trans.c (Attribute_to_gnu): Fix a couple of nits.
2893 * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
2894 statements. Use the padded view of the type when copying between
2895 padded objects of the same underlying type.
2897 2008-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2899 * vms_data.ads: Fix typo in constant.
2900 * gen-soccon.c: Fix typo in error string.
2901 * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
2903 * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
2904 bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
2905 erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
2906 exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
2907 exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
2908 g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
2909 mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
2910 s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
2911 s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
2912 sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
2913 sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
2914 sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
2915 sinfo.ads: Fix typos in comments.
2917 2008-04-14 Robert Dewar <dewar@adacore.com>
2919 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
2920 to every non-object and change error message.
2922 2008-04-14 Robert Dewar <dewar@adacore.com>
2924 * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
2925 * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
2928 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
2931 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
2932 apply pragma Linker_Section on type.
2934 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
2937 * sem_prag.adb (Error_Pragma_Ref): New.
2938 (Process_Convention): Specialized message for non-local
2939 subprogram renaming. Detect the problem in homonyms as well.
2941 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
2944 * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
2945 * sem_ch12.adb (Instantiate_Object): Use it.
2946 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
2947 storage pool denotes a variable as per RM 13.11(15).
2949 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
2951 * sem_util.ads, sem_util.adb (In_Subprogram): New function.
2952 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
2954 2008-04-14 Rolf Ebert <rolf.ebert.gcc@gmx.de>
2957 * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
2958 line endings even on non-Unix platforms.
2960 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
2963 * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
2964 renaming information.
2966 2008-04-13 Samuel Tardieu <sam@rfc1149.net>
2969 * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
2972 2008-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2974 * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
2975 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
2976 snames.ads, sprint.adb, stand.ads, stringt.ads,
2977 styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
2978 switch.ads, sysdep.c, table.adb, table.ads,
2979 targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
2980 trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
2981 uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
2982 vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
2983 widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
2984 xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
2987 * sem_ch10.adb, sem_ch10.ads,
2988 sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
2989 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
2990 sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
2991 sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
2992 sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
2993 sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
2994 sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
2995 sem_warn.ads: Fix comment typos.
2997 * s-secsta.adb, s-sequio.ads, s-shasto.ads,
2998 s-soflin.ads, s-stalib.ads, s-stausa.adb,
2999 s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
3000 s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
3001 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
3002 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
3003 s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
3004 s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
3005 s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
3006 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
3007 s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
3008 s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
3009 s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
3010 s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
3011 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
3012 scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
3013 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
3014 sem_cat.adb, sem_cat.ads: Fix comment typos.
3016 2008-04-12 Joel Sherrill <joel@oarcorp.com>
3019 * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
3021 2008-04-12 Arnaud Charlet <charlet@adacore.com>
3023 * s-linux-hppa.ads: Fix syntax errors.
3025 2008-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3027 * gnat_ugn.texi: Fix typos.
3028 * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
3029 restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
3030 s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
3031 s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
3032 s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
3033 s-finimp.adb, s-finroo.ads, s-fishfl.ads,
3034 s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
3035 s-hibaen.ads, s-htable.ads, s-imgcha.adb,
3036 s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
3037 s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
3038 s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
3039 s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
3040 s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
3041 s-osinte-darwin.ads, s-osinte-freebsd.ads,
3042 s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
3043 s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
3044 s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
3045 s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
3046 s-parame-hpux.ads, s-parame-vms-alpha.ads,
3047 s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
3048 s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
3049 s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
3050 s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
3051 s-rident.ads: Fix comment typos.
3053 2008-04-09 Samuel Tardieu <sam@rfc1149.net>
3056 * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
3057 environment if generic instance is a top-level one.
3059 2008-04-09 Doug Rupp <rupp@adacore.com>
3061 * decl.c (validate_size): Set minimum size for fat pointers same as
3062 access types. Code clean ups.
3064 * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
3065 (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
3067 * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
3069 * s-crtl.ads (malloc32) New function, alias for malloc
3070 (realloc32) New function, alias for realloc
3072 * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
3074 * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
3075 allocator size is 32 and default pointer size is 64.
3076 (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
3077 lhs type if smaller, whatever the modes.
3079 * gigi.h (malloc32_decl): New macro definition
3081 * utils.c (init_gigi_decls): New malloc32_decl
3082 Various code clean ups.
3084 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
3085 Task_Address vice System.Address.
3087 * s-taspri-vms.ads: Import System.Aux_DEC
3088 (Task_Address): New subtype of System.Aux_DEC.Short_Address
3089 (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
3091 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
3092 Task_Address vice System.Address.
3094 * s-inmaop-vms.adb: Import System.Task_Primitives
3095 (To_Address): Unchecked convert to Task_Address vice System.Address
3097 * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
3099 (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
3100 (To_Address) Unchecked convert to Task_Address vice System.Address
3102 * s-tpopde-vms.adb: Remove unnecessary warning pragmas
3104 * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
3106 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
3108 * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
3109 (fdesc_type_node): Define.
3110 (null_fdesc_node): Likewise.
3111 * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
3112 uses descriptors for vtables and the type comes from a dispatch table,
3113 return the descriptor type.
3114 * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
3115 uses descriptors for vtables and the type comes from a dispatch table,
3116 build a descriptor in the static case and copy the existing one in the
3118 (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
3119 the type is a pointer-to-subprogram coming from a dispatch table,
3120 return the null descriptor.
3121 <N_Unchecked_Type_Conversion>: If the target uses descriptors for
3122 vtables, the source type is the descriptor type and the target type
3123 is a pointer type, first build the pointer.
3124 * utils.c (init_gigi_decls): If the target uses descriptors for vtables
3125 build the descriptor type and the null descriptor.
3127 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
3129 * decl.c (prepend_attributes): Fix typo.
3130 * trans.c (Pragma_to_gnu): Likewise.
3131 * utils.c (gnat_genericize): Likewise.
3133 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
3134 Richard Kenner <kenner@adacore.com>
3136 * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
3137 * decl.c (gnat_to_gnu_entity): Adjust for above change.
3138 <E_Record_Type>: Try to get a better form of the component for
3139 packing, even if it has an integral mode.
3140 <E_Record_Subtype>: Likewise.
3141 * trans.c (gnat_to_gnu): Do not require BLKmode for the special
3142 exception suppressing the final conversion between record types.
3144 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
3146 * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
3147 alignment for space, promote the alignment of non-scalar variables with
3148 no size and alignment.
3149 * gigi.h (gnat_types_compatible_p): Declare.
3150 * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
3151 * trans.c (gnat_to_gnu): Revert revision 129339 change. Minor cleanup.
3152 * utils.c (gnat_types_compatible_p) : New predicate.
3153 (convert): Use it throughout to test for cases where a mere view
3154 conversion is sufficient.
3155 * utils2.c (build_binary_op): Minor tweaks.
3156 (build_unary_op): Likewise.
3158 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
3160 * decl.c (adjust_packed): Expand comment.
3162 2008-04-08 Arnaud Charlet <charlet@adacore.com>
3164 * s-tasuti.ads: Use Task_Address instead of System.Address.
3166 * makeutl.adb (Path_Or_File_Name): New function
3168 * nlists.ads, itypes.ads: Update comments.
3170 * s-crtl.ads (malloc32, realloc32): New functions.
3172 * s-auxdec.ads (Short_Address_Size): New constant.
3174 * a-taside.adb, s-tasdeb.adb: Use Task_Address.
3176 * s-ststop.ads, s-ststop.adb: New file.
3178 * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
3181 2008-04-08 Pascal Obry <obry@adacore.com>
3183 * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
3184 (Stop_Bits_Number): New type.
3185 (Parity_Check): Likewise.
3186 (Set): Add parameter to set the number of stop bits and
3187 the parity. Parameter timeout is now a duration instead
3190 * g-sercom-linux.adb:
3191 Implement the stop bits and parity support for GNU/Linux.
3192 Fix handling of timeout, it must be given in tenth of seconds.
3194 * g-sercom-mingw.adb:
3195 Implement the stop bits and parity support for Windows.
3196 Use new s-win32.ads unit instead of declaring Win32 services
3197 directly into this body.
3198 Update handling of timeout as now a duration.
3200 * s-win32.ads, s-winext.ads: New files.
3202 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
3203 Arnaud Charlet <charlet@adacore.com>
3205 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
3207 s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
3208 s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
3210 * s-osinte-lynxos-3.ads,
3211 (Alternate_Stack): Remove when not needed. Simplify declaration
3213 (Alternate_Stack_Size): New constant.
3215 s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
3216 'Unrestricted_Access.
3218 * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
3219 s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
3220 s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
3221 s-osinte-solaris.ads, s-osinte-vms.ads
3222 (SA_ONSTACK): New constant.
3223 (stack_t): New record type.
3224 (sigaltstack): New imported function.
3225 (Alternate_Stack): New imported variable.
3226 (Alternate_Stack_Size): New constant.
3228 * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
3230 * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
3231 s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
3232 s-taspri-vms.ads (Task_Address): New subtype of System.Address
3233 (Task_Address_Size): New constant size of System.Address
3234 (Alternate_Stack_Size): New constant.
3236 * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
3237 (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
3238 Establish the alternate stack if the platform makes use of n alternate
3239 signal stack for stack overflows.
3240 (Create_Task): Take into account the alternate stack in the stack size.
3241 (Initialize): Save the address of the alternate stack into the ATCB for
3242 the environment task.
3243 (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
3245 * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
3247 * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
3249 * s-intman-posix.adb:
3250 (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
3251 alternate signal stack for stack overflows.
3253 * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
3254 x86-64, adjust the saved value of the stack pointer if the signal was
3255 raised by a stack checking probe.
3256 (HP-UX section): Use global __gnat_alternate_stack as signal handler
3257 stack and only for SIGSEGV.
3258 (Linux section): Likewise on x86 and x86-64.
3260 (__gnat_map_signal): Now static.
3261 (__gnat_error_handler): Not static any more.
3262 (__gnat_adjust_context_for_raise): New function. Signal context
3263 adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
3264 propagation circuitry.
3265 (__gnat_error_handler): Second argument of a sigaction handler is a
3266 pointer, not an int, and is unused.
3267 Adjust signal context before mapping to exception.
3268 Install signal handlers for LynxOS case.
3270 * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
3271 (Task_Id): Set size to Task_Address_Size
3272 (To_Task_id): Unchecked convert from Task_Address vice System.Address
3273 (To_Address): Unchecked convert to Task_Address vice System.Address
3275 * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
3276 address into the ATCB if the platform makes use of an alternate signal
3277 stack for stack overflows.
3278 (Free_Task): Add call to Finalize_Attributes_Link.
3279 Add argument Relative_Deadline to pass the value specified for
3280 the task. This is not yet used for any target.
3282 * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
3283 the value specified for the task.
3285 2008-04-08 Arnaud Charlet <charlet@adacore.com>
3287 (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
3288 (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
3289 s-vxwext-rtp.adb): New files.
3291 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb:
3292 Minor updates to accomodate changes above.
3294 2008-04-08 Pascal Obry <obry@adacore.com>
3296 * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
3297 s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
3298 Use new s-win32.ads unit instead of declaration
3299 from s-osinte-mingw.ads.
3301 * s-osinte-mingw.ads:
3302 Move all non tasking based interface to s-win32.ads.
3304 * s-osprim-mingw.adb:
3305 Remove duplicated declarations and use s-win32.ads
3308 2008-04-08 Vincent Celier <celier@adacore.com>
3309 Arnaud Charlet <charlet@adacore.com>
3311 * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
3312 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
3313 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
3314 mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
3315 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
3317 * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
3318 mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
3319 mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
3320 mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
3321 mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
3322 mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
3323 mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
3324 mlib-tgt-specific-mingw.adb: New names.
3327 On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
3329 (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
3330 Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
3331 Minor updates for VMS
3333 * gnatbl.c: Removed.
3335 2008-04-08 Thomas Quinot <quinot@adacore.com>
3337 * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
3338 g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
3339 gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
3340 a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
3341 s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
3342 ASCII.NUL throughout.
3344 2008-04-08 Arnaud Charlet <charlet@adacore.com>
3345 Matthew Heaney <heaney@adacore.com>
3347 * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
3350 * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,
3351 a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
3352 to convention for non-RM specs.
3353 Add descriptive header, and documented each operation
3354 document each operation
3356 2008-04-08 Robert Dewar <dewar@adacore.com>
3357 Bob Duff <duff@adacore.com>
3358 Gary Dismukes <dismukes@adacore.com>
3359 Ed Schonberg <schonberg@adacore.com>
3361 * alloc.ads: Add entries for Obsolescent_Warnings table
3363 * einfo.ads, einfo.adb: Minor reformatting.
3364 (Is_Discriminal): New subprogram.
3365 (Is_Prival): New subprogram.
3366 (Is_Protected_Component): New subprogram.
3367 (Is_Protected_Private): Removed.
3368 (Object_Ref, Set_Object_Ref): Removed.
3369 (Prival, Set_Prival): Change assertion.
3370 (Privals_Chain, Set_Privals_Chain): Removed.
3371 (Prival_Link, Set_Prival_Link): New subprogram.
3372 (Protected_Operation, Set_Protected_Operation): Removed.
3373 (Protection_Object, Set_Protection_Object): New subprogram.
3374 (Write_Field17_Name): Remove case for Object_Ref.
3375 (Write_Field20_Name): Add case for Prival_Link.
3376 (Write_Field22_Name): Remove case for Protected_Operation,
3378 Add case for Protection_Object.
3379 (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
3381 (Overlays_Constant): New flag
3382 (Is_Constant_Object): New predicate
3383 (Is_Standard_Character_Type): New predicate
3384 (Optimize_Alignment_Space): New flag
3385 (Optimize_Alignment_Time): New flag
3386 (Has_Postconditions): New flag
3387 (Obsolescent_Warrning): Field removed
3388 (Spec_PPC_List): New field
3389 (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
3390 subprograms to get and set the relative deadline associated to a task.
3392 * exp_attr.adb (May_Be_External_Call): Account for the case where the
3393 Access attribute is part of a named parameter association.
3394 (Expand_Access_To_Protected_Op): Test for the attribute occurring
3395 within an init proc and use that directly as the scope rather than
3396 traversing up to the protected operation's enclosing scope. Only apply
3397 assertion on Is_Open_Scopes in the case the scope traversal is done.
3398 For the init proc case use the address of the first formal (_init) as
3399 the protected object reference.
3400 Implement Invalid_Value attribute
3401 (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
3402 contents of the dispatch table there is no need to duplicate the
3403 itypes associated with record types (i.e. the implicit full view
3405 Implement Enum_Val attribute
3406 (Expand_N_Attribute_Reference, case Old): Properly handle appearence
3407 within _Postconditions procedure
3408 (Expand_N_Attribute_Reference, case Result): Implement new attribute
3410 * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
3411 a return statement calls a function that is not available in
3412 configurable runtime.
3413 (Analyze_If_Statement): don't optimize simple True/False cases in -O0
3414 (Expand_Non_Function_Return): Generate call to _Postconditions proc
3415 (Expand_Simple_Function_Return): Ditto
3417 * frontend.adb: Add call to Sem_Aux.Initialize
3419 * sem_aux.ads, sem_aux.adb: New file.
3421 * par-prag.adb: Add entries for pragmas Precondition/Postcondition
3422 Add new Pragma_Relative_Deadline.
3423 Add support for pragmas Check and Check_Policy
3425 * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
3426 (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
3427 (Analyze_Attribute): In case of attributes 'Alignment and 'size add
3428 missing check because they are not allowed in CPP tagged types.
3429 Add Sure parameter to Note_Possible_Modification calls
3430 Add implementation of Invalid_Value attribute
3431 Implement new attribute Has_Tagged_Values
3432 Implement Enum_Val attribute
3433 (Analyze_Attribute, case Range): Set Name_Req True for prefix of
3434 generated attributes.
3435 (Analyze_Attribute, case Result): If prefix of the attribute is
3436 overloaded, it always resolves to the enclosing function.
3437 (Analyze_Attribute, case Result): Properly deal with analysis when
3438 Postconditions are not active.
3439 (Resolve_Attribute, case Result): Properly deal with appearence during
3440 preanalysis in spec.
3441 Add processing for attribute Result
3443 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
3445 (Analyze_Subprogram_Body): Install private_with_clauses when the body
3447 (Check_Inline_Pragma): recognize an inline pragma that appears within
3448 the subprogram body to which it applies.
3449 (Analyze_Function_Return): Check that type of the expression of a return
3450 statement in a function with a class-wide result is not declared at a
3451 deeper level than the function.
3452 (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
3453 (Verify_Overriding_Indicator): Handle properly subprogram bodies for
3454 user- defined operators.
3455 (Install_Formals): Moved to spec to allow use from Sem_Prag for
3456 analysis of precondition/postcondition pragmas.
3457 (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
3458 Last_Formal, along with lots of comments on what this is about
3459 (Analyze_Subprogram_Body): Fix case where we move entities from the
3460 spec to the body when there are no body entities (now possible with
3461 precondition and postcondition pragmas).
3462 (Process_PPCs): New procedure
3463 (Analyze_Subprogram_Body): Add call to Process_PPCs
3465 * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
3467 (Pop_Scope): Restore Check_Policy_List on scope exit
3468 (Push_Scope): Save Check_Policy_List on scope entry
3469 Change name In_Default_Expression => In_Spec_Expression
3470 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
3471 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
3472 (Analyze_Object_Renaming): Allow 'Reference as object
3473 (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
3474 (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
3475 of restriction identifier.
3476 Add Sure parameter to Note_Possible_Modication calls
3478 * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
3479 Don't check for primitive operations when calling Rep_Item_Too_Late.
3480 (Process_Import_Or_Interface): Do not place flag on formal
3482 (Analyze_Pragma, case Export): If the entity is a deferred constant,
3483 propagate information to full view, which is the one elaborated by the
3485 (Make_Inline): the pragma is effective if it applies to an internally
3486 generated subprogram declaration for a body that carries the pragma.
3487 (Analyze_Pragma, case Optimize_Alignment): Set new flag
3488 Optimize_Alignment_Local.
3489 (Analyze_PPC_In_Decl_Part): New procedure
3490 (Get_Pragma_Arg): Moved to outer level
3491 (Check_Precondition_Postcondition): Change to allow new visibility
3492 rules for package spec
3493 (Analyze_Pragma, case Check_Policy): Change placement rules to be
3494 same as pragma Suppress/Unsuppress.
3495 Change name In_Default_Expression => In_Spec_Expression
3496 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
3497 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
3498 (Check_Precondition_Postcondition): Do proper visibility preanalysis
3499 for the case of these pragmas appearing in the spec.
3500 (Check_Enabled): New function
3501 (Initialize): New procedure
3502 (Tree_Read): New procedure
3503 (Tree_Write): New procedure
3504 (Check_Precondition_Postcondition): New procedure
3505 Implement pragmas Check and Check_Policy
3506 Merge Assert processing with Check
3508 * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
3509 New warning flag -gnatw.e
3511 * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
3512 returning whether a task (or main procedure) has a pragma
3514 (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
3515 (or main procedure) has a pragma Relative_Deadline.
3516 Add Next_Pragma field to N_Pragma node
3517 (PPC_Enabled): New flag
3518 (Next_Pragma): Now used for Pre/Postcondition processing
3520 * snames.h, snames.ads, snames.adb: New standard name
3522 Add entry for 'Invalid_Value attribute
3523 Add entry for new attribute Has_Tagged_Values
3524 Add entry for Enum_Val attribute
3525 Add new standard names Aggregate, Configuration and Library.
3528 Add Pragma_Precondition
3529 Add Pragma_Postcondition
3530 Add Attribute_Result
3531 New standard name Archive_Builder_Append_Option
3532 (Preset_Names): Add _relative_deadline and relative_deadline definitions
3533 There was also a missing non_preemptive_within_priorities.
3534 (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
3536 Add support for pragmas Check and Check_Policy
3538 * tree_gen.adb: Call Sem_Aux.Tree_Write
3540 * tree_in.adb: Call Sem_Aux.Tree_Read
3542 * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
3545 * exp_intr.adb (Expand_Source_Info): New Build_Location calling
3548 * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
3549 (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
3551 (Expand_Pragma_Check): New procedure
3553 * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
3556 * sinfo.adb (PPC_Enabled): New flag
3558 2008-04-08 Robert Dewar <dewar@adacore.com>
3559 Gary Dismukes <dismukes@adacore.com>
3560 Javier Miranda <miranda@adacore.com>
3561 Ed Schonberg <schonberg@adacore.com>
3563 * fe.h: Remove global Optimize_Alignment flag, no longer used
3565 * layout.adb: Test Optimize_Alignment flags rather than global switch
3567 * lib.ads, lib.adb: New OA_Setting field in library record
3569 * lib-load.adb: New OA_Setting field in library record
3571 * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
3572 units mentioned in limited_with_ clauses in the ali file, with an
3574 New Ox fields in U line
3576 * opt.adb: New flag Optimize_Alignment_Local
3577 (Check_Policy_List[_Config]): New flags
3579 * opt.ads (Invalid_Value_Used): New flag
3580 New switch Optimize_Alignment_Local
3581 (Warn_On_Parameter_Order): New flag
3582 (Check_Policy_List[_Config]): New flags
3584 * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
3585 limited_with clauses.
3586 New data structures for Optimize_Alignment
3588 * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
3590 (Check_Consistent_Optimize_Alignment): Rework for new structure
3591 (Check_Consistent_Restrictions): Fix incorrect error message
3593 sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
3594 created class-wide type (to the Parent field of the specific type).
3595 (Install_Siblings): Handle properly private_with_clauses on subprogram
3596 bodies and on generic units.
3597 (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
3598 illegal limited_with_clause that names a non-existent package.
3599 (Check_Body_Required): Determine whether a unit named a limited_with
3600 clause needs a body.
3601 (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
3602 Capture Optimize_Alignment settings to set new OA_Setting field in
3604 (Build_Limited_Views): Include task and protected type declarations.
3606 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
3607 case of a possible constant redeclaration where the current object is
3608 an entry index constant.
3609 (Analyze_Object_Declaration): Generate an error in case of CPP
3610 class-wide object initialization.
3611 (Analyze_Object_Declaration): Add extra information on warnings for
3612 declaration of unconstrained objects.
3613 (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
3614 conflicts with the setting of Stored_Constraint in the case where the
3615 access type entity has already been created as an E_Incomplete_Type due
3616 to a limited with clause.
3617 Use new Is_Standard_Character_Type predicate
3618 (Analyze_Object_Declaration): Apply access_constant check only after
3619 expression has been resolved, given that it may be overloaded with
3620 several access types.
3621 (Constant_Redeclaration): Additional legality checks for deferred
3622 constant declarations tha involve anonymous access types and/or null
3623 exclusion indicators.
3624 (Analyze_Type_Declaration): Set Optimize_Alignment flags
3625 (Analyze_Subtype_Declaration): Ditto
3626 (Analyze_Object_Declaration): Ditto
3627 (Analyze_Object_Declaration): Don't count tasks in generics
3628 Change name In_Default_Expression => In_Spec_Expression
3629 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
3630 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
3631 (Process_Discriminants): Additional check for illegal use of default
3632 expressions in access discriminant specifications in a type that is not
3634 (Check_Abstract_Overriding): If an inherited function dispaches on an
3635 access result, it must be overridden, even if the type is a null
3637 (Derive_Subprogram): The formals of the derived subprogram have the
3638 names and defaults of the parent subprogram, even if the type is
3639 obtained from the actual subprogram.
3640 (Derive_Subprogram): In the presence of interfaces, a formal of an
3641 inherited operation has the derived type not only if it descends from
3642 the type of the formal of the parent operation, but also if it
3643 implements it. This is relevant for the renamings created for the
3644 primitive operations of the actual for a formal derived type.
3645 (Is_Progenitor): New predicate, to determine whether the type of a
3646 formal in the parent operation must be replaced by the derived type.
3648 * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
3649 predicate recursive to handle components that have a user-defined
3650 Initialize procedure. Handle controlled derived types whose ancestor
3651 has a user-defined Initialize procedured.
3652 (Note_Possible_Modification): Add Sure parameter, generate warning if
3653 sure modification of constant
3654 Use new Is_Standard_Character_Type predicate
3655 (Find_Parameter_Type): when determining whether a protected operation
3656 implements an interface operation, retrieve the type of the formal from
3657 the entity when the formal is an access parameter or an
3658 anonymous-access-to-subprogram.
3659 Move Copy_Parameter_List to sem_util, for use when building stubbed
3661 (Has_Access_Values): Tagged types now return False
3662 (Within_HSS_Or_If): New procedure
3663 (Set_Optimize_Alignment_Flags): New procedure
3664 Change name In_Default_Expression => In_Spec_Expression
3665 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
3666 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
3668 2008-04-08 Tristan Gingold <gingold@adacore.com>
3670 * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
3672 2008-04-08 Tristan Gingold <gingold@adacore.com>
3676 * cuintp.c: Fix 16 bits issue for AVR.
3677 On AVR, integer is 16 bits, so it can't be used to do math with
3679 So use long_integer instead.
3681 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
3683 * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
3684 System.OS_Primitives.
3685 Change type of various constants, parameters and local variables from
3686 Time to representation type OS_Time.
3687 (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
3688 Remove the declaration of constant Mili_F from several routines. New
3689 body for internal package Conversions_Operations.
3690 (Time_Of): Add default parameters for several formals.
3692 * a-caldel.adb: Minor reformatting
3694 * a-calend.ads, a-calend.adb: New body for internal package
3695 Conversions_Operations.
3696 (Time_Of): Add default parameters for several formals.
3698 * Makefile.rtl: Add a-ststop
3699 Add Ada.Calendar.Conversions to the list of runtime files.
3702 * a-calcon.adb, a-calcon.ads: New files.
3704 2008-04-08 Jose Ruiz <ruiz@adacore.com>
3705 Tristan Gingold <gingold@adacore.com>
3707 * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
3708 (Install_Restricted_Handlers): New procedure
3709 which is a simplified version of Install_Handlers that does not store
3710 previously installed.
3712 * s-interr-vxworks.adb: Fix ACATS cxc3001
3713 On VxWorks interrupts can't be detached.
3714 (Install_Restricted_Handlers): New procedure.
3716 * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
3719 2008-04-08 Olivier Hainque <hainque@adacore.com>
3721 * s-intman-vxworks.ads, s-intman-vxworks.adb
3722 (Map_And_Raise_Exception): Remove. Was an import of only part of the
3723 required services already implemented elsewhere.
3724 (Notify_Exception): Delete body, import __gnat_error_handler instead.
3725 (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
3726 argument passed to the handler, which we need for ZCX propagation
3729 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
3731 * adaint.h, adaint.c (__gnat_current_time_string): New routine.
3733 * g-timsta.adb, g-timsta.ads: New files.
3735 2008-04-08 Robert Dewar <dewar@adacore.com>
3737 * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
3738 (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
3739 (Raise_Exception_Always): Fix documentation accordingly
3741 2008-04-08 Robert Dewar <dewar@adacore.com>
3743 * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
3746 * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
3749 2008-04-08 Javier Miranda <miranda@adacore.com>
3750 Robert Dewar <dewar@adacore.com>
3751 Ed Schonberg <schonberg@adacore.com>
3753 * a-tags.adb (Register_Interface_Offset): New subprogram.
3754 (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
3755 (To_Predef_Prims_Table_Ptr): Removed.
3756 (Acc_Size): Removed.
3757 (To_Acc_Size): Removed.
3758 (Parent_Size): Modified to the call the subprogram returning the size of
3759 the parent by means of the new TSD component Size_Func.
3761 * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
3762 (DT_Offset_To_Top_Offset): New constant value that is used to generate
3763 code referencing the Offset_To_Top component of the dispatch table's
3765 (Prim_Ptr): New declaration of access to procedure. Used to avoid the
3766 use of 'address to initialize dispatch table slots.
3767 (Size_Func): New component of the TSD. Used by the run-time to call the
3768 size primitive of the tagged type.
3770 * checks.adb (Apply_Access_Check): Avoid check when accessing the
3771 Offset_To_Top component of a dispatch table.
3772 (Null_Exclusion_Static_Checks): If the non-null access type appears in a
3773 deferred constant declaration. do not add a null expression, to prevent
3774 spurious errors when full declaration is analyzed.
3775 (Apply_Discriminant_Check): If both discriminant constraints share a
3776 node which is not static but has no side effects, do not generate a
3777 check for that discriminant.
3778 (Generate_Index_Checks): Set Name_Req to true in call to duplicate
3779 subexpr, since the prefix of an attribute is a name.
3781 * checks.ads: Fix nit in comment.
3783 * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
3784 and body of predefined primitives in case of CPP tagged type
3786 (Freeze_Type): Deal properly with no storage pool case
3787 (Make_Predefined_Primitive_Specs): Generate specification of abstract
3788 primitive Deep_Adjust if a nonlimited interface is derived from a
3790 (Build_Dcheck_Functions): Create discriminant-checking functions only
3791 for variants that have some component(s).
3792 (Build_Slice_Assignment): In expanded code for slice assignment, handle
3793 properly the case where the slice bounds extend to the last value of the
3794 underlying representation.
3795 (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
3796 (Is_Variable_Size_Record): An array component has a static size if
3797 index bounds are enumeration literals.
3799 * exp_disp.adb (Make_DT): Use the first subtype to determine whether
3800 an external tag has been specified for the type.
3801 (Building_Static_DT): Add missing support for private types.
3802 (Make_DT): Add declaration of Parent_Typ to ensure consistent access
3803 to the entity associated with the parent of Typ. This is done to
3804 avoid wrong access when the parent is a private type.
3805 (Expand_Interface_Conversion): Improve error message when the
3806 configurable runtime has no support for dynamic interface conversion.
3807 (Expand_Interface_Thunk): Add missing support to interface types in
3808 configurable runtime.
3809 (Expand_Dispatching_Call): remove obsolete code.
3810 (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
3811 ensure that all subtypes and aggregates associated with dispatch
3812 tables have the attribute Is_Dispatch_Table_Entity set to true.
3813 (Register_Primitive): Rename one variable to improve code reading.
3814 Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
3815 of the pointer to the 'size primitive in the TSD.
3817 * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
3818 (RE_Offset_To_Top_Ptr): New entity.
3819 (RE_Register_Interface_Offset): New entity.
3820 (RE_Set_Dynamic_Offset_To_Top): New entity.
3821 (RE_Set_Offset_To_Top): Removed entity.
3822 (RE_Prim_Ptr): New entity
3823 (RE_Size_Func): New entity
3824 (RE_Size_Ptr): New entity
3825 (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
3826 (Ada_Dispatching_Child): Define this new subrange.
3827 (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
3828 RE_Time_Span, and RE_Time_Span_Zero).
3829 (RE_Unit_Table): Add new required run-time calls
3831 * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
3834 * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
3835 (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
3836 initializes the Offset_To_Top component of a dispatch table.
3837 (Build_Predef_Prims): Removed.
3838 (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
3840 (Build_Set_Size_Function): New subprogram.
3842 * exp_ch13.adb: Do not generate storage variable for storage_size zero
3843 (Expand): Handle setting/restoring flag Inside_Freezing_Actions
3845 2008-04-08 Robert Dewar <dewar@adacore.com>
3847 * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
3848 computing Fore when Exp > 0
3850 2008-04-08 Robert Dewar <dewar@adacore.com>
3852 * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
3854 * errout.adb: Remove Big_String_Ptr declarations (now in Types)
3855 Change name Is_Style_Msg to Is_Style_Or_Info_Msg
3857 * fmap.adb: Remove Big_String declarations (now in Types)
3858 (No_Mapping_File): New Boolean global variable
3859 (Initialize): When mapping file cannot be read, set No_Mapping_File to
3861 (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
3862 tables were empty before adding entries, open the mapping file
3863 with Truncate = True, instead of delete/re-create.
3865 * fname-sf.adb: Remove Big_String declarations (now in Types)
3867 * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
3868 s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
3871 * table.ads: Add for Table_Ptr'Storage_Size use 0
3873 * types.ads: Add Big_String declarations
3874 Add Size_Clause of zero for big pointer types
3876 2008-04-08 Vincent Celier <celier@adacore.com>
3878 * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
3879 (Usage): Add line for switch --subdirs=
3880 Add new switch -eL, to follow symbolic links when processing project
3883 * gnatcmd.adb: Process switches -eL and --subdirs=
3884 (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
3885 Program_Name to get proper tool names when AAMP_On_Target is set.
3886 (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
3887 AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
3888 Osint.Program_Name).
3890 * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
3891 (Usage): Add lines for switches -eL and --subdirs=
3893 * makeusg.adb: Add line for switch --subdirs=
3896 (Source_Data): New Boolean component Compiled, defaulted to True
3897 (Empty_File_Name: New global variable in private part, initialized in
3898 procedure Initialize.
3899 (Subdirs_Option): New constant string
3900 (Subdirs): New String_Ptr global variable
3901 (Language_Config): New component Include_Compatible_Languages
3902 (Project_Qualifier): New type for project qualifiers
3903 (Project_Data): New component Qualifier
3904 (Project_Configuration): New component Archive_Builder_Append_Option
3906 * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
3907 another imported project indicate the name of this imported project.
3908 (Check_File): When a unit is in two project files, indicate the project
3909 names and the paths of the source files for each project.
3910 (Add_Source): Set Compiled to False if compiler driver is empty. Only
3911 set object, dependency and switches file names if Compiled is True.
3912 (Process_Compiler): Allow the empty string for value of attribute Driver
3913 (Get_Directories): When Subdirs is not null and Object_Dir is not
3914 specified, locate and create if necessary the actual object dir.
3915 (Locate_Directory): When Subdirs is not empty and Create is not the
3916 empty string, locate and create if necessary the actual directory
3917 as a subdirectory of directory Name.
3918 (Check_Library_Attributes.Check_Library): Allow a project where the only
3919 "sources" are header files of file based languages to be imported by
3920 library projects, in multi-language mode (gprbuild).
3921 (Check_Library_Attributes.Check_Library): In multi-language mode
3922 (gprbuild), allow a library project to import a project with no
3923 sources, even when this is not declared explicitly.
3924 (Check_If_Externally_Built): A virtual project extending an externally
3925 built project is also externally built.
3926 (Check_Library_Attributes): For a virtual project extending a library
3927 project, inherit the library directory.
3928 (Process_Project_Level_Array_Attributes): Process new attribute
3929 Inherit_Source_Path.
3930 For projects with specified qualifiers "standard", "library" or
3931 "abstract", check that the project conforms to the qualifier.
3932 (Process_Project_Level_Simple_Attributes): Process new attribute
3933 Archive_Builder_Append_Option.
3935 * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
3936 (Normalize_Compiler_Switches): Only keep compiler switches that are
3937 passed to gnat1 by the gcc driver and that are stored in the ALI file
3939 Do not take into account switc -save-temps
3941 * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
3942 gprmake is called with -eL.
3943 (Scan_Arg): Recognize switch -eL
3944 (Usage): Add line for switch -eL
3946 * prj.adb (Initialize): Initialize Empty_File_Name
3947 (Project_Empty): New component Qualifier
3949 * prj-attr.ads, prj-attr.adb: New project level attribute
3950 Inherit_Source_Path.
3951 New project level attribute Archive_Builder_Append_Option
3953 * prj-dect.adb: Replace System.Strings by GNAT.Strings.
3955 * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
3956 <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
3957 upward compatibility.
3959 * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
3960 each Trying ..." on different lines.
3961 (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
3962 is "configuration" when not in configuration. Fail when in configuration
3963 when a specified qualifier is other than "configuration".
3965 * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
3966 full associative array together.
3967 (Recursive_Process): Put the project qualifier in the project data
3969 * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
3970 (Set_Project_Qualifier_Of): New procedure
3972 2008-04-08 Robert Dewar <dewar@adacore.com>
3974 * errout.ads: Update comments for new handling of info: messages
3976 * erroutc.adb (Matches): New procedure
3977 (Warning_Specifically_Suppressed): Modified to handle multiple * chars
3978 (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
3979 info messages as well as style messages.
3981 * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
3983 * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
3985 (Check_A_Call): Special "info: " warnings now have ? in the text
3986 (Elab_Warning): Use info message in static case
3988 2008-04-08 Ed Schonberg <schonberg@adacore.com>
3990 * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
3991 whether an array aggregate with static bounds and scalar components
3992 should be expanded into a static constant.
3994 2008-04-08 Gary Dismukes <dismukes@adacore.com>
3995 Ed Schonberg <schonberg@adacore.com>
3996 Robert Dewar <dewar@adacore.com>
3998 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
3999 Has_Stream_Attribute_ Definition when checking for available stream
4000 attributes on parameters of a limited type in Ada 2005. Necessary for
4001 proper recognition of visible stream attribute clauses.
4002 (Has_Stream_Attribute_Definition): If the type is derived from a
4003 private type, then use the derived type's underlying type for checking
4004 whether it has stream attributes.
4005 (Validate_Object_Declaration): The check for a user-defined Initialize
4006 procedure applies also to types with controlled components or a
4007 controlled ancestor.
4008 Reject an object declaration in a preelaborated unit if the type is a
4009 controlled type with an overriding Initialize procedure.
4010 (Validate_Remote_Access_To_Class_Wide_Type): Return without further
4011 checking when the parent of a dereference is a selected component and
4012 the name has not been analyzed.
4014 * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
4015 prefixes that are invalid explicit dereferences of remote
4016 access-to-class-wide values, first checking whether the selected
4017 component is a prefixed form of call to a tagged operation.
4018 (Analyze_Call): Remove code that issues an error for limited function
4019 calls in illegal contexts, as we now support all of the contexts that
4020 were forbidden here.
4021 Allow a function call that returns a task.and appears as the
4022 prefix of a selected component.
4023 (Analyze_Reference): Give error message if we try to make a 'Reference
4024 for an object that is atomic/aliased without its type having the
4025 corresponding attribute.
4026 (Analyze_Call): Remove condition checking for attributes to allow
4027 calls to functions with inherently limited results as prefixes of
4028 attributes. Remove related comment about Class attributes.
4029 (Analyze_Selected_Component): If the prefix is a remote type, check
4030 whether this is a prefixed call before reporting an error.
4031 (Complete_Object_Operation): If the controlling formal is an access to
4032 variable reject an actual that is a constant or an access to one.
4033 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
4034 primitive operations from base type.
4036 * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
4038 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
4039 (Expand_N_Selected_Component): Test for prefix that is a build-in-place
4040 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
4041 (Expand_N_Slice): Test for prefix that is a build-in-place function call
4042 and call Make_Build_In_Place_Call_In_Anonymous_Context.
4043 (Analyze_Call): Remove code that issues an error for limited function
4044 calls in illegal contexts, as we now support all of the contexts that
4045 were forbidden here.
4046 New calling sequence for Get_Simple_Init_Val
4047 (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
4048 (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
4050 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
4051 Ed Schonberg <schonberg@adacore.com>
4052 Robert Dewar <dewar@adacore.com>
4054 * exp_ch2.adb: Minor reformatting.
4055 (Expand_Entry_Index_Parameter): Set the type of the identifier.
4056 (Expand_Entry_Reference): Add call to Expand_Protected_Component.
4057 (Expand_Protected_Component): New routine.
4058 (Expand_Protected_Private): Removed.
4059 Add Sure parameter to Note_Possible_Modification calls
4061 * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
4062 generated subprogram declaration must inherit the overriding indicator
4063 from the instantiation node.
4064 (Validate_Access_Type_Instance): If the designated type of the actual is
4065 a limited view, use the available view in all cases, not only if the
4066 type is an incomplete type.
4067 (Instantiate_Object): Actual is illegal if the formal is null-excluding
4068 and the actual subtype does not exclude null.
4069 (Process_Default): Handle properly abstract formal subprograms.
4070 (Check_Formal_Package_Instance): Handle properly defaulted formal
4071 subprograms in a partially parameterized formal package.
4072 Add Sure parameter to Note_Possible_Modification calls
4073 (Validate_Derived_Type_Instance): if the formal is non-limited, the
4074 actual cannot be limited.
4075 (Collect_Previous_Instances): Generate instance bodies for subprograms
4078 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
4080 Add Sure parameter to Note_Possible_Modification calls
4081 (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
4082 (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
4083 constant overlaid by variable and issue warning.
4084 Use new Is_Standard_Character_Type predicate
4085 (Analyze_Record_Representation_Clause): Check that the specified
4086 Last_Bit is not less than First_Bit - 1.
4087 (Analyze_Attribute_Definition_Clause, case Address): Check for
4088 self-referential address clause
4090 * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
4091 detection mechanism when the lhs is a prival.
4092 (Analyze_Assignment): Call Check_Unprotected_Access to detect
4093 assignment of a pointer to protected data, to an object declared
4094 outside of the protected object.
4095 (Analyze_Loop_Statement): Check for unreachable code after loop
4096 Add Sure parameter to Note_Possible_Modication calls
4097 Protect analysis from previous syntax error such as a scope mismatch
4099 (Analyze_Assignment_Statement): The assignment is illegal if the
4100 left-hand is an interface.
4102 * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
4103 violation of restriction No_Implicit_Conditionals
4104 Add Sure parameter to Note_Possible_Modication calls
4105 Use new Is_Standard_Character_Type predicate
4106 (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
4107 call as operator. Fixes problems (e.g. validity checking) which
4108 come from the result looking as though it does not come from source).
4109 (Resolve_Call): Check case of name in named parameter if style checks
4111 (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
4112 from the checking that such calls should not occur from an entry body.
4113 (Resolve_Call): If the return type of an Inline_Always function
4114 requires the secondary stack, create a transient scope for the call
4115 if the body of the function is not available for inlining.
4116 (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
4117 that are actuals for in-out formals.
4118 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
4119 primitive operations from base type.
4120 (Analyze_Selected_Component): If the context is a call to a protected
4121 operation the parent may be an indexed component prior to expansion.
4122 (Resolve_Actuals): If an actual is of a protected subtype, use its
4123 base type to determine whether a conversion to the corresponding record
4125 (Resolve_Short_Circuit): Handle pragma Check
4127 * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
4128 Use new Is_Standard_Character_Type predicate
4129 (Eval_Relational_Op): Catch more cases of string comparison
4131 2008-04-08 Robert Dewar <dewar@adacore.com>
4132 Gary Dismukes <dismukes@adacore.com>
4134 * s-rident.ads: Add No_Default_Initialization restriction
4137 (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
4138 (Set_TSS): Handle No_Default_Initialization case
4140 * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
4141 No_Default_Initialization
4142 (Expand_N_Subprogram_Body): Remove redundant initialization of out
4143 parameters when Normalize_Scalars is active.
4144 (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
4145 Fix casing error in formal parameter name in call
4146 (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
4147 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
4148 dispatching call on VM targets.
4150 2008-04-08 Gary Dismukes <dismukes@adacore.com>
4151 Thomas Quinot <quinot@adacore.com>
4153 * exp_ch7.adb (Find_Final_List): Change the test for generating a
4154 selected component from an access type's Associated_Final_Chain to
4155 check for the presence of that field, rather than assuming it exists
4156 for all named access types.
4157 (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
4158 procedure to call at the end of the generated cleanup procedure.
4159 (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
4160 and an At_End_Proc already exists in the handled sequence of statements
4161 for which cleanup actions are being expanded, the original cleanup
4162 action must be preserved.
4164 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
4165 Ed Schonberg <schonberg@adacore.com>
4166 Robert Dewar <dewar@adacore.com>
4167 Gary Dismukes <dismukes@adacore.com>
4169 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
4170 Build_Unprotected_Subprogram_Body): Generate debug info for
4171 declarations related to the handling of private data in task and
4173 (Debug_Private_Data_Declarations): New subprogram.
4174 (Install_Private_Data_Declarations): Remove all debug info flagging.
4175 This is now done by Debug_Private_Data_Declarations at the correct
4177 (Build_Simple_Entry_Call): If the task name is a function call, expand
4178 the prefix into an object declaration, and make the surrounding block a
4180 (Build_Master_Entity): An internal block is a master if it wraps a call.
4181 Code reformatting, update comments. Code clean up.
4182 (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
4183 (Replicate_Entry_Formals): If the formal is an access parameter or
4184 anonymous access to subprogram, copy the original tree to create new
4185 entities for the formals of the subprogram.
4186 (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
4187 for tasks to store the value passed using pragma Relative_Deadline.
4188 (Make_Task_Create_Call): Add the Relative_Deadline argument to the
4189 run-time call to create a task.
4190 (Build_Wrapper_Spec): If the controlling argument of the interface
4191 operation is an access parameter with a non-null indicator, use the
4192 non-null indicator on the wrapper.
4194 * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
4195 present, which it may not be in the case where the type entity is an
4196 incomplete view brought in by a limited with.
4197 (Analyze_Task_Type): Only retrieve the full view when present, which it
4198 may not be in the case where the type entity is an incomplete view brought
4199 in by a limited with.
4200 (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
4201 private components of a protected type, to prevent the generation of freeze
4202 nodes for which there is no proper scope of elaboration.
4204 * exp_util.ads, exp_util.adb
4205 (Remove_Side_Effects): If the expression is a function call that returns a
4206 task, expand into a declaration to invoke the build_in_place machinery.
4207 (Find_Protection_Object): New routine.
4208 (Remove_Side_Effects): Also make a copy of the value
4209 for attributes whose result is of an elementary type.
4210 (Silly_Boolean_Array_Not_Test): New procedure
4211 (Silly_Boolean_Array_Xor_Test): New procedure
4212 (Is_Volatile_Reference): New function
4213 (Remove_Side_Effects): Use Is_Volatile_Reference
4214 (Possible_Bit_Aligned_Component): Handle slice case properly
4216 * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
4217 case test to Exp_Util
4218 (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
4220 2008-04-08 Thomas Quinot <quinot@adacore.com>
4222 * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
4224 (Add_RACW_Features): When processing an RACW in another unit than the
4225 main unit, set Body_Decls to No_List to indicate that the bodies of
4226 the type's TSS must not be generated.
4227 (GARLIC_Support.Add_RACW_Read_Attribute,
4228 GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
4229 Body_Decls is No_List.
4230 (PolyORB_Support.Add_RACW_Read_Attribute,
4231 PolyORB_Support.Add_RACW_Write_Attribute,
4232 PolyORB_Support.Add_RACW_From_Any,
4233 PolyORB_Support.Add_RACW_To_Any,
4234 PolyORB_Support.Add_RACW_TypeCode): Same.
4235 (Transmit_As_Unconstrained): New function.
4236 (Build_Ordered_Parameters_List): Use the above to order parameters.
4237 (GARLIC_Support.Build_General_Calling_Stubs):
4238 Use the above to determine which parameters to unmarshall using 'Input
4239 at the point where their temporary is declared (as opposed to later on
4241 (PolyORB_Support.Build_General_Calling_Stubs):
4242 Use the above to determine which parameters to unmarshall using From_Any
4243 at the point where their temporary is declared (as opposed to later on
4244 with an assignment).
4246 2008-04-08 Ed Schonberg <schonberg@adacore.com>
4248 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
4249 an Input function for an access type, do not perform default
4250 initialization on the local variable that receives the value, to
4251 prevent spurious warnings when the type is null-excluding.
4253 2008-04-08 Robert Dewar <dewar@adacore.com>
4254 Ed Schonberg <schonberg@adacore.com>
4256 * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
4258 (Size_Known): Generic formal scalar types have known at compile
4259 time size, so remove check.
4260 Fix casing error in formal parameter name in call
4261 (Freeze_Subprogram): If the subprogram is a user-defined operator,
4262 recheck its overriding indication.
4264 2008-04-08 Vincent Celier <celier@adacore.com>
4266 * gnat1drv.adb: Send all messages indicating an error to standard error
4268 2008-04-08 Robert Dewar <dewar@adacore.com>
4270 * gnatbind.adb (Restriction_Could_Be_Set): New procedure
4271 (List_Applicable_Restrictions): Do not list existing restrictions
4273 2008-04-08 Thomas Quinot <quinot@adacore.com>
4275 * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
4276 add a pointer to generic sockets literature
4277 do not mention that the given example is "typical" usage.
4278 Remove obsolete comment about multicast not being supported on Windows.
4279 (Connect_Socket): Make Server mode IN rather than IN OUT
4280 since this formal is never modified.
4282 2008-04-08 Robert Dewar <dewar@adacore.com>
4284 * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
4285 the declaration for some different entity.
4286 (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
4287 list is precent (following the parent subtype indication), display
4288 appropriate "and" keyword.
4290 * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
4291 Remove unnecessary calls to Init_Size_Align and Init_Esize.
4292 Add notes on use of Parent field of an Itype
4294 2008-04-08 Ed Schonberg <schonberg@adacore.com>
4295 Robert Dewar <dewar@adacore.com>
4296 Gary Dismukes <dismukes@adacore.com>
4298 * lib-xref.adb (Is_On_LHS): Remove dead code
4299 (Output_Overriden_Op): If the overridden operation is itself inherited,
4300 list the ancestor operation, which is the one whose body or absstract
4301 specification is actually being overridden. For source navigation
4304 * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
4305 operation is primitive for the type.
4306 (Declare_Inherited_Private_Subprograms): If the new operation overrides
4307 an inherited private subprogram, set properly the Overridden_Operation
4308 attribute, for better cross-reference information.
4309 (Analyze_Package_Specification): Do late analysis of spec PPCs
4310 (Install_Private_Declaration, Uninstall_Declarations): Save/restore
4311 properly the full view and underlying full views of a private type in a
4312 child unit, whose full view is derived from a private type in a parent
4313 unit, and whose own full view becomes visible in the child body.
4315 * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
4316 primitive operation after the type has been frozen, add an explicit
4317 reference to the type and the operation, because other primitive
4318 references have been emitted already.
4319 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
4320 dispatching call on VM targets.
4322 2008-04-08 Vincent Celier <celier@adacore.com>
4323 Thomas Quinot <quinot@adacore.com>
4325 * make.adb: (Gnatmake_Called): Remove, no longer necessary
4326 (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
4327 is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
4328 (Insert_Project_Sources): Take into account index in multi-unit source
4330 After building a library project, delete all temporary files.
4331 (Initialize): Reset current output after parsing project file.
4332 (Collect_Arguments_And_Compile): Never insert in the queue the sources
4333 of library projects that are externally built.
4334 Put file name in error and inform messages if -df is used
4335 (Display): If invoked with -d7, do not display path names, but only
4338 * makeutl.ads (Path_Or_File_Name): New function
4339 (Path_Or_File_Name): New function
4341 2008-04-08 Arnaud Charlet <charlet@adacore.com>
4343 * Make-lang.in: Disable warnings during first stage of bootstrap
4345 Update dependencies.
4347 2008-04-08 Vincent Celier <celier@adacore.com>
4349 * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
4350 case to decide if ALI object file is included in library.
4351 (Build_Library): Never attempt to build a library if the project is
4354 2008-04-08 Thomas Quinot <quinot@adacore.com>
4356 * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
4357 (No_List) is defined to return Empty.
4359 2008-04-08 Jose Ruiz <ruiz@adacore.com>
4361 * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
4364 (Read_Default_Search_Dirs): Do not consider spaces as path separators
4365 because spaces may be part of legal paths.
4367 2008-04-08 Robert Dewar <dewar@adacore.com>
4369 * par-ch11.adb (P_Exception_Handler): Check indentation level for
4372 2008-04-08 Ed Schonberg <schonberg@adacore.com>
4374 * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
4375 in a type declaration, if this is not an interface declaration or
4376 private type extension.
4378 2008-04-08 Vincent Celier <celier@adacore.com>
4380 * prj-util.adb (Executable_Of): New String parameter Language. When
4381 Ada_Main is False and Language is not empty, attempt to remove the body
4382 suffix or the spec suffix of the language to get the base of the
4383 executable file name.
4384 (Put): New Boolean parameter Lower_Case, defauilted to False. When
4385 Lower_Case is True, put the value in lower case in the name list.
4386 (Executable_Of): If there is no executable suffix in the configuration,
4387 then do not modify Executable_Extension_On_Target.
4389 * prj-util.ads (Executable_Of): New String parameter Language,
4390 defaulted to the empty string.
4391 (Put): New Boolean parameter Lower_Case, defauilted to False
4393 2008-04-08 Robert Dewar <dewar@adacore.com>
4395 * scng.adb (Scan_Identifier): Handle case of identifier starting with
4396 wide character using UTF-8 encoding.
4398 2008-04-08 Javier Miranda <miranda@adacore.com>
4400 * sem.adb (Analyze): Consider case in which we analyze an empty node
4401 that was generated by a call to a runtime function that is not
4402 available under the configurable runtime.
4404 * sem.ads (Inside_Freezing_Actions): New flag.
4405 (Save_Check_Policy_List): New field in scope stack entry
4407 2008-04-08 Ed Schonberg <schonberg@adacore.com>
4408 Robert Dewar <dewar@adacore.com>
4410 * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
4411 the ancestor part of an extension aggregate for a limited type.
4412 (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
4413 enumeration index bounds.
4414 (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
4415 when array is too short.
4416 (Check_Expr_OK_In_Limited_Aggregate): Move function
4417 Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
4419 (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
4420 Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
4421 component associations.
4422 (Check_Non_Limited_Type): Moved to outer level and renamed.
4423 (Resolve_Record_Aggregate): In an extension aggregate, an association
4424 with a box initialization can only designate a component of the
4425 extension, not a component inherited from the given ancestor
4427 * sem_case.adb: Use new Is_Standard_Character_Type predicate
4429 2008-04-08 Robert Dewar <dewar@adacore.com>
4431 * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
4433 (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
4434 Properly handle case where Aft > Scale and input number is less than
4437 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
4439 * s-stoele.ads, s-soflin.ads: Move the location of
4440 Dummy_Communication_Block from System.Storage_Elements to
4443 * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
4444 emulate Communication_Block in certain scenarios.
4446 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
4448 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
4450 Add new subtype S_WWC, unchecked conversion routines From_WWC and
4452 (I_WWC, O_WWC): New routines for input and output of
4453 Wide_Wide_Character.
4455 2008-04-08 Robert Dewar <dewar@adacore.com>
4457 * stringt.adb (Write_String_Table_Entry): Handle wide characters
4460 2008-04-08 Robert Dewar <dewar@adacore.com>
4462 * styleg.adb (Check_Comment): Allow special char after -- in
4463 non-end-of-line case
4465 2008-04-08 Robert Dewar <dewar@adacore.com>
4467 * stylesw.adb: Implement -gnaty + - y options
4468 (Set_GNAT_Style_Check_Options): Includ I in style check string
4470 * stylesw.ads: Add comments for new style switch options
4472 2008-04-08 Sergey Rybin <rybin@adacore.com>
4474 * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
4475 to the set of the GNAT components needed by ASIS.
4477 2008-04-08 Bob Duff <duff@adacore.com>
4479 * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
4481 2008-04-08 Tristan Gingold <gingold@adacore.com>
4483 * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
4484 Improve error message generation.
4486 2008-04-08 Vincent Celier <celier@adacore.com>
4488 * a-direct.adb (Start_Search): Check for Name_Error before checking for
4489 Use_Error, as specified in the RM. Check if directory is open and raise
4490 Use_Error if it is not.
4492 2008-04-08 Vincent Celier <celier@adacore.com>
4493 Robert Dewar <dewar@adacore.com>
4495 * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
4496 AAMP_On_Target is set.
4498 * vms_data.ads: Add NOxxx to style check switch list
4499 Add entry COMPONENTS for -gnatVe
4500 Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
4502 (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
4503 Add qualifiers for gnatmetric coupling options
4504 Add note that -gnata enables all checks
4505 Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
4506 Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
4507 New warning flag -gnatw.e
4509 * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
4510 Add entry for -gnatyN (forgotten before)
4511 Line for new warning switch -gnatw.p
4512 New warning flag -gnatw.e
4514 * gnat_ugn.texi: Add documentation fpr project file switch -aP
4515 Document -gnaty - + y
4516 Replace occurences of "package specification" with "package spec"
4517 Define preprocessing symbols in documentation of gnatprep
4518 Clarify reason for distinguishing overflow checking
4519 Add documentation for project-aware tool switches -eL and --subdirs=
4520 Complete list of configuration pragmas
4521 Specify that, even when gnatmake switch -x is used, mains on the command
4522 line need to be sources of project files.
4523 Editing of gnatcheck/gnatmetric doc.
4524 Add documentation for -gnatw.p/-gnatw.P
4525 Add missing documentation for -fno-inline-functions.
4526 Add documentation for -gnatw.e
4528 * gnat_rm.texi: Add documentation for No_Default_Initialization
4529 Replace occurences of "package specification" with "package spec"
4530 Document use of * in Warnings Off string
4531 Update documentation of alignment/component clauses.
4532 Add documentation for Invalid_Value
4533 Document new consistency rule for Optimize_Alignment
4534 Add documentation for Precondition and Postcondition pragmas
4535 Add documentation for Check and Check_Policy pragmas
4536 Document new Enum_Val attribute
4537 Remove requirement for static string in pragma Assert
4538 Add documentation on GNAT.Time_Stamp
4540 * ug_words: add entry for -gnatVe
4541 Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
4542 Add entry for -gnatw.e
4544 * debug.adb: Add missing documentation for d.a flag
4545 Document new -gnatd.a switch.
4546 Add documentation for new gnatmake debug switch -df
4548 2008-04-08 Thomas Quinot <quinot@adacore.com>
4550 * gen-soccon.c: Bump year in copyright notices.
4552 * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
4554 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4556 * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
4559 2008-04-08 Robert Dewar <dewar@adacore.com>
4560 Bob Duff <duff@adacore.com>
4562 * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
4563 Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
4565 * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
4567 * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
4569 * g-trasym.ads: Minor comment improvements
4571 * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
4573 * a-sequio.ads, a-direio.ads: improve message for tagged type
4575 * a-strunb.ads: Minor reformatting
4577 * a-tifiio.adb: Minor reformatting
4579 * atree.adb (Fix_Parents): Use clearer names for formals
4580 Cleanup and simplify code
4581 Use named notation in calls
4583 * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
4586 * uintp.adb: Used named notation for some confusing calls
4588 * bindusg.adb: Minor change in one line of output
4590 * cstand.adb: Minor reformatting of src representation of Standard
4592 * a-assert.ads: Add comment.
4594 * g-decstr.adb: Fix bad indentation
4596 * expander.ads, expander.adb: Code clean up.
4598 * sem_dist.ads: Minor comment improvement
4600 * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
4601 s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
4603 * i-cstrin.adb: Fix casing error in formal parameter name in call
4605 2008-04-08 Ed Schonberg <schonberg@adacore.com>
4607 * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
4608 mentioned in limited_with_clauses to do create semantic dependencies
4609 even though they appear in the ali file.
4611 2008-04-08 Emmanuel Briot <briot@adacore.com>
4613 * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
4615 (Get_Configuration): New subprogram.
4617 * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
4618 These optional parameters help preserve the casing of the project's name
4619 when pretty-printing.
4621 2008-04-08 Jerome Lambourg <lambourg@adacore.com>
4622 Arnaud Charlet <charlet@adacore.com>
4624 * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
4625 then use __gnat_set_exit_status to report the returned status code.
4627 * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
4628 messages on .NET, since some constructs of the language are not
4631 * gnatlink.adb (Gnatlink): In case the command line is too long for the
4632 .NET linker, gnatlink now concatenate all .il files and pass this to
4635 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
4636 Xavier Grave <grave@ipno.in2p3.fr>
4638 * Makefile.in: Add make ifeq define for mips/mipsel support.
4639 * g-soccon-linux-mips.ads, system-linux-mipsel.ads,
4640 system-linux-mips.ads: New files.
4642 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
4644 * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
4645 detect systems using GNU libc.
4651 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
4653 * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New
4654 constant constant for sysconf call.
4655 (bit_field): New packed boolean type used by cpu_set_t.
4656 (cpu_set_t): New type corresponding to the C type with
4657 the same name. Note that on the Ada side we use a bit
4658 field array for the affinity mask. There is not need
4659 for the C macro for setting individual bit.
4660 (pthread_setaffinity_np): New imported routine.
4661 * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
4664 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
4666 * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
4668 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
4670 * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
4671 * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
4672 * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
4673 * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
4674 Return by Depressed Stack Pointer.
4676 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
4678 * decl.c (is_variable_size): Do not unconditionally return false
4679 on non-strict alignment platforms.
4681 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
4683 * decl.c (rest_of_type_decl_compilation_no_defer): New local function
4684 used to process all the variants of the specified type.
4685 (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
4686 types too. Call rest_of_type_decl_compilation_no_defer if undeferring.
4687 (rest_of_type_decl_compilation): Likewise.
4688 * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
4690 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
4692 * gigi.h (insert_block): Kill.
4693 * utils.c (insert_block): Kill.
4695 2008-04-02 Eric Botcazou <ebotcazou@adacore.com>
4697 * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
4698 type has self-referential size, get the size from the initializing
4699 expression directly if it is also a constant whose nominal type
4700 has self-referential size.
4702 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4705 * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
4708 * env.c: Always include crt_externs.h if __APPLE__ is defined.
4709 (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
4711 2008-04-01 Andreas Jaeger <aj@suse.de>
4713 * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
4716 2008-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4718 * g-table.adb, g-tasloc.adb, g-traceb.ads,
4719 g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
4720 gnatbind.adb, gnatchop.adb, gnatcmd.adb,
4721 gnatcmd.ads, gnatdll.adb, gnatfind.adb,
4722 gnatlink.adb, gnatmem.adb, gprep.adb,
4723 i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
4724 i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
4725 layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
4726 lib-xref.ads, lib.adb, link.c, live.ads,
4727 make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
4728 mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
4729 misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
4730 mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
4731 namet.adb, namet.h, nlists.adb, nlists.ads,
4732 nlists.h, opt.ads, osint-b.ads, osint-c.adb,
4733 osint-c.ads, osint.adb, osint.ads, output.ads,
4734 par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
4735 par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
4736 par-endh.adb, par-labl.adb, par-prag.adb,
4737 par-sync.adb, par-tchk.adb, par-util.adb,
4738 par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
4739 prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
4740 prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
4741 prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
4743 2008-03-31 Eric Botcazou <ebotcazou@adacore.com>
4745 * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
4746 size if it has overflowed.
4748 2008-03-31 Olivier Hainque <hainque@adacore.com>
4749 Eric Botcazou <ebotcazou@adacore.com>
4751 * utils2.c (find_common_type): Document assumption on t1/t2 vs
4752 lhs/rhs. Force use of lhs type if smaller, whatever the modes.
4754 2008-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4756 * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
4757 einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
4758 exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
4759 exp_pakd.ads, exp_prag.adb, exp_smem.adb,
4760 exp_tss.ads, exp_util.adb, exp_util.ads,
4761 exp_vfpt.adb, freeze.adb, freeze.ads,
4762 frontend.adb, g-alleve.adb, g-altcon.adb,
4763 g-altive.ads, g-alveop.ads, g-alvevi.ads,
4764 g-arrspl.adb, g-busorg.ads, g-calend.adb,
4765 g-calend.ads, g-casuti.ads, g-cgideb.adb,
4766 g-comlin.adb, g-comlin.ads, g-curexc.ads,
4767 g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
4768 g-dirope.adb, g-dirope.ads, g-dynhta.ads,
4769 g-dyntab.adb, g-encstr.ads, g-excact.ads,
4770 g-except.ads, g-expect.ads, g-heasor.adb,
4771 g-hesora.adb, g-hesorg.adb, g-htable.ads,
4772 g-locfil.ads, g-md5.adb, g-md5.ads,
4773 g-memdum.ads, g-moreex.ads, g-os_lib.adb,
4774 g-pehage.adb, g-pehage.ads, g-regexp.adb,
4775 g-regexp.ads, g-regpat.adb, g-regpat.ads,
4776 g-soccon-aix.ads, g-soccon-darwin.ads,
4777 g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
4778 g-soccon-hpux.ads, g-soccon-irix.ads,
4779 g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
4780 g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
4781 g-soccon-mingw.ads, g-soccon-solaris-64.ads,
4782 g-soccon-solaris.ads, g-soccon-tru64.ads,
4783 g-soccon-vms.ads, g-soccon-vxworks.ads,
4784 g-soccon.ads, g-socket.adb, g-socket.ads,
4785 g-socthi-mingw.adb, g-socthi-vms.adb,
4786 g-socthi-vxworks.adb, g-soliop-mingw.ads,
4787 g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
4788 g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
4791 2008-03-27 Eric Botcazou <ebotcazou@adacore.com>
4793 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
4794 if the procedure is imported.
4796 2008-03-26 Arnaud Charlet <charlet@adacore.com>
4798 * adaint.c: Fix warnings.
4800 2008-03-26 Arnaud Charlet <charlet@adacore.com>
4802 * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
4804 2008-03-26 Arnaud Charlet <charlet@adacore.com>
4806 * a-witeio.adb: Fix problem with Current_Output (introduce Self).
4807 Fix problem of status check for null file
4809 2008-03-26 Arnaud Charlet <charlet@adacore.com>
4811 * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
4812 s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
4813 s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
4814 i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
4815 s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
4818 2008-03-26 Thomas Quinot <quinot@adacore.com>
4821 * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
4822 Get_Socket_Option): Add support for Receive_Packet_Info.
4824 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
4825 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
4826 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
4827 g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
4828 g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
4829 new constants SO_REUSEPORT and IP_PKTINFO
4831 2008-03-26 Robert Dewar <dewar@adacore.com>
4833 * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
4834 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
4835 a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
4836 a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
4837 a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
4838 a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
4839 s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
4840 s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
4841 a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
4842 s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
4843 s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
4844 s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
4845 s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
4846 s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
4847 s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
4848 s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
4849 s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
4850 s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
4851 s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
4852 s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
4853 a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
4854 a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
4855 s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
4856 s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
4857 s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
4858 s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
4859 s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
4860 a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
4861 a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
4862 s-tasloc.adb: Minor reformatting.
4864 Remove "used for" sections from comments.
4866 2008-03-26 Robert Dewar <dewar@adacore.com>
4868 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
4869 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
4870 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
4871 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
4872 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
4873 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
4874 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
4875 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
4876 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
4877 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
4878 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
4879 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
4880 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
4881 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
4882 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
4883 double spaced if it fits on one line and otherwise single spaced.
4885 2008-03-26 Arnaud Charlet <charlet@adacore.com>
4887 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
4888 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
4889 s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
4890 or task info if the thread could not be created.
4892 2008-03-26 Arnaud Charlet <charlet@adacore.com>
4894 * gnatvsn.ads (Library_Version): Bump to 4.4.
4895 (Current_Year): Bump to 2008.
4897 2008-03-26 Robert Dewar <dewar@adacore.com>
4899 * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
4901 * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
4903 * debug.adb: Add debug flags d.r and d.v
4904 Add debug flag .T (Optimize_Alignment (Time))
4905 Add debug flag .S (Optimize_Alignment (Space))
4907 * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
4908 depending on setting of relevant debug flags.
4909 Replace use of Warnings_Off by Has_Warnings_Off
4910 (Freeze_Entity): In circuit for warning on suspicious convention
4911 actuals, do not give warning if subprogram has same entity as formal
4912 type, or if subprogram does not come from source.
4913 (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
4914 if Optimize_Alignment set to Space.
4916 * frontend.adb: Add call to Sem_Warn.Initialize
4917 Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
4918 Reset Optimize_Alignment mode from debug switches .S and .T
4920 * layout.adb (Layout_Composite_Object): Rewritten for
4921 Optimize_Aligment pragma.
4923 * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
4926 * opt.ads, opt.adb: (Optimize_Alignment): New global switch
4928 * par-prag.adb (N_Pragma): Chars field removed, use Chars
4929 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
4930 this change. Add entry for pragma Optimize_Alignment
4932 * sem_prag.adb (N_Pragma): Chars field removed, use Chars
4933 (Pragma_Identifier (..
4934 instead, adjustments throughout to accomodate this change.
4935 (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
4936 (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
4937 Add implementation of pragma Optimize_Alignment
4939 2008-03-26 Vincent Celier <celier@adacore.com>
4941 * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
4942 Improve memory usage to avoid use of stack.
4944 2008-03-26 Robert Dewar <dewar@adacore.com>
4946 * a-teioed.ads: Correct value of Default_Fill
4948 * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
4950 2008-03-26 Robert Dewar <dewar@adacore.com>
4952 * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
4953 with Current_Output (introduce Self).
4955 2008-03-26 Robert Dewar <dewar@adacore.com>
4957 * checks.adb (Ensure_Valid): Capture valid status if possible
4960 2008-03-26 Robert Dewar <dewar@adacore.com>
4962 * stand.ads: Deal with reordering of package standard declarations
4964 * cstand.adb: Put package Standard declarations in proper order
4966 2008-03-26 Robert Dewar <dewar@adacore.com>
4968 * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
4969 (Pragma_Identifier (.. instead.
4970 (OK_To_Reorder_Components): New flag
4971 (Has_Entries): Code cleanup.
4972 (Warnings_Off_Used): New flag
4973 (Warnings_Off_Used_Unmodified): New flag
4974 (Warnings_Off_Used_Unreferenced): New flag
4975 (Has_Warnings_Off): New function
4976 (Has_Unmodified): New function
4977 (Has_Unreferenced): New function
4978 (Is_Trivial_Subprogram): New flag
4979 (Is_Static_Dispatch_Table_Entity): New attribute.
4980 Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
4981 (more consistent with other similar names)
4982 (Access_Subprogram_Type): New classification function
4984 2008-03-26 Robert Dewar <dewar@adacore.com>
4986 * errout.ads: Document new !! insertion sequence
4988 * errout.adb (N_Pragma): Chars field removed, use Chars
4989 (Pragma_Identifier (.. instead.
4990 Replace use of Warnings_Off by Has_Warnings_Off
4991 (Error_Msg_Internal): Don't delete warning ending in !!
4993 2008-03-26 Robert Dewar <dewar@adacore.com>
4995 * par.adb (Check_No_Right_Paren): Removed no longer used
4997 * par-ch10.adb (N_Pragma): Chars field removed, use Chars
4998 (Pragma_Identifier (.. instead.
5000 * par-ch10.adb (P_Subunit): Improvement in error recovery and message
5002 * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
5003 par-ch4.adb: Minor improvements in error recovery and messages.
5005 * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
5008 * par-ch9.adb: Minor improvements in error recovery and messages
5009 (P_Protected): Better error recovery for "protected type x;"
5011 * par-util.adb: Minor improvements in error recovery and messages
5012 (Check_No_Right_Paren): Removed no longer used
5014 2008-03-26 Ed Schonberg <schonberg@adacore.com>
5016 * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
5017 that the prefix of an attribute is the type of the aggregate being
5020 2008-03-26 Javier Miranda <miranda@adacore.com>
5021 Robert Dewar <dewar@adacore.com>
5023 * exp_attr.adb (N_Pragma): Chars field removed.
5024 (Expand_N_Attribute_Reference): If the designated type associated with
5025 attribute 'Unrestricted_Access is a subprogram entity then replace it
5026 by an E_Subprogram_Type itype.
5027 Implement attribute Old
5029 * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
5031 * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
5033 New_Internal_Entity by call to Create_Itype to centralize calls
5034 building itypes, ad propagate the convention of the designated
5035 subprogram. In addition, disable the machinery cleaning constant
5036 indications from all entities in current scope when 'Unrestricted_Access
5037 corresponds with a node initializing a dispatch table slot.
5038 (Analyze_Attribute): Parameterless attributes returning a string or a
5039 type will not be called with improper arguments, so we can remove junk
5040 code that was dealing with this case.
5041 Implement attribute Old
5043 * snames.ads, snames.h, snames.adb: Add entries for attribute Old
5044 Add entry for pragma Optimize_Alignment
5045 New standard names Sync and Synchronize
5047 2008-03-26 Robert Dewar <dewar@adacore.com>
5048 Arnaud Charlet <charlet@adacore.com>
5050 * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
5052 (No_Exception_Propagation_Active): New function.
5053 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
5054 Update comments, and review all uses of No_Exception_Propagation, which
5055 are now correct and in sync with what gigi expects.
5057 * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
5059 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
5060 Update comments, and review all uses of No_Exception_Propagation, which
5061 are now correct and in sync with what gigi expects.
5063 2008-03-26 Ed Schonberg <schonberg@adacore.com>
5065 * sem_ch3.adb (Access_Definition): If the access type is the return
5066 result of a protected function, create an itype reference for it
5067 because usage will be in an inner scope from the point of declaration.
5068 (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
5069 OK_To_Reorder_Components.
5070 (Make_Index): If an overloaded range includes a universal integer
5071 interpretation, resolve to Standard.Integer.
5072 (Analyze_Subtype_Indication): Copy Convention to subtype
5073 (Check_Abstract_Interfaces): Complete semantic checks on the legality of
5074 limited an synchronized progenitors in type declaration and private
5075 extension declarations.
5077 * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
5078 protected subprogram body, determine proper scope from subprogram
5081 2008-03-26 Robert Dewar <dewar@adacore.com>
5083 * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
5086 2008-03-26 Gary Dismukes <dismukes@adacore.com>
5088 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
5089 of a heap allocator for a limited unconstrained function return when
5090 resstriction No_Allocators is active.
5091 (Analyze_Allocator): The restriction No_Allocators is now only checked
5092 on allocators that have Comes_From_Source set, as per RM-H.4(7).
5094 * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
5095 of a heap allocator for a limited unconstrained function return when
5096 resstriction No_Allocators is active.
5097 (Analyze_Allocator): The restriction No_Allocators is now only checked
5098 on allocators that have Comes_From_Source set, as per RM-H.4(7).
5099 (Has_Fixed_Op): If the name in a function call is Standard."*" and the
5100 operands are fixed-point types, the universal_fixed predefined operation
5101 is used, regardless of whether the operand type (s) have a primitive
5102 operation of the same name.
5104 2008-03-26 Javier Miranda <miranda@adacore.com>
5106 * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
5107 Is_Static_Dispatch_Table
5108 (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
5109 to Exchange_Declarations to exchange the private and full-view. Bug
5110 found working in this issue.
5111 (Expand_Dispatching_Call): Propagate the convention of the subprogram
5112 to the subprogram pointer type.
5113 (Make_Secondary_DT): Replace generation of Prim'Address by
5114 Address (Prim'Unrestricted_Access)
5115 (Make_DT): Replace generation of Prim'Address by
5116 Address (Prim'Unrestricted_Access)
5117 (Make_Disp_*_Bodies): When compiling for a restricted profile, use
5118 simple call form for single entry.
5119 (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
5120 tables of predefined primitives).
5121 (Make_Secondary_DT): Add support to handle access to dispatch tables of
5122 predefined primitives.
5123 (Make_Tags): Add entities to Access_Dispatch_Table associated with
5124 access to dispatch tables containing predefined primitives.
5126 * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
5127 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
5129 (Register_Predefined_DT_Entry): Updated to handle the new contents
5130 of attribute Access_Disp_Table (pointers to dispatch tables containing
5131 predefined primitives).
5133 * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
5135 (Find_Interface_ADT): Updated to skip the new contents of attribute
5136 Access_Dispatch_Table (pointers to dispatch tables containing predefined
5139 * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
5141 (Set_Convention): Use new function Is_Access_Subprogram_Type
5142 (Collect_Interfaces_Info): Updated to skip the new contents of attribute
5143 Access_Dispatch_Table (pointers to dispatch tables containing predefined
5146 * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
5147 expanded code avoiding calls to Build_Predef_Prims.
5148 (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
5149 call to Build_Get_Predefined_Prim_Op_Address.
5151 2008-03-26 Javier Miranda <miranda@adacore.com>
5153 * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
5154 subprogram Corresponding_Runtime_Package to know the runtime package
5155 that will provide support to a given protected type.
5157 * exp_ch9.adb (Add_Private_Declarations,
5158 Build_Protected_Subprogram_Call,
5159 Build_Protected_Entry, Build_Simple_Entry_Call,
5160 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
5161 Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
5162 cleanup using the new centralized subprogram Corresponding_Runtime
5163 Package to know the runtime package that provides support to
5164 a given protected type.
5166 2008-03-26 Ed Schonberg <schonberg@adacore.com>
5168 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
5169 assignment is within the initialization procedure for a packed array,
5170 and Initialize_Scalars is enabled, compile right-hand side with checks
5171 off, because the value is purposely out of range.
5173 2008-03-26 Vincent Celier <celier@adacore.com>
5175 * gnatcmd.adb: Add processing for GNAT SYNC
5177 * vms_conv.ads: (Command_Type): Add command Sync
5179 * vms_conv.adb (Initialize): Add Command_List data for new command Sync
5181 * vms_data.ads: Add entries for -gnatw.w
5182 Add qualifier for gnatstub --header-file option
5183 Add switches for GNAT SYNC
5185 * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
5186 (Add_Package_Name): New procedure
5187 (Package_Name_List): New function
5188 (Initialize): Add known package names to the list
5189 (Register_New_Package): Add the new package name to the list
5191 2008-03-26 Robert Dewar <dewar@adacore.com>
5193 * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
5194 s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
5195 Raise_Exception by "raise with" construct.
5197 2008-03-26 Pascal Obry <obry@adacore.com>
5199 * Makefile.in: Add proper GNAT.Serial_Communications implementation on
5200 supported platforms.
5202 * Makefile.rtl: Add g-sercom.o.
5204 * impunit.adb: Add g-sercom.adb.
5206 * s-crtl.ads (open): New routine.
5210 * s-osinte-mingw.ads (BYTE): New type.
5212 (OVERLAPPED): Likewise.
5213 (GENERIC_READ): New constant.
5214 (GENERIC_WRITE): Likewise.
5215 (OPEN_EXISTING): Likewise.
5216 (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
5218 (CreateFile): New routine.
5219 (WriteFile): Likewise.
5220 (ReadFile): Likewise.
5221 (CloseHandle): Move next to the other file oriented routines.
5223 * g-sercom.ads: New unit.
5225 * g-sercom.adb: Default implementation, calls to this unit will raise
5226 a program error exception.
5228 * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
5229 GNU/Linux implementations.
5231 2008-03-26 Robert Dewar <dewar@adacore.com>
5233 * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
5235 * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
5236 unchecked conversion for different conventions only for subprogram
5239 2008-03-26 Vincent Celier <celier@adacore.com>
5241 * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
5242 to check if the specified object file is correct.
5244 2008-03-26 Thomas Quinot <quinot@adacore.com>
5246 * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
5247 Comes_From_Source to exclude primitives from being checked. We want to
5248 exclude predefined primitives only, so use the appropriate specific
5249 predicate. Also, flag a formal parameter of an anonymous
5250 access-to-subprogram type as illegal for a primitive operation of a
5251 remote access to class-wide type.
5253 2008-03-26 Vincent Celier <celier@adacore.com>
5255 * prj-dect.adb (Parse_Package_Declaration): When a package name is not
5256 known, check if it may be a missspelling of a known package name. In
5257 not verbose, not mode, issue warnings only if the package name is a
5258 possible misspelling.
5259 In verbose mode, always issue a warning for a not known package name,
5260 plus a warning if the name is a misspelling of a known package name.
5262 * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
5263 limited withs or limited withs are parse during one call.
5264 (Parse_Single_Project): Post parse context clause in two passes: non
5265 limited withs before current project and limited withs after current
5268 * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
5269 project with the name With_Name, even if it is only extended indirectly.
5270 (Recursive_Process): Process projects in order: first single withs, then
5271 current project, then limited withs.
5273 * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
5274 project with the name With_Name, even if it is only extended indirectly.
5276 2008-03-26 Robert Dewar <dewar@adacore.com>
5278 * scn.adb (Initialize_Scanner): Format messages belong on standard error
5280 2008-03-26 Ed Schonberg <schonberg@adacore.com>
5282 * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
5283 a generic subprogram that is imported, do not attempt to compile
5286 * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
5287 imported, do not generate a raise_program_error for the non-existent
5289 (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
5290 perform minimal name resolution on the generic to avoid spurious
5292 (Find_Actual_Type): the designated type of the actual in a child unit
5293 may be declared in a parent unit without being an actual.
5295 2008-03-26 Robert Dewar <dewar@adacore.com>
5297 * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
5298 * sinfo.ads, sinfo.adb (From_At_End): New flag
5300 2008-03-26 Ed Schonberg <schonberg@adacore.com>
5302 * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
5303 operations that have an interface parameter.
5304 (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
5305 Don't treat No_Return call as raise.
5307 * sem_disp.adb (Check_Dispatching_Operations): apply check for
5308 non-primitive interface primitives to access parameters, not to all
5309 parameters of an access type.
5311 2008-03-26 Ed Schonberg <schonberg@adacore.com>
5313 * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
5314 declarations of a parent unit are made visible when compiling a child
5315 instance, the parent is not a hidden open scope, even though it may
5316 contain other pending instance.
5318 * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
5319 hidden open scope for some child instance, it does affect the
5320 visibility status of other stach entries.
5321 (Analyze_Object_Renaming): Check that a class-wide object cannot be
5322 renamed as an object of a specific type.
5324 2008-03-26 Robert Dewar <dewar@adacore.com>
5326 * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
5327 recursion and raise SE directly.
5328 (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
5329 set for formal type for IN mode parameter.
5331 2008-03-26 Robert Dewar <dewar@adacore.com>
5333 * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
5334 (Initialize): New procedure
5335 (Output_Warnings_Off_Warnings): New procedure
5336 (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
5337 (Output_Non_Modifed_In_Out_Warnings): Ditto
5338 (Warn_On_Unreferenced_Entity): Ditto
5340 2008-03-26 Vincent Celier <celier@adacore.com>
5342 * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
5345 2008-03-26 Matthew Heaney <heaney@adacore.com>
5347 * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads,
5348 a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
5349 Marked with clauses as private, and controlled operations as overriding
5351 2008-03-26 Robert Dewar <dewar@adacore.com>
5353 * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
5355 2008-03-26 Robert Dewar <dewar@adacore.com>
5357 * back_end.adb, back_end.ads: Minor reformatting
5359 * bindgen.adb: Minor clarification of comments
5361 * fname.ads: Minor comment fixes
5363 * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
5364 prj-nmsc.adb, sem_aggr.adb: Minor reformatting
5366 * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
5367 xsnames.adb: Remove warnings off pragma no longer needed
5369 * a-catizo.ads, a-calari.ads, a-calfor.adb,
5370 a-calfor.ads: Fix header.
5372 2008-03-26 Tristan Gingold <gingold@adacore.com>
5374 * init.c: Do not adjust pc for HPARITH on alpha/vms.
5376 2008-03-26 Robert Dewar <dewar@adacore.com>
5378 * lib-xref.adb: (OK_To_Set_Reference): New function
5379 (Generate_Reference): Don't set referenced from occurrence in Warnings,
5380 Unmodified, or Unreferenced pragma
5382 2008-03-26 Robert Dewar <dewar@adacore.com>
5384 * alloc.ads: Add entries for Warnings_Off_Pragmas table
5386 2008-03-26 GNAT Script <nobody@adacore.com>
5388 * Make-lang.in: Makefile automatically updated
5390 2008-03-26 Robert Dewar <dewar@adacore.com>
5392 * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
5393 par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
5394 removed, use Chars (Pragma_Identifier (.. instead, adjustments
5395 throughout to accomodate this change.
5397 * s-pooglo.ads, s-pooloc.ads: Minor comment updates
5399 * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
5400 Einfo.Set_Needs_Debug_Info)
5402 2008-03-26 Robert Dewar <dewar@adacore.com>
5404 * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
5405 Add description for the new gnatstub option '--header-file'
5406 clarification of -gnatwz/-gnatwZ
5407 Add a "Irix-Specific Considerations" section to document the need to
5408 set LD_LIBRARY_PATH when using the default shared runtime library.
5409 Added documentation for both gcov and gprof.
5411 * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
5412 messages that are not suppressed when clients are compiled.
5413 Add documentation of s-pooglo s-pooloc
5414 Document the new GNAT.Serial_Communications API.
5415 Add documentation for 'Old attribute
5416 Add description of pragma Optimize_Alignment
5418 * ug_words: Add entries for -gnatw.w -gnatw.W
5420 * usage.adb: Add line for -gnatw.w (warn on warnings off)
5422 2008-03-25 Eric Botcazou <ebotcazou@adacore.com>
5425 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
5427 * decl.c (maybe_pad_type): Avoid padding an integral type when
5428 bumping its alignment is sufficient.
5430 2008-03-25 Arnaud Charlet <charlet@adacore.com>
5432 * exp_ch6.adb, exp_disp.adb: Update copyright notice.
5433 Fix wrong formatting (lines too long)
5435 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5437 * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
5438 a-calend-vms.adb, a-calend.adb, a-calend.ads,
5439 a-calfor.adb, a-chahan.ads, a-chtgke.adb,
5440 a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
5441 a-cohama.ads, a-comlin.ads, a-coorse.adb,
5442 a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
5443 a-except-2005.ads, a-except.adb, a-except.ads,
5444 a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
5445 a-exextr.adb, a-filico.ads, a-finali.ads,
5446 a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
5447 a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
5448 a-sequio.ads, a-strbou.ads, a-strfix.adb,
5449 checks.adb, exp_ch3.adb, exp_ch4.adb,
5450 exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
5451 exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
5452 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
5453 exp_dbug.ads, exp_disp.adb, exp_dist.adb,
5454 exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
5456 2008-03-24 Robert Dewar <dewar@adacore.com>
5458 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
5459 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
5460 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
5461 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
5462 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
5463 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
5464 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
5465 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
5466 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
5467 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
5468 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
5469 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
5470 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
5471 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
5472 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
5473 double spaced if it fits on one line and otherwise single spaced.
5475 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5477 PR documentation/15479
5478 * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
5479 (doc/gnat_ugn_unw.texi): ... this, and adjusted.
5480 (doc/gnat_ugn.info): Renamed from ...
5481 (doc/gnat_ugn_unw.info): ... this.
5482 (doc/gnat_ugn.dvi): Renamed from ...
5483 (doc/gnat_ugn_unw.dvi): ... this.
5484 (doc/gnat_ugn.pdf): Renamed from ...
5485 (doc/gnat_ugn_unw.pdf): ... this.
5486 (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
5488 * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
5489 unconditionally to gnat_ugn.info. Fix cross references to the
5490 GNAT Reference Manual. Convert links to the GCC, GDB, Emacs,
5491 and GNU make manuals to be proper texinfo links.
5492 * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
5494 2008-03-21 Olivier Hainque <hainque@adacore.com>
5496 * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
5497 ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
5499 2008-03-21 Eric Botcazou <ebotcazou@adacore.com>
5501 * trans.c (addressable_p): Add notes on addressability issues.
5503 2008-03-21 Olivier Hainque <hainque@adacore.com>
5504 Ed Schonberg <schonberg@adacore.com>
5506 * trans.c (addressable_p): Accept COND_EXPR when both arms
5508 (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
5509 (call_to_gnu): Do not use name reference in the error message
5510 for a misaligned by_reference_parameter. The actual may be a
5513 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
5515 * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
5517 2008-03-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5519 * gnat_rm.texi (Implementation Defined Characteristics)
5520 (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
5522 * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
5523 (Switches for gnatchop, Installing a library): Likewise.
5525 2008-03-10 Eric Botcazou <ebotcazou@adacore.com>
5527 * trans.c (emit_range_check): Do not emit the check if the base type
5528 of the expression is the type against which its range must be checked.
5530 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5532 * decl.c (maybe_pad_type): Use value_factor_p.
5534 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5536 * lang.opt (nostdlib): Move around.
5537 * misc.c (gnat_handle_option): Fix formatting.
5538 (gnat_dwarf_name): Move around.
5539 * trans.c (Case_Statement_to_gnu): Fix formatting.
5540 (gnat_to_gnu): Likewise.
5541 * utils.c (aggregate_type_contains_array_p): Likewise.
5542 (create_subprog_decl): Likewise.
5544 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5546 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
5547 bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
5549 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5551 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
5552 BIGGEST_ALIGNMENT when capping the alignment of records with
5553 strict alignment and size clause.
5555 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5557 * lang-specs.h: Pass -gnatwa if -Wall is passed.
5558 * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
5559 and -Wuninitialized.
5560 (gnat_post_options): Clear warn_unused_parameter.
5562 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5564 * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
5565 aligned bit-fields, bumping the alignment of the record type if deemed
5567 (value_factor_p): Return false instead of 0.
5569 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5571 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
5572 for scalar types with small alignment.
5574 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5576 * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
5577 from that of the front-end's end label.
5578 (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
5579 from that of the loop label.
5581 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
5583 * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
5584 comment for the packed array type case.
5585 * utils.c (build_template): Use a loop to strip padding or
5586 containing records for justified modular types.
5588 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
5590 * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
5591 large alignments specified for types.
5592 (validate_alignment): Minor cleanup.
5594 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
5596 * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
5597 (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
5598 the component for packing, if possible, as well as if a component
5599 size clause is specified.
5600 <E_Record_Subtype>: For an array type used to implement a packed
5601 array, get the component type from the original array type.
5602 Try to get a smaller form of the component for packing, if possible,
5603 as well as if a component size clause is specified.
5604 (round_up_to_align): New function.
5605 (make_packable_type): Add in_record parameter.
5606 For a padding record, preserve the size. If not in_record and the
5607 size is too large for an integral mode, attempt to shrink the size
5608 by lowering the alignment.
5609 Ditch the padding bits of the last component.
5610 Compute sizes and mode manually, and propagate the RM size.
5611 Return a BLKmode record type if its size has shrunk.
5612 (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
5613 Use Original_Array_Type to retrieve the type in case of an error.
5614 Adjust call to make_packable_type.
5615 (gnat_to_gnu_field): Likewise.
5616 (concat_id_with_name): Minor tweak.
5617 * trans.c (larger_record_type_p): New predicate.
5618 (call_to_gnu): Compute the nominal type of the object only if the
5619 parameter is by-reference. Do the conversion actual type -> nominal
5620 type if the nominal type is a larger record.
5621 (gnat_to_gnu): Do not require integral modes on the source type to
5622 avoid the conversion for types with identical names.
5623 (addressable_p): Add gnu_type parameter. If it is specified, do not
5624 return true if the expression is not addressable in gnu_type.
5625 Adjust recursive calls.
5626 * utils.c (finish_record_type): Remove dead code.
5628 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
5631 * decl.c (maybe_pad_type): Avoid padding an integral type when
5632 bumping its alignment is sufficient.
5634 2008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5636 * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
5637 * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
5639 * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
5640 gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
5641 sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
5642 code output strings.
5643 * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
5644 system-vms_64.ads: Fix typos in ada source code comments.
5645 * sinfo-cn.adb: Remove incomplete sentence.
5647 PR documentation/15479
5648 * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
5650 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
5653 * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
5655 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
5658 * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
5659 that underlying type is present.
5661 2008-02-26 Tom Tromey <tromey@redhat.com>
5663 * misc.c (internal_error_function): Remove test of
5664 USE_MAPPED_LOCATION.
5665 * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
5666 (Sloc_to_locus): Remove old location code.
5668 2008-02-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5670 * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
5671 `i.e.' by adding comma or `@:' as appropriate.
5672 * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
5673 plain characters `C', use `@samp{C}'.
5674 * gnat_ugn.texi (File Naming Rules, About gnatkr)
5675 (Krunching Method): Likewise.
5677 * gnat_ugn.texi (Conventions): List environment variables and
5678 metasyntactic variables.
5679 (Compiling Programs): Fix notation of metasyntactic variables.
5680 Add @file where appropriate. Use @file for file extensions,
5682 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
5683 instead of @file, @env instead of @code.
5685 2008-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5687 PR documentation/15479
5688 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
5689 and `...' with `@dots{}' or `@enddots{}'.
5691 PR documentation/15479
5692 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
5693 use @command instead of @code, @option instead of @samp or @code,
5694 @code instead of @var, @samp instead of @file.
5696 PR documentation/15479
5697 * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
5698 in Makefile rules, by using `&&' rather than `;'.
5700 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5702 PR documentation/15479
5703 * gnat_ugn.texi: In non-code, avoid space before colon.
5704 (Regular Expressions in gnatfind and gnatxref): Fix indentation.
5705 (Examples of gnatxref Usage): Use @command{vi} instead of
5707 (Character Set Control): Do not use @code for UTF-8.
5708 (Validity Checking): Fix typo "NaNs" instead of "NaN's". Do not
5710 * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
5712 * gnat_rm.texi, gnat_ugn.texi: Fix typos. Bump copyright years.
5714 2008-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
5717 * env.c: Add __rtems__ to if defined.
5718 * s-osinte-rtems.adb: Add To_Target_Priority. Fix formatting.
5719 * s-osinte-rtems.ads: Add To_Target_Priority prototype and
5720 PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants. Add
5721 pragma Convention as required.
5722 * gsocket.h: Make compile in and out of RTS.
5723 * Makefile.in: Add system-rtems.ads. Build DEC extensions.
5724 Use g-soccon-rtems.ads.
5725 * g-soccon-rtems.ads, system-rtems.ads: New files.
5727 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5730 * Make-lang.in (gnat1): Add $(GMPLIBS).
5732 2008-01-26 Eric Botcazou <ebotcazou@adacore.com>
5734 * decl.c (components_to_record): Improve comment.
5736 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
5738 * decl.c (components_to_record): Do not reuse the empty union type
5739 if there is a representation clause on the record.
5740 * trans.c (addressable_p): Return true for INTEGER_CST.
5742 2008-01-21 Eric Botcazou <ebotcazou@adacore.com>
5744 * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
5745 in pointer arithmetics.
5746 * utils2.c (build_allocator): Likewise.
5748 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
5750 * utils.c (build_function_stub): Properly build the call expression.
5752 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
5754 * decl.c (gnat_to_gnu_entity) <object>: Process renamings
5755 before converting the expression to the type of the object.
5756 * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
5757 Stabilize constructors for special wrapping types.
5759 2008-01-13 Eric Botcazou <ebotcazou@adacore.com>
5761 * trans.c (call_to_gnu): Invoke the addressable_p predicate only
5762 when necessary. Merge some conditional statements. Update comments.
5763 Rename unchecked_convert_p local variable to suppress_type_conversion.
5764 Do not suppress conversions in the In case.
5765 (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
5766 into account on non strict-alignment platforms.
5768 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
5770 * utils.c (aggregate_type_contains_array_p): New predicate.
5771 (create_field_decl): In a packed record, force byte alignment
5772 for fields without specified position that contain an array.
5774 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
5776 * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
5778 2008-01-10 John David Anglin <dave.anglin.@nrc-cnrc.gc.ca>
5781 * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
5783 (bit_field): New packed boolean type used by cpu_set_t.
5784 (cpu_set_t): New type corresponding to the C type with
5785 the same name. Note that on the Ada side we use a bit
5786 field array for the affinity mask. There is not need
5787 for the C macro for setting individual bit.
5788 (pthread_setaffinity_np): New imported routine.
5790 2008-01-03 Tero Koskinen <tero.koskinen@iki.fi>
5793 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
5794 on OpenBSD as is done on other BSD systems.
5797 * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
5798 getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
5802 * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
5806 * init.c (__gnat_error_handler, __gnat_install_handler,
5807 __gnat_init_float): Define for OpenBSD.
5809 * initialize.c (__gnat_initialize): Define for OpenBSD.
5811 2007-12-27 Samuel Tardieu <sam@rfc1149.net>
5814 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
5815 instead of mktemp() or tmpnam() on NetBSD.
5817 2007-12-23 Eric Botcazou <ebotcazou@adacore.com>
5819 * trans.c (call_to_gnu): Make the temporary for non-addressable
5820 In parameters passed by reference.
5821 (addressable_p): Return true for STRING_CST and CALL_EXPR.
5823 2007-12-19 Robert Dewar <dewar@adacore.com>
5825 * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
5826 Add pragma Warnings (Off) for unassigned IN OUT arguments
5828 * sem_warn.adb (Output_Reference): Suppress messages for internal names
5829 (Check_References): Extensive changes to tune up warnings
5830 (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
5831 (Has_Pragma_Unmodifed_Check_Spec): New function
5832 (Check_References): Implement pragma Unmodified
5833 (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
5835 * par-prag.adb: Dummy entry for pragma Unmodified
5837 * sem_prag.adb: Implement pragma Unmodified
5839 * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
5840 (Proc_Next_Component_Or_Discriminant): Fix typo.
5843 * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
5845 (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
5846 because the former already takes care of discarding the result.
5847 (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
5850 * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
5852 2007-12-19 Eric Botcazou <ebotcazou@adacore.com>
5854 * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
5855 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
5856 system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
5857 system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
5858 system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
5859 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
5860 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
5861 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
5862 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
5863 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
5864 (Dynamic_Trampolines_Used): Delete.
5866 * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
5867 Turn on stack probing mechanism on LynxOS.
5869 2007-12-19 Bob Duff <duff@adacore.com>
5871 * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
5872 the resulting tail recursion by hand. This prevents running out of
5873 memory on deeply nested concatenations, since Field2 is where the left
5874 operand of concatenations is stored.
5875 Fix bug (was returning OK_Orig in some cases). Fix return subtype to
5876 clarify that it can only return OK or Abandon.
5878 * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
5879 operand by iteration, in order to avoid running out of memory on
5880 deeply-nested concatenations. Use the Parent pointer to get back up the
5882 (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
5883 Resolve_Op_Concat_Rest): New procedures split out of
5884 Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
5887 * checks.adb (Remove_Checks): Use Traverse_Proc instead of
5888 Traverse_Func, because the former already takes care of discarding the
5891 * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
5892 because the former already takes care of discarding the result.
5893 (Remove_Warning_Messages): Use appropriate subtype for Status and
5896 2007-12-19 Ed Schonberg <schonberg@adacore.com>
5898 * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
5899 discriminants forces expansion of the aggregate into assignments.
5900 (Init_Record_Controller): If the type of the aggregate is untagged and
5901 is not inherently limited, the record controller is not limited either.
5903 2007-12-19 Robert Dewar <dewar@adacore.com>
5905 * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
5906 handling compile time known size of record or array (case of front end
5907 layout active, e.g. in GNAAMP).
5909 2007-12-19 Javier Miranda <miranda@adacore.com>
5911 * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
5912 that forces the construction of static dispatch tables in case of
5915 2007-12-19 Robert Dewar <dewar@adacore.com>
5917 * exp_ch9.adb (Null_Statements): Moved to library level
5918 (Trivial_Accept_OK): New function
5919 (Expand_Accept_Declaration): Use Trivial_Accept_OK
5920 (Expand_N_Accept_Statement): Use Trivial_Accept_OK
5922 2007-12-19 Robert Dewar <dewar@adacore.com>
5924 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
5925 in complex case where array is Volatile.
5927 2007-12-19 Ed Schonberg <schonberg@adacore.com>
5929 * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
5930 properly the Ada2005 rules concerning when the current instance of a
5931 record type is aliased.
5933 2007-12-19 Ed Schonberg <schonberg@adacore.com>
5935 * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
5937 (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
5939 (P_Variant_Part): Cleaner patch for parenthesized discriminant
5941 2007-12-19 Vincent Celier <celier@adacore.com>
5943 * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
5944 package is not known
5946 * prj-attr.ads (Unknown_Package): New constant
5947 Do not crash when an unknown package is in several projects
5949 * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
5952 * prj-nmsc.adb (Check): Remove obsolete code related to no longer
5953 existing package Language_Processing.
5955 2007-12-19 Ed Schonberg <schonberg@adacore.com>
5956 Gary Dismukes <dismukes@adacore.com>
5957 Samuel Tardieu <sam@rfc1149.net>
5959 PR ada/15803, ada/15805
5960 * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
5961 illegal access subtypes when there is a constrained partial view.
5962 (Check_For_Premature_Usage): New procedure inside
5963 Access_Subprogram_Declaration for checking that an access-to-subprogram
5964 type doesn't reference its own name within any formal parameters or
5965 result type (including within nested anonymous access types).
5966 (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
5967 (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
5968 context is an access_to_variable, the expression cannot be an
5971 2007-12-19 Bob Duff <duff@adacore.com>
5973 * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
5974 (Analyze_Concatenation): Use iteration instead of recursion in order
5975 to avoid running out of stack space for deeply nested concatenations.
5977 2007-12-19 Ed Schonberg <schonberg@adacore.com>
5978 Gary Dismukes <dismukes@adacore.com>
5980 * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
5981 whose renamed entity is a subprogram that requires overriding.
5982 (Premature_Usage): Test for the case of N_Full_Type_Declaration when
5983 issuing an error for premature usage and issue a message that says
5984 'type' rather than 'object'.
5986 2007-12-19 Gary Dismukes <dismukes@adacore.com>
5989 * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
5990 presence of a statically tagged operand (Present (Static_Tag)) with
5991 test for Indeterm_Ancestor_Call when determining whether to propagate
5992 the static tag to tag-indeterminate operands (which forces dispatching
5994 (Check_Controlling_Formals): Ada2005, access parameters can have
5996 (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
5997 not insert subprogram in list of primitive operations if already there.
5999 2007-12-19 Tristan Gingold <gingold@adacore.com>
6001 * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
6004 2007-12-19 Thomas Quinot <quinot@adacore.com>
6006 Part of PR ada/33688
6007 * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
6008 datagram info on Linux.
6010 2007-12-19 Vincent Celier <celier@adacore.com>
6012 * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
6013 that the source path name is always found in the dependencies.
6015 2007-12-19 Robert Dewar <dewar@adacore.com>
6017 * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
6018 Fix name of Wide_Wide_Latin_1/9 file names
6019 Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
6020 Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
6021 Add missing documentation for Ada.Command_Line.Response_File
6022 Update list of warning letters for Warnings pragma
6023 Add documentation for pragma Unmodified
6025 2007-12-19 Samuel Tardieu <sam@rfc1149.net>
6027 * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
6029 2007-12-17 Arnaud Charlet <charlet@adacore.com>
6031 * s-vxwork-alpha.ads: Removed, no longer used.
6033 2007-12-15 Jakub Jelinek <jakub@redhat.com>
6035 * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
6037 2007-12-13 Samuel Tardieu <sam@rfc1149.net>
6040 * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
6041 mlib-tgt-specific.adb.
6043 2007-12-13 Bob Duff <duff@adacore.com>
6045 * trans.c (Attribute_to_gnu): Check for violations of the
6046 No_Implicit_Dynamic_Code restriction. This checking used to be done in
6047 the front end, but is moved here so we can make it more accurate.
6049 2007-12-13 Pascal Obry <obry@adacore.com>
6051 * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
6052 version is provided for older GNU/Linux distribution not
6053 supporting thread affinity sets.
6055 * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
6057 (bit_field): New packed boolean type used by cpu_set_t.
6058 (cpu_set_t): New type corresponding to the C type with
6059 the same name. Note that on the Ada side we use a bit
6060 field array for the affinity mask. There is not need
6061 for the C macro for setting individual bit.
6062 (pthread_setaffinity_np): New imported routine.
6064 * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
6066 (Create_Task): Set the processor affinity mask if information
6069 * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
6071 2007-12-13 Robert Dewar <dewar@adacore.com>
6073 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
6074 s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
6075 s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
6076 s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
6077 s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
6078 s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
6079 s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
6080 i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
6081 for subprogram pointers.
6083 * g-ctrl_c.adb: New file.
6085 * g-ctrl_c.ads (Install_Handler): New body.
6087 * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
6088 instead of obsolete function Is_Always_Inlined.
6089 (Freeze_Entity): check for tagged type in imported C subprogram
6090 (Freeze_Entity): check for 8-bit boolean in imported C subprogram
6091 (Freeze_Entity): check for convention Ada subprogram pointer in
6092 imported C subprogram.
6093 (Freeze_Fixed_Point_Type): In the case of a base type where the low
6094 bound would be chopped off and go from negative to zero, force
6095 Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
6096 bound) so that the size computation for the base type will take
6097 negative values into account.
6099 2007-12-13 Eric Botcazou <ebotcazou@adacore.com>
6100 Bob Duff <duff@adacore.com>
6101 Tristan Gingold <gingold@adacore.com>
6103 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
6104 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
6105 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
6106 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
6107 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
6108 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
6109 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
6110 system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
6111 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
6112 system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
6113 system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
6114 (Always_Compatible_Rep): New flag to control trampolines globally.
6115 (Dynamic_Trampolines_Used): New flag for implementing the
6116 No_Implicit_Dynamic_Code restriction more correctly (not yet used,
6117 and not yet set correctly for some targets).
6119 * s-taprop-vxworks.adb: Use stack limit method of stack checking.
6120 Simply indirectly call s-stchop when a task is created.
6123 New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
6124 appears as an argument (entries A) in an ALI file.
6126 * fe.h (Stack_Check_Limits): Declare new target parameter.
6127 (Check_Implicit_Dynamic_Code_Allowed): New procedure.
6129 * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
6130 This variable is declared in C to be sure not subject to elaboration
6132 (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
6135 * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
6136 (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
6138 * s-stchop.ads: Add comments.
6140 * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
6141 limit method of stack checking.
6143 * s-stchop-limit.ads: New file.
6145 2007-12-13 Robert Dewar <dewar@adacore.com>
6147 * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
6148 a-cihama.adb, g-awk.adb,
6149 s-inmaop-posix.adb: Update handling of assigned value/unreferenced
6152 * exp_smem.adb: Update handling of assigned value/unreferenced warnings
6154 * sem.adb: Update handling of assigned value/unreferenced warnings
6156 * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
6158 * lib-xref.ads: Improve documentation for k xref type
6161 Update handling of assigned value/unreferenced warnings
6162 (Generate_Reference): Warning for reference to entity for which a
6163 pragma Unreferenced has been given should be unconditional.
6164 If the entity is a discriminal, mark the original
6165 discriminant as referenced.
6167 * sem_warn.ads, sem_warn.adb
6168 (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
6169 no entities referenced in package
6170 (Check_One_Unit): Don't give message about no entities referenced in
6171 a package if a pragma Unreferenced has appeared.
6172 Handle new warning flag -gnatw.a/-gnatw.A
6173 Update handling of assigned value/unreferenced warnings
6175 * atree.h: Add flags up to Flag247
6176 (Flag231): New macro.
6178 2007-12-13 Jose Ruiz <ruiz@adacore.com>
6180 * adaint.h: (__gnat_plist_init): Not defined for RTX.
6182 * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
6185 * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
6186 (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
6187 EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
6188 GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
6191 Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
6193 * sysdep.c (winflush_function for RTX): Procedure that does nothing
6194 since we only have problems with Windows 95/98, which are not
6196 (__gnat_ttyname): Return the empty string on Nucleus, just as
6199 2007-12-13 Robert Dewar <dewar@adacore.com>
6201 * a-textio.adb, a-textio.ads:
6202 Extensive changes to private part for wide character encoding
6204 * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
6205 (Look_Ahead): Fix mishandling of encoded sequences
6206 Move declaration of Wch_Con to private part (should not be visible)
6208 * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
6209 UTF-8. Probably this is never used, but if it is, brackets is
6212 * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
6213 setting wide character encoding for no main program case and when
6214 encoding is specified using -W?
6215 Initialize stack limit of environment task if stack limit method of
6216 stack checking is enabled.
6217 (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
6218 (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
6219 (Get_Main_Unit_Name): New function.
6220 (Gen_Adainit_Ada): Add call to main program for .NET when needed.
6221 (Gen_Output_File): Set Bind_Main_Program to True for .NET
6223 * bindusg.adb: Add line for -Wx switch
6225 * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
6227 Add new useful constant WC_Longest_Sequences
6229 * switch-b.adb: Clean up handling of -Wx switch
6230 For -gnatWx, set Wide_Character_Encoding_Method_Specified
6232 * switch-c.adb: -gnatg activates warning on assertion errors
6233 For -gnatWx, set Wide_Character_Encoding_Method_Specified
6235 * s-wchcon.adb: (Is_Start_Of_Encoding): New function
6237 2007-12-13 Robert Dewar <dewar@adacore.com>
6238 Ed Schonberg <schonberg@adacore.com>
6240 * a-ngcoty.adb: New pragma Fast_Math
6242 * opt.adb: New pragma Fast_Math
6245 Add Implemented_By_Entry to the list of pragmas which do not require any
6247 (Favor_Top_Level): New pragma.
6248 New pragma Fast_Math
6250 * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
6251 (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
6252 Expand_Allocator_Expression): Take into account VM_Target
6253 (Expand_Attribute, case 'Identity): Handle properly the case where
6254 the prefix is a task interface.
6255 New pragma Fast_Math
6257 * par.adb (Next_Token_Is): New function
6258 (P_Pragma): Add Skipping parameter
6259 (U_Left_Paren): New procedure
6260 (U_Right_Paren): New procedure
6261 New pragma Fast_Math
6263 * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
6265 New pragma Fast_Math
6267 * sem_prag.adb: Add significance value to table Sig_Flag for pragma
6268 Implemented_By_Entry.
6269 (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
6270 (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
6271 items, since it can apply to more than one overloadable entity. Set
6272 new flag Has_Pragma_Inline_Always for Inline_Always case.
6273 (Analyze_Pragma, case Complex_Representation): Improve error message.
6274 (Analyze_Pragma, case Assert): When assertions are disabled build the
6275 rewritten code with Sloc of expression rather than pragma, so new
6276 warning about failing is not deleted.
6277 (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
6278 protected types and update error message to reflect that. Test whether
6279 the protected type is allowed for the pragma (an error is issued if the
6280 type has any entries, or components that do not have preelaborable
6282 New pragma Fast_Math
6283 (Analyze_Pragma, case No_Return): Handle generic instance
6285 * snames.h, snames.ads, snames.adb:
6286 Add new predefined name for interface primitive _Disp_Requeue.
6287 New pragma Fast_Math
6289 * a-tags.ads, a-tags.adb: New calling sequence for
6290 String_To_Wide_[Wide_]String
6291 (Secondary_Tag): New subprogram.
6293 * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
6295 New calling sequence for String_To_Wide_[Wide_]String
6296 (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
6297 the use of the secondary stack for image routines.
6299 * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
6300 calling sequence for String_To_Wide_[Wide_]String
6302 * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
6304 (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
6305 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6307 * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
6308 (P_Formal_Part): Use Skipping parameter in P_Pragma call
6309 to improve error recovery
6311 * par-util.adb (Next_Token_Is): New function
6312 (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
6314 * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
6315 semicolon if missing
6316 (P_Pragma): Implement new Skipping parameter
6317 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6318 Fix location of flag for unrecognized pragma message
6320 * par-tchk.adb (U_Left_Paren): New procedure
6321 (U_Right_Paren): New procedure
6323 2007-12-13 Geert Bosch <bosch@adacore.com>
6326 (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
6327 the second or later Scaled_Divide would omit leading zeroes,
6328 resulting in too few digits produced and a Layout_Error as result.
6329 (Put): Initialize Pos.
6331 2007-12-13 Robert Dewar <dewar@adacore.com>
6333 atree.ads, atree.adb (Flag231..Flag247): New functions
6334 (Set_Flag231..Set_Flag247): New procedures
6335 (Basic_Set_Convention): Rename Set_Convention to be
6336 Basic_Set_Convention
6337 (Nkind_In): New functions
6338 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6340 * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
6342 of obsolete function Is_Always_Inlined
6343 (Register_Predefined_DT_Entry): Initialize slots of the second
6344 secondary dispatch table.
6345 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6346 (Expand_N_Function_Call): Remove special provision for stack checking.
6348 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
6349 Include _Disp_Requeue in the list of predefined operations.
6350 (Find_Interface_ADT): Modified to fulfill the new specification.
6351 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6353 * par-ch4.adb, nlists.ads, nlists.adb:
6354 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6356 * sinfo.ads, sinfo.adb: (Nkind_In): New functions
6357 Fix location of flag for unrecognized pragma message
6359 * sem_ch7.adb: Use Nkind_In
6361 2007-12-13 Vincent Celier <celier@adacore.com>
6364 Indicate what flags are used by the Project Manager, gprbuild and
6366 (Opt.Follow_Links_For_Dirs): New flag
6367 (Warn_On_Assertion_Failure): New flag
6368 (Wide_Character_Encoding_Method_Specified): New flag
6369 (Suppress_All_Inlining): New switch set by -fno-inline
6370 (Real_VMS_Target): New flag
6371 New pragma Fast_Math
6373 2007-12-13 Robert Dewar <dewar@adacore.com>
6375 * back_end.adb: Recognize -fno-inline
6377 2007-12-13 Robert Dewar <dewar@adacore.com>
6379 * checks.adb: Fix optimization problem with short-circuited form
6381 2007-12-13 Bob Duff <duff@adacore.com>
6383 * clean.adb (Usage): Add line for -aP
6384 (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
6385 with a parameter "procedure Usage", instead of passing a pointer to a
6386 procedure. This is to eliminate trampolines (since the Usage procedure
6387 is often nested in a main procedure, and it would be inconvenient to
6390 * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
6391 to be generic, with a parameter "procedure Callback (...)", instead of
6392 passing a pointer to a procedure. This is to eliminate trampolines
6393 (since the Callback procedure is usually nested).
6395 * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
6396 gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
6397 (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
6399 * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
6400 Use the generic Heap_Sort_G instead of Heap_Sort_A.
6402 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
6404 * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
6405 (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
6406 (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
6407 (Renamed_In_Spec): New flag
6408 (Has_Pragma_Inline_Always): New flag
6409 Add missing doc for pragma Obsolescent_Warning
6410 Add missing doc for 17 additional unused flags (230-247)
6411 (Is_Derived_Type): Remove condition "not Is_Generic_Type".
6412 Alphabetize with clauses.
6413 Separate Is_Thunk and Has_Thunks flags
6414 (Write_Entity_Flags): Add forgotten entry for Has_Thunks
6415 (Related_Interface): Renamed to Related_Type.
6416 (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
6417 (Set_Is_Flag): Restrict the assertion.
6419 2007-12-13 Vincent Celier <celier@adacore.com>
6421 * errout.adb (Output_Source_Line): Do not keep a trailing space after
6422 the source line number if the source line is empty.
6424 2007-12-13 Geert Bosch <bosch@adacore.com>
6426 * eval_fat.adb (Decompose_Int): Handle argument of zero.
6427 (Compose): Remove special casing of zero.
6428 (Exponent): Likewise.
6429 (Fraction): Likewise.
6430 (Machine): Likewise.
6431 (Decompose): Update comment.
6433 2007-12-13 Ed Schonberg <schonberg@adacore.com>
6435 * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
6436 limited ancestor part, initialize controllers of enclosing record
6437 before expanding ancestor aggregate.
6438 (Gen_Assign): If a component of the aggregate is box-initialized, add
6439 code to call Initialize if the component is controlled, and explicit
6440 assignment of null if the component is an access type.
6442 Handle properly aggregates for limited types that appear in object
6443 declarations when the aggregate contains controlled values such as
6445 When expanding limited aggregates into individual components, do not
6446 call Adjust on controlled components that are limited.
6448 2007-12-13 Ed Schonberg <schonberg@adacore.com>
6450 * expander.adb: Take into account N_Subprogram_Renaming_Declaration
6452 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
6454 * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
6455 predefined primitive _Disp_Requeue.
6456 (Make_Predefined_Primitive_Specs): Create the spec for predefined
6457 primitive _Disp_Requeue.
6458 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
6459 type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
6460 (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
6461 an interface type. In case of limited interfaces we now declare all the
6462 predefined primitives associated with synchronized interfaces as
6464 (Predef_Spec_Or_Body): For interface types generate abstract subprogram
6466 (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
6467 tagged type is an interface type and there is no user-defined equality
6469 Add also bodies of predefined primitives associated with synchronized
6471 (Freeze_Record_Type): Do not build bodies of predefined primitives of
6472 interface types because they are now defined abstract.
6473 Add missing documentation.
6474 (Expand_Record_Controller): Update occurrence of Related_Interface
6476 (Build_Offset_To_Top_Functions): Do nothing in case of VM.
6477 (Expand_N_Object_Declaration): Take into account VM_Target when handling
6478 class wide interface object declaration.
6479 (Expand_Previous_Access_Type): Do not create a duplicate master entity
6480 if the access type already has one.
6481 (Expand_N_Object_Declaration): Defend against attempt to validity check
6482 generic types. Noticed for -gnatVcf specified with previous errors.
6484 2007-12-13 Arnaud Charlet <charlet@adacore.com>
6486 * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
6487 Expand_Allocator_Expression): Take into account VM_Target
6489 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
6490 secondary stack when VM_Target /= No_VM
6492 2007-12-13 Javier Miranda <miranda@adacore.com>
6493 Ed Schonberg <schonberg@adacore.com>
6495 * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
6496 Is_Complation_Unit by Is_Library_Level_Entity in the code
6497 that decides if the static dispatch tables need to be built.
6498 (Wrap_Transient_Declaration): Do not generate a finalization call if
6499 this is a renaming declaration and the renamed object is a component
6500 of a controlled type.
6502 2007-12-13 Gary Dismukes <dismukes@adacore.com>
6504 * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
6505 In the case where the renamed subprogram is a dereference, call
6506 Force_Evaluation on the prefix.
6508 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
6509 Ed Schonberg <schonberg@adacore.com>
6511 * exp_ch9.adb (Expand_N_Asynchronous_Select,
6512 Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
6513 comment reformatting.
6514 (Set_Privals): Inherit aliased flag from formal. From code reading.
6515 (Build_Simple_Entry_Call): Out parameters of an access type are passed
6516 by copy and initialized from the actual. This includes entry parameters.
6517 (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
6518 and Ada 2005 models of requeue.
6519 (Null_Statements): Still connsider do-end block null if it contains
6520 Unreferenced and Warnings pragmas.
6521 (Expand_N_Accept_Statement): Do not optimize away null do end if
6522 dispatching policy is other than defaulted.
6523 (Expand_N_Timed_Entry_Call): When the triggering statement is a
6524 dispatching call, manually analyze the delay statement.
6525 (Find_Parameter_Type): Move subprogram to Sem_Util.
6527 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
6528 Javier Miranda <miranda@adacore.com>
6530 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
6531 _Disp_Requeue occupies dispatch table slot number 15. Move
6532 _Disp_Timed_Select to slot 16.
6533 (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
6534 generate the spec and body of _Disp_Reqeueue.
6535 (Make_DT): Build and initialize the second dispatch table.
6536 Handle initialization of RC_Offset when the parent
6537 is a private type with variable size components.
6538 (Make_Secondary_DT): Complete documentation. Add support to
6539 initialize the second dispatch table.
6540 (Make_Tags): Generate the tag of the second dispatch table.
6541 (Register_Primitive): Add support to register primitives in the
6542 second dispatch table.
6544 2007-12-13 Pascal Obry <obry@adacore.com>
6546 * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
6547 Windows. This signal is used by gnatmake to kill child processes for
6550 2007-12-13 Javier Miranda <miranda@adacore.com>
6552 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
6553 support for generic dispatching constructor calls in which we need to
6554 locate the tag of a secondary dispatch table associated with an
6555 interface type to properly dispatch the call.
6556 (Expand_N_Attribute_Reference [case Address],
6557 Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
6558 handling of VM targets.
6560 2007-12-13 Robert Dewar <dewar@adacore.com>
6561 Ed Schonberg <schonberg@adacore.com>
6563 * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
6566 * ug_words: Add entries for -gnatw.a -gnatw.A
6568 * sem_res.adb (Set_String_Literal_Subtype): If the context of the
6569 literal is a subtype with non-static constraints, use the base type of
6570 the context as the base of the string subtype, to prevent type
6572 (Resolve_Actuals): If the actual is an entity name, generate a
6573 reference before the actual is resolved and expanded, to prevent
6574 spurious warnings on formals of enclosing protected operations.
6575 (Analyze_Overloaded_Selected_Component): If type of prefix if
6576 class-wide, use visible components of base type.
6577 (Resolve_Selected_Component): Ditto.
6578 (Resolve_Short_Circuit): Detect case of pragma Assert argument
6579 evaluating to False, and issue warning message.
6581 * usage.adb: Add lines for -gnatw.a and -gnatw.A
6583 2007-12-13 Emmanuel Briot <briot@adacore.com>
6585 * g-calend.ads (No_Time): New constant, to represent an uninitialized
6588 * g-catiio.ads, g-catiio.adb (Value): Added support for more date
6590 (Month_Name_To_Number): New subprogram
6592 * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
6593 letter to upper-case.
6595 2007-12-13 Robert Dewar <dewar@adacore.com>
6596 Ed Schonberg <schonberg@adacore.com>
6598 * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
6600 * layout.adb (Resolve_Attribute, case 'Access): If designated type of
6601 context is a limited view, use non-limited view when available. If the
6602 non-limited view is an unconstrained array, this enforces consistency
6603 requirements in 3.10.2 (27).
6604 (Layout_Type): For an access type whose designated type is a limited
6605 view, examine its declaration to determine if it is an unconstrained
6606 array, and size the access type accordingly.
6607 (Layout_Type): Do not force 32-bits for convention c subprogram
6608 pointers in -gnatdm mode, only if real vms target.
6610 * sem_attr.adb (Analyze_Access_Attribute): Use new flag
6611 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
6612 (Analyze_Access_Attribute,Attribute_Address): Remove checks for
6613 violations of the No_Implicit_Dynamic_Code restriction.
6614 (Resolve_Attribute, case 'Access): If designated type of context is a
6615 limited view, use non-limited view when available. If the non-limited
6616 view is an unconstrained array, this enforces consistency requirements
6618 (Layout_Type): For an access type whose designated type is a limited
6619 view, examine its declaration to determine if it is an unconstrained
6620 array, and size the access type accordingly.
6622 2007-12-13 Vincent Celier <celier@adacore.com>
6624 * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
6625 object directory of main project does not exist.
6626 On VMS, correctly set then environment variable for the source
6629 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
6631 * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
6632 set to True this procedure will create the value of type REG_EXPAND_SZ.
6633 It was only possible to create REG_SZ values before.
6635 2007-12-13 Robert Dewar <dewar@adacore.com>
6637 * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
6638 g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
6639 namet-sp.adb, namet-sp.ads: New files.
6641 * g-speche.adb: Use generic routine in g-spchge
6643 * s-wchcnv.ads, s-wchcnv.adb:
6644 Minor code cleanup (make formal type consistent with spec)
6646 * namet.adb: Update comments.
6648 * par-endh.adb (Evaluate_End_Entry): Use new
6649 Namet.Sp.Is_Bad_Spelling_Of function
6651 * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
6653 * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
6654 ancestor is an access type initialized with a box, set its type
6655 explicitly, for use in subsequent expansion.
6656 (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
6659 2007-12-13 Robert Dewar <dewar@adacore.com>
6661 * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
6664 2007-12-13 Robert Dewar <dewar@adacore.com>
6666 * inline.adb (Back_End_Cannot_Inline): Use new flag
6667 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
6669 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
6670 Has_Pragma_Inline_Always instead.
6671 of obsolete function Is_Always_Inlined
6672 (Build_Body_To_Inline): Same change
6673 (Cannot_Inline): Same change
6674 Do not give warning on exception raise in No_Return function
6676 * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
6677 component has two inconsistent component clauses in the same record
6678 representation clause, favor the message that complains about
6679 duplication rather than inconsistency.
6681 (Record_Representation_Clause): Do not warn on missing component
6682 clauses for inherited components of a type extension.
6683 (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
6684 an overloadable item if it is a pragma that can apply to multiple
6685 overloadable entities (e.g. Inline) because a pragma cannot be on
6686 more than one chain at a time.
6687 (Validate_Unchecked_Conversion): Add code to warn on unchecked
6688 conversion where one of the operands is Ada.Calendar.Time.
6689 (Analyze_Attribute_Definition_Clause): Fix typo in error message.
6690 For now, ignore Component_Size clause on VM targets, as done for
6693 2007-12-13 Emmanuel Briot <briot@adacore.com>
6694 Vincent Celier <celier@adacore.com>
6696 * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
6698 (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
6700 (Hash): Move instantiation of System.HTable.Hash from spec to body
6701 (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
6702 systems, since we do not need to recompute the Name_Id for the canonical
6704 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
6705 as a parameter. This parameter is in fact always "ada" in all calls, and
6706 we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
6707 while loading a project with 40000 files
6709 * prj-attr.adb: Fix name of attribute Dependency_Driver
6710 Change the kind of indexing for attribute Root
6712 * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
6713 variables already declared, in case constructions.
6715 * prj-env.adb (Initialize): Reset Current_Source_Path_File and
6716 Current_Object_Path_File to No_Path.
6718 * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
6719 ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
6721 * prj-makr.adb: new parameter Current_Dir
6723 * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
6724 Ada sources when language is not Ada.
6725 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
6726 (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
6727 (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
6728 (Locate_Directory): Always resolve links when computing Canonical_Path
6729 (Look_For_Sources): Make sure that Name_Buffer contains the file name
6730 in Source_Files before checking for the presence of a directory
6732 Optimize calls to Name_Find when on case sensitive systems.
6733 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
6735 (Prj.Nmsc.Check): new parameter Current_Dir
6736 (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
6737 cannot be empty and the spec suffix cannot be the same as the body or
6739 (Get_Unit): When a file name can be of several unit kinds (spec, body or
6740 subunit), always consider the longest suffix.
6741 (Check_Configuration): Do not issue an error if there is no compiler
6742 for a language. Just issue a warning and ignore the sources for the
6744 (Check_Library_Attributes): Only check Library_Dir if Library_Name is
6746 (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
6747 (Unit_Exceptions): New hash table
6748 (Check_Naming_Schemes): Check if a file that could be a unit because of
6749 the naming scheme is not in fact a source because there is an exception
6751 (Look_For_Sources): Put the unit exceptions in hash table
6753 (Get_Unit_Exceptions): Give initial value No_Source to local variable
6754 Other_Part to avoid exception when code is compiled with validity
6756 (Get_Sources_From_File): Check that there is no directory information
6758 (Look_For_Sources): Check that there is no directory information in the
6759 list of file names in Source_Files.
6760 (Look_For_Sources): In multi-language mode, do not allow exception file
6761 names that are excluded.
6762 (Excluded_Sources_Htable): New hash table
6763 (Search_Directories.Check_File): New procedure to simplify
6765 (Search_Directories): Do not consider excluded sources
6766 (Look_For_Sources): Populate Excluded_Sources_Htable before calling
6768 (Get_Exceptions): Set component Lang_Kind of Source_Data
6769 (Get_Unit_Exceptions): Ditto
6770 (Search_Directories): Ditto
6772 * prj-pars.adb: new parameter Current_Dir
6774 * prj-part.ads, prj-part.adb:
6775 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
6776 (Opt.Follow_Links_For_Dirs): New flag
6777 (Project_Path_Name_Of): Cache information returned by this routine as
6778 Locate_Regular_File is a costly routine. The code to output a log
6779 information and the effective call to Locate_Regular_File is now
6780 factorized into a routine (code clean-up).
6781 (Parse, Parse_Single_Project): new parameter Current_Dir
6782 When main project file cannot be found, indicate in the error
6783 message the project path that was used to do the search.
6785 * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
6786 (Prj.Proc.Process*): new parameter Current_Dir
6788 * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
6790 2007-12-13 Bob Duff <duff@adacore.com>
6792 * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
6793 procedure to be called from the back end to check the
6794 No_Implicit_Dynamic_Code restriction.
6796 2007-12-13 Arnaud Charlet <charlet@adacore.com>
6798 * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
6799 Fixes another case where RTE_Available_Call was ignored instead of being
6803 * rtsfind.ads: Add new entries.
6805 2007-12-13 Robert Dewar <dewar@adacore.com>
6807 * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
6808 g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
6810 * scn.adb: Implement BOM recognition
6812 2007-12-13 Thomas Quinot <quinot@adacore.com>
6813 Ed Schonberg <schonberg@adacore.com>
6815 * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
6816 subprogram body that acts as its own spec may not have a non-private
6817 WITH clause on a private sibling.
6818 (Build_Unit_Name): If the parent unit in the name in a with_clause on a
6819 child unit is a renaming, create an implicit with_clause on that
6820 parent, and not on the unit it renames, to prevent visibility errors
6821 in the current unit.
6823 2007-12-13 Ed Schonberg <schonberg@adacore.com>
6825 * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
6826 renaming declaration, use the Slocs of the formal parameters from the
6827 declaration of the formal subprogram when creating the formal parameter
6828 entities in the renaming declaration.
6829 (Analyze_Formal_Type_Declaration): Change the placement of the error
6830 message concerning illegal known discriminants. It is now posted on the
6831 type rather than on the first discriminant. This change ensures early
6833 (Freeze_Subprogram_Body): If the generic subprogram is nested within
6834 the package body that contains the instance, do not generate an
6835 out-of-place freeze node for the enclosing package.
6836 (Collect_Previous_Instantiations): Ignore internal instantiations
6837 generated for formal packages.
6838 (Validate_Derived_Type_Instance): Add a check that when a formal
6839 derived type is Known_To_Have_Preelab_Init then the actual type must
6840 have preelaborable initialization, and issue an error when this
6841 condition is violated.
6843 2007-12-13 Robert Dewar <dewar@adacore.com>
6845 * s-imenne.adb, s-imenne.ads: New files.
6847 * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
6848 s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
6849 s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
6850 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
6851 s-imgwch.ads: New calling sequence for Image routines to avoid sec
6854 2007-12-13 Javier Miranda <miranda@adacore.com>
6855 Ed Schonberg <schonberg@adacore.com>
6857 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
6858 generation of spurious error if parent is an interface type; caused
6859 because predefined primitive bodies will be generated later by
6861 (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
6863 (Derive_Subprograms): Handle derivations of predefined primitives
6864 after all the user-defined primitives to ensure that they are
6865 found in proper order in instantiations.
6866 (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
6867 of Related_Interface to Related_Type.
6868 (Record_Type_Declaration): Minor reordering of calls to decorate the
6869 Tag component because the entity must have set its Ekind attribute
6870 before setting its Is_Tag attribute.
6871 (Analyze_Subtype_Declaration): In the case of subtypes with
6872 Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
6874 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
6875 Ed Schonberg <schonberg@adacore.com>
6877 * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
6878 statement to the list of contexts where a selected component with a
6879 concurrent tagged type prefix should yield a primitive operation.
6880 (Find_Primitive_Operation): Handle case of class-wide types.
6881 (Analyze_Overloaded_Selected_Component): If type of prefix is
6882 class-wide, use visible components of base type.
6883 (Resolve_Selected_Component): Ditto.
6884 (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
6885 formal of a generic subprogram. find candidate interpretations by
6886 scanning the list of generic formal declarations.:
6887 (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
6888 type from a limited_with_clause, and the full view is available, use it
6889 for subsequent semantic checks.
6890 (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
6891 (Find_Primitive_Operation): New function.
6892 (Analyze_Overloaded_Selected_Component): insert explicit dereference
6893 only once if several interpretations of the prefix yield an access type.
6894 (Try_Object_Operation): Code and comment cleanup.
6895 (Analyze_Selected_Component): Reorder local variables. Minot comment and
6896 code reformatting. When the type of the prefix is tagged concurrent, a
6897 correct interpretation might be available in the primitive and
6898 class-wide operations of the type.
6900 2007-12-13 Robert Dewar <dewar@adacore.com>
6901 Ed Schonberg <schonberg@adacore.com>
6903 * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
6904 renaming entry as subprogram using rename-as-body if subprogram spec
6906 (Use_One_Type): The clause is legal on an access type whose designated
6907 type has a limited view.
6908 (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
6909 (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
6910 (Analyze_Renamed_Primitive_Operation): new procedure to determine the
6911 operation denoted by a selected component.
6912 (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
6913 it can be an expression, possibly overloaded, that returns a task or
6916 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
6917 Gary Dismukes <dismukes@adacore.com>
6919 * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
6920 requeue statement is dispatching. Do not emit an error when the name is
6921 not an entry and the context is a dispatching select. Add code to
6922 perform subtype conformance between the formals of the current entry
6923 and those of the target interface primitive.
6924 (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
6925 Timed_Entry_Call): Analyze the triggering statement as the first step of
6926 the processing. If this is a dispatching select, postpone the analysis
6927 of all select statements until the Expander transforms the select. This
6928 approach avoids generating duplicate identifiers after the Expander has
6929 replicated some of the select statements. In case the Expander is
6930 disabled, perform regular analysis.
6931 (Check_Triggering_Statement): New routine.
6932 (Analyze_Requeue): Exclude any interpretations that are not entries when
6933 checking overloaded names in a requeue. Also test type conformance for
6934 matching interpretations rather than requiring subtype conformance at
6935 that point to conform with the RM's resolution rule for requeues.
6937 2007-12-13 Ed Schonberg <schonberg@adacore.com>
6939 * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
6940 inherited operation is a defaulted tag-indeterminate call, and there is
6941 a statically tagged actual, use the static tag as a controlling actual
6942 for the defaulted actual.
6944 2007-12-13 Geert Bosch <bosch@adacore.com>
6946 * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
6947 context, so do not call Check_Non_Static_Context.
6949 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
6951 * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
6952 whether formal E is an entity which may have parameters.
6954 2007-12-13 Bob Duff <duff@adacore.com>
6955 Javier Miranda <miranda@adacore.com>
6956 Robert Dewar <dewar@adacore.com>
6958 * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
6959 (Set_Convention): New procedure to set the Convention flag, and in
6960 addition make sure the Favor_Top_Level flag is kept in sync (all
6961 foreign-language conventions require Favor_Top_Level = True).
6962 (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
6964 (Collect_Interfaces_Info): Minor update to handle the two secondary
6965 dispatch tables. Update occurrence of Related_Interface to Related_Type.
6966 (Generate_Parent_Ref): Add parameter to specify entity to check
6967 (Is_Preelaborable_Expression): Allow the name of a discriminant to
6968 initialize a component of a type with preelaborable initialization.
6969 This includes the case of a discriminal used in such a context.
6970 (Is_Dependent_Component_Of_Mutable_Object): Take into account the
6971 latest Ada 2005 rules about renaming and 'Access of
6972 discriminant-dependent components.
6973 (Check_Nested_Access): Add handling when there are no enclosing
6974 subprograms (e.g. case of a package body).
6975 (Find_Parameter_Type): Factor routine from several other compiler files.
6976 Remove routine from Find_Overridden_Synchronized_Primitive.
6978 2007-12-13 Thomas Quinot <quinot@adacore.com>
6980 * sinput.adb (Get_Source_File_Index): Add assertion to guard against
6981 an invalid access to an uninitialized slot in the
6982 Source_File_Index_Table.
6984 2007-12-13 Thomas Quinot <quinot@adacore.com>
6986 * sinput-l.adb (Load_File): Disable style checks when preprocessing.
6988 2007-12-13 Bob Duff <duff@adacore.com>
6990 * s-soflin.ads: Apply new pragma Favor_Top_Level to all
6991 access-to-subprogram types in this package.
6993 2007-12-13 Olivier Hainque <hainque@adacore.com>
6995 * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
6996 with Stack_Grows_Down in System.Parameters. Rename Array_Address into
6997 Stack_Overlay_Address and document that we are using an internal
6999 (Byte_Size, Unsigned_32_Size): Remove, now useless.
7000 (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
7001 consistently throughout the various implementation pieces.
7003 * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
7004 overlay we are using to fill the stack area with patterns.
7005 (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
7006 (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
7007 (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
7009 2007-12-13 Robert Dewar <dewar@adacore.com>
7011 * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
7013 2007-12-13 Arnaud Charlet <charlet@adacore.com>
7016 (Create_Task): Take into account tasks created by foreign threads.
7017 Code clean up: use constants instead of hard coded values.
7019 2007-12-13 Robert Dewar <dewar@adacore.com>
7021 * styleg.adb (Check_Comment): More liberal rules for comment placement
7023 2007-12-13 Olivier Hainque <hainque@adacore.com>
7025 * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
7026 of Procedure Value instead of Frame Pointer as the invocation
7027 identifier associated with the instruction pointer in each traceback
7030 * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
7031 TB_Entry_For): Revert back to use of Procedure Value instead of Frame
7032 Pointer as the invocation identifier passed to tbk$symbolize.
7034 * s-traent-vms.ads, s-traent-vms.adb
7035 (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
7036 Procedure Value instead of Frame Pointer as the invocation identifier
7037 passed to tbk$symbolize.
7039 2007-12-13 Robert Dewar <dewar@adacore.com>
7041 * tbuild.ads, tbuild.adb:
7042 Fix location of flag for unrecognized pragma message
7044 2007-12-13 Robert Dewar <dewar@adacore.com>
7046 * treepr.ads, treepr.adb: (pl): implement use of positive value
7049 2007-12-13 Robert Dewar <dewar@adacore.com>
7051 * xeinfo.adb: Remove warnings
7052 * xnmake.adb: Remove warnings
7053 * xsinfo.adb: Remove warnings
7054 * xtreeprs.adb: Remove warnings
7055 * xsnames.adb: Remove warnings
7057 * a-ngcoar.adb: Fix typo.
7058 * s-interr.adb: Minor reformatting
7059 * env.c: Minor reformatting.
7060 * g-bytswa.adb: Minor reformatting.
7061 * g-rannum.ads: Minor documentation improvements
7062 * s-tasinf-mingw.adb: Minor header fix
7063 * a-clrefi.adb: Minor reformatting
7064 * g-sttsne.ads: Minor documentation improvement
7065 * g-sttsne-locking.ads: Minor documentation improvement
7066 * g-soliop-solaris.ads: Minor documentation improvement
7067 * g-soliop-mingw.ads: Minor documentation improvement
7068 * g-soliop.ads: Minor documentation improvement
7069 * exp_aggr.ads: Minor reformatting
7070 * debug.adb: Add documentation for the gprbuild debug flags
7071 * exp_ch2.adb: Use Nkind_In to simplify code throughout
7072 * exp_pakd.adb: Minor reformatting
7074 * g-altive.ads, g-alleve.adb: Remove assertions.
7075 Add comment about minor differences between targets regarding
7076 floating-point operations.
7078 * g-thread.adb: Remove pragma unreferenced.
7079 * lib.ads: Minor reformatting
7080 * par-ch9.adb: Minor reformatting of error messages
7081 * sem_case.adb: Minor reformatting
7082 * s-fileio.adb: Minor reformattinng
7083 * s-vmexta.ads: Minor typo
7085 Take into account 'Success' value as per new GNAT warning.
7087 2007-12-13 Vincent Celier <celier@adacore.com>
7089 * a-direct.adb (Create_Path): Always take '/' as a directory separator,
7092 2007-12-13 Robert Dewar <dewar@adacore.com>
7093 Bob Duff <duff@adacore.com>
7095 * gnat_ugn.texi: Dcoument new rules for style check comment alignment
7096 Document that suffixes may be terminations of each others
7097 Add doc for -gnatw.a and -gnatw.A
7098 Document gnatbind -Wx switch
7099 Document BOM recognition
7100 Document pragma Implemented_By_Entry.
7103 * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
7104 Add doc for pragma Unreferenced suppressing no entities referenced msg
7105 Add documentation of GNAT.Directory_Operations.Iteration
7106 Add documentation of GNAT.Random_Numbers
7107 Add documentation for pragma Shared.
7108 Correct documentation for Bit_Order
7109 Add documentation for the Pool_Address attribute.
7110 Fix and improve documentation of pragma machine_attribute.
7111 New pragma Fast_Math
7112 Document BOM recognition
7114 * vms_data.ads: Add entries for -gnatw.a -gnatw.A
7115 Add /Wide_Character_Encoding for binder
7116 Add qualifier for the new gnatpp option --no-separate-loop-then
7118 2007-12-13 Matthew Heaney <heaney@adacore.com>
7120 * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
7121 which generic formal operations are called for each operation.
7123 2007-12-13 Olivier Hainque <hainque@adacore.com>
7125 * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
7126 (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
7128 2007-12-13 Emmanuel Briot <briot@adacore.com>
7130 * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
7131 Reference_Dir unless we actually need it.
7133 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
7134 Tristan Gingold <gingold@adacore.com>
7136 * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
7139 a-calend-vms.adb: Remove pragma warning off and add pragma
7142 2007-12-13 Robert Dewar <dewar@adacore.com>
7144 * impunit.adb: Add entries for missing units
7146 * Makefile.rtl: Add new run-time units.
7148 * Make-lang.in: Update dependencies.
7150 2007-12-13 Bob Duff <duff@adacore.com>
7152 * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
7153 types, set Can_Use_Internal_Rep appropriately, based on
7154 Always_Compatible_Rep_On_Target.
7156 2007-12-13 Gary Dismukes <dismukes@adacore.com>
7157 Arnaud Charlet <charlet@adacore.com>
7159 * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
7160 it to the front end and setting the aamp_target environment variable
7161 to the switch's argument to ensure that gnaampbind and gnaamplink will
7162 take the specified library into account.
7163 (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
7164 target, since the CIL compiler supports an "object" file (.il files).
7166 2007-12-13 Vincent Celier <celier@adacore.com>
7168 * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
7169 (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
7171 2007-12-13 Geert Bosch <bosch@adacore.com>
7173 * s-parame-vxworks.adb:
7174 Update comments to reflect usage of this package by Nucleus.
7176 2007-12-13 Arnaud Charlet <charlet@adacore.com>
7178 * i-vxwork.ads: Kill new warning on Convention C, since changing the
7179 spec would break code.
7181 * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
7183 * system-vxworks-alpha.ads: Removed.
7185 2007-12-10 Eric Botcazou <ebotcazou@adacore.com>
7187 * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
7189 2007-12-09 Samuel Tardieu <sam@rfc1149.net>
7192 * sem_ch3.adb (Designates_T): New function.
7193 (Mentions_T): Factor reusable part of the logic into Designates_T.
7194 Consider non-access parameters and access and non-access result.
7195 (Check_Anonymous_Access_Components): Set ekind of anonymous access to
7196 E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
7198 * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
7200 2007-12-07 Ludovic Brenta <ludovic@ludovic-brenta.org>
7203 * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
7204 the new implementation of target-specific calls.
7206 2007-12-07 Olivier Hainque <hainque@adacore.com>
7208 * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
7209 the designated full view, only follow a second level Full_View link
7210 for Non_Limited_Views of from_limited_with references.
7212 2007-12-07 Samuel Tardieu <sam@rfc1149.net>
7215 * sem_ch6.adb (Process_Formals): Prevent an access type formal
7216 to be initialized with an access to constant object.
7218 * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
7219 when an access to constant is used to initialize an access
7223 * a-direct.adb (Compose): Containing_Directory can be an empty string.
7225 2007-12-07 Olivier Hainque <hainque@adacore.com>
7228 * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
7229 the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
7230 this is from an alignment clause on the GNAT entity.
7231 * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
7232 to distinguish the case where we set it from the type's alignment.
7233 When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
7234 whether this alignment was set from an explicit alignment clause.
7236 2007-12-06 Eric Botcazou <ebotcazou@adacore.com>
7238 * decl.c (make_packable_type): Revert last change.
7239 (gnat_to_gnu_field): Avoid setting size and position multiple times.
7240 * utils.c (finish_record_type): Retrieve the real name of the type.
7242 2007-12-05 Eric Botcazou <ebotcazou@adacore.com>
7244 * trans.c (lvalue_required_p): Take base node directly instead
7245 of its parent. Rename second parameter to 'gnu_type'.
7246 <N_Indexed_Component>: Return 0 if the node isn't the prefix.
7247 <N_Slice>: Likewise.
7248 (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
7249 Adjust calls to lvalue_required_p.
7251 2007-12-05 Samuel Tardieu <sam@rfc1149.net>
7254 * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
7255 parameters of an entry call.
7257 2007-12-03 Robert Dewar <dewar@adacore.com>
7258 Samuel Tardieu <sam@rfc1149.net>
7261 * sem_util.adb (Safe_To_Capture_Value): Do not capture values
7262 of variables declared in a library-level package.
7264 2007-12-02 Samuel Tardieu <sam@rfc1149.net>
7266 * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
7267 of Empty_String'Unchecked_Access.
7269 * Makefile.in: Add support for sh4-linux.
7271 * system-linux-sh4.ads: New file.
7273 2007-12-01 Kostik Belousov <kostikbel@ukr.net>
7276 * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
7277 and its argument must not be free()ed.
7279 2007-11-29 Eric Botcazou <ebotcazou@adacore.com>
7281 * decl.c (make_packable_type): Retrieve the real name of the type.
7282 (maybe_pad_type): Simplify similar code.
7284 2007-11-28 Samuel Tardieu <sam@rfc1149.net>
7287 * par-ch3.adb (P_Variant_Part): Signal an error when anything other
7288 than an identifier is used after "case" in a variant_part.
7291 * par-ch4.adb (Is_Parameterless_Attribute): New map.
7292 (P_Name, Scan_Apostrophe block): Parse left parenthesis following
7293 attribute name or not depending on the new map.
7295 * sem-attr.adb (Analyze_Attribute): Parameterless attributes
7296 returning a string or a type will not be called with improper
7299 * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
7301 * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
7304 * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
7305 Signal an error when attribute argument is a fixed-point value of
7309 * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
7310 a derived ordinary fixed point type.
7312 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
7313 RM_Size when a Small clause is found.
7315 2007-11-26 Andreas Krebbel <krebbel1@de.ibm.com>
7318 * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
7319 Pass 'false' for the new allocate_struct_function parameter.
7320 * utils.c (build_function_stub): Likewise.
7322 2007-11-25 Richard Guenther <rguenther@suse.de>
7324 * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
7325 (gnat_poplevel): Likewise.
7327 2007-11-25 Eric Botcazou <ebotcazou@adacore.com>
7329 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
7330 strict alignment, no alignment clause and a known static size, cap
7331 the type alignment to the greatest power of 2 factor of the size.
7332 (gnat_to_gnu_field): If the field has a component clause, is aliased
7333 or of a type with strict alignment, require that its size be equal to
7335 (validate_size): Use the type size as the minimum size for a type with
7338 2007-11-23 Samuel Tardieu <sam@rfc1149.net>
7340 * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
7341 s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
7342 s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
7343 Use 'Access instead of 'Unchecked_Access in second and third
7344 arguments of pthread_sigmask.
7346 2007-11-23 Eric Botcazou <ebotcazou@adacore.com>
7348 * decl.c (ceil_alignment): New function.
7349 (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
7350 (make_packable_type): Likewise.
7352 2007-11-22 Olivier Hainque <hainque@adacore.com>
7354 * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
7355 to fit in 80 columns.
7357 2007-11-21 Aurelien Jarno <aurelien@aurel32.net>
7359 * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
7360 * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
7362 2007-11-19 Eric Botcazou <ebotcazou@adacore.com>
7365 * misc.c (gnat_adjust_rli): Delete.
7366 (gnat_init): Do not initialize the translation code here.
7367 Do not call set_lang_adjust_rli.
7368 * trans.c (init_code_table): Make static.
7369 (gnat_init_stmt_group): Delete.
7370 (gigi): Initialize the translation code entirely here.
7371 Emit debug info for the common types here instead of...
7372 * utils.c (gnat_init_decl_processing): ...here.
7373 * gigi.h (init_code_table): Delete.
7374 (gnat_init_stmt_group): Likewise.
7376 2007-11-16 Olivier Hainque <hainque@adacore.com>
7378 * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
7379 retrieving an allocator return value from a super-aligned address from
7381 * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
7382 expect a super-aligned address for a fat or thin pointer.
7384 2007-11-14 Eric Botcazou <ebotcazou@adacore.com>
7386 * trans.c (call_to_gnu): Always set the source location on the call
7387 expression. If the function returns-by-target, also set it on the
7390 2007-11-14 Samuel Tardieu <sam@rfc1149.net>
7392 * adaint.c, init.c, initialize.c, link.c: Remove system-specific
7393 sections of non-supported Interix target.
7395 * s-osinte-interix.ads: Removed.
7397 * i-cstrin.ads (chars_ptr): Make it a C convention type.
7399 2007-11-13 Samuel Tardieu <sam@rfc1149.net>
7401 * a-tasatt.adb: Add a comment at the beginning of the package
7402 explaining why in general 'Unchecked_Access must be used instead
7405 * sem_prag.adb (Process_Convention): Move the test for the
7406 entity on which the Convention pragma applies down to also
7407 forbid pragma Convention on enumeration literals reached
7410 2007-11-10 Samuel Tardieu <sam@rfc1149.net>
7412 * a-tasatt.adb: Revert previous change for this file as it will
7413 generate an error when this package is instantiated from a
7416 2007-11-07 Samuel Tardieu <sam@rfc1149.net>
7418 * a-tasatt.adb: Type Wrapper should be declared in comment instead
7419 of already declared type Node_Access.
7420 Use 'Access instead of 'Unchecked_Access when applicable. Local
7421 lifetime is the one of the package.
7422 (Set_Value): W is allocated on the heap.
7424 * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
7426 (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
7428 (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
7431 * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
7433 (elaboration code): Timer_Queue lifetime is the one of the
7436 * tracebak.c (i386 alternative): Remove useless comparaison
7437 which is always false; LOWEST_ADDRESS is 0 and is never greater
7438 than an unsigned integer.
7440 * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
7441 embedded check for "Ada_Version >= Ada_05".
7443 2007-11-07 Olivier Hainque <hainque@adacore.com>
7445 * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
7446 craft and expand comment.
7448 2007-11-01 Eric Botcazou <ebotcazou@adacore.com>
7450 * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
7452 2007-10-23 Eric Botcazou <ebotcazou@adacore.com>
7454 * misc.c (gnat_handle_option): Replace call to abort with
7455 call to gcc_unreachable.
7456 (gnat_init): Likewise.
7457 (gnat_expand_expr): Likewise.
7458 (fp_prec_to_size): Likewise.
7459 (fp_size_to_prec): Likewise.
7461 2007-10-23 Richard Guenther <rguenther@suse.de>
7464 * tracebak.c: #undef abort after including system.h.
7466 2007-10-20 Danny Smith <dannysmith@users.sourceforge.net>
7468 * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
7469 s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
7471 (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
7473 2007-10-15 Eric Botcazou <ebotcazou@adacore.com>
7475 * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
7476 Set the protection status of the guard page based on the value of On.
7478 * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
7480 * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
7481 (Exit_Task): Pass False to Hide_Yellow_Zone.
7483 2007-10-15 Robert Dewar <dewar@adacore.com>
7485 * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
7486 s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
7487 a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
7488 checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
7489 freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
7490 gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
7491 mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
7492 prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
7493 sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
7494 s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
7495 uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
7496 a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
7497 a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
7498 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
7499 a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
7500 a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
7502 Add Unreferenced and Warnings (Off) pragmas for cases of
7503 variables modified calls where they are IN OUT or OUT parameters and
7504 the resulting values are not subsequently referenced. In a few cases,
7505 we also remove redundant code found by the new warnings.
7507 * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
7508 sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
7509 sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
7510 sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
7511 warning controlled by -gnatw.o that warns on cases of out parameter
7512 values being ignored.
7514 2007-10-15 Geert Bosch <bosch@adacore.com>
7516 * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
7518 * expect.c: Initial port to arm-mentor-nucleus.
7519 Use kill for __gnat_kill() on VMS.
7521 2007-10-15 Emmanuel Briot <briot@adacore.com>
7523 * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
7525 (Xref_Record): Change type for Line, since in the case of a reference to
7526 a predefined entity (as happens for array index types), the line is set
7528 Add support for parsing multiple array index types info, or
7529 multiple inherited interfaces info. This information cannot be stored
7530 in Xref_Entity_Record, which only supports a single instance of Tref_*,
7531 and is therefore stored in the list of references instead. It has a
7532 special treatement later on in tools that use this information.
7534 2007-10-15 Tristan Gingold <gingold@adacore.com>
7536 * debug.adb: Document use of -gnatd.a and -gnatd.I
7538 * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
7540 2007-10-15 Javier Miranda <miranda@adacore.com>
7542 * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
7543 Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
7544 care of access to class-wide interface types plus removal of bizarre
7545 conversion of tagged object to access type (reported by Gary
7546 Dismukes). After this patch there is no need to perform any
7547 additional management on these nodes in Expand_Interface_Actuals.
7549 * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
7550 that handles use of 'Access and 'Unchecked_Access applied to
7551 actuals covering interface types. Such code is now
7552 centralized in Expand_N_Attribute_Reference.
7554 2007-10-15 Ed Schonberg <schonberg@adacore.com>
7556 * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
7557 of tagged types whose ultimate ancestor is a CPP type.
7558 (Freeze_Array_Type): For a packed array type, generate an initialization
7559 procedure if the type is public, to handle properly a client that
7560 specifies Normalize_Scalars.
7562 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
7564 * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
7565 inside a generic body, retrieve the full view of the entry family
7566 discrete subtype if available.
7568 2007-10-15 Thomas Quinot <quinot@adacore.com>
7570 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
7571 attempt to generate stubs for hidden primitive operations.
7573 2007-10-15 Vincent Celier <celier@adacore.com>
7575 * mlib-tgt-specific.adb (Support_For_Libraries): New function,
7576 returning None, used when there is no platform specific body for
7579 2007-10-15 Bob Duff <duff@adacore.com>
7581 * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
7582 (passing'Unrestricted_Access of nested subprograms to Sort) with use of
7583 the generic Heap_Sort_G, in order to avoid trampolines.
7585 2007-10-15 Vasiliy Fofanov <fofanov@adacore.com>
7586 Jose Ruiz <ruiz@adacore.com>
7588 * vx_stack_info.c: New file.
7590 * i-forbla-unimplemented.ads: New file.
7592 * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
7593 for unsupported configurations; use it on VMS targets instead of the
7595 (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
7596 vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
7597 used by VxWorks targets to have access to task-specific data and be
7598 able to extract the stack boundaries for stack checking.
7599 Use system-vms-ia64.ads on ivms.
7601 * Make-lang.in: Update dependencies.
7603 * sysdep.c (__gnat_get_stack_info): Move to a standalone file
7606 2007-10-15 Vincent Celier <celier@adacore.com>
7608 * snames.adb, snames.ads: Add new standard name runtime_library_dir
7610 * prj.ads (Language_Config): Add new component Runtime_Library_Dir
7612 * prj-attr.adb: Add project level attribute Runtime_Library_Dir
7614 * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
7615 the source is unknown.
7617 * prj-ext.adb: Spelling error fix
7619 * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
7620 95 reserved word in its name.
7621 (Process_Project_Level_Array_Attributes): Process new attribute
7622 Runtime_Library_Dir.
7624 * prj-part.adb (Parse_Single_Project): Do not check the name of the
7625 config project against the user project names.
7627 * prj-proc.adb (Expression): In multi-language mode, indexes that do
7628 not include a dot are always case insensitive.
7629 (Process_Declarative_Items): Ditto
7630 (Process_Project_Tree_Phase_1): Set Success to False in case an error is
7633 * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
7634 True, compare both indexes in lower case.
7636 2007-10-15 Robert Dewar <dewar@adacore.com>
7638 * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
7640 2007-10-15 Gary Dismukes <dismukes@adacore.com>
7642 * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
7643 association for an access component, add an association with null as
7644 the expression. Remove testing for array subtypes and the setting in
7645 that case of Ctyp to the array component type, which prevented proper
7646 inclusion of an association for null-initialized arrays. Collapse
7647 condition that tests for array subtypes into just a test of
7648 Is_Partially_Initialized_Type (which already covers arrays anyway).
7650 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
7652 * sem_ch12.adb: Minor code reformatting.
7653 (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
7654 find the parent package which may have been hidden by local
7657 2007-10-15 Gary Dismukes <dismukes@adacore.com>
7659 * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
7660 flag of derived concurrent types, taking into account the flag setting
7661 on the parent subtype and any new set of discriminants.
7663 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
7665 * sem_ch4.adb: Minor code and comment reformatting.
7666 (Analyze_Allocator): When the designated type of an unconstrained
7667 allocator is a record with unknown discriminants or an array with
7668 unknown range bounds, emit a detailed error message depending on the
7669 compilation mode and whether the designated type is limited.
7671 2007-10-15 Tristan Gingold <gingold@adacore.com>
7673 * system-vms-ia64.ads: New file.
7675 * system-vms_64.ads: Minor comment fix.
7677 2007-10-15 Ed Schonberg <schonberg@adacore.com>
7679 * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
7680 body generated for a function with a controlling result that is a null
7681 extension, discard the generated body in favor of the current explicit
7684 2007-10-15 Ed Schonberg <schonberg@adacore.com>
7686 * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
7687 examining its original form, to handle properly operator calls that
7688 have been rewritten.
7690 2007-10-15 Olivier Hainque <hainque@adacore.com>
7692 * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
7693 instead of a procedure value in each traceback entry.
7695 * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
7696 instead of procedure value to TBK$SYMBOLIZE.
7698 * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
7700 (TB_Entry_For): Account for the PV/FP renaming.
7702 * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
7704 (Null_TB_Entry): Account for change of component name.
7705 (PV_For): Rename as FP_For.
7707 2007-10-15 Tristan Gingold <gingold@adacore.com>
7709 * trans.c (gnat_to_gnu): Remove the padding structure more often.
7710 This optimize assignment to over-aligned record.
7712 2007-10-15 Emmanuel Briot <briot@adacore.com>
7714 * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
7717 * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
7718 type, for dispatching calls.
7720 2007-10-15 Vincent Celier <celier@adacore.com>
7721 Robert Dewar <dewar@adacore.com>
7723 * gnat_ugn.texi: Add documentation for switches --version and --help
7724 for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
7725 gnatxref, gnatfind, gnatls, and gnatclean.
7727 Mention attribute Excluded_Source_Dirs
7728 Replace obsolescent attribute Locally_Removed_Files with attribute
7729 Excluded_Source_Files.
7730 Improve documentation of -u (gnatbind)
7731 Document how to do reliable stack checking for the environmental task
7734 * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
7735 Document attribute Excluded_Source_Files and indicate that attribute
7736 Locally_Removed_Files is obsolescent.
7738 2007-10-15 Thomas Quinot <quinot@adacore.com>
7740 * g-soccon-vms.ads: Fix value of MSG_WAITALL.
7743 Update documentation to note that OpenVMS 8.3 or later must be used
7744 to generate g-soccon-vms.ads.
7746 * atree.adb: Add ??? comment
7748 * exp_util.adb: Minor reformatting.
7749 Add ??? comment in Kill_Dead_Code.
7751 2007-10-15 Robert Dewar <dewar@adacore.com>
7753 * errout.ads: Comment clarification
7755 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
7756 (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
7758 * lib.ads: Comment update
7760 * init.c: Minor reformatting.
7762 * sem_attr.adb: Minor formatting
7764 * osint-b.ads: Minor reformatting
7766 * sem_ch9.adb: Implement -gnatd.I switch
7768 * g-comlin.adb: (Start): Fix handling of empty command line.
7770 * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
7771 even when -rules follows the -cargs section.
7773 2007-10-08 Ollie Wild <aaw@google.com>
7775 * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
7777 (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
7779 (gnat_eh_runtime_type): Removed.
7780 (gnat_return_tree): New function.
7782 2007-10-08 Ben Elliston <bje@au.ibm.com>
7786 2007-08-31 Ben Elliston <bje@au.ibm.com>
7788 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
7789 when compiling for powerpc64-*-linux.
7790 * system-linux-ppc64.ads: New file.
7792 2007-09-27 Eric Botcazou <ebotcazou@adacore.com>
7794 Mapped location support
7795 * back_end.adb (Call_Back_End): Pass information about source
7796 files instead of units to gigi.
7797 * gigi.h (struct File_Info_Type): New.
7798 (gigi): Rename and change type of number_units parameter, change
7799 type of file_info_ptr parameter.
7800 * trans.c (number_files): New global variable.
7801 (gigi): Rename and change type of number_units parameter, change
7802 type of file_info_ptr parameter.
7803 If mapped location support is enabled, create the isomorphic mapping
7804 between source files and line maps.
7805 (Sloc_to_locus): If mapped location support is enabled, translate
7806 source location into mapped location.
7807 (annotate_with_node): Rename into set_expr_location_from_node.
7808 Call set_expr_location instead of annotate_with_locus.
7809 (Pragma_to_gnu): Adjust for above change.
7810 (Loop_Statement_to_gnu): Likewise.
7811 (call_to_gnu): Likewise.
7812 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
7813 (gnat_to_gnu): Likewise.
7814 (add_stmt_with_node): Likewise.
7815 (add_cleanup): Likewise.
7816 * utils.c (gnat_init_decl_processing): Do not set input_line.
7818 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
7820 * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
7821 (Applicable_Use): Emit a warning when a package tries to use itself.
7822 (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
7823 is already in use or the package where it is declared is in use or is
7824 declared in the current package.
7825 (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
7827 * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
7828 s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
7829 s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
7831 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
7833 * a-calend-vms.adb, a-calend.adb:
7834 Add a section on leap seconds control along with two entities used to
7835 enable and disable leap seconds support. The array Leap_Second_Times is
7836 now constant and contains hard time values pre-generated. Remove
7837 all elaboration code used to populate the table of leap seconds.
7840 Add entity Leap_Seconds_Support to the list of global run-time variables
7841 along with a comment on its usage and values.
7842 (Gen_Adainit_Ada): Add code to generate the declaration and import of
7843 Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
7844 or one (enabled) depending on the presence of binder switch "-y".
7845 (Gen_Adainit_C): Add code to generate the declaration of external int
7846 __gl_leap_seconds_support. Set is value to zero (disabled) or one
7847 (enabled) depending on the presence of binder switch "-y".
7849 * init.c: Add __gl_leap_seconds_support to the list of global values
7850 computed by the binder.
7852 2007-09-26 Jerome Guitton <guitton@adacore.com>
7854 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
7855 s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
7856 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
7857 s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
7859 * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
7861 * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
7862 function which can be called by the debugger to interrupt the tasks of
7863 an Ada application asynchronously, as needed on VxWorks.
7864 (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
7866 * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
7867 renamed from Stop_All_Tasks. Update comments.
7868 (Stop_All_tasks): New function declaration.
7870 2007-09-26 Olivier Hainque <hainque@adacore.com>
7872 * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
7873 #include <utime.h> and #define GCC_RESOURCE_H before
7874 #include <sys/wait.h>.
7875 Add more protections in __gnat_translate_vms.
7877 * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
7878 #include <sys/wait.h>.
7880 2007-09-26 Thomas Quinot <quinot@adacore.com>
7881 Sergey Rybin <rybin@adacore.com>
7883 * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
7885 * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
7888 * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
7890 * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
7893 * sem_dist.ads: Minor comment fix
7895 * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
7897 2007-09-26 Javier Miranda <miranda@adacore.com>
7898 Eric Botcazou <ebotcazou@adacore.com>
7901 (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
7902 indirection added to the HT_Link component of the TSD. This is required
7903 to statically allocate the TSD.
7906 Minor reordering of the declarations in the private part. Required to
7907 add a level of indirection to the contents of the TSD component HT_Link.
7908 This is required to statically allocate the TSD.
7910 * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
7911 Is_Statically_Allocated set from constant objects.
7912 Do not make exported constants created by the compiler volatile.
7913 (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
7916 * trans.c (Identifier_to_gnu): For constants, unshare initializers
7917 before returning them.
7919 * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
7920 public part of the package.
7921 (Make_DT): Move HT_Link component out of the TSD record. For this
7922 purpose Make_DT now declares a separate object that stores the
7923 HT_Link value, and initializes the TSD component with the address
7924 of this new object. The addition of this level of indirection is
7925 required to statically allocate the TSD because the TSD cannot
7926 have variable components.
7927 (Expand_Interface_Conversion): Improve the expanded code.
7928 (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
7930 * sem_disp.adb (Check_Dispatching_Operation): In case of a body
7931 declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
7932 if we are building static dispatch tables then we must not generate
7933 extra code to register the primitive because the dispatch table will
7934 be built at the end of the library package; otherwise we notify that
7935 we cannot build the static dispatch table.
7937 2007-09-26 Robert Dewar <dewar@adacore.com>
7939 * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
7942 * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
7943 (Analyze_Record_Representation_Clause): Suppress junk warning for
7944 missing component clause.
7945 (Analyze_Attribute_Definition_Clause, case Address): Apply the special
7946 tests for controlled type overlay to composites with controlled
7948 (Analyze_Record_Representation_Clause): Add reference for component name
7950 2007-09-26 Javier Miranda <miranda@adacore.com>
7951 Gary Dismukes <dismukes@adacore.com>
7953 * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
7954 for thunks associated with interface types.
7956 * einfo.ads: Improve documentatation of Is_Internal
7957 (Is_Thunk): New attribute applicable to subprograms. True for thunks
7958 associated with interface types.
7959 Extensive comment fixes regarding flags that appear in all entities. The
7960 documentation is now consistent for all such flags (there were a number
7961 of errors in the documentation in this regard).
7963 * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
7965 * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
7966 of these procedures are passed a function call that already has
7967 build-in-place actuals (testing new flag
7968 Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
7969 the case where processing continues.
7970 (Expand_Call): If the call is generated from a thunk body then we
7971 propagate the extra actuals associated with the accessibility
7972 level of the access type actuals.
7974 * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
7975 of each extra formal of a protected operation to reference the
7976 corresponding extra formal of the subprogram denoted by the
7977 operation's Protected_Body_Subprogram.
7979 * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
7980 N_Function_Call nodes.
7982 2007-09-26 Robert Dewar <dewar@adacore.com>
7984 * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
7986 * debug.adb: Add d.s flag.
7988 2007-09-26 Gary Dismukes <dismukes@adacore.com>
7990 * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
7991 debug variable so that it won't be initialized when pragma
7992 Initialize_Scalars is in effect.
7994 2007-09-26 Gary Dismukes <dismukes@adacore.com>
7996 * freeze.adb (Freeze_Entity): Remove check for preelaborable
7997 initialization of a full view. This is moved to
7998 Analyze_Package_Specification.
8000 * sem_ch7.adb (Analyze_Package_Specification): Add check for
8001 preelaborable initialization of a full view in entity loop.
8002 (Uninstall_Declarations): If entity is a use-visible compilation unit,
8003 its child units are use-visible only if they are visible child units.
8005 * sem_util.adb (Is_Preelaborable_Expression): New function to determine
8006 whether an expression can be used within a type declaration that
8007 requires preelaborable init.
8008 (Check_Components): Replace inline code that does partial checking for
8009 preelaborable default expressions with call to
8010 Is_Preelaborable_Expression.
8011 (Has_Preelaborable_Initialization): In the case of a generic actual
8012 subtype, (that is, Is_Generic_Actual is True), return the result of
8013 applying Has_Preelaborable_Initialization to the generic actual's base
8016 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
8018 * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
8019 call to Jan_1_Day _Of_Week to optimize its performance.
8020 (Is_Leap): Move the routine to the scope of Week_In_Year.
8021 (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
8022 weekday on which January 1 falls of Year - 1 and Year + 1. This function
8023 avoids calling Time_Of and Split, thus making it more efficent.
8024 (Week_In_Year): Reimplemented in oder to follow ISO 8601.
8026 * g-calend.ads (Week_In_Year): Change comment to reflect new
8029 2007-09-26 Emmanuel Briot <briot@adacore.com>
8031 * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
8032 Command_Line): New types
8033 (Define_Alias, Define_Prefix, Free): New subprograms. These provide
8034 support for defining how switches can be grouped on a command line (as
8035 is the case for -gnatw... for GNAT), and how simple switches can be
8036 used as aliases for more complex switches (-gnatwa is same as
8038 (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
8039 (Start, Current_*): New subprograms
8040 Added support for parsing an array of strings in addition to the real
8042 (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
8043 be moved from the body to the private part of the spec.
8044 (*): All subprograms now have an extra parameter with default value to
8045 specify which parser should be used. For backward compatibility, it
8046 defaults to parsing the command line of the application. They were also
8047 modified to properly handle cases where each of the argument does not
8048 start at index 1 (which is always true for Ada.Command_Line, but not
8049 when processing any Argument_List).
8050 (Free): New subprogram
8051 (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
8052 Argument): New subprograms
8053 (Switch_Parameter_Type): New enum, which clarifies the code. The extra
8054 special characters like ':', '=',... are now handled in a single place,
8055 which makes the code more extensible eventually.
8056 (Getopt, Full_Switch): When the switch was returned as part of the
8057 special character '*', make sure it is prepended by the switch character
8058 ('-' in general), so that the application knows whether "foo" or "-foo"
8059 was specified on the command line.
8061 2007-09-26 Florian Villoing <villoing@adacore.com>
8063 * g-dirope.adb (Remove_Dir): In case we are removing directories
8064 recursively, make sure that if an exception is raised during the
8065 processing, the current working directory is reset to its initial
8066 value before propagating the exception.
8068 2007-09-26 Vincent Celier <celier@adacore.com>
8070 * gnatbind.adb: If there are several ALI files specified and there is
8071 a main program to bind, the first ALI is expected to contain the main
8072 subprogram and the names of the binder generated files will be derived
8073 from the first ALI file name.
8074 (Gnatbind): Fix insertion character in invocation of Error_Msg
8076 2007-09-26 Vincent Celier <celier@adacore.com>
8078 * gnatcmd.adb (Check_Files): Do not include sources that have been
8079 removed by attributes Exclude_Source_Files or Locally_Removed_Files.
8081 2007-09-26 Ed Schonberg <schonberg@adacore.com>
8083 * lib-xref.ads, lib-xref.adb: The entry for array types now carries
8084 information about each of its index types, following the type
8085 reference for its component type.
8087 2007-09-26 Vincent Celier <celier@adacore.com>
8089 * make.adb: (Kill): New procedure (__gnat_kill imported)
8090 (Running_Compile, Outstanding_Compiles): Global variables that
8091 were previously local to procedure Compile_Sources.
8092 (Sigint_Intercepted): Send signal SIGINT to all outstanding
8093 compilation processes.
8095 (Gnatmake): If project files are used, create the mapping of all the
8096 sources, so that the correct paths will be found.
8098 * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
8100 2007-09-26 Vincent Celier <celier@adacore.com>
8102 * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
8104 * prj.ads, prj.adb (Default_Language): Remove function, no longer used
8105 Replace components Compiler_Min_Options and Binder_Min_Options with
8106 Compiler_Required_Switches and Binder_Required_Switches in record
8108 Remove components Default_Language and Config in Project_Tree_Data,
8111 * prj-attr.adb: New attributes Required_Switches (<language>) in
8112 packages Compiler and Binder.
8114 * prj-nmsc.adb: Major rewrite of the processing of configuration
8115 attributes for gprbuild. No impact on GNAT tools.
8117 * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
8118 process configuration attributes: this is done in Prj.Nmsc.Check.
8119 (Recursive_Process): Make a full copy of packages inherited from project
8120 being extended, instead of a shallow copy.
8121 (Process_Project_Tree_Phase_1): New procedure
8122 (Process_Project_Tree_Phase_1): New procedure
8123 (Process): Implementation now uses the two new procedures
8125 * prj-util.adb (Executable_Of): Get the suffix and the default suffix
8126 from the project config, not the tree config that no longer exists.
8128 2007-09-26 Vincent Celier <celier@adacore.com>
8130 * Make-lang.in: Update dependencies..
8132 2007-09-26 Vincent Celier <celier@adacore.com>
8134 * osint.adb, osint.ads: Minor reformatting
8136 * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
8138 2007-09-26 Gary Dismukes <dismukes@adacore.com>
8140 * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
8141 message to cite use of <> in aggregate component associations rather
8142 than wrongly indicating use of limited aggregates.
8144 2007-09-26 Robert Dewar <dewar@adacore.com>
8146 * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
8149 2007-09-26 Ed Schonberg <schonberg@adacore.com>
8151 * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
8152 ancestor of the derived type, the operations are inherited from the
8153 primary dispatch table of the parent.
8154 (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
8155 when the context is an explicit type conversion.
8157 2007-09-26 Ed Schonberg <schonberg@adacore.com>
8159 * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
8160 rule for qualified expressions properly, to detect improper conversions
8161 and resolve some cases of overloading.
8163 2007-09-26 Ed Schonberg <schonberg@adacore.com>
8165 * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
8166 proper kind of reference to the primitive operation, for better source
8168 (Valid_Conversion): A tagged conversion is legal if both operands are
8171 2007-09-26 Robert Dewar <dewar@adacore.com>
8173 * sem_warn.adb (Check_References): Catch more cases of unreferenced
8176 2007-09-26 Vincent Celier <celier@adacore.com>
8178 * snames.adb, snames.ads: Change Include_Option to Include_Switches
8180 2007-09-26 Robert Dewar <dewar@adacore.com>
8182 * s-wchstw.adb: provide messages for run time unit exceptions
8184 * a-witeio.adb: Minor reformatting
8186 * exp_ch13.adb: Minor reformatting
8188 2007-09-26 Sergey Rybin <rybin@adacore.com>
8190 * vms_data.ads: Revise gnatmetric qualifiers.
8191 Add qualified for the new gnatbind option '-y'
8193 * gnat_ugn.texi: Revise the gnatmetric section.
8194 Add entry for new gnatbind option '-y'.
8196 * gnat_rm.texi: Minor spelling correction.
8197 Document restriction on overlaying controlled types
8199 2007-09-26 Vincent Celier <celier@adacore.com>
8201 * makegpr.adb (Link_Executables): Do not fail when the root project has
8202 no sources, but is an extending project.
8204 2007-09-25 Eric Botcazou <ebotcazou@adacore.com>
8206 * trans.c: Fix misplaced #define.
8208 2007-09-22 Eric Botcazou <ebotcazou@adacore.com>
8210 * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
8211 the TYPE_REF_CAN_ALIAS_ALL flag to the result.
8213 2007-09-21 Olivier Hainque <hainque@adacore.com>
8215 * utils.c (type_for_nonaliased_component_p): Return false for
8216 all AGGREGATE_TYPEs.
8218 2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
8220 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
8221 object covered by 13.3(19) volatile.
8223 2007-09-12 Eric Botcazou <ebotcazou@adacore.com>
8227 * utils.c (unchecked_convert): Use a subtype as the intermediate type
8228 in the special VIEW_CONVERT_EXPR case.
8230 2007-09-12 Robert Dewar <dewar@adacore.com>
8232 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
8234 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
8235 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
8236 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
8237 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
8238 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
8239 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
8240 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
8241 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
8242 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
8243 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
8244 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
8245 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
8246 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
8247 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
8248 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
8249 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
8250 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
8251 pragma Compiler_Unit and adds it to relevant library units.
8253 2007-09-12 Ed Schonberg <schonberg@adacore.com>
8255 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
8256 a box need not correspond to any component.
8258 2007-09-12 Robert Dewar <dewar@adacore.com>
8260 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
8261 the tasking version of the Ada run time when foreign threads are
8262 present and there are no explicit Ada tasks or tasking constructs.
8264 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
8266 2007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
8268 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
8269 the usage of switch -y.
8271 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
8272 when switch -y is present.
8274 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
8275 leap seconds in Ada.Calendar and its children.
8277 2007-09-12 Jose Ruiz <ruiz@adacore.com>
8279 * a-extiti.ads (Timer): The discriminant is a "not null access
8280 constant" in the Reference Manual.
8281 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
8283 2007-09-12 Robert Dewar <dewar@adacore.com>
8285 * a-swuwha.adb: Remove junk RM header
8287 2007-09-12 Vincent Celier <celier@adacore.com>
8289 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
8292 * g-bytswa.ads: Minor reformatting
8294 2007-09-12 Thomas Quinot <quinot@adacore.com>
8296 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
8297 Add new constant Thread_Blocking_IO, always True by default, set False
8298 on a per-runtime basis.
8299 (Need_Netdb_Buffer): New constant.
8301 2007-09-12 Arnaud Charlet <charlet@adacore.com>
8303 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
8304 Added renames for corresponding functions in System.Partition_Interface.
8306 2007-09-12 Doug Rupp <rupp@adacore.com>
8308 * Makefile.in: Remove VMS specific System.CRTL packages which are no
8311 * s-crtl-vms64.ads: Removed.
8313 2007-09-12 Olivier Hainque <hainque@adacore.com>
8315 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
8316 with discriminant constraints, generalize the code for BIT_FIELDs
8317 to PACKED fields of constant size and propagate DECL_PACKED.
8319 2007-09-11 Eric Botcazou <ebotcazou@adacore.com>
8321 * decl.c (array_type_has_nonaliased_component): New predicate.
8322 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
8323 set the TYPE_NONALIASED_COMPONENT flag on the type.
8324 <E_Array_Subtype>: Likewise.
8325 * gigi.h (type_for_nonaliased_component_p): Declare.
8326 * utils.c (type_for_nonaliased_component_p): New predicate.
8327 (create_field_decl): Invoke the above predicate to set the
8328 DECL_NONADDRESSABLE_P flag on the field.
8330 2007-09-11 Javier Miranda <miranda@adacore.com>
8332 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
8333 in library level record type entities if we are generating statically
8334 allocated dispatch tables.
8336 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
8337 importing/exporting the _tag declaration by new code
8338 importing/exporting the dispatch table wrapper. This change allows us
8339 to statically allocate of the TSD.
8340 (Make_DT.Export_DT): New procedure.
8341 (Build_Static_DT): New function.
8342 (Has_DT): New function.
8344 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
8345 True_Constant and Current_Value. Required to statically
8346 allocate the dispatch tables.
8347 (Check_Allocator): Make function iterative instead of recursive.
8348 Also return inner allocator node, when present, so that we do not have
8349 to look for that node again in the caller.
8351 2007-09-11 Jan Hubicka <jh@suse.cz>
8353 * misc.c (gnat_expand_body): Kill.
8354 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
8356 2007-09-10 Robert Dewar <dewar@adacore.com>
8358 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
8359 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
8360 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
8361 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
8362 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
8363 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
8364 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
8365 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
8366 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
8367 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
8368 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
8369 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
8370 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
8371 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
8372 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
8373 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
8374 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
8375 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
8376 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
8377 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
8378 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
8379 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
8380 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
8381 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
8382 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
8383 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
8384 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
8385 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
8386 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
8387 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
8388 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
8389 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
8390 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
8391 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
8392 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
8393 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
8394 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
8395 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
8396 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
8397 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
8398 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
8399 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
8400 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
8401 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
8402 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
8403 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
8404 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
8405 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
8406 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
8407 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
8408 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
8409 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
8410 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
8411 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
8412 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
8413 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
8414 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
8415 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
8416 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
8417 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
8418 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
8419 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
8420 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
8421 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
8422 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
8423 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
8424 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
8425 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
8426 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
8427 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
8428 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
8429 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
8430 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
8431 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
8432 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
8433 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
8434 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
8435 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
8436 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
8437 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
8438 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
8439 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
8440 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
8442 2007-09-10 Emmanuel Briot <briot@adacore.com>
8444 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
8447 2007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
8449 * adaint.c (__gnat_translate_vms): new function.
8451 2007-09-10 Gary Dismukes <dismukes@adacore.com>
8452 Thomas Quinot <quinot@adacore.com>
8454 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
8455 create an abstract subprogram in the case of 'Input. For 'Output we now
8456 create a real spec/body when the type is abstract, since it can
8457 potentially be called.
8458 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
8459 body for 'Output when the type is abstract (only the creation of the
8460 body for 'Input is excluded when the type is abstract).
8461 (Stream_Operation_OK): Add an additional condition in the return
8462 statement, so that False will be returned for TTS_Stream_Input if the
8463 associated tagged type is an abstract extension. Add comments for
8465 (Expand_N_Object_Declaration): For the case of a shared passive
8466 variable, insert init proc call only after the shared variable
8467 procedures have been processed, because the IP call needs to undergo
8468 shared passive variable reference expansion, which requires these
8469 procedures to be available (and elaborated).
8471 2007-09-10 Vincent Celier <celier@adacore.com>
8473 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
8474 parameter Runtime_Project.
8476 2007-09-10 Ed Schonberg <schonberg@adacore.com>
8478 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
8479 given a box association, the type of the component is discriminated,
8480 and the value of the discriminant is the discriminant of the enclosing
8481 type, retrieve its value from the aggregate itself, where it must have
8484 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
8485 to remove other spurious ambiguities on arithmetic operations involving
8486 literals and addresses, on systems where Address is a visible integer
8487 type, when the operator is called in functional notation.
8488 (Try_Primitive_Operation): Within an instance, a call in prefixed form
8489 is legal when the types match, even if the operation is currently
8492 2007-09-10 Ed Schonberg <schonberg@adacore.com>
8494 * sem_ch12.adb (Build_Local_Package): A formal package with no
8495 associations is legal if all formals have defaults. It is not
8496 equivalent to a formal declared with a box.
8498 2007-09-10 Sergey Rybin <rybin@adacore.com>
8500 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
8502 2007-09-10 Sergey Rybin <rybin@adacore.com>
8504 * gnat_ugn.texi: Add description of the new '-lratio' option
8505 Update 7.3.1 section about availability of the feature.
8507 2007-09-10 Thomas Quinot <quinot@adacore.com>
8509 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
8512 2007-09-10 Olivier Hainque <hainque@adacore.com>
8514 * Makefile.in: (mips-irix section): Activate build of libgmem.
8516 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
8518 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
8521 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
8523 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
8524 a debug renaming declaration specially.
8526 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
8528 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
8529 which a constant renaming is treated as a normal object declaration.
8530 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
8531 the N_Indexed_Component case.
8532 <N_Indexed_Component>: Fall through to above case.
8533 <N_Object_Renaming_Declaration>: Return true for all composite types.
8535 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
8537 * decl.c (make_packable_type): If the new type has been given BLKmode,
8538 try again to get an integral mode for it.
8540 2007-09-07 Eric Botcazou <ebotcazou@adacore.com>
8542 Re-apply accidentally reverted change:
8544 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
8546 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
8547 get_action_description_for): Replace _Unwind_Word with _uleb128_t
8548 and _Unwind_SWord with _sleb128_t.
8550 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
8552 * trans.c (convert_with_check): Update call to real_2expN.
8554 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
8556 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
8557 * utils.c (end_subprog_body): Likewise.
8559 2007-09-03 Nick Clifton <nickc@redhat.com>
8561 * Make-lang.in: Change copyright header to refer to version 3 of
8562 the GNU General Public License and to point readers at the
8563 COPYING3 file and the FSF's license web page.
8564 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
8565 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
8566 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
8567 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
8570 2007-08-31 Vincent Celier <celier@adacore.com>
8574 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
8575 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
8576 (Check_Version_And_Help): New procedure in package Switch to process
8577 switches --version and --help.
8578 Use Check_Version_And_Help in GNAT tools
8581 (Compile_Sources): Make sure that sources that are "excluded" are not
8583 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
8584 project file is used.
8585 (Version_Switch): Remove, moved to Switch
8586 (Help_Switch): Remove, moved to Switch
8587 (Display_Version): Remove, moved to Switch
8589 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
8590 package Switch to process switches --version and --help.
8591 (Display_Version): New procedure
8593 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
8595 2007-08-31 Javier Miranda <miranda@adacore.com>
8597 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
8600 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
8602 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
8603 (Mark_Non_Null): If the node for which we just generated an access check
8604 is a reference to an *in* parameter and the reference appears in the
8605 declarative part of a subprogram body, mark the node as known non null.
8607 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
8609 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
8610 structure of E_Exception to reflect the new flag.
8611 (Is_Raised, Set_Is_Raised): New inlined routines.
8612 Update the usage of available flag to reflect the addition of Is_Raised.
8613 (Is_Raised, Set_Is_Raised): Bodies of new routines.
8614 (Write_Entity_Flags): Write the status of flag Is_Raised.
8615 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
8616 spurious ambiguities when integer literals appear in the context of an
8617 address type that is a visible integer type.
8619 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
8620 exceptions never being raised.
8621 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
8624 2007-08-31 Javier Miranda <miranda@adacore.com>
8626 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
8627 statement when compiling under restriction No_Exceptions_Proparation.
8629 2007-08-31 Ed Schonberg <schonberg@adacore.com>
8631 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
8632 initialization aggregate for the type, generate itype references for
8633 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
8635 2007-08-31 Gary Dismukes <dismukes@adacore.com>
8637 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
8638 library-level package renaming, pass the declaration associated with
8639 the renaming's special debug variable to Qualify_Entity_Names to ensure
8640 that its encoded name is properly qualified.
8642 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
8643 occurring in the list of entities to qualify, and do not attempt to
8644 traverse an entity list in that case. Variables associated with
8645 ` library-level package renamings can now occur in the table.
8647 * exp_dbug.ads: Revise documentation of the encoding for renaming
8650 2007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8652 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
8653 access type points to an unconstrained array.
8655 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
8657 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
8660 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
8661 simple redundant qualifications. The check is performed whenever the
8662 expression is a non-overloaded identifier.
8663 (Resolve_Type_Conversion): Enchance the redundant type conversion check
8664 to include loop parameters.
8665 (Valid_Conversion): Avoid generation of spurious error message.
8667 2007-08-31 Bob Duff <duff@adacore.com>
8669 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
8670 concatenations of string literals into a single literal, in order to
8671 avoid very deep recursion in the front end, which was causing stack
8674 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
8675 string, and the right operand is a string literal (the case of "" &
8676 "..."), optimize by avoiding copying the right operand -- just use the
8677 value of the right operand directly.
8679 * stringt.adb (Store_String_Chars): Optimize by growing the
8680 String_Chars table all at once, rather than appending characters one by
8682 (Write_String_Table_Entry): If the string to be printed is very long,
8683 just print the first few characters, followed by the length. Otherwise,
8684 doing "pn(n)" in the debugger can take an extremely long time.
8686 * sem_prag.adb (Process_Interface_Name): Replace loop doing
8687 Store_String_Char with Store_String_Chars.
8689 2007-08-31 Vincent Celier <celier@adacore.com>
8691 * prj-attr.adb: Add new attribute Excluded_Source_Files
8693 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
8694 Locally_Removed_Files.
8696 * snames.ads, snames.adb: New standard name Excluded_Source_Files
8698 2007-08-31 Ed Schonberg <schonberg@adacore.com>
8700 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
8701 clauses of subunits, ignore limited_with_clauses that are illegal and
8702 have not been fully analyzed.
8704 2007-08-31 Ed Schonberg <schonberg@adacore.com>
8706 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
8707 flag, for effiency. It is called when analyzing arithmetic operators
8708 and also for actuals in calls that are universal_integers. The flag is
8709 set for the predefined type address, and for any type or subtype
8712 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
8713 Universal_Integer, when the formal is a descendent of address and the
8714 call appears in user code.
8715 (Analyze_Selected_Component): if the prefix is a private extension, the
8716 tag component is visible.
8718 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
8721 2007-08-31 Robert Dewar <dewar@adacore.com>
8723 * s-fileio.adb (Open): Normalize file name to lower case in non-case
8724 sensitive file name systems to avoid unexpected mismatch in Vista.
8726 2007-08-31 Vincent Celier <celier@adacore.com>
8728 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
8730 2007-08-31 Vincent Celier <celier@adacore.com>
8732 * symbols-vms.adb (Initialize): Read symbol files with continuation
8734 (Finalize): If symbol is long, split the line
8736 2007-08-31 Vincent Celier <celier@adacore.com>
8738 * fmap.ads: Minor comment updates
8740 2007-08-31 GNAT Script <nobody@adacore.com>
8742 * Make-lang.in: Makefile automatically updated
8744 2007-08-31 Bob Duff <duff@adacore.com>
8746 * sinfo.ads: Minor comment fix.
8748 2007-08-31 Thomas Quinot <quinot@adacore.com>
8750 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
8751 with implementation.
8752 Documentation cleanup only.
8754 2007-08-31 Sergey Rybin <rybin@adacore.com>
8756 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
8757 gnatpp '--separate-stmt-name' option.
8758 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
8761 * gnat_ugn.texi: Add description for the new gnatpp
8762 '--separate-stmt-name' and '--use-on-new-line' options.
8764 2007-08-31 Ben Elliston <bje@au.ibm.com>
8766 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
8767 when compiling for powerpc64-*-linux.
8768 * system-linux-ppc64.ads: New file.
8770 2007-08-22 Krister Walfridsson <cato@df.lth.se>
8772 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
8775 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8777 * misc.c (gnat_type_max_size): Constify.
8779 2007-08-16 Gary Dismukes <dismukes@adacore.com>
8781 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
8782 associated with Standard_Debug_Renaming_Type, to be used as the type of
8783 the special variables whose names provide debugger encodings for
8784 renaming declarations.
8786 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
8787 (Set_Debug_Renaming_Link): Change to set Node25.
8788 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
8789 (Write_Field25_Name): Add case for E_Variable to output
8790 "Debug_Renaming_Link".
8791 (Write_Field23_Name): Correct the output string for "Limited_View".
8793 * exp_dbug.adb: Add with and use of Tbuild.
8794 (Debug_Renaming_Declaration): Replace creation of an enumeration type
8795 and literal with creation of a variable of type
8796 Standard_Debug_Renaming_Type whose name encodes both the renamed object
8797 and the entity of the renaming declaration.
8798 (Qualify_Entity_Name): Add the delayed qualification of the entity name
8799 part of the name of a variable that has a Debug_Renaming_Link.
8801 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
8802 special type to be associated with variables that provide debugger
8803 encodings for renaming declarations.
8805 2007-08-16 Gary Dismukes <dismukes@adacore.com>
8806 Ed Schonberg <schonberg@adacore.com>
8807 Javier Miranda <miranda@adacore.com>
8809 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
8810 ancestor part given by an aggregate to test for an unchecked conversion,
8811 since this can occur in some cases when the ancestor part is a function
8812 call, and we don't want to fall into the recursive call to this
8813 procedure in that case.
8815 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
8816 stream attributes on limited types to account for user-specified
8817 attributes as well as whether Input (resp. Output) becomes available
8818 due to Read (resp. Write) being available for the type. Change Boolean
8819 variable to the more accurate name
8820 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
8821 double-"not" predicate at beginning of return statement to more
8822 understandable form.
8824 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
8825 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
8826 in a block statement and use that as the first statement of the
8827 expanded return rather than incorrectly using the handled sequence as
8828 the first statement.
8830 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
8831 operation, generate an explicit freeze node for it rather than
8832 generating extra formals, to ensure that gigi has the proper order of
8833 elaboration for anonymous subtypes in the signature of the subprograms.
8834 (Build_In_Place_Formal): Move assertion to beginning of loop.
8835 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
8836 applied to a function call (occurs for some cases of 'Input).
8837 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
8838 applied to a function call (occurs for some cases of 'Input).
8840 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
8841 2005, generate an extended return statement enclosing the result object
8844 * freeze.adb (Freeze_Record_Type): Extend the current management of
8845 components that are access type with an allocator as default value: add
8846 missing support to the use of qualified expressions of the
8847 allocator (which also cause freezing of the designated type!)
8848 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
8849 dispatching operation, since extra formals may be needed by calls to
8850 build-in-place functions (such as stream 'Input).
8852 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
8853 formals for 'Constrained and accessibility level in the case of a
8854 predefined dispatching operation.
8856 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
8857 point, no need to find the parent node.
8859 2007-08-16 Javier Miranda <miranda@adacore.com>
8861 * exp_attr.adb (Attribute_Priority): Add missing support for entries
8864 2007-08-16 Javier Miranda <miranda@adacore.com>
8866 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
8867 is not really required and can introduce regression with the debugger.
8868 The original problem is fixed with the patch written for checks.adb.
8870 2007-08-16 Thomas Quinot <quinot@adacore.com>
8872 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
8873 Range_Check on Allocated_Table.
8875 2007-08-16 Vincent Celier <celier@adacore.com>
8877 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
8878 Including_Non_Switch set to False.
8879 (Gnatmake): For the compiler, call Test_If_Relative_Path with
8880 Including_Non_Switch set to False.
8882 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
8883 parameter Including_Non_Switch, defaulted to True. When
8884 Including_Non_Switch is False, options that are not switches and
8885 appear as relative path are not converted to absolute paths.
8887 2007-08-16 Nicolas Roche <roche@adacore.com>
8889 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
8892 * Make-lang.in: Update dependencies
8894 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
8896 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
8897 currently inspected is a selected component, retrieve the entity of
8899 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
8900 from the immediate ancestor of Main_Unit_Entity.
8901 (Install_Limited_Withed_Unit): Do not install the limited view of
8902 package P if P is reachable through an ancestor chain from package C
8903 and C also has a with clause for P in its body.
8904 (Has_Limited_With_Clause): New routine.
8905 (Has_With_Clause): New routine.
8907 2007-08-16 Ed Schonberg <schonberg@adacore.com>
8909 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
8910 generic for an enclosing instance is a global reference, even though
8911 its scope is the enclosing instance.
8913 2007-08-16 Gary Dismukes <dismukes@adacore.com>
8914 Javier Miranda <miranda@adacore.com>
8916 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
8917 initialize a limited object.
8918 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
8920 Make sure Has_Complex_Representation is inherited by derived type.
8922 2007-08-16 Robert Dewar <dewar@adacore.com>
8924 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
8927 2007-08-16 Ed Schonberg <schonberg@adacore.com>
8929 * sem_disp.adb (Check_Dispatching_Operation): If the operation
8930 implements an operation inherited from a progenitor interface, verify
8931 that they are subtype-conformant.
8933 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
8934 Bob Duff <duff@adacore.com>
8935 Nicolas Setton <setton@adacore.com>
8937 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
8938 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
8939 the statement which is being resolved comes from a predefined library
8940 unit, all non-predefined library interpretations are skipped.
8941 (Resolve_Op_Concat): If string concatenation was folded in the parser,
8942 but the "&" is user defined, give an error, because the folding would
8945 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
8946 the parser has folded a long sequence of concatenations of string
8949 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
8950 and "JMP_BUF" variables as artificial.
8951 (N_String_Literal): Do not use alloca for very long string literals. Use
8952 xmalloc/free instead. Otherwise the stack might overflow.
8954 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
8957 2007-08-16 Vincent Celier <celier@adacore.com>
8959 * vms_conv.adb (Process_Argument): Ensure that project related options
8960 are not put in the -cargs section when using GNAT COMPILE.
8962 2007-08-16 Robert Dewar <dewar@adacore.com>
8964 * gnat_ugn.texi: Add note on preprocessing (output file not written)
8966 2007-08-16 Thomas Quinot <quinot@adacore.com>
8968 * a-tags.adb: Minor reformatting.
8970 2007-08-16 Bob Duff <duff@adacore.com>
8972 * sem_type.ads, sem_ch4.adb: Minor reformatting.
8974 2007-08-14 Thomas Quinot <quinot@adacore.com>
8976 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
8977 s-osinte-interix.ads, system-interix.ads: Removed.
8979 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
8981 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
8982 calls to Check_Within_Time_Bounds.
8983 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
8984 (Difference): Account for possible rounding of the resulting difference
8986 2007-08-14 Robert Dewar <dewar@adacore.com>
8988 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
8989 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
8990 s-osinte-solaris.adb, s-osinte-solaris.ads,
8991 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
8993 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
8994 switch -gnatyS. Enable -gnatyS in GNAT style check mode
8996 2007-08-14 Robert Dewar <dewar@adacore.com>
8997 Ed Schonberg <schonberg@adacore.com>
8999 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
9000 Suppress unmodified in-out parameter warning in some cases
9001 This patch is a also fairly significant change to the way suppressible
9004 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
9005 needed for access to concurrent record types generated by the expander.
9006 (Generate_Range_Check): When generating a temporary to capture the
9007 value of a conversion that requires a range check, set the type of the
9008 temporary before rewriting the node, so that the type is always
9009 properly placed for back-end use.
9010 (Apply_Float_Conversion_Check): Handle case where the conversion is
9012 (Get_Discriminal): Code reformatting. Climb the scope stack looking
9013 for a protected type in order to examine its discriminants.
9015 2007-08-14 Robert Dewar <dewar@adacore.com>
9016 Gary Dismukes <dismukes@adacore.com>
9017 Ed Schonberg <schonberg@adacore.com>
9018 Thomas Quinot <quinot@adacore.com>
9020 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
9021 a-stwisu.adb, a-strsup.adb: Fix warnings for range
9022 tests optimized out.
9024 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
9025 (Get_Allocator_Final_List): For the case of an anonymous access type
9026 that has a specified Associated_Final_Chain, do not go up to the
9028 (Expand_N_Type_Conversion): Test for the case of renamings of access
9029 parameters when deciding whether to apply a run-time accessibility
9031 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
9032 aggregate code before allocator, and ahead of declaration for
9033 temporary, to prevent access before elaboration when the allocator is
9034 an actual for an access parameter.
9035 (Expand_N_Type_Conversion): On an access type conversion involving an
9036 access parameter, do not apply an accessibility check when the
9037 operand's original node was an attribute other than 'Access. We now
9038 create access conversions for the expansion of 'Unchecked_Access and
9039 'Unrestricted_Access in certain cases and clearly accessibility should
9040 not be checked for those.
9042 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
9043 includes a type conversion of a packed component that has been expanded,
9044 recover the original expression for the object, and use this expression
9045 in the post-call assignment statement, so that the assignment is made
9046 to the object and not to a back-end temporary.
9047 (Freeze_Subprogram): In case of primitives of tagged types not defined
9048 at the library level force generation of code to register the primitive
9049 in the dispatch table. In addition some code reorganization has been
9050 done to leave the implementation clear.
9051 (Expand_Call): When expanding an inherited implicit conversion,
9052 preserve the type of the inherited function after the intrinsic
9053 operation has been expanded.
9055 * exp_ch2.ads, exp_ch2.adb
9056 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
9057 of an entry formal appearing in an assignment statement does not assign
9059 (Expand_Current_Value): Instead of calling a routine to determine
9060 whether the prefix of an attribute reference should be optimized or
9061 not, prevent the optimization of such prefixes all together.
9063 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
9064 component whose prefix is known to be of an access type is an implicit
9065 dereference and does not assign to the prefix.
9067 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9068 Robert Dewar <dewar@adacore.com>
9070 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
9071 itype is visited, make an entry into table to link associated node and
9073 Add comments and correct harmless error in Build_NCT_Hash_Tables
9074 (Array_Aggr_Subtype): Associate each itype created for an index type to
9075 the corresponding range construct, and not to the aggregate itself. to
9076 maintain a one-to-one correspondence between itype and its associated
9077 node, to prevent errors when complex expression is copied.
9078 Fix mishandling of multiple levels of parens
9080 * sem_aggr.adb: Create a limited view of an incomplete type, to make
9081 treatment of limited views uniform for all visible declarations in a
9082 limited_withed package.
9083 (New_Copy_Tree): If hash table is being used and itype is visited,
9084 make an entry into table to link associated node and new itype.
9085 (Resolve_Record_Aggregate): Do not add an others box association for a
9086 discriminated record component that has only discriminants, when there
9087 is a box association for the component itself.
9089 * par-ch4.adb: Fix mishandling of multiple levels of parens
9091 2007-08-14 Robert Dewar <dewar@adacore.com>
9093 * comperr.adb: Fix problem with suppressing warning messages from gigi
9095 * erroutc.ads, erroutc.adb, errout.ads,
9096 errout.adb (Write_Eol): Remove trailing spaces before writing the line
9097 (Write_Eol_Keep_Blanks): New procedure to write a line, including
9098 possible trailing spaces.
9099 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
9100 Fix problem with suppressing warning messages from back end
9101 Improve handling of deleted warnings
9104 Fix problem with suppressing warning messages from back end
9105 Handle setting of Static_Dispatch_Tables flag.
9108 Fix problem with suppressing warning messages from back end
9110 * exp_intr.adb: Improve handling of deleted warnings
9112 2007-08-14 Robert Dewar <dewar@adacore.com>
9114 * debug.adb: Improve -gnatdI to cover all cases of serialization
9115 Add documentation of dZ, d.t
9117 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
9119 (Sprint_Node_Actual): Generate new output associated with implicit
9120 importation and implicit exportation of object declarations.
9122 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9123 Robert Dewar <dewar@adacore.com>
9124 Javier Miranda <miranda@adacore.com>
9125 Gary Dismukes <dismukes@adacore.com>
9127 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
9128 to make treatment of limited views uniform for all visible declarations
9129 in a limited_withed package.
9130 Improve warnings for in out parameters
9131 (Set_Related_Interaface/Related_Interface): Allow the use of this
9132 attribute with constants.
9133 (Write_Field26_Name): Handle attribute Related_Interface in constants.
9134 Warn on duplicate pragma Preelaborable_Initialialization
9136 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
9137 generation of a freezing node to ensure proper management of null
9138 excluding access types in the backend.
9139 (Create_Extra_Formals): Test base type of the formal when checking for
9140 the need to add an extra accessibility-level formal. Pass the entity E
9141 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
9142 originally being done in a couple of cases), to ensure that the
9143 Extra_Formals list gets set on the entity E when the first entity is
9145 (Conforming_Types): Add missing calls to Base_Type to the code that
9146 handles anonymous access types. This is required to handle the
9147 general case because Process_Formals builds internal subtype entities
9148 to handle null-excluding access types.
9149 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
9150 functions that need it, even when not marked Requires_Overriding.
9151 Improve warnings for in out parameters
9152 (Analyze_Function_Return): Warn for disallowed null return
9153 Warn on return from procedure with unset out parameter
9154 Ensure consistent use of # in error messages
9155 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
9156 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
9157 the implicit conversion of the expression done for anonymous access
9158 types. This is required to generate the code of the null excluding
9159 check (if required).
9161 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
9162 A formal parameter is never publicly referenceable outside of its body.
9163 (Check_References): For an unreferenced formal parameter in an accept
9164 statement, use the same warning circuitry as for subprogram formal
9166 (Warn_On_Unreferenced_Entity): New subprogram, taken from
9167 Output_Unreferenced_Messages, containing the part of that routine that
9168 is now reused for entry formals as described above.
9169 (Goto_Spec_Entity): New function
9170 (Check_References): Do not give IN OUT warning for dispatching operation
9171 Improve warnings for in out parameters
9172 (Test_Ref): Check that the entity is not undefinite before calling
9173 Scope_Within, in order to avoid infinite loops.
9174 Warn on return from procedure with unset out parameter
9175 Improved warnings for unused variables
9177 2007-08-14 Robert Dewar <dewar@adacore.com>
9178 Javier Miranda <miranda@adacore.com>
9179 Gary Dismukes <dismukes@adacore.com>
9181 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
9182 (Expand_N_Attribute_Reference): Further unify the handling of the
9183 three forms of access attributes, using common code now for all three
9184 cases. Add a test for the case of applying an access attribute to
9185 an explicit dereference when the context is an access-to-interface
9186 type. In that case we need to apply the conversion to the prefix
9187 of the explicit dereference rather than the prefix of the attribute.
9188 (Attribute_Version, UET_Address): Set entity as internal to ensure
9189 proper dg output of implicit importation.
9190 (Expand_Access_To_Type): Removed.
9191 (Expand_N_Attribute_Reference): Merge the code from the three cases
9192 of access attributes, since the processing is largely identical for
9193 these cases. The substantive fix here is to process the case of a
9194 type name prefix (current instance case) before handling the case
9195 of interface prefixes.
9197 2007-08-14 Thomas Quinot <quinot@adacore.com>
9198 Ed Schonberg <schonberg@adacore.com>
9199 Javier Miranda <miranda@adacore.com>
9200 Robert Dewar <dewar@adacore.com>
9202 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
9203 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
9204 type that is an anonymous access to controlled object, establish
9205 an associated finalization chain to avoid corrupting the global
9206 finalization list when a dynamically allocated object designated
9207 by such a component is deallocated.
9208 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
9209 functions that need it, even when not marked Requires_Overriding.
9210 (Initialize_Tag): Replace call to has_discriminants by call to
9211 Is_Variable_Size_Record in the circuitry that handles the
9212 initialization of secondary tags.
9213 (Is_Variable_Size_Record): New implementation.
9214 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
9215 Suppress_Initialization pragma for a derived type.
9216 (Is_Variable_Size_Record): New subprogram.
9217 (Build_Offset_To_Top_Functions): New implementation that simplifies the
9218 initial version of this routine and also fixes problems causing
9219 incomplete initialization of the table of interfaces.
9220 (Build_Init_Procedure): Improve the generation of code to initialize the
9221 the tag components of secondary dispatch tables.
9222 (Init_Secondary_Tags): New implementation that simplifies the previous
9223 version of this routine.
9224 (Make_DT): Add parameter to indicate when type has been frozen by an
9225 object declaration, for diagnostic purposes.
9226 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
9227 diagnose attemps to freeze a subprogram when some untagged type of its
9228 profile is a private type whose full view has not been analyzed yet.
9229 (Freeze_Array_Type): Generate init proc for packed array if either
9230 Initialize or Normalize_Scalars is set.
9231 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
9232 constructing the new profile, copy the null_exclusion indicator for each
9233 parameter, to ensure full conformance of the new body with the spec.
9235 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
9236 Create wrappers for constructor functions that need it, even when not
9237 marked Requires_Overriding.
9238 (Covers): Handle properly designated types of anonymous access types,
9239 whose non-limited views are themselves incomplete types.
9240 (Add_Entry): Use an entity to store the abstract operation which hides
9242 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
9243 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
9244 initialization aggregate.
9245 (Function_Interp_May_Be_Hidden): Rename to
9246 Function_Interp_Has_Abstract_Op.
9247 (Has_Compatible_Type): Remove machinery that skips interpretations if
9248 they are labeled as potentially hidden by an abstract operator.
9249 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
9250 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
9251 (Write_Overloads): Output the abstract operator if present.
9252 (Add_Entry): Before inserting a new entry into the interpretation table
9253 for a node, determine whether the entry will be disabled by an abstract
9255 (Binary_Op_Interp_May_Be_Hidden): New routine.
9256 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
9258 (Function_Interp_May_Be_Hidden): New routine.
9259 (Has_Compatible_Type): Do not consider interpretations hidden by
9260 abstract operators when trying to determine whether two types are
9262 (Has_Hidden_Interp): New routine.
9263 (Set_May_Be_Hidden_Interp): New routine.
9264 (Write_Overloads): Write the status of flag May_Be_Hidden.
9266 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9267 Javier Miranda <miranda@adacore.com>
9269 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
9270 types declared in the declarative part of a nested package body or in
9271 the proper body of a stub.
9272 (Set_All_DT_Position): Add missing check to avoid wrong assignation
9273 of the same dispatch table slot to renamed primitives.
9274 (Make_Select_Specific_Data_Table): Handle private types.
9275 (Tagged_Kind): Handle private types.
9276 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
9277 output of implicit importation and exportation.
9278 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
9279 first formal of the thunk is always associated with the controlling
9280 type. In addition perform the following code cleanup: remove formal
9281 Thunk_Alias which is no longer required, cleanup evaluation of the
9282 the controlling type, and update the documentation.
9283 Replace occurrence of Default_Prim_Op_Count by
9284 Max_Predef_Prims. Addition of compile-time check to verify
9285 that the value of Max_Predef_Prims is correct.
9286 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
9287 (Make_DT): Add parameter to indicate when type has been frozen by an
9288 object declaration, for diagnostic purposes.
9289 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
9290 construction of statically allocated dispatch tables.
9291 (Make_DT): In case of library-level tagged types export the declaration
9292 of the primary tag. Remove generation of tags (now done by Make_Tags).
9293 Additional modifications to handle non-static generation of dispatch
9294 tables. Take care of building tables for asynchronous interface types
9295 (Make_Tags): New subprogram that generates the entities associated with
9296 the primary and secondary tags of Typ and fills the contents of Access_
9297 Disp_Table. In case of library-level tagged types imports the forward
9298 declaration of the primary tag that will be declared later by Make_DT.
9299 (Expand_Interface_Conversion): In case of access types to interfaces
9300 replace an itype declaration by an explicit type declaration to avoid
9301 problems associated with the scope of such itype in transient blocks.
9303 2007-08-14 Robert Dewar <dewar@adacore.com>
9304 Ed Schonberg <schonberg@adacore.com>
9305 Javier Miranda <miranda@adacore.com>
9307 * exp_util.ads, exp_util.adb:
9308 This patch replaces a number of occurrences of explicit tests for N_Null
9309 with calls to Known_Null. This improves tracking of null values, since
9310 Known_Null also catches null constants, and variables currently known to
9311 be null, so we get better tracking.
9312 (Ensure_Defined): create an itype reference only in the scope of the
9314 (Side_Effect_Free): A selected component of an access type that
9315 denotes a component with a rep clause must be treated as not
9316 side-effect free, because if it is part of a linked structure its
9317 value may be affected by a renaming.
9318 (Expand_Subtype_From_Expr): For limited objects initialized with build
9319 in place function calls, do nothing; otherwise we prematurely introduce
9320 an N_Reference node in the expression initializing the object, which
9321 breaks the circuitry that detects and adds the additional arguments to
9322 the called function. Bug found working in the new patch for statically
9323 allocated dispatch tables.
9324 (Is_Library_Level_Tagged_Type): New subprogram.
9325 (Remove_Side_Effects): If the expression of an elementary type is an
9326 operator treat as a function call.
9327 (Make_Literal_Range): If the index type of the array is not integer, use
9328 attributes properly to compute the constraint on the resulting aggregate
9331 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
9332 class-wide type whose base type is an incomplete private type, leave
9333 class-wide type unfrozen so that freeze nodes can be generated
9334 properly at a later point.
9335 (Freeze_Entity, array case): Handle case of pragma Pack and component
9336 size attributre clause for same array.
9338 2007-08-14 Vincent Celier <celier@adacore.com>
9340 * prj.ads, prj.adb: Update Project Manager to new attribute names for
9342 Allow all valid declarations in configuration project files
9343 (Reset): Initialize all tables and hash tables in the project tree data
9344 Major update of the Project Manager and of the project aware tools,
9345 including gprmake, so that the same sources in the GNAT repository
9346 can be used by gprbuild.
9347 (Slash_Id): Change type to be Path_Name_Type
9348 (Slash): Return a Path_Name_Type instead of a File_Name_Type
9350 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
9352 Update Project Manager to new attribute names for ghprbuild
9353 Allow all valid declarations in configuration project files
9354 Major update of the Project Manager and of the project aware tools,
9355 including gprmake, so that the same sources in the GNAT repository
9356 can be used by gprbuild.
9359 Major update of the Project Manager and of the project aware tools,
9360 including gprmake, so that the same sources in the GNAT repository
9361 can be used by gprbuild.
9363 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
9364 insensitive flag for attributes with optional index.
9365 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
9366 array attribute, put the index in lower case.
9367 Update Project Manager to new attribute names for ghprbuild
9368 Allow all valid declarations in configuration project files
9369 Major update of the Project Manager and of the project aware tools,
9370 including gprmake, so that the same sources in the GNAT repository
9371 can be used by gprbuild.
9373 * prj-env.ads, prj-env.adb:
9374 Major update of the Project Manager and of the project aware tools,
9375 including gprmake, so that the same sources in the GNAT repository
9376 can be used by gprbuild.
9377 (Get_Reference): Change type of parameter Path to Path_Name_Type
9379 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
9380 removing '-' from the path to start with the first character of the
9382 Major update of the Project Manager and of the project aware tools,
9383 including gprmake, so that the same sources in the GNAT repository
9384 can be used by gprbuild.
9385 Major update of the Project Manager and of the project aware tools,
9386 including gprmake, so that the same sources in the GNAT repository
9387 can be used by gprbuild.
9389 * prj-nmsc.ads, prj-nmsc.adb:
9390 Update Project Manager to new attribute names for ghprbuild
9391 Allow all valid declarations in configuration project files
9392 (Search_Directories): Detect subunits that are specified with an
9393 attribute Body in package Naming. Do not replace a source/unit in the
9394 same project when the order of the source dirs are known. Detect
9395 duplicate sources/units in the same project when the order of the
9396 source dirs are not known.
9397 (Check_Ada_Name): Allow all identifiers that are not reserved words
9399 Major update of the Project Manager and of the project aware tools,
9400 including gprmake, so that the same sources in the GNAT repository
9401 can be used by gprbuild.
9402 (Look_For_Sources): If the list of sources is empty, set the object
9403 directory of non extending project to nil.
9404 Change type of path name variables to be Path_Name_Type
9405 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
9406 otherwise creating missing directories will fail.
9408 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
9409 prj-part.ads, prj-part.adb:
9410 Major update of the Project Manager and of the project aware tools,
9411 including gprmake, so that the same sources in the GNAT repository
9412 can be used by gprbuild.
9414 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
9415 insensitive flag for attributes with optional index.
9416 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
9417 array attribute, put the index in lower case.
9418 (Parse_Variable_Reference): Allow the current project name to be used in
9419 the prefix of an attribute reference.
9421 * prj-util.ads, prj-util.adb
9422 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
9423 defaulted to False. When True, always check against indexes in lower
9426 * snames.ads, snames.h, snames.adb:
9427 Update Project Manager to new attribute names for gprbuild
9428 Allow all valid declarations in configuration project files
9430 2007-08-14 Robert Dewar <dewar@adacore.com>
9431 Ed Schonberg <schonberg@adacore.com>
9433 * opt.ads: Warning for non-local exception propagation now off by
9435 New switch -gnatI to disable representation clauses
9436 Implement new pragma Implicit_Packing
9439 Warning for non-local exception propagation now off by default
9440 Add warning for unchecked conversion of pointers wi different
9442 New switch -gnatI to disable representation clauses
9444 * usage.adb: new switch -gnatyS
9446 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
9447 note that aggregates of anonymous array types are not flagged.
9448 -gnatwc now includes membership tests optimized away
9449 -gnatw.x warnings are now off by default
9450 Added conditional compilation Appendix
9451 Add documentation of -gnatI
9452 Add documentation for new -gnatyS style check
9453 Update documentation about SAL and auto-init on Windows.
9456 Add documentation for pragma Check_Name and 'Enabled attribute
9457 Document that Eliminate on dispatching operation is ignored
9458 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
9459 Document pragma Main
9460 Document pragma Implicit_Packing
9462 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
9463 different conventions
9464 New switch -gnatI to disable representation clauses
9466 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
9467 recognized, report the invalid characters including "-gnat" instead of
9468 just the first character in the switch.
9469 New switch -gnatI to disable representation clauses
9470 Set Warn_On_Object_Renames_Function true for -gnatg
9472 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
9473 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
9474 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
9475 to switch -aP (add directory to project search dir).
9477 * par-prag.adb: Implement new pragma Implicit_Packing
9479 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
9480 type as having a non-standard representation, to force expansion on
9481 conversion to related types.
9482 (Analyze_Pragma): Warn on misspelled pragma
9483 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
9484 Ensure consistent use of # in error messages
9485 Implement pragma Implicit_Packing
9487 2007-08-14 Olivier Hainque <hainque@adacore.com>
9488 Eric Botcazou <ebotcazou@adacore.com>
9490 * targtyps.c (get_target_maximum_default_alignment): New function.
9492 that the compiler might choose by default for a type or object.
9493 (get_target_default_allocator_alignment): New function. Alignment known
9494 to be honored by the target default allocator.
9495 (get_target_maximum_allowed_alignment): New function. Maximum alignment
9496 we might accept for any type or object on the target.
9497 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
9499 * gigi.h (get_target_maximum_default_alignment): Declare new function.
9500 (get_target_default_allocator_alignment): Likewise.
9501 (get_target_maximum_allowed_alignment): Likewise.
9504 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
9505 result of a function call, first try to use a stabilized reference for
9506 a constant renaming too.
9507 (validate_alignment): Use target_maximum_allowed_alignment instead of
9508 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
9509 (gnat_to_gnu_entity): Use common nodes directly.
9510 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
9511 alignment and size for the object.
9512 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
9513 and N_Procedure_Call_Statement.
9514 (takes_address): Rename to lvalue_required_p, add third parameter
9515 'aliased' and adjust recursive calls.
9516 <N_Indexed_Component>: Update 'aliased' from the array type.
9517 <N_Selected_Component>: New case.
9518 <N_Object_Renaming_Declaration>: New Likewise.
9519 (Identifier_to_gnu): Adjust for above changes.
9520 (maybe_stabilize_reference) <CONST_DECL>: New case.
9522 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
9523 between type variants.
9524 (build_simple_component_ref): Likewise.
9525 (build_call_alloc_dealloc): Use target_default_allocator_alignment
9526 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
9527 aligning type circuitry for allocations from the default storage pool.
9528 (build_allocator): Likewise.
9529 (build_simple_component_ref): Manually fold the reference for a
9530 constructor if the record type contains a template.
9532 * utils.c (value_zerop): Delete.
9533 (gnat_init_decl_processing): Emit debug info for common types.
9534 (rest_of_record_type_compilation): If a union contains a field
9535 with a non-constant qualifier, treat it as variable-sized.
9536 (finish_record_type): Give the stub TYPE_DECL a name.
9537 (rest_of_record_type_compilation): Likewise.
9538 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
9539 types are equivalent array types.
9540 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
9541 even if the type is not passed by reference.
9542 (static_ctors, static_dtors): Delete.
9543 (end_subprog_body): Do not record constructors and destructors.
9544 (build_global_cdtor): Delete.
9545 (gnat_write_global_declarations): Do not call build_global_cdtor.
9547 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
9548 -fRTS=rtp is specified.
9549 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
9552 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
9553 of the personality function with SJLJ exceptions.
9555 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
9556 the name of the personality function with SJLJ exceptions.
9558 2007-08-14 Robert Dewar <dewar@adacore.com>
9559 Ed Schonberg <schonberg@adacore.com>
9561 * par.ads, par.adb: Improve handling of extra right parens.
9562 (Par): Remove flag From_Limited_With_Clause.
9564 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
9565 Improve handling of extra right parens.
9567 2007-08-14 Robert Dewar <dewar@adacore.com>
9569 * par-tchk.adb (TF_Semicolon): Improve error recovery
9571 2007-08-14 Robert Dewar <dewar@adacore.com>
9572 Ed Schonberg <schonberg@adacore.com>
9574 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
9575 enumeration type, mark all literals as referenced.
9576 (Eval_Attribute, case 'Image): If the argument is an enumeration
9577 literal and names are available, constant-fold but mark nevertheless as
9579 Clean up function names.
9580 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
9582 (Requires_Simple_Name_Prefix): Removed.
9584 2007-08-14 Robert Dewar <dewar@adacore.com>
9585 Ed Schonberg <schonberg@adacore.com>
9587 * sem_ch11.adb: Improved warnings for unused variables
9589 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
9590 is a synchronized interface, the derived type is limited.
9591 (Analyze_Object_Declaration): Mark the potential coextensions in the
9592 definition and expression of an object declaration node.
9593 (Build_Derived_Type): For the completion of a private type declaration
9594 with a derived type declaration, chain the parent type's representation
9595 items to the last representation item of the derived type (not the
9596 first one) if they are not present already.
9597 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
9598 object declaration of forward references to tags.
9599 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
9600 subprogram types can appear as access discriminants of synchronized
9602 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
9603 given in prefixed form as a selected component.
9604 (Process_Discriminants): If not all discriminants have defaults, place
9605 error message on a default that is present.
9606 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
9607 extend a synchronized tagged type.
9608 Improved warnings for unused variables
9609 (Is_Visible_Component): Fix a visibility hole on a component inherited
9610 by a private extension when parent is itself declared as a private
9611 extension, and the derivation is in a child unit.
9612 (Find_Hidden_Interface): Move spec from the package body.
9614 2007-08-14 Robert Dewar <dewar@adacore.com>
9615 Ed Schonberg <schonberg@adacore.com>
9617 * sem_ch5.adb: Improve warnings on redundant assignments
9619 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
9621 (Is_Synchronized_Tagged_Type): New subprogram that returns true
9622 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
9623 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
9624 is set to False. Improves handling of Known_[Not_]Null.
9625 (Wrong_Type): Special case address arithmetic attempt
9626 (Collect_Abstract_Interfaces): Add new formal to allow collecting
9627 abstract interfaces just using the partial view of private types.
9628 (Has_Abstract_Interfaces): Add new formal to allow checking types
9629 covering interfaces using the partial view of private types.
9630 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
9631 component still needs to be defined in this case, but is never
9632 initialized as VMs are using other dispatching mechanisms.
9633 (Abstract_Interface_List): For a protected type, use base type to get
9635 Improve warnings on redundant assignments
9636 (Is_Variable): Handle properly an implicit dereference of a prefixed
9638 (Build_Actual_Subtype): If this is an actual subtype for an
9639 unconstrained formal parameter, use the sloc of the body for the new
9640 declaration, to prevent anomalises in the debugger.
9642 2007-08-14 Robert Dewar <dewar@adacore.com>
9644 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
9645 dispatching operation
9647 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9648 Gary Dismukes <dismukes@adacore.com>
9651 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
9652 expanded aggregate code before allocator, and ahead of declaration for
9653 temporary, to prevent access before elaboration when the allocator is
9654 an actual for an access parameter.
9655 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
9656 the TSD and the table of interfaces.
9657 (Convert_To_Assignments): Augment the test for delaying aggregate
9658 expansion for limited return statements to include the case of extended
9659 returns, to prevent creation of an unwanted transient scope.
9660 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
9661 (Expand_Array_Aggregate): Handle aggregates associated with
9662 statically allocated dispatch tables.
9663 (Expand_Record_Aggregate): Handle aggregates associated with
9664 statically allocated dispatch tables.
9665 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
9666 of anonymous access type.
9668 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9670 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
9671 is a variable that renames a slice, use the variable itself in the
9672 expannsion when the renamed expression itself may be modified between
9673 the declaration of the renaming and the array assignment.
9675 2007-08-14 Jerome Guitton <guitton@adacore.com>
9677 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
9678 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
9679 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
9680 New functions; dummy implementations.
9682 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
9683 functions, used to implement the multi-tasks mode routines on VxWorks.
9685 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
9687 binding to the VxWorks routines which have changed between VxWorks 5
9689 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
9690 which are not callable from a RTP.
9692 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
9693 implemented for the multi-tasks mode on VxWorks 5 and 6.
9695 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
9697 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
9700 2007-08-14 Vincent Celier <celier@adacore.com>
9702 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
9703 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
9704 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
9705 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
9706 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
9707 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
9708 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
9710 (Major_Id_Name): New function.
9711 mlib-tgt.ads/mlib.tgt.adb:
9712 (Library_Major_Minor_Id_Supported): New function, default returns True
9713 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
9714 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
9715 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
9716 Implementation of Library_Major_Minor_Id_Supported returns False
9718 (Clean_Library_Directory): If major/minor ids are supported, clean all
9720 Major update of the Project Manager and of the project aware tools,
9721 including gprmake, so that the same sources in the GNAT repository
9722 can be used by gprbuild.
9724 2007-08-14 Olivier Hainque <hainque@adacore.com>
9726 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
9727 (GCC_ZCX_Support): Switch to True.
9729 * s-intman-solaris.adb (Notify_Exception): Call
9730 Adjust_Context_For_Raise before raising, as expected for signal
9731 handlers in general.
9733 * s-intman-posix.adb (Notify_Exception): Remove declaration of
9734 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
9735 to other implementation bodies.
9737 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
9738 be visible by multiple implementation bodies.
9740 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
9741 only for conditions coming from hardware.
9742 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
9743 adjustments to signal context prior to exception raise from signal
9745 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
9747 Solaris section: (__gnat_adjust_context_for_raise): New function.
9748 Implementation of the machine context adjustments to perform prior to
9749 raise from a signal handler. Version for both sparc and x86.
9750 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
9751 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
9752 prior to raising as expected for any handler, before possible nested
9753 faults to make sure all the contexts in a chain have been adjusted by
9754 the time we propagate.
9756 2007-08-14 Pascal Obry <obry@adacore.com>
9758 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
9759 (SYSTEM_INFO): New record.
9760 (SetThreadIdealProcessor): New imported routine needed for supporting
9761 task_info pragma on Windows.
9763 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
9764 info can be applied to the current host.
9765 (Create_Task): Set the ideal processor if information is present.
9767 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
9768 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
9770 2007-08-14 Olivier Hainque <hainque@adacore.com>
9772 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
9773 stack size and initial stack pointer value for a given task.
9774 (Enter_Task): Get the stack attributes of the task we are entering and
9775 let the stack checking engine know about them.
9777 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
9778 Let the stack-checking engine know about the initial sp value and stack
9779 size associated with the current task.
9780 (Set_Stack_Info): If a stack base has been notified for the current
9781 task, honor it. Fallback to the previous less accurate method otherwise.
9783 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
9785 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9787 * sem_ch10.adb: Create a limited view of an incomplete type, to make
9788 treatment of limited views uniform for all visible declarations in a
9789 limited_withed package.
9790 Set flag indicating that a subprogram body for a child unit has a
9792 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
9793 separate declaration, remove the unit name from visibility after
9794 compilation, so that environment is clean for subsequent compilations.
9795 (Install_Limited_Context_Clauses): Do not install a
9796 limited_private_with_clause unless the current unit is a body or a
9798 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
9799 in the same fashion.
9800 (Install_Limited_Withed_Unit): Do not install a limited with clause if
9801 it applies to the declaration of the current package body.
9802 (Remove_Private_With_Clauses): If there is a regular with_clause for
9803 the unit, delete Private_With_Clause from context, to prevent improper
9804 hiding when processing subsequent nested packages and instantiations.
9806 2007-08-14 Jose Ruiz <ruiz@adacore.com>
9808 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
9809 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
9810 representing absolute path names.
9811 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
9813 * cstreams.c (__gnat_full_name for VxWorks): Use
9814 __gnat_is_absolute_path to detect whether we need to add the current
9815 directory to normalize the path.
9817 2007-08-14 Javier Miranda <miranda@adacore.com>
9820 a-tags.adb (Displace): Associate a message with the raised CE
9822 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
9823 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
9824 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
9826 (Default_Prim_Op_Count): Removed.
9827 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
9828 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
9829 Remove pragma Inline_Always.
9831 * rtsfind.ads (Default_Prim_Op_Count): Removed
9832 (Max_Predef_Prims): New entity
9833 (RE_Expanded_Name): Removed
9834 (RE_HT_Link): Removed
9835 (RE_Iface_Tag): Remmoved
9836 (RE_Ifaces_Table): Removed
9837 (RE_Interfaces_Array): Removed
9838 (RE_Interface_Data_Element): Removed
9839 (RE_Nb_Ifaces): Removed
9840 (RE_RC_Offset): Removed
9841 (RE_Static_Offset_To_Top): Removed
9843 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
9845 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
9846 Prim_Op_Count by Max_Predef_Prims.
9848 2007-08-14 Thomas Quinot <quinot@adacore.com>
9849 Vincent Celier <celier@adacore.com>
9851 * binde.adb (Elab_All_Links): Remove unnecessary call to
9852 Generic_Separately_Compiled (if a unit satisfies this predicate, there
9853 won't be an associated Afile).
9854 (Elab_All_Links): Fail if a referenced unit cannot be found
9857 Fix comments in bindgen regarding consistency checks done in Bcheck:
9858 the checks are made across units within a partition, not across several
9860 Fix generation of C binder file for VxWorks.
9862 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
9863 Generic_May_Lack_ALI, more descriptive of the current use of the
9864 predicate, and update documentation.
9866 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
9867 reorganization and documentation update for the case of predefined
9868 library generics (for which we do not reference an Afile).
9870 2007-08-14 Robert Dewar <dewar@adacore.com>
9872 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
9873 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
9874 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
9875 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
9876 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
9877 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
9878 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
9879 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
9880 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
9881 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
9882 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
9883 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
9884 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
9885 g-altcon.adb: Minor reformatting
9887 ada-tree.h: Delete empty line.
9889 ali.ads: Minor reformatting
9890 Clarification of comments.
9891 Minor spelling correction
9893 * exp_dbug.adb: Add Warnings Off to suppress new warning
9895 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
9898 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
9901 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
9903 * a-textio.ads: Reorder the standard input/output/error declarations
9906 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
9908 * par-ch2.adb: Recognize RM specially in errout
9909 Change 'R'M to RM in all error messages
9911 * scng.adb: Recognize RM specially in errout
9913 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
9914 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
9916 * s-direio.adb: Add missing routine header box.
9918 * sem_attr.ads: Add ??? comments
9920 * sem_eval.adb: Recognize RM specially in errout
9921 Change 'R'M to RM in all error messages
9923 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
9925 * s-tasinf.ads: Fix minor comment typo.
9927 * a-cihama.adb: Minor comment addition
9929 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
9932 * s-tasinf-tru64.ads: Fix minor comment typo.
9934 * itypes.ads: Comment update.
9936 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
9939 * argv.c: Added protection against null gnat_argv and gnat_envp.
9941 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
9942 warning message when Tolerate_Consistency_Errors is True.
9944 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
9945 Any_Id, as this subprogram is only applicable to *type* entities (it
9946 sets RM_Size). Instead initialize just Esize and Alignment.
9948 2007-08-14 Bob Duff <duff@adacore.com>
9950 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
9951 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
9952 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
9953 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
9954 a-coorse.ads (Next): Applied pragma Inline.
9955 Make all Containers packages Remote_Types (unless they are already
9957 (Previous): applied pragma Inline
9958 (Elements_Type): is now a record instead of an array
9960 2007-08-14 Thomas Quinot <quinot@adacore.com>
9962 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
9964 (Set_Item): When the new item is an element of the currently allocated
9965 table passed by reference, save a copy on the stack if we're going
9966 to reallocate. Also, in Table.Set_Item, make sure we test the proper
9967 variable to determine whether to call Set_Last.
9969 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
9970 symbols-vms.adb, symbols-processing-vms-alpha.adb,
9971 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
9972 some occurrences of the pattern
9974 T.Table (T.Last) := Value;
9975 with a cleaner call to
9978 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9979 Gary Dismukes <dismukes@adacore.com>
9980 Thomas Quinot <quinot@adacore.com>
9982 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
9983 derived type with interface progenitors use the analyzed formal as the
9984 parent of the actual, to create renamings for all the inherited
9985 operations in Derive_Subprograms.
9986 (Collect_Previous_Instances): new procedure within of
9987 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
9988 unit being loaded, to ensure that the generation of global symbols is
9989 consistent in different compilation modes.
9990 (Is_Tagged_Ancestor): New function testing the ancestor relation that
9991 takes progenitor types into account.
9992 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
9993 traversing over the primitives of the formal and actual types to locate
9994 any abstract subprograms of the actual type that correspond to a
9995 nonabstract subprogram of the formal type's ancestor type(s), and issue
9996 an error if such is found.
9997 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
9998 Instantiate_Package_Body, Instantiate_Subprogram_Body):
9999 Remove bogus guard around calls to Inherit_Context.
10000 (Reset_Entity): If the entity is the selector of a selected component
10001 that denotes a named number, propagate constant-folding to the generic
10002 template only if the named number is global to the generic unit.
10003 (Set_Instance_Env): Only reset the compilation switches when compiling
10004 a predefined or internal unit.
10006 2007-08-14 Ed Schonberg <schonberg@adacore.com>
10008 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
10009 parameter to determine whether operation applies to the prefix.
10010 (Complete_Object_Operation): If actual has an access type and
10011 controlling formal is not an in_parameter, reject the actual if it is
10012 an access_to_constant type.
10013 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
10014 type, the candidate operations are found in the scope of declaration of
10015 the type, because the type has no primitive subprograms.
10016 (Analyze_Selected_Component): If prefix is class-wide, and root type is
10017 a private extension, only examine visible components before trying to
10018 analyze as a prefixed call.
10019 Change Entity_List to Type_To_Use, for better readability.
10020 (Has_Fixed_Op): Use base type when checking whether the type of an
10021 operator has a user-defined multiplication/division
10022 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
10023 user-defined operators are available for fixed-point types.
10025 2007-08-14 Thomas Quinot <quinot@adacore.com>
10026 Ed Schonberg <schonberg@adacore.com>
10028 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
10029 formal At_Any_Place indicating, when True, that we want to test for
10030 availability of the stream attribute at any place (as opposed to the
10031 current visibility context only).
10032 (Missing_Read_Write_Attributes): A stream attribute is missing for the
10033 purpose of enforcing E.2.2(8) only if it is not available at any place.
10034 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
10035 when checking the legality of an extension aggregate in a preelaborable
10036 package. Treat the literal null as a valid default expression in a
10037 component declaration for a type with preelaborable initialization.
10038 A limited interface is a legal progenitor for the designated type of a
10039 remote access to class-wide type.
10041 2007-08-14 Thomas Quinot <quinot@adacore.com>
10042 Ed Schonberg <schonberg@adacore.com>
10044 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
10045 reference): Use correct entity as denoted entity for the selector of
10046 the rewritten node.
10047 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
10048 setting the Referenced_As_LHS flag for entities that are implicitly
10050 (Find_Type): If the type is an internally generated incomplete type,
10051 mark the full view as referenced, to prevent spurious warnings.
10052 (Find_Selected_Component, Has_Components): Handle properly non-limited
10053 views that are themselves incomplete types.
10054 Handle interfaces visible through limited-with clauses.
10055 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
10056 subprogram generic actual for which we have generated a renaming.
10057 Warn when the renaming introduces a homonym of
10058 the renamed entity, and the renamed entity is directly visible.
10060 2007-08-14 Ed Schonberg <schonberg@adacore.com>
10061 Hristian Kirtchev <kirtchev@adacore.com>
10063 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
10064 appear in the subtree to the current allocator if it is not a static
10066 (Resolve_Allocator): Perform cleanup if resolution has determined that
10067 the allocator is not a coextension.
10068 (Resolve): Skip an interpretation hidden by an abstract operator only
10069 when the type of the interpretation matches that of the context.
10070 (Resolve): When looping through all possible interpretations of a node,
10071 do not consider those that are hidden by abstract operators.
10072 (Resolve_Actuals): When verifying that an access to class-wide object
10073 is an actual for a controlling formal, ignore anonymous access to
10074 subprograms whose return type is an access to class_wide type.
10075 (Resolve_Slice): If the prefix of the slice is a selected component
10076 whose type depends on discriminants, build its actual subtype before
10077 applying range checks on the bounds of the slice.
10078 (Valid_Conversion): In an instance or inlined body, compare root types,
10079 to prevent anomalies between private and public views.
10080 (Resolve): Improve error message for ambiguous fixed multiplication
10081 expressions that involve universal_fixed multiplying operations.
10083 2007-08-14 Javier Miranda <miranda@adacore.com>
10084 Hristian Kirtchev <kirtchev@adacore.com>
10086 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
10087 location to allow the correct generation of errors in case of
10088 restrictions applied to the expanded code.
10089 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
10090 function if the condition does not reference them.
10091 (Expand_Entry_Body_Declarations): Mark the index constant as having a
10094 2007-08-14 Thomas Quinot <quinot@adacore.com>
10095 Pablo Oliveira <oliveira@adacore.com>
10097 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
10098 typecode parameters for a union (in a variant record), remove
10099 extraneous layer of Any wrapping for member label.
10100 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
10101 elabration statements, register the package with the name server
10102 at the beginning, not at the end, of the elaboration statements so
10103 that they can create remote access to subprogram values that designate
10104 remote subprograms from the package.
10106 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
10108 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
10109 values to compute the number of seconds since the Unix Epoc in order to
10110 account for Daylight Savings Time. Perform special processing for dates
10111 that are earlier than the Unix Epoc to obtain a negative number.
10113 2007-08-14 Emmanuel Briot <briot@adacore.com>
10115 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
10118 2007-08-14 Eric Botcazou <ebotcazou@adacore.com>
10120 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
10121 binder-generated file is not in Ada.
10122 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
10123 recorded in the ALI file.
10124 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
10126 2007-08-14 Vincent Celier <celier@adacore.com>
10128 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
10129 (Output_Source): Do nothing if parameter is No_Sdep_Id
10131 * make.adb (Gnatmake): Do not rebuild an archive simply because a
10132 shared library it imports has a later time stamp.
10133 (Check): Resolve the symbolic links in the path name of the object
10135 Check that the ALI file is in the correct object directory
10136 Check if a file name does not correspond to the mapping of units
10138 (Display_Version): New procedure
10139 (Initialize): Process switches --version and --help
10140 Use type Path_Name_Type for path name
10142 2007-08-14 Paul Hilfinger <hilfinger@adacore.com>
10144 * impunit.adb: Re-organize System.Random_Numbers and
10145 GNAT.Random_Numbers and add to builds.
10147 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
10149 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
10151 * a-assert.ads, a-assert.adb: New files.
10153 2007-08-14 Gary Dismukes <dismukes@adacore.com>
10155 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
10156 if AAMP_On_Target is True, then the size of the type encompasses two
10157 addresses (a static link and a subprogram address), except in the case
10158 of library-level access types.
10160 2007-08-14 Vincent Celier <celier@adacore.com>
10162 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
10164 (Write_Eol_Keep_Blanks): New procedure to write a line, including
10165 possible trailing spaces.
10166 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
10168 2007-08-14 Javier Miranda <miranda@adacore.com>
10170 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
10171 null-excluding access types.
10173 2007-08-14 Javier Miranda <miranda@adacore.com>
10175 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
10176 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
10177 of private types add missing check on matching interfaces in the
10178 partial and full declarations.
10179 (Analyze_Protected_Type): Code cleanup.
10180 (Analyze_Task_Type): Code cleanup.
10182 2007-08-14 Javier Miranda <miranda@adacore.com>
10184 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
10185 generated interface thunk.
10187 2007-08-14 Ed Schonberg <schonberg@adacore.com>
10189 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
10190 obsolescent warning on application of 'Class to an incomplete type.
10192 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
10193 prevent obsolescent warning on application of 'Class to an incomplete
10196 2007-08-14 Pascal Obry <obry@adacore.com>
10198 * s-fileio.adb (Is_Open): Add check for usability of the underlying
10201 2007-08-14 Cyrille Comar <comar@adacore.com>
10203 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
10204 since it is potentially used in cases implying double finalization of
10207 2007-08-14 Jose Ruiz <ruiz@adacore.com>
10209 * s-tasini.adb (Get_Stack_Info): Move this function to
10210 System.Soft_Links.Tasking because it is common to the full and the
10211 restricted run times.
10212 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
10213 in SSL.Tasking.Init_Tasking_Soft_Links.
10215 * s-solita.adb (Get_Stack_Info): Function moved from
10216 System.Tasking.Initialization because it is common to the full and the
10217 restricted run times.
10218 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
10220 2007-08-14 Arnaud Charlet <charlet@adacore.com>
10222 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
10223 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
10224 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
10227 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
10230 2007-08-14 Gary Dismukes <dismukes@adacore.com>
10232 * s-veboop.adb (SU): New named number initialized to
10233 System.Storage_Unit.
10234 (True_Val): The initialization expression is revised to use SU (=
10235 Storage_Unit) rather than assuming 8 for the component size of an
10236 unpacked Boolean array.
10238 2007-08-14 Tristan Gingold <gingold@adacore.com>
10240 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
10242 * tb-ivms.c: New file.
10244 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
10246 2007-08-14 Geert Bosch <bosch@adacore.com>
10248 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
10249 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
10250 Add required linker pragmas for automatically linking with the gnalasup
10251 linear algebra support library, and the systems math library.
10252 Rename cdot to cdotu and zdot to zdotu.
10253 Update header comment to describe purpose of package.
10255 2007-08-14 Thomas Quinot <quinot@adacore.com>
10257 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
10258 an explicitly specified Associated_Final_Chain, use that list.
10259 (Expand_N_Package_Body): Build dispatch tables of library level tagged
10261 (Expand_N_Package_Declaration): Build dispatch tables of library level
10262 tagged types. Minor code cleanup.
10264 2007-08-14 Vincent Celier <celier@adacore.com>
10266 * gnatchop.adb (Terminate_Program): Remove exception and use
10267 Types.Terminate_Program instead.
10269 * osint.ads, osint.adb (Current_Exit_Status): New global variable
10270 (Find_Program_Name): Added protection against empty name.
10271 (OS_Exit_Through_Exception): New procedure
10273 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
10274 (OS_Exit_Default): New procedure that contains the previous
10275 implementation of procedure OS_Exit.
10276 (Final_Value): Remove obsolete Interix stuff.
10278 2007-08-14 Thomas Quinot <quinot@adacore.com>
10280 * g-socket.ads: Reorganize example code so that it also works on
10283 2007-08-14 Tristan Gingold <gingold@adacore.com>
10285 * g-trasym.ads: AIX now supports symbolic backtraces.
10287 2007-08-14 Ed Schonberg <schonberg@adacore.com>
10289 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
10290 units being loaded to detect circularities. A circularity may be
10291 present even if the current chain of pending units to load starts from
10292 a limited_with_clause.
10294 * lib-load.ads: Change profile of Load_Unit to use a with_clause
10295 rather than a boolean flag, in order to detect circularities in
10298 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
10299 than propagating the From_Limited_With flag, in order to handle
10300 properly circularities involving with_clauses.
10302 2007-08-14 Nicolas Setton <setton@adacore.com>
10304 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
10307 2007-08-14 Arnaud Charlet <charlet@adacore.com>
10309 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
10310 to build for libgnala.
10311 libgnat: Add rules to build libgnala.a
10312 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
10313 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
10314 Add s-osinte-vxworks-kernel.adb to the target pairs of the
10315 kernel run-time lib for VxWorks 6, which would provide a different
10316 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
10317 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
10318 running ZCX by default.
10319 Add g-sttsne-locking to LynxOS version.
10320 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
10321 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
10323 * system-darwin-x86.ads: New file.
10325 * Make-lang.in: Delete files before copying onto them, so if they are
10326 read-only, the copy won't fail.
10327 Update dependencies
10329 2007-08-14 Pascal Obry <obry@adacore.com>
10331 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
10334 2007-08-14 Vincent Celier <celier@adacore.com>
10336 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
10337 (Gcc): Initialize Gcc_Name at the first call
10339 2007-08-14 Ed Schonberg <schonberg@adacore.com>
10341 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
10342 with_clauses of the enclosing unit when analyzing the package
10343 specification of a nested instance.
10345 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
10347 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
10348 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
10349 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
10350 layout of N_Allocator.
10352 2007-08-14 Thomas Quinot <quinot@adacore.com>
10354 * rtsfind.adb (Check_RPC): Add PCS version check.
10356 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
10357 (Gnat_Free_Software): New function.
10359 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
10360 the PCS_Version value from s-parint, used to check that it is consistent
10361 with what exp_dist expects.
10363 * s-parint.ads (PCS_Version): New entity for checking consistency
10364 between exp_dist and PCS.
10366 * gen-soccon.c: (SO_REUSEPORT): New constant.
10368 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
10370 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
10371 variable Sub_Second to Duration in order to accomodate a larger range
10372 of arithmetic operations.
10374 2007-08-14 Bob Duff <duff@adacore.com>
10376 * g-sttsne-locking.ads: Move comments from spec to body.
10377 * g-sttsne-locking.adb: Move comments from spec to body.
10378 * g-sttsne-vxworks.ads: Removed.
10379 * g-sttsne-vxworks.adb: Removed.
10381 2007-08-11 Ian Lance Taylor <iant@google.com>
10383 * misc.c (gnat_get_alias_set): Change return type to
10386 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10388 * decl.c, utils2.c: Fix whitespace in last change.
10390 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10392 * decl.c (compare_field_bitpos): Constify.
10393 * utils2.c (compare_elmt_bitpos): Likewise.
10395 2007-07-27 Aurelien Jarno <aurelien@aurel32.net>
10397 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
10398 anonymous access type.
10399 (pthread_sigmask): Now take an access sigset_t.
10401 2007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
10403 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
10405 2007-06-21 Eric Botcazou <ebotcazou@adacore.com>
10407 PR tree-optimization/25737
10408 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
10410 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
10412 * trans.c (Attribute_to_gnu): When subtracting an
10413 offset from a pointer, use POINTER_PLUS_EXPR with
10414 NEGATE_EXPR instead of MINUS_EXPR.
10415 (gnat_to_gnu): Likewise.
10416 * utils.c (convert): When converting between
10417 thin pointers, use POINTER_PLUS_EXPR and sizetype
10419 * utils2.c (known_alignment): POINTER_PLUS_EXPR
10420 have the same semantics as PLUS_EXPR for alignment.
10421 (build_binary_op): Add support for the semantics of
10422 POINTER_PLUS_EXPR's operands.
10423 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
10425 2007-06-11 Rafael Avila de Espindola <espindola@google.com>
10427 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
10428 of get_signed_or_unsigned_type.
10429 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
10431 2007-06-11 Bob Duff <duff@adacore.com>
10432 Thomas Quinot <quinot@adacore.com>
10434 * g-stsifd-sockets.adb (Create): Work around strange behavior of
10435 'bind' on windows that causes 'connect' to fail intermittently, by
10436 retrying the 'bind'.
10437 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
10439 2007-06-10 Duncan Sands <baldrick@free.fr>
10441 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
10442 than to void, for the fields when making a new fat pointer type.
10443 (gnat_substitute_in_type): Now substitute_in_type.
10444 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
10445 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
10446 * utils.c (update_pointer_to): Update fat pointers by updating the
10447 dummy node pointers used for the fields.
10449 2007-06-06 Thomas Quinot <quinot@adacore.com>
10450 Bob Duff <duff@adacore.com>
10452 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
10453 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
10454 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
10455 constant Thread_Blocking_IO, always True by default, set False
10456 on a per-runtime basis.
10457 (Need_Netdb_Buffer): New constant.
10459 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
10460 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
10463 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
10464 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
10465 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
10466 child package Task_Safe_NetDB
10467 (Host_Error_Messages): Add stub body.
10468 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
10470 * g-soccon-mingw.ads: Add Windows-specific constants.
10471 (Need_Netdb_Buffer): New constant.
10472 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
10473 wrapper and import inet_addr(3) from the standard sockets library
10475 (In_Addr): Add alignment clause.
10476 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
10478 2007-06-06 Robert Dewar <dewar@adacore.com>
10480 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
10481 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
10482 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
10483 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
10484 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
10485 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
10486 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
10487 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
10488 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
10489 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
10490 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
10491 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
10492 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
10493 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
10494 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
10495 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
10496 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
10497 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
10498 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
10499 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
10500 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
10501 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
10502 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
10503 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
10504 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
10505 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
10506 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
10507 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
10508 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
10509 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
10510 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
10511 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
10512 Unchecked_* by Ada.Unchecked_*
10514 2007-06-06 Robert Dewar <dewar@adacore.com>
10516 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
10517 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
10518 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
10519 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
10520 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
10521 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
10523 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
10524 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
10525 s-tasloc.adb, s-tasloc.ads: New files.
10527 2007-06-06 Bob Duff <duff@adacore.com>
10529 * g-expect-vms.adb:
10530 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
10531 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
10532 (Send_Signal, Close): Raise Invalid_Process if the process id is
10534 (Pattern_Matcher_Access): Is now a general access type to be able to
10535 use aliased string.
10537 2007-06-06 Thomas Quinot <quinot@adacore.com>
10538 Arnaud Charlet <charlet@adacore.com>
10540 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
10541 (SIGEMT is now used instead of SIGTERM on AIX).
10543 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
10544 (Time_Slice_Supported): Set to True.
10545 Use SIGEMT instead of SIGTERM as SIGADAABORT.
10547 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
10549 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
10550 (Time, Time)): Use To_Relative_Time rather than manual calculation to
10551 express the bounds of Duration as Time. Raise Time_Error when the
10552 result is greater or equal to the higher bound of Duration (on the
10554 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
10555 Ada_High_And_Leaps.
10556 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
10557 Ada_High_And_Leaps.
10558 ("-" (Time, Time)): Reorder code.
10559 (All_Leap_Seconds): Removed.
10560 (Arithmetic_Operations.Add): Remove sign related kludge.
10561 (Arithmetic_Operations.Difference): Control the leaps seconds processing
10562 with flag Leap_Support.
10563 (Arithmetic_Operations.Subtract): Remove sign related kludge.
10564 (Check_Within_Time_Bounds): New procedure.
10565 (Clock): Control the leap seconds processing with flag Leap_Support.
10566 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
10567 (Formatting_Operations.Split): Control the leap seconds processing with
10569 (Formatting_Operations.Time_Of): Control the leaps seconds processing
10570 with flag Leap_Support. Adjust the year, month and day (if applicable)
10571 when the value of day seconds designates a new day.
10572 (Split): Use parameter associations for better readability. Integrate
10574 (Time_Of): Use parameter associations for better readability. Integrate
10577 * a-calfor.adb (Split): Use parameter associations for better
10578 readability. Integrate flag Is_Ada_05.
10579 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
10580 better readability. Integrate flag Is_Ada_05.
10582 2007-06-06 Arnaud Charlet <charlet@adacore.com>
10584 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
10585 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
10586 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
10587 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
10588 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
10589 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
10590 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
10591 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
10592 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
10593 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
10594 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
10595 time when entering this routine to detect a backward clock setting
10596 (manual setting or DST adjustment), to avoid waiting for a longer delay
10598 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
10599 Remove handling of deferred priority change, and replace by setting the
10600 task priority directly, as required by AI-188.
10602 (Max_Task_Image_Length): New constant.
10603 Replace Warnings (Off) by Unreferenced pragma, cleaner.
10604 (Dynamic_Priority_Support): Removed, no longer needed.
10605 (Poll_Base_Priority_Change): Ditto.
10606 (Set_Ceiling): Add this procedure to change the ceiling priority
10607 associated to a lock. This is a dummy implementation because dynamic
10608 priority ceilings are not supported by the underlying system.
10610 * a-dynpri.adb (Set_Priority): Take into account case where Target is
10611 accepting a RV with its priority boosted.
10612 Remove handling of deferred priority change, and replace by setting the
10613 task priority directly, as required by AI-188.
10615 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
10617 Remove handling of deferred priority change, and replace by setting the
10618 task priority directly, as required by AI-188.
10619 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
10620 of Self_Id earlier.
10622 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
10623 (Poll_Base_Priority_Change): Removed.
10624 Code clean up: use SSL.Current_Target_Exception.
10626 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
10627 to run as this is a potentially dispatching point.
10628 (Call_Synchronous): Use Local_Defer_Abort.
10629 (Callable): Relax assertion.
10630 (Selective_Wait): Relax assertion in case abort is not allowed.
10631 Remove handling of deferred priority change, and replace by setting the
10632 task priority directly, as required by AI-188.
10634 * s-tasuti.adb (Make_Passive): Adjust assertions.
10635 Remove handling of deferred priority change, and replace by setting the
10636 task priority directly, as required by AI-188.
10638 2007-06-06 Arnaud Charlet <charlet@adacore.com>
10640 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
10641 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
10642 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
10643 system-vxworks-mips.ads, system-vxworks-alpha.ads,
10644 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
10645 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
10646 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
10647 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
10648 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
10649 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
10650 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
10651 This patch changes the largest non-binary modulus from 2**31-1 to
10653 (Compiler_System_Version): Removed, no longer used.
10654 Clean up system files by removing flags only used on a single target.
10655 Also remove obsolete flags, only used during bootstrap from system.ads
10656 (Address): Add a pragma Preelaborable_Initialization.
10658 * system-aix.ads: Ditto.
10659 (GCC_ZCX_Support): Set to true.
10660 Update priority range on AIX and map Ada priorities to target
10661 priorities appropriately for different scheduling policies.
10663 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
10665 2007-06-06 Vincent Celier <celier@adacore.com>
10667 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
10668 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
10670 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
10671 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
10672 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
10673 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
10674 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
10675 MLib.Tgt, containing the default versions of the exported subprograms.
10676 For each platform, create a specific version of the body of new child
10677 package MLib.Tgt.Specific that contains only the body of subprograms
10678 that are different from the default.
10679 (Archive_Builder_Append_Options): New function.
10681 2007-06-06 Matthew Gingell <gingell@adacore.com>
10683 * s-osinte-aix.adb: Map Ada priorities to target priorities
10684 appropriately for different scheduling policies.
10686 2007-06-06 Arnaud Charlet <charlet@adacore.com>
10688 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
10690 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
10691 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
10693 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
10695 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
10696 Noop on VMS, added for interface commonality.
10698 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
10699 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10700 Olivier Hainque <hainque@adacore.com>
10702 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
10703 renamed expression of a full renaming at toplevel.
10704 (gnat_to_gnu_entity, case object): If not defining, do not look inside
10705 the values the constant is initialized to if it is an N_Allocator.
10706 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
10707 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
10708 (make_aligning_type): Accept an extra ROOM argument for storage to be
10709 made available before the aligned field, and an extra BASE_ALIGN
10710 argument for callers to pass the alignment guaranteed to be honored for
10711 the whole aligning object. Avoid call to finish_record_type, which only
10712 interferes with the sizes we want to set.
10713 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
10714 make_aligning_type for super-aligned objects on stack.
10715 (components_to_record): Pass the adjusted size of the type when creating
10716 fields in the qualified union for the variant part.
10717 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
10718 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
10720 (maybe_pad_type): Set TYPE_USER_ALIGN.
10721 (make_aligning_type): Likewise.
10722 ALIGN argument is unsigned int.
10723 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
10724 (gnat_to_gnu_param): Likewise, for parameters.
10725 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
10726 if it is constant and stems from a function call.
10727 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
10728 of the record is specified. Adjust accordingly.
10729 (adjust_packed): New static function.
10730 (gnat_to_gnu_field): Use it to adjust the packedness setting.
10731 (components_to_record): Likewise.
10732 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
10733 side-effects if the object is deemed constant.
10734 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
10735 type instead of merely finalizing it. Tidy.
10736 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
10737 <E_Access_Type>: Likewise.
10738 (defer_debug_incomplete_list): Rename to defer_finalize_list.
10739 (defer_debug_level): Delete.
10740 (gnat_to_gnu_entity) <debug_deferred>: Likewise
10741 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
10743 <E_Record_Type>: Do not explicitly defer finalizing the type.
10744 Adjust for write_record_type_debug_info renaming.
10745 <E_Subprogram_Type>: Likewise.
10746 Finalize deferred types right after deferred incomplete types are
10748 (rest_of_type_decl_compilation): New global function.
10749 (components_to_record): Rename defer_debug parameter to do_not_finalize.
10750 (components_to_record): Propagate the packedness to the fields of the
10751 qualified union type if there is a variant part.
10752 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
10753 instead of inline code to adjust the XUT field offsets.
10754 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
10755 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
10756 and write the debug info if the type derives from a discriminated one.
10757 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
10758 <E_Array_Subtype>: Likewise.
10759 <E_String_Literal_Subtype>: Likewise.
10760 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
10761 an alignment clause.
10762 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
10763 before giving warning.
10764 (prepend_one_attribute_to): New function, helper to prepend an attribute
10765 to an attribute list.
10766 (gnat_to_gnu_entity) <E_Procedure>: Use it.
10767 (prepend_attributes): Likewise.
10768 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
10769 <E_Array_Type>: Declare the padding type for the element type, if any.
10770 <E_Array_Subtype>: Likewise.
10771 (defer_limited_with): New variable.
10772 (Gigi_Equivalent_Type): New function.
10773 (gnat_to_gnu_entity): Use it at start and use result throughout.
10774 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
10775 Gigi_Equivalent_Type, support Limited_With, allow two levels of
10776 indirection, precompute if unconstrained array to simplify logic, and
10777 use defer_limited_with to defer elaboration of some types from limited
10779 (finalize_from_with_types): New function.
10781 2007-06-06 Gary Dismukes <dismukes@adacore.com>
10782 Eric Botcazou <ebotcazou@adacore.com>
10783 Tristan Gingold <gingold@adacore.com>
10784 Olivier Hainque <hainque@adacore.com>
10786 * trans.c (Identifier_to_gnu): Change test for deferred constant by
10787 adding guard that the entity is an E_Constant before testing presence
10788 of Full_view (and remove unnecessary test that entity is not a type).
10789 For a CONST_DECL used by reference, manually retrieve
10790 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
10791 (struct language_function): Move from utils.c to here.
10792 (struct parm_attr): New structure.
10793 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
10794 (f_parm_attr_cache): New macro.
10795 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
10796 expressions for the 'First, 'Last and 'Length attributes of the
10797 unconstrained array IN parameters.
10798 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
10799 Allocate the information structure for the function earlier, as well
10800 as the language-specific part.
10801 If the parameter attributes cache has been populated, evaluate the
10802 cached expressions on entry.
10803 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
10804 N_Procedure_Call_Statement and N_Indexed_Component.
10805 (Pragma_to_gnu): Translate inspection_point to an asm statement
10806 containaing a comment and a reference to the object (either its address
10807 for BLKmode or its value).
10808 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
10809 to go to DECL_INITIAL. Together with the size constraint relaxation
10810 in create_var_decl, enlarges the set of situations in which an
10811 identifier may be used as an initializer without implying elaboration
10813 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
10814 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
10816 (maybe_stabilize_reference): Remove lvalues_only parameter.
10817 (gnat_stabilize_reference): Adjust for above change.
10818 (gnat_to_gnu): Do not set location information on the result
10819 if it is a reference.
10820 (add_cleanup): Add gnat_node parameter and set the location of the
10822 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
10823 (Exception_Handler_to_gnu_zcx): Likewise.
10824 (gigi): Remove the cgraph node if the elaboration procedure is empty.
10825 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
10826 the former right after the latter.
10827 (start_stmt_group): Make global.
10828 (end_stmt_group): Likewise.
10829 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
10831 (gnu_program_error_label_stack): Likewise.
10832 (gigi): Initialize them.
10833 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
10834 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
10836 (push_exception_label_stack): New function.
10837 (takes_address): New function.
10839 * utils.c (struct language_function): Move to trans.c from here.
10840 (unchecked_convert): Do not wrap up integer constants in
10841 VIEW_CONVERT_EXPRs.
10842 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
10843 the latter for aggregate types, unexpected by later passes, and relax an
10844 arbitrary size constraint on the former.
10845 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
10846 to compare the sizes.
10847 (convert_vms_descriptor): When converting to a fat pointer type, be
10848 prepared for a S descriptor at runtime in spite of a SB specification.
10849 (shift_unc_components_for_thin_pointers): New function.
10850 (write_record_type_debug_info): For variable-sized fields, cap the
10851 alignment of the pointer to the computed alignment.
10852 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
10853 If REP_LEVEL is 2, do not compute the sizes.
10854 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
10855 (build_unc_object_type): Likewise.
10856 (declare_debug_type): New function.
10858 * ada-tree.def: USE_STMT: removed (not emitted anymore).
10860 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
10861 no statement is expandable anymore.
10862 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
10863 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
10864 when the user requested it explicitely.
10865 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
10867 (get_alias_set): Return alias set 0 for a type if
10868 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
10870 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
10871 (DECL_FUNCTION_STUB): New accessor macro.
10872 (SET_DECL_FUNCTION_STUB): New setter macro.
10874 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
10876 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
10879 2007-06-06 Jose Ruiz <ruiz@adacore.com>
10881 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
10882 Rename to Abort_Task_Interrupt to be able to keep the same interface
10883 as the rest of the targets.
10885 * s-osinte-vxworks.ads s-osinte-vxworks.adb
10886 (To_VxWorks_Priority): Remove explicit "in" mode indicator
10888 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
10891 2007-06-06 Robert Dewar <dewar@adacore.com>
10893 * a-chahan.ads: Remove obsolescent pragmas
10895 * a-chlat1.ads: Minor reformatting
10897 2007-06-06 Robert Dewar <dewar@adacore.com>
10899 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
10902 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
10905 * errout.ads (Finalize): Changed interface
10906 (Output_Messages): New procedure
10907 (Compilation_Errors): New Interface
10909 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
10910 Finalize/Output_Messages interface for Errout
10911 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
10914 2007-06-06 Thomas Quinot <quinot@adacore.com>
10915 Olivier Hainque <hainque@adacore.com>
10916 Robert Dewar <dewar@adacore.com>
10918 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
10920 (Raise_Current_Excep): Call Debug_Raise_Exception just before
10921 propagation starts, to let debuggers know about the event in a reliable
10923 (Local_Raise): Moved to System.Exceptions
10924 More convenient to have this as a separate unit
10926 * s-except.adb, s-except.ads: New files.
10928 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
10929 Debug_Unhandled_Exception in System.Exceptions where it belongs
10930 together with a couple of other debug helpers.
10931 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
10932 the former Unhandled_Exception.
10934 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
10935 (Warn_No_Exception_Propagation): New procedure
10936 (Warn_If_No_Propagation): Rewritten for new warning generation
10937 (Expand_Exception_Handlers): New warning generation
10938 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
10939 (Add_Exception_Label): Use Special_Exception_Package_Used for test
10940 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
10941 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
10942 even if restriction is set (makes life easier in Check_Returns)
10943 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
10944 checking exception identities.
10945 (Expand_Local_Exception_Handlers): Do not optimize when all others case
10946 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
10947 block for handler (used by Check_Returns)
10948 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
10949 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
10950 remove all exception handlers when optimizing local raise statements.
10951 (Find_Local_Handler): Use Get_Renamed_Entity
10952 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
10953 marked analyzed after expanding exception handlers, do not generate
10954 redundant cleanup actions, because they have been constructed already.
10956 2007-06-06 Thomas Quinot <quinot@adacore.com>
10958 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
10959 presence of this categorization pragma is mandated by the language.
10960 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
10963 2007-06-06 Vincent Celier <celier@adacore.com>
10964 Robert Dewar <dewar@adacore.com>
10966 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
10967 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
10968 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
10969 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
10970 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
10971 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
10972 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
10973 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
10974 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
10975 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
10976 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
10978 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
10979 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
10980 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
10981 Use variables of types File_Name_Type and Unit_Name_Type in error
10983 (Get_Name): Add parameter Ignore_Special, and set it reading file name
10984 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
10986 Define flags Flag217-Flag230 with associated subprograms
10987 (Flag_Word5): New record type.
10988 (Flag_Word5_Ptr): New access type.
10989 (To_Flag_Word5): New unchecked conversion.
10990 (To_Flag_Word5_Ptr): Likewise.
10991 (Flag216): New function.
10992 (Set_Flag216): New procedure.
10994 2007-06-06 Arnaud Charlet <charlet@adacore.com>
10996 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
10999 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
11001 2007-06-06 Javier Miranda <miranda@adacore.com>
11003 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
11005 (Object_Specific_Data_Array): This is now internal to the package.
11006 (Object_Specific_Data): This is now internal to the package.
11007 (Select_Specific_Data_Element): This is now internal to the package.
11008 (Select_Specific_Data_Array): This is now internal to the package.
11009 (Select_Specific_Data): This is now internal to the package.
11010 (Offset_To_Top_Function_Ptr): This is now public.
11011 (To_Offset_To_Top_Function_Ptr): Removed.
11012 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
11013 local to subprogram Offset_To_Top.
11014 (Predefined_DT): Removed.
11015 (Typeinfo_Ptr): Removed.
11016 (OSD): This function is now internal to this package.
11017 (SSD): This function is now internal to this package.
11018 (DT): New function that displaces the pointer to the table of primitives
11019 to get access to the enclosing wrapper record.
11020 (IW_Membership): Code cleanup.
11021 (Offset_To_Top): Code cleanup.
11022 (Predefined_DT): Removed.
11023 (Register_Interface_Tag): Removed.
11024 (Set_Interface_Table): Removed.
11025 (Set_Offset_Index): Removed.
11026 (Set_Offset_To_Top): Code cleanup.
11027 (Set_OSD): Removed.
11028 (Set_Signature): Removed.
11029 (Set_SSD): Removed.
11030 (Set_Tagged_Kind): Removed.
11031 (Typeinfo_Ptr): Removed.
11033 (Displace): Add missing check on null actual.
11035 * exp_disp.ads, exp_disp.adb
11036 (Select_Expansion_Utilities): Removed.
11037 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
11038 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
11039 the interface requires a new parameter.
11040 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
11041 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
11042 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
11043 Done to remove package Select_Expansion_Utilities.
11044 (Make_DT): New implementation for statically allocated dispatch tables.
11045 (Make_Secondary_DT): Moved to the scope of Make_DT.
11046 (Register_Primitive): Code cleanup plus incoporate the use of the new
11047 function DT_Address_Attribute.
11048 (Expand_Interface_Thunk): The profile of this subprogram has been
11049 changed to return the Thunk_Id and the corresponding code.
11050 (Fill_DT_Entry): Removed. Its functionality is now provided by
11051 subprogram Register_Primitive.
11052 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
11053 subprogram Register_Primitive.
11054 (Register_Primitive): New subprogram that incorporates the previous
11055 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
11056 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
11057 was only required to call Make_DT_Access_Action, which is now removed.
11058 (Ada_Actions): Removed
11059 (Action_Is_Proc): Removed
11060 (Action_Nb_Arg): Removed
11061 Replace all the calls to Make_DT_Access_Action by direct calls to
11062 Make_Procedure_Call_Statement or Make_Function_Call.
11063 (Set_DTC_Entity_Value): New subprogram.
11064 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
11065 (Expand_Interface_Thunk): Add missing support for primitives that are
11066 functions with a controlling result (case in which there is no need
11067 to generate the thunk).
11069 * exp_atag.ads, exp_atag.adb
11070 (Build_DT): New subprogram that displaces the pointer to reference the
11071 base of the wrapper record.
11072 (Build_Typeinfo_Offset): Removed.
11073 (RTE_Tag_Node): Removed.
11074 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
11075 (Build_Get_RC_Offset): Removed.
11076 (Build_Inherit_Predefined_Prims): Removed.
11077 (Build_Inherit_TSD: Removed.
11078 (Build_New_TSD): Removed.
11079 (Build_Set_External_Tag): Removed.
11080 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
11081 (Build_Set_Prim_Op_Address): Add documentation.
11082 (Build_Set_TSD): Removed.
11084 * rtsfind.ads, rtsfind.adb
11085 (Load_Fail): If load fails and we are not in configurable run-time
11086 mode, then raise Unrecoverable_Error.
11087 (Text_IO_Kludge): Generate an error message if a run-time library is
11088 not available in a given run-time (ie. zfp run-time).
11089 (RTE_Record_Component): Add code to check that the component we search
11090 for is not found in two records in the given run-time package.
11091 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
11092 (RE_DT_Predef_Prims_Offset): New entity
11093 (RE_Static_Offset_To_Top): New entity
11094 (RE_HT_Link): New entity.
11095 (System_Address_Image): Addition of this run-time package.
11096 (RE_Address_Image): New entity.
11097 (RE_Abstract_Interface): Removed.
11098 (RE_Default_Prim_Op_Count): Removed.
11099 (RE_DT_Entry_Size): Removed.
11100 (RE_DT_Min_Prologue_Size): Removed.
11101 (RE_DT_Prologue_Size): Removed.
11102 (RE_Ifaces_Table_Ptr): Removed.
11103 (RE_Interface_Data_Ptr): Removed.
11104 (RE_Type_Specific_Data): Removed.
11105 (RE_Primary_DT): Removed.
11106 (RE_Register_Interface_Tag): Removed.
11107 (RE_Set_Offset_Index): Removed.
11108 (RE_Set_OSD): Removed.
11109 (RE_Set_SSD): Removed.
11110 (RE_Set_Signature): Removed.
11111 (RE_Set_Tagged_Kind): Removed.
11112 (RE_Address_Array): New entity.
11113 (RE_DT): New entity.
11114 (RE_Iface_Tag): New entity.
11115 (RE_Interfaces_Table): New entity.
11116 (RE_No_Dispatch_Table): New entity.
11117 (RE_NDT_Prims_Ptr): New entity.
11118 (RE_NDT_TSD): New entity.
11119 (RE_Num_Prims): New entity.
11120 (RE_Offset_To_Top_Function_Ptr): New entity.
11121 (RE_OSD_Table): New entity.
11122 (RE_OSD_Num_Prims): New entity.
11123 (RE_Predef_Prims): New entity
11124 (RE_Predef_Prims_Table_Ptr): New entity.
11125 (RE_Primary_DT): New entity.
11126 (RE_Signature): New entity.
11127 (RE_SSD): New entity.
11128 (RE_TSD): New entity.
11129 (RE_Type_Specific_Data): New entity.
11130 (RE_Tag_Kind): New entity.
11132 2007-06-06 Thomas Quinot <quinot@adacore.com>
11134 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
11135 C imported variable.
11136 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
11139 2007-06-06 Robert Dewar <dewar@adacore.com>
11141 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
11144 2007-06-06 Vincent Celier <celier@adacore.com>
11146 * a-tifiio.adb (Put, internal): For negative numbers, check that there
11147 is room for at least one digit and the minus sign.
11148 (Put.Put_Character): Never put a character outside of the range of
11151 2007-06-06 Olivier Hainque <hainque@adacore.com>
11152 Eric Botcazou <ebotcazou@adacore.com>
11154 * utils2.c (build_allocator): Provide the extra arguments to
11155 make_aligning_type for super-aligned objects allocated from the default
11156 pool. Leave enough room for a pointer before the aligning field, and
11157 store the system's allocator return value there.
11158 (build_call_alloc_dealloc): When releasing a super-aligned object,
11159 retrieve the system's allocator return value from where build_allocator
11160 has stored it, just ahead of the adjusted address we are passed.
11161 (build_call_raise): Handle properly the generation of line numbers when
11162 the node is marked No_Location.
11163 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
11164 by using DECL_UID on ties.
11165 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
11167 (build_call_raise): Handle converting exception into goto; support new
11169 (build_component_ref): Add new arg to build_call_raise.
11171 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
11173 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
11174 "." in the case of nnn.xxx when nnn terminates with an underscore.
11175 Parse the remaining "#" or ":" in the case of nnn#.xxx#
11177 2007-06-06 Robert Dewar <dewar@adacore.com>
11179 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
11181 2007-06-06 Arnaud Charlet <charlet@adacore.com>
11182 Vincent Celier <celier@adacore.com>
11183 Robert Dewar <dewar@adacore.com>
11185 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
11187 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
11188 ((destructor)) for adafinal, even when switch -a is used.
11189 Do not issue pragma Linker_Destructor for adafinal when switch -a is
11191 (Gen_Object_Files_Options): Add formatting of Linker Options, when
11192 Output_Linker_Option_List is set. Suppress this formatting when
11193 Zero_Formatting is set.
11194 Add case for CLI_Target.
11195 (System_Restrictions_Used): New flag, used to avoid generating with of
11196 System_Restrictions and initialization of the data unless there is
11197 some use of System.Restrictions in the partition.
11198 (Check_System_Restrictions_Used): New procedure
11200 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
11201 since we only with this unit in the binder file if it is used elsewhere
11204 2007-06-06 Vincent Celier <celier@adacore.com>
11206 * bindusg.adb: Add line for @<response file>
11207 Add lines for new switches -R and -Z
11209 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
11210 hierarchy in the list of files of the closure when -R is used
11211 (Gnatbind): Accept arguments starting with '@' to indicate response
11212 files and take the arguments from the response files.
11213 If List_Closure is set, display the referenced files
11215 2007-06-06 Javier Miranda <miranda@adacore.com>
11216 Robert Dewar <dewar@adacore.com>
11217 Ed Schonberg <schonberg@adacore.com>
11219 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
11220 which the address-clause is applied to in-mode actuals (allowed by
11222 (Apply_Discriminant_Check): Do not generate a check if the type is
11223 constrained by a current instance.
11224 (Activate_Division_Check): New procedure
11225 (Activate_Overflow_Check): New procedure
11226 (Activate_Range_Check): New procedure
11227 Call these new Activate procedures instead of setting flags directly
11228 (Apply_Array_Size_Check): Removed, no longer needed.
11229 Code clean up: remove obsolete code related to GCC 2.
11230 (Get_E_Length): Protect against bomb in case scope is standard
11231 (Selected_Range_Checks): If the node to be checked is a conversion to
11232 an unconstrained array type, and the expression is a slice, use the
11233 bounds of the slice to construct the required constraint checks.
11234 Improve NOT NULL error messages
11235 (Apply_Constraint_Check): If the context is a null-excluding access
11236 type, diagnose properly the literal null.
11238 2007-06-06 Pascal Obry <obry@adacore.com>
11240 * clean.adb (Clean_Archive): Use untouched casing for the archive name
11241 and the corresponding .deps file.
11242 (Clean_Interface_Copy_Directory): Use untouched casing for the library
11243 src directory. Minor code-clean-up. Use untouched casing for files
11244 read into the library src dir.
11245 (Clean_Library_Directory): Idem.
11246 (Parse_Cmd_Line): Accept new switch -aP
11248 2007-06-06 Javier Miranda <miranda@adacore.com>
11249 Ed Schonberg <schonberg@adacore.com>
11250 Robert Dewar <dewar@adacore.com>
11251 Eric Botcazou <ebotcazou@adacore.com>
11252 Arnaud Charlet <charlet@adacore.com>
11254 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
11255 applicable to types that have the With_Type flag set. Returns the
11256 non-limited view of the type, if available, otherwise the type itself.
11257 For class-wide types, there is no direct link in the tree, so we have
11258 to retrieve the class-wide type of the non-limited view of the Etype.
11259 New attributes Static_Initialization and Static_Elaboration_Desired.
11260 Remove the pragma Thread_Body, and the associated flag
11261 Is_Thread_Body in entities, and all related code.
11262 (Suppress_Value_Tracking_On_Call): New flag
11263 E_Exception has Esize and Alignment fields
11264 (Universal_Aliasing): New function.
11265 (Set_Universal_Aliasing): New procedure.
11266 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
11267 (Check_Nested_Access): New procedure.
11268 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
11269 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
11270 (Related_Interface): New attribute. Present in dispatch table pointer
11271 components of records. Set to point to the entity of the corresponding
11273 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
11274 (Original_Access_Type): Remove, not needed.
11275 (Root_Type): Handle properly subtypes of class-wide-types.
11278 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
11279 class-wide types visible through limited-with clauses.
11280 (Try_Primitive_Operation): When examining all primitive operations of a
11281 tagged type, do not consider subprograms labeled as hidden unless they
11282 belong to a private generic type with a tagged parent.
11283 (Try_Object_Operation): Extensive rewriting, to handle properly various
11284 overloading cases, when several ancestors may have class-wide operations
11285 that are possible candidates, and when the overloaded functions return
11286 array types and have defaulted parameters so that the call may be
11287 interpreted as an indexing.
11288 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
11289 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
11290 successive actuals before analyzing the call itself.
11291 (Try_Primitive_Operation): A primitive operation is compatible with the
11292 prefix if the prefix has a synchronized type and the type of the formal
11293 is its corresponding record, as can be the case when the primitive
11294 operation is declared outside of the body of the type.
11295 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
11296 perform homonym traversal, looking for class-wide operation matches
11297 (formerly done in statements of Try_Class_Wide_Operation). Matches on
11298 access parameters are now restricted to anonymous access types.
11299 (Mark_Allocator): An allocator with a discriminant association parent is
11301 (Try_One_Prefix_Interpretation): If the type of the object is
11302 incomplete, as can be happen when it is a limited view obtained through
11303 a limited_with_clause, the selected component is not part of a prefixed
11305 (Complete_Object_Operation): Diagnose properly an object that is not
11306 aliased when the corresponding controlling formal is an access
11308 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
11309 ambiguous calls in prefixed notation, where two primitives differ only
11310 in that the controlling argument of one is an access parameter.
11312 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
11313 whether a function that returns an unconstrained type can be inlined.
11314 (Process_Formals): Diagnose properly the illegal use of an incomplete
11315 type in the profile of an access_to_subprogram declaration.
11316 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
11317 operations are attached to the corresponding record.
11318 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
11319 When processing a primitive of a concurrent type which implements an
11320 interface change the type of all controlling formals to that of the
11321 corresponding record type.
11322 (Check_Synchronized_Overriding): Relax the conditional logic when trying
11323 to determine the tagged type to which a primitive belongs.
11324 (Check_Conventions): Capture condition to ignore a primitive operation
11325 (which is shared between the loop in Check_Conventions and the one in
11326 Check_Convention) in a new local function Skip_Check.
11327 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
11328 confusion with Check_Conventions' own Prim_Op local variable.
11329 (Create_Extra_Formals): Test for a tagged result type rather than a
11330 controlling result when determining whether to add a BIP_Alloc_Form
11331 formal and a BIP_Final_List formal to the function.
11332 (Check_Conformance); For parameters that are anonymous access types,
11333 subtype conformance requires that the not null and the constant
11334 indicators must match
11335 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
11336 to retrieve the appropriate type when processing a concurrent type
11337 declared within a generic. Minor comment reformatting. Change invocation
11338 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
11340 (Analyze_Subprogram_Body): If the return type of a function is an
11341 anonymous access to the limited view of a class-wide type, and the
11342 non-limited view of the type is available, update the type of the
11343 function so that code can be generated.
11344 (Process_Formals): In case of access-subtype itype whose designated
11345 type is also an itype (situation that happens now with access to
11346 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
11347 attribute to avoid backend problems.
11348 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
11349 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
11350 anonymous types' designated types are same before testing
11351 Subtypes_Statically_Match.
11352 (Create_Extra_Formals): Test for a named access parameter that is a
11353 controlling formal as an additional condition for adding an
11354 accessibility level formal. This can occur in the subp type created for
11355 dispatching calls in Expand_Dispatching_Call, and allows calling
11356 Create_Extra_Formals from that procedure rather than special-casing the
11357 extra formals there.
11358 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
11359 when the function has a controlling result.
11360 (Check_Returns): Add much more knowledge of the optimization of local
11361 raise statements to gotos, to retain proper warnings in this case.
11362 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
11363 nodes when looking for last statement.
11365 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
11366 class-wide types visible through limited with clauses.
11367 (Add_One_Interp): If the operands are anonymous access types, the
11368 predefined operator on universal_access is immediately visibles
11369 (Find_Unique_Type): Handle anonymous access to subprogram types just as
11370 other anonymous access types.
11371 (Disambiguate): Take into account CIL convention.
11372 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
11374 2007-06-06 Robert Dewar <dewar@adacore.com>
11376 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
11377 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
11378 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
11379 Fix lower bound of tables.
11382 * nlists.adb: Ditto.
11383 (Prev_Node, Next_Node): Change index type to Int so that it properly
11384 covers the range First_Node_Id - 1 up.
11386 2007-06-06 Javier Miranda <miranda@adacore.com>
11387 Ed Schonberg <schonberg@adacore.com>
11388 Bob Duff <duff@adacore.com>
11389 Hristian Kirtchev <kirtchev@adacore.com>
11391 * exp_aggr.ads, exp_aggr.adb:
11392 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
11393 in extension aggregates.
11394 (Flatten): Other conditions being met, an aggregate is static if the
11395 low bound given by component associations is different from the low
11396 bound of the base index type.
11397 (Packed_Array_Aggregate_Handled): If the component type is itself a
11398 packed array or record, the front-end must expand into assignments.
11399 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
11400 Init_Pr, instead of Ancestor_Is_Expression.
11401 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
11402 coextension chain root, either generate a list controller or use the
11403 already existing one.
11404 (Static_Array_Aggregate): New procedure to construct a positional
11405 aggregate that can be handled by the backend, when all bounds and
11406 components are compile-time known constants.
11407 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
11408 types covering interface types into assignments.
11409 (Replace_Type): move to Build_Record_Aggr_Code.
11410 (Expand_Record_Aggr_Code): if the target of the aggregate is an
11411 interface type, convert to the definite type of the aggregate itself,
11412 so that needed components are visible.
11413 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
11414 components and the context is an extended return statement do not
11415 create a transient block for it, to prevent premature finalization
11416 before the return is executed.
11417 (Gen_Assign): Do not generate a call to deep adjust routine if the
11418 component type is itself an array of controlled (sub)-components
11419 initialized with an inner aggregate.
11420 (Component_Check): New name for Static_Check. This name is now more
11421 appropriate, and documentation is added which was missing.
11422 (Component_Check): Add test for bit aligned component value
11423 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
11424 Tagged_Comps, name is more appropriate given added function below.
11425 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
11427 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
11428 Javier Miranda <miranda@adacore.com>
11429 Robert Dewar <dewar@adacore.com>
11431 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
11432 Terminated: Add unchecked type conversion from System.Address to
11433 System.Tasking.Task_Id when calling the predefined primitive
11435 Disable new Ada 05 accessibility check for JVM.NET targets, which
11436 cannot be implemented in a practical way.
11437 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
11438 the sources always references the tag of the actual object. Therefore,
11439 if 'Tag is applied in the sources to class-wide interface objects we
11440 generate code that displaces "this" to reference the base of the object.
11441 (Expand_N_Attribute_Reference, case Size): Return specified size if
11442 known to front end.
11443 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
11444 has code that displaces the pointer of the object to manage interface
11445 types. However this code must not be executed when the prefix is a
11446 subprogram. This bug caused the wrong expansion of the internally
11447 generated assignment that fills the dispatch table when the primitive
11448 is a function returning a class-wide interface type.
11449 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
11450 Set_Attribute_Name for Name_Unaligned_Valid.
11452 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11453 Gary Dismukes <dismukes@adacore.com>
11455 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
11456 If the initialization is the equivalent aggregate of the initialization
11457 procedure of the type, do not remove it.
11458 (Expand_N_Attribute_Definition_Clause): Exclude access variables
11459 initialized to null from having their expression reset to empty and
11460 note this exception in the comment.
11462 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
11463 Robert Dewar <dewar@adacore.com>
11464 Ed Schonberg <schonberg@adacore.com>
11465 Gary Dismukes <dismukes@adacore.com>
11467 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
11468 Add "with" and "use" clauses for Sem_Attr.
11469 (Expand_Current_Value): Do not replace occurences of attribute
11470 references where the prefix must be a simple name.
11472 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
11473 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
11474 Attribute_Requires_Simple_Name_Prefix.
11475 (Name_Modifies_Prefix): Body of new function.
11476 (Requires_Simple_Name_Prefix): Body of new function.
11477 (Resolve_Attribute, case Access): Improve error message for case of
11478 mismatched conventions.
11479 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
11481 (Analyze_Attribute, case 'Access): If the type of the prefix is a
11482 constrained subtype for a nominal unconstrained type, use its base type
11483 to check for conformance with the context.
11484 (Resolve_Attribute): Remove test of the access type being associated
11485 with a return statement from condition for performing accessibility
11486 checks on access attributes, since this case is now captured by
11487 Is_Local_Anonymous_Access.
11488 (Analyze_Access_Attribute): Set Address_Taken on entity
11489 (Analyze_Attribute, case Address): Set Address_Taken on entity
11490 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
11491 validating an access attribute whose prefix is a current instance.
11492 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
11493 applied to dispatching operations, if freezing is required then we set
11494 the attribute Has_Delayed_Freeze in the prefix's entity.
11495 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
11496 current scope if access of local subprogram taken
11497 (Analyze_Access_Attribute): Check legality of self-reference even if the
11498 expression comes from source, as when a single component association in
11499 an aggregate has a box association.
11500 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
11501 the prefix if it is a protected operation and the attribute is
11502 Unrestricted_Access.
11503 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
11504 reference to the base type of the context, to force a constraint check
11505 when the context is an access subtype with an explicit constraint.
11506 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
11507 node is rewritten as an interface conversion. leave unanalyzed after
11508 resolution, to ensure that type checking against the context will take
11511 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11512 Javier Miranda <miranda@adacore.com>
11513 Robert Dewar <dewar@adacore.com>
11515 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
11516 wrapper when the full view of the controlling type of an inherited
11517 function that dispatches on result implements interfaces.
11518 (Expand_N_Object_Declaration): In cases where the type of the
11519 declaration is anonymous access, create finalization list for it.
11520 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
11521 if the object has no explicit initialization, to match description of
11522 functionality of pragam Persistent_BSS.
11523 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
11524 new function to build static aggregates, to replace initialization call
11525 when static initialization is desired.
11526 (Freeze_Type): Generate a list controller for an access type whenever
11527 its designated type has controlled anonymous access discriminants.
11528 (Build_Equivalent_Aggregate): New procedure to compute a static
11529 aggregate to be used as default initialization for composite types,
11530 instead of a generating a call to the initialization procedure for the
11532 (Build_Initialization_Call): When available, replace a call to the
11533 initialization procedure with a copy of the equivalent static aggregate
11535 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
11536 declarations for objects of a class-wide interface type, rather than
11537 just identifiers, to prevent visibility problems.
11538 (Expand_N_Object_Declaration): When expanding the declaration for an
11539 object of a class-wide interface type, preserve the homonym chain of
11540 the original entity before exchanging it with that of the generated
11541 renaming declaration.
11542 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
11543 active, because there is no way to handle the exception.
11544 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
11545 to do a minimum decoration of the Access_Disp_Table list.
11546 (Expand_Record_Controller): Avoid the addition of the controller between
11547 the component containing the tag of a secondary dispatch table and its
11548 adjacent component that stores the offset to the base of the object.
11549 This latter component is only generated when the parent type has
11550 discriminants ---documented in Add_Interface_Tag_Components).
11551 (Apply_Array_Size_Check): Removed, no longer needed.
11552 (Expand_N_Full_Type_Declaration): If the type has anonymous access
11553 components, create a Master_Entity for it only if it contains tasks.
11554 (Build_Init_Procedure): Suppress the tag assignment compiling under
11556 (Freeze_Record_Type): Remove code associated with creation of dispatch
11558 (Init_Secondary_Tags): Update type of actuals when generating calls to
11559 Ada.Tags.Set_Offset_To_Top
11560 (Stream_Operation_OK): Disable use of streams compiling under no
11562 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
11563 if Has_Init_Expression set.
11564 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
11565 Register_Primitive, which provides the same functionality.
11566 (Requires_Init_Proc): Return false in case of interface types.
11567 (Add_Secondary_Tables): Use the new attribute Related_Interface to
11569 (Predefined_Primitive_Freeze): Do not assume that an internal entity
11570 is always associated with a predefined primitive because the internal
11571 entities associated with interface types are not predefined primitives.
11572 Therefore, the call to Is_Internal is replaced by a call to the
11573 function Is_Predefined_Dispatching_Operation.
11574 (Make_Eq_If): When generating the list of comparisons for the
11575 components of a given variant, omit the controller component that is
11576 present if the variant has controlled components.
11578 2007-06-06 Javier Miranda <miranda@adacore.com>
11579 Hristian Kirtchev <kirtchev@adacore.com>
11580 Bob Duff <duff@adacore.com>
11582 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
11583 handle the creation of finalization lists and calls for nested
11584 coextensions when the root of the chains is part of a return statement.
11585 (Inside_A_Return_Statement): New function inside Complete_Coextension_
11587 (Expand_Record_Equality): Skip components that are interface types.
11588 (Displace_Allocator_Pointer): Add missing support for interface subtypes
11589 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
11590 with Rewrite_Coextension. Change the condition for detecting coextension
11592 (Is_Local_Access_Discriminant): Removed.
11593 (Rewrite_Coextension): New routine which rewrites a static coextension
11594 as a temporary and uses its unrestricted access in the construction of
11596 (Complete_Coextension_Finalization): New routine. Generate finalization
11597 attachment calls to all delayed coextensions.
11598 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
11599 the allocator is not a coextension itself and has delayed coextensions.
11600 If the current allocator is controlled, but also a coextension, delay
11601 the generation of the finalization attachment call.
11602 Rename local variable "Node" to "Nod" in order to avoid confusion with
11604 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
11605 limited types that are not inherently limited. Such an allocator is
11606 illegal, but is generated by the expander for a return statement, to
11607 copy the result onto the secondary stack. This is the only case where a
11608 limited object can be copied. Generate code to displace the pointer
11609 to the object if the qualified expression is a class-wide interface
11610 object. Such displacement was missing and hence the copy of the object
11612 (Apply_Accessibility_Check): Handle allocated objects initialized in
11614 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
11615 and Expand_Allocator_Expression. Allocating class-wide interface objects
11616 this routine displaces the pointer to the allocated object to reference
11617 the component referencing the corresponding secondary dispatch table.
11618 Expand_Allocator_Expression): Add missing support to allocate class-wide
11619 interface objects initialized with a qualified expression.
11620 (Get_Allocator_Final_List): Test for an anonymous access type that is a
11621 function result type, and use the finalization list associated with the
11622 function scope in that case (such an anonymous type should not be
11623 treated like an access parameter's type).
11625 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11626 Gary Dismukes <dismukes@adacore.com>
11627 Javier Miranda <miranda@adacore.com>
11629 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
11630 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
11631 required exception handler.
11632 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
11633 properly the case of a function whose return type is a limited
11634 class-wide interface type. Modify the code of the accessibility
11635 check to handle class-wide interface objects. In this case we need to
11636 displace "this" to reference the primary dispatch table to get access
11637 to the TSD of the object (to evaluate its accessibility level).
11638 (Expand_N_Extended_Return_Statement): Test for a tagged result type
11639 rather than a controlling result as one of the conditions for
11640 generating tests of the implicit BIP_Alloc_Form formal. The
11641 initialization assignment is also handled according to whether the
11642 result is tagged instead of controlling.
11643 In the case where the init assignment is inserted in the "then" part of
11644 the allocation conditional, rewrite the target to be a dereference of
11645 the implicit BIP_Object_Access formal.
11646 If the returned value is unconstrained and created on the secondary
11647 stack, mark the enclosing block and function so that the secondary
11648 stack is not reclaimed on return.
11649 Treat returns from functions with controlling results similarly to
11650 returns from functions with unconstrained result subtypes.
11651 If the object returned is unconstrained, and an allocator must be
11652 created for it, analyze the allocator once the block for the extended
11653 return is installed, to ensure that finalizable components
11654 of the expression use the proper finalization list. Guard the call to
11655 Move_Final_List with a check that there is something to finalize.
11656 (Make_Tag_Ctrl_Assignment): Use "old" handling
11657 of controlled type assignment for virtual machines, since new code uses
11658 unsupported features (such as direct access to bytes in memory).
11660 2007-06-06 Gary Dismukes <dismukes@adacore.com>
11661 Ed Schonberg <schonberg@adacore.com>
11663 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
11664 accessibility actual, check for the case of an aliased object that has
11665 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
11666 we fall into processing for the attribute rather than the name of the
11668 (Expand_Inline_Call): If an actual is a literal, and the corresponding
11669 formal has its address taken in the body, create a temporary to capture
11670 value. If the return type is a limited interface, do not treat the
11671 return value as Controlled.
11672 (Is_In_Place_Function): If the return type is a limited interface,
11673 treat as returning in place. The actual returned object may not always
11674 be limited, but the caller has to assume that it is returned in place.
11675 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
11676 context of an allocator, use the correct finalization chain (that is,
11677 the chain belonging to the access type, rather than the chain belonging
11678 to the current scope).
11679 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
11680 result type rather than a controlling result as a precondition for
11681 adding an allocation form actual to a build-in-place call.
11682 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
11683 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
11684 primitive in the dispatch tables. This work is now done by Make_DT when
11685 the type is frozen.
11686 (Register_Predefined_DT_Entry): Removed.
11687 (Add_Return): If end label is not present, use sloc of last statement
11688 for generated return statement in procedure, for better gdb behavior
11690 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
11691 object address nodes to ensure proper processing by routines like
11693 (Expand_Call): Fix generation of validity check for parameter
11694 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
11695 the allocation form parameter if the result subtype is constrained,
11696 except when the function has a controlling result.
11697 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
11698 rather than Is_Controlled and Has_Controlled_Component, since we want to
11699 include class-wide result types in this treatment. Also test for a
11700 controlling result, since that also requires passing a finalization
11702 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
11703 even when the result subtype is constrained, to handle calls involving
11704 controlling results.
11705 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
11706 is now called even when the result subtype is constrained, to handle
11707 calls involving controlling results.
11708 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
11709 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
11710 now performs the test).
11711 (Make_Build_In_Place_Call_In_Object_Declaration):
11712 Add_Alloc_Form_Actual_* is now called even when the result subtype is
11713 constrained, to handle calls involving controlling results.
11714 (Add_Return): Accomodate rewritten pattern from local raise to goto
11715 transformation, so that we still recognize an transfer statement
11716 and do the right thing here in that case.
11717 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
11718 and end of subprogram code.
11719 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
11720 support for primitives that are functions (without formals) with a
11721 controlling result.
11722 (Inherited_From_Formal): If the actual subtype has not generic parent
11723 type, it is not an actual for a formal derived type, and there is no
11724 operation to inherit from the formal.
11726 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11727 Thomas Quinot <quinot@adacore.com>
11729 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
11730 inserted cleanup code appropriately for GDB use.
11731 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
11732 exception handler for Deep_Adjust or Deep_Finalize.
11733 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
11734 Raise_From_Controlled_Operation is available, use a call to that
11735 subprogram instead of a plain "raise Program_Error" node to raise
11736 Program_Error if an exception is propagated from an Adjust or Finalize
11738 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
11739 appears in the optional statement list of a triggering alternative, the
11740 scope actions can be inserted directly there, and not in the list that
11741 includes the asynchronous select itself.
11743 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11744 Robert Dewar <dewar@adacore.com>
11745 Hristian Kirtchev <kirtchev@adacore.com>
11747 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
11748 generated exception handler appropriately when debugging generated code.
11749 Deal properly with No_Exception_Propagation restriction mode.
11750 (Expand_N_Abort_Statement): Add an unchecked type conversion from
11751 System.Address to System.Tasking.Task_Id when processing the result of
11752 the predefined primitive _disp_get_task_id.
11753 (Expand_N_Asynchronous_Select): Clarify comment.
11754 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
11755 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
11756 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
11757 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
11758 privals and for generated call to Complete_Entry_Body, for better gdb
11760 (Copy_Result_Type): Utility to construct a parameter and result profile
11761 for protected functions whose return type is an anonymous access to
11763 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
11765 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
11766 point when the local-raise-to-goto transformation has taken place.
11768 2007-06-06 Javier Miranda <miranda@adacore.com>
11769 Nicolas Setton <setton@adacore.com>
11771 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
11772 functionality when the backend is generating code.
11773 Otherwise any serious error
11774 reported by the backend calling the frontend routine Error_Msg
11775 changes the Compilation_Mode to Check_Semantics, disables the
11776 functionality of this routine and causes the generation of
11777 spureous additional errors.
11779 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
11780 debugging information now generated by the compiler for fat-pointer
11782 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
11784 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
11786 2007-06-06 Thomas Quinot <quinot@adacore.com>
11788 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
11789 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
11790 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
11791 For a remote call to a function with a classwide return type, apply an
11792 E.4(18) check to the returned value.
11793 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
11794 stream attributes of the designated type of an RACW, as they are not
11795 dispatching primitive operations.
11797 2007-06-06 Geert Bosch <bosch@adacore.com>
11799 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
11801 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
11803 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
11804 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
11806 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
11808 2007-06-06 Javier Miranda <miranda@adacore.com>
11810 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
11811 attribute compiling package Ada.Tags under No_Run_Time_Mode.
11813 2007-06-06 Javier Miranda <miranda@adacore.com>
11815 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
11816 deallocation of class-wide interface objects.
11817 (Expand_Dispatching_Constructor_Call): Take into account that if the
11818 result of the dispatching constructor is an interface type, the
11819 function returns a class-wide interface type; otherwise the returned
11820 object would be actual. The frontend previously accepted returning
11821 interface types because Expand_Interface_Actuals silently performed
11822 the management of the returned type "as if" it were a class-wide
11824 (Expand_Dispatching_Constructor_Call): Replace call to
11825 Make_DT_Access_Action by direct call to Make_Function_Call.
11827 2007-06-06 Robert Dewar <dewar@adacore.com>
11828 Ed Schonberg <schonberg@adacore.com>
11830 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
11831 compute masking constant, since we now set Esize properly to the
11833 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
11834 to match the alignment.
11835 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
11836 packed arrays of 8 bits or less.
11838 * freeze.adb (Freeze_Entity): When freezing the formals of a
11839 subprogram, freeze the designated type of a parameter of an access type
11840 only if it is an access parameter.
11841 Increase size of C convention enumeration object
11842 (Freeze_Entity, array type case): Make sure Esize value is properly
11843 adjusted for the alignment if it is known.
11844 (Freeze_Entity, array type case): When checking bit packed arrays for
11845 the size being incorrect, check RM_Size, not Esize.
11846 (Freeze_Record_Type): Check for bad discriminated record convention
11847 (In_Exp_Body): Return true if the body is generated for a subprogram
11848 renaming, either an attribute renaming or a renaming as body.
11849 (Check_Itype): If the designated type of an anonymous access component
11850 is a non-protected subprogram type, indicate that it is frozen, to
11851 prevent out-of-scope freeze node at some subsequent call.
11852 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
11853 only if the subprogram is neither imported nor exported, as well as the
11854 NCA descriptor class if the subprogram is exported.
11856 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11857 Arnaud Charlet <charlet@adacore.com>
11858 Robert Dewar <dewar@adacore.com>
11859 Gary Dismukes <dismukes@adacore.com>
11861 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
11862 default initialization on an imported object, when there is no
11863 initialization call generated for it.
11864 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
11867 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
11868 Static_Elaboration_Desired.
11869 Remove pragma Thread_Body.
11870 Implement a new pragma No_Body
11871 Removes the Explicit_Overriding pragma
11872 Remove Optional_Overriding pragma
11873 (Prag): Deal with Universal_Aliasing.
11874 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
11875 Pragma_CIL_Constructor): New names.
11877 * sem_cat.adb (Validate_Object_Declaration): An initialization that
11878 uses the equivalent aggregate of a type must be treated as an implicit
11880 (Get_Categorization): Check a unit for pragma Preelaborate only if it
11881 has none of the other categories.
11882 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
11883 to apply Import to an object renaming declaration.
11885 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
11886 from a C++ class should be declared as limited and that it will be
11887 considererd limited.
11888 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
11889 should be declared as limited and that it will be considererd limited.
11890 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
11891 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
11892 (Analyze_Pragma): Deal with Universal_Aliasing.
11893 (Sig_Flags): Likewise.
11894 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
11895 (Overflow_Checks_Unsuppressed): New flag.
11896 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
11897 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
11898 case of JVM or .NET targets, and compiling user code.
11899 Add debugging convenience routine rv
11901 2007-06-06 Robert Dewar <dewar@adacore.com>
11903 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
11904 are interface type.
11905 (Build_Elementary_Input_Call): For floating-point use right type in the
11906 absence of strange size or stream size clauses.
11907 (Build_Elementary_Write_Call): Same fix
11908 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
11909 set to value that does not match base type size.
11911 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11913 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
11914 object of a limited type can be initialized with a call to a function
11915 that returns in place. If the limited type has unknown discriminants,
11916 and the underlying type is a constrained composite type, build an actual
11917 subtype from the function call, as is done for private types.
11918 (Side_Effect_Free): An expression that is the renaming of an object or
11919 whose prefix is the renaming of a object, is not side-effect free
11920 because it may be assigned through the renaming and its value must be
11921 captured in a temporary.
11922 (Has_Controlled_Coextensions): New routine.
11923 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
11924 as is done for other limited types.
11925 (Non_Limited_Designated_Type): new predicate.
11926 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
11928 Remove all handling of with_type clauses.
11930 * par-ch10.adb: Remove all handling of with_type clauses.
11932 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
11933 checksum if the main source could not be parsed.
11934 (Loat_Unit): When processing a child unit, determine properly whether
11935 the parent unit is a renaming when the parent is itself a child unit.
11936 Remove handling of with_type clauses.
11938 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
11939 (Set_Is_Static_Coextension): New procedure.
11940 (Has_Local_Raise): New function
11941 (Set_Has_Local_Raise): New procedure
11942 (Renaming_Exception): New field
11943 (Has_Init_Expression): New flag
11944 (Delay_Finalize_Attach): Remove because flag is obsolete.
11945 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
11946 Remove all handling of with_type clauses.
11947 (Exception_Junk): Can now be set in N_Block_Statement
11949 2007-06-06 Vincent Celier <celier@adacore.com>
11950 Robert Dewar <dewar@adacore.com>
11952 * frontend.adb (Frontend): Return immediately if the main source could
11953 not be parsed, because of preprocessing errors.
11955 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
11956 (Gnat1drv): Exit with errors if the main source could not be parsed,
11957 because of preprocessing errors.
11958 (Check_Rep_Info): New procedure
11960 2007-06-06 Robert Dewar <dewar@adacore.com>
11962 * g-hesorg.ads, g-heasor.ads,
11963 g-busorg.ads, g-bubsor.ads: Update documentation
11964 GNAT.Heap/Bubble_Sort_G is now pure
11966 2007-06-06 Robert Dewar <dewar@adacore.com>
11968 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
11970 2007-06-06 Robert Dewar <dewar@adacore.com>
11971 Ed Schonberg <schonberg@adacore.com>
11973 * g-comlin.ads, g-comlin.adb:
11974 Add new warning for renaming of function return objects
11976 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
11977 (Tree_Read): Use size of object instead of type'object_size, since the
11978 latter is incorrect for packed array types.
11979 (Tree_Write): Same fix
11981 * opt.ads: Add new warning for renaming of function return objects
11982 (Generating_Code): New boolean variable used to indicate that the
11983 frontend as finished its work and has called the backend to process
11984 the tree and generate the object file.
11985 (GCC_Version): Is now private
11986 (Static_Dispatch_Tables): New constant declaration.
11987 (Overflow_Checks_Unsuppressed): New flag.
11988 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
11989 (List_Closure): New flag for gnatbind (-R)
11990 Zero_Formatting: New flag for gnatbind (-Z)
11991 (Special_Exception_Package_Used): New flag.
11992 (Warn_On_Unrepped_Components): New flag.
11994 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
11995 unit is a compilation unit, rather than relying on its scope, so that
11996 Standard can be renamed.
11997 (Analyze_Object_Renaming): Add new warning for renaming of function
11999 Also reject attempt to rename function return object in Ada 83 mode.
12000 (Attribute_Renaming): In case of tagged types, add the body of the
12001 generated function to the freezing actions of the type.
12002 (Find_Type): A protected type is visible right after the reserved word
12003 "is" is encountered in its type declaration. Set the entity and type
12004 rather than emitting an error message.
12005 (New_Scope): Properly propagate Discard_Names to inner scopes
12006 (Check_Nested_Access): New procedure.
12007 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
12008 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
12010 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
12011 Add new warning for renaming of function return objects
12012 (Check_References): Suppress warnings for objects whose type or
12013 base type has Warnings suppressed.
12014 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
12015 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
12017 2007-06-06 Vincent Celier <celier@adacore.com>
12018 Emmanuel Briot <briot@adacore.com>
12019 Olivier Hainque <hainque@adacore.com>
12021 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
12022 absolute value of Header.Block_Size when displaying the freed physical
12024 (Allocate): Compute Storage_Address using Integer_Address, not
12025 Storage_Offset, because the range of Storage_Offset may not be large
12027 (Configure): New parameter Low_Level_Traces
12028 (Allocate, Deallocation, Free_Physically): Added low-level traces
12029 (Configure): new parameter Errors_To_Stdout.
12030 (Output_File): new subprogram
12031 (Deallocate, Dereference): Send error messages to the proper stream
12032 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
12033 documented. Previous code would send it to the current output file
12034 defined in GNAT.IO, which might not be stdout
12035 (Is_Valid): Adjust comment to mention that a positive reply means that
12036 Header_Of may be used to retrieve the allocation header associated with
12037 the subprogram Storage address argument. Return False early if this
12038 address argument is misaligned.
12040 2007-06-06 Vincent Celier <celier@adacore.com>
12042 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
12044 (ASIS_Main): New global variable
12045 (Get_Closure): New procedure
12046 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
12047 check, metric or pretty. Call Get_Closure in this case.
12048 (Check_Files): For GNAT LIST, check all sources of all projects when
12049 All_Projects is True.
12050 (GNATCmd): Accept -U for GNAT LIST
12052 2007-06-06 Vincent Celier <celier@adacore.com>
12054 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
12056 Correct error message when invocation of the linker fails
12057 Add explicit size clause for the C imported variables
12058 Object_List_File_Supported and Using_GNU_Linker to emphasize that
12059 we expect char size.
12060 Read target parameters earlier, since this is needed to set
12061 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
12064 2007-06-06 Vincent Celier <celier@adacore.com>
12067 Add 3 spaces before the default project directory when displaying
12068 the project search path.
12069 Add new command line switch '-l' to display license information.
12071 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
12073 * gmem.c: Add support for timestamps on memory operations.
12075 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
12076 operations (not used currently, just foundation for future
12077 enhancements). Add possibility to perform full dump of gmem.out file.
12078 (Print_Back_Traces): Declare accesses to root arrays constants since
12079 they aren't modified.
12080 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
12082 2007-06-06 Vincent Celier <celier@adacore.com>
12084 * gnatsym.adb: Update Copyright notice
12085 (Parse_Cmd_Line): Accept new switch -D
12086 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
12089 * prj.ads (Policy): New policy Direct
12090 (Yes_No_Unknown): New enumeration type
12091 (Project_Data): New component Libgnarl_Needed
12093 * prj-nmsc.adb (Check_For_Source): When recording a source file make
12094 use the untouched pathname casing.
12095 (Get_Directories): Ensure that the Display_Exec_Directory is using the
12096 proper casing on non case-sensitive platforms like Windows.
12097 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
12098 on all platforms, as it is not possible to know which one is allowed
12099 before processing the project files.
12100 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
12101 specified when symbol policy is Direct. Check that when there is a
12102 symbol file defined (either by default or with attribute
12103 Library_Symbol_File) it is not the same as the reference symbol file.
12104 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
12105 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
12106 extending projects.
12107 (Record_Ada_Source): Record a source that has been locally removed in an
12110 * symbols.ads (Policy): New policy Direct
12112 * symbols-vms.adb (Initialize): Take new policy Direct in case
12115 2007-06-06 Vincent Celier <celier@adacore.com>
12117 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
12118 Correct obvious bug (return Dir; instead of return Directory;).
12119 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
12121 2007-06-06 Thomas Quinot <quinot@adacore.com>
12123 * g-pehage.adb (Produce): Open output files in Binary mode, so that
12124 they have UNIX line endings (LF only) even on Windows, and thus pass
12125 all GNAT style checks.
12127 2007-06-06 Emmanuel Briot <briot@adacore.com>
12129 * g-regpat.adb (Quote): Fix improper quoting of '.'
12131 2007-06-06 Thomas Quinot <quinot@adacore.com>
12133 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
12134 default, set False on a per-runtime basis.
12135 (Need_Netdb_Buffer): New constant.
12137 * g-socket.ads, g-socket.adb: Import new package
12138 GNAT.Sockets.Thin.Task_Safe_NetDB.
12139 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
12140 binding to obtain proper message.
12141 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
12142 Replace various occurrences of Arry (Arry'First)'Address with the
12143 equivalent Arry'Address (GNAT always follows implementation advice from
12145 (Get_Host_By_Address, Get_Host_By_Name,
12146 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
12147 instead, rely on platform-specific task safe netdb operations provided
12150 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
12151 parameter Process_Blocking_IO.
12152 (Host_Error_Messages): Add stub body.
12153 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12154 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
12155 Safe_Getservbyport): Move functions into new child package
12157 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
12158 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
12159 (In_Addr): Add alignment clause.
12161 2007-06-06 Robert Dewar <dewar@adacore.com>
12163 * g-trasym.ads, g-traceb.ads: Update list of supported targets
12164 Add note about symbolic traceback
12166 2007-06-06 Pascal Obry <obry@adacore.com>
12168 * hostparm.ads (Normalized_CWD): Use the host directory separator
12169 instead of the hardcoded forward slash which is not the proper
12170 character on Windows for example.
12171 (Java_VM): Removed.
12173 2007-06-06 Vincent Celier <celier@adacore.com>
12174 Arnaud Charlet <charlet@adacore.com>
12176 * a-clrefi.adb, a-clrefi.ads: New files
12178 * impunit.adb: Add s-os_lib in the list of user visible units.
12179 (Non_Imp_File_Names_95): Add a-clrefi to this list
12180 Remove obsolete run-time entries.
12181 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
12182 "a-exetim" -- Ada.Execution_Time
12183 "a-extiti" -- Ada.Execution_Time.Timers
12185 * mlib-prj.ads, mlib-prj.adb
12186 (Build_Library): Use untouched object dir and library dir. At the
12187 same time makes sure that the checks are done using the canonical
12188 form. Removes hard-coded directory separator and use the proper host
12190 (Process_Project): Do not look in object directory to check if libgnarl
12191 is needed for a library, if there is no object directory.
12192 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
12194 (Build_Library): When invoking gnatbind, use a response file if the
12195 total size of the arguments is too large.
12197 * Makefile.rtl: (g-sttsne): New object file.
12198 Add entry for a-clrefi, s-utf_32, System.Exceptions
12200 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
12201 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
12202 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
12203 Change g-string to s-string, g-os_lib to s-os_lib
12204 Change all g-utf_32 references to s-utf_32
12206 2007-06-06 Tristan Gingold <gingold@adacore.com>
12207 Olivier Hainque <hainque@adacore.com>
12209 * init.c: Do not adjust IP of an imported VMS exception of ia64.
12210 LIB$STOP is called to raise an exception and the IP of the exception
12211 is the instruction right after the call.
12212 (__gnat_adjust_context_for_raise, AIX): Implement.
12213 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
12214 adjust_context_for_raise before Raise_From_Signal_Hanler.
12215 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
12216 siginfo is passed to the handler, necessary to let the zcx propagation
12217 engine unwind past it.
12219 2007-06-06 Olivier Hainque <hainque@adacore.com>
12221 * initialize.c (__gnat_initialize for vxworks): Update documentation
12222 on the ZCX support, using different sets of crtstuff objects than with
12225 2007-06-06 Robert Dewar <dewar@adacore.com>
12227 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
12229 (Layout_Type): Fix recomputation of size from alignment.
12231 2007-06-06 Ed Schonberg <schonberg@adacore.com>
12232 Javier Miranda <miranda@adacore.com>
12234 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
12235 association in an instance.
12236 (Copy_Generic_Node): If the node is a string literal, no need to copy
12238 (Is_Generic_Formal): For a formal subprogram, the declaration is the
12239 grandparent of the entity.
12240 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
12241 to simplify handling of formal interfaces that derive from other formal
12243 (Instantiate_Subprogram_Body): The defining unit name of the body of
12244 the instance should be a defining identifier.
12245 (Install_Formal_Packages): make global to the package, for use in
12246 instantiations of child units.
12247 (Analyze_Package_Instantiation): Do not attempt to set information on an
12248 enclosing master of an entry when expansion is disabled.
12249 (Instantiate_Type): If the actual is a tagged synchronized type and the
12250 generic ancestor is an interface, create a generic actual for the
12251 corresponding record.
12252 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
12253 declaration, to ensure that the interface list is processed correctly.
12254 (Inline_Instance_Body): If enclosing scope is an instance body, remove
12255 its entities from visibiility as well.
12256 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
12257 given with a named association, analyze the expression only, not the
12258 discriminant association itself.
12259 (Reset_Entity): If the analysis of a selected component is transformed
12260 into an expanded name in the prefix of a call with parameters, do not
12261 transform the original node into an expanded name, to prevent visibility
12262 errors in the case of nested generics.
12263 (Check_Private_View): For an array type, check whether the index types
12264 may need exchanging.
12266 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12267 Vincent Celier <celier@adacore.com>
12269 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
12270 since both are separated.
12271 Add support for imported CIL packages.
12272 Add further special handling of "value_type" for CIL.
12273 Add special handling of pragma Import for CIL.
12275 * make.ads, make.adb: When switch -eS is used, direct all outputs to
12276 standard output instead of standard error, except errors.
12277 (Absolute_Path): Use untouched casing for the parent directory.
12278 (Add_Library_Search_Dir): Use the untouched directory name.
12279 (Add_Source_Search_Dir): Idem.
12280 (Change_To_Object_Directory): Update output to use proper casing.
12281 (Create_Binder_Mapping_File): Use the untouched filename to set
12283 (Gnatmake): Use untouched library and executable directory names.
12284 (Insert_Project_Sources): Use untouched filename for spec and body.
12285 (Is_In_Object_Directory): Use untouched object directory.
12286 (Mark_Directory): Idem.
12287 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
12288 contains the non-canonical filename in all cases.
12289 (Change_To_Object_Directory): In verbose mode, display the name of the
12290 object directory we're changing to.
12291 (Compile_Sources): Make sure, when a project file is used, to compile
12292 the body of the unit, when there is one, even when only the spec is
12293 recorded in an ALI file.
12294 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
12296 (Report_Compilation_Failed): New procedure
12297 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
12298 procedures moved from the spec to the body.
12299 (Extract_Failure): Removed, not used
12300 Replace explicit raises of exception Bind_Failed and Link_Failed with
12301 calls to Make_Failed with the proper message.
12302 Replace explicit raises of exception Compilation_Failed with calls to
12303 procedure Report_Compilation_Failed.
12304 (Initialize): Create mapping files unconditionally when using project
12307 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
12308 Pragma_CIL_Constructor): New names.
12310 * targparm.ads, targparm.adb
12311 (Compiler_System_Version): Removed, no longer used.
12312 (Get_Target_Parameters): Relax checks on system.ads validity. Add
12313 handling of two new system flags: JVM and CLI.
12315 2007-06-06 Jose Ruiz <ruiz@adacore.com>
12316 Arnaud Charlet <charlet@adacore.com>
12318 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
12319 time, use the default s-interr body that provides interrupt support
12321 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
12322 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
12323 g-soccon.ads, and s-taprop.adb for the marte run time.
12324 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
12325 timers are supported on marte.
12326 (EH_MECHANISM for marte): Do not use ZCX.
12327 (THREADSLIB for marte): Use -lmarte.
12328 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
12329 Add mlib-tgt-specific.o to gnatmake objects
12330 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
12331 longer of MLib.Tgt.
12332 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
12333 6, either kernel or rtp, use a specialized version of s-osinte.ads.
12335 2007-06-06 Pascal Obry <obry@adacore.com>
12337 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
12339 2007-06-06 Vincent Celier <celier@adacore.com>
12341 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
12342 separator, use instead the proper host directory separator.
12343 (Copy_ALI_Files): Make sure that an already existing ALI file in the
12344 ALI copy dir is writable, before doing the copy.
12346 * mlib-utl.ads, mlib-utl.adb:
12347 (Gcc): If length of command line is too long, put the list of object
12348 files in a response file, if this is supported by the platform.
12349 (Ar): If invocation of the archive builder is allowed to be done in
12350 chunks and building it in one shot would go above an OS dependent
12351 limit on the number of characters on the command line, build the archive
12354 2007-06-06 Vincent Celier <celier@adacore.com>
12356 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
12357 of specified object file is not equal to base name of source.
12359 2007-06-06 Javier Miranda <miranda@adacore.com>
12360 Hristian Kirtchev <kirtchev@adacore.com>
12361 Ed Schonberg <schonberg@adacore.com>
12363 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
12364 the full type declaration.
12365 (Analyze_Component_Declaration): Add local variable E to capture the
12366 initialization expression of the declaration. Replace the occurences of
12367 Expression (N) with E.
12368 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
12369 limited interface object with a function call.
12370 (Array_Type_Declaration): If the declaration lacks subtype marks for
12371 indices, create a simple index list to prevent cascaded errors.
12372 (Is_Null_Extension): Ignore internal components created for secondary
12373 tags when checking whether a record extension is a null extension.
12374 (Check_Abstract_Interfaces): Add missing support for interface subtypes
12375 and generic formals.
12376 (Derived_Type_Declaration): Add missing support for interface subtypes
12377 and generic formals.
12378 (Analyze_Object_Declaration): If an initialization expression is
12379 present, traverse its subtree and mark all allocators as static
12381 (Add_Interface_Tag_Component): When looking for components that may be
12382 secondary tags, ignore pragmas that can appear within a record
12384 (Check_Abstract_Overriding): an inherited function that dispatches on
12385 result does not need to be overriden if the controlling type is a null
12387 (Mentions_T): Handle properly a 'class attribute in an anonymous access
12388 component declaration, when the prefix is an expanded name.
12389 (Inherit_Component): If the derivation is for a private extension,
12390 inherited components remain visible and their ekind should not be set
12392 (Find_Type_Of_Object): In the case of an access definition, always set
12393 Is_Local_Anonymous_Access. We were previously not marking the anonymous
12394 access type of a return object as a local anonymous type.
12395 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
12396 range with character literal bounds.
12397 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
12398 (Access_Subprogram_Declaration): Indicate that the type declaration
12399 depends on an incomplete type only if the incomplete type is declared
12401 (Analyze_Subtype_Declaration): Handle properly subtypes of
12402 synchronized types that are tagged, and that may appear as generic
12404 (Access_Subprogram_Declaration): An anonymous access to subprogram can
12405 appear as an access discriminant in a private type declaration.
12406 (Add_Interface_Tag_Components): Complete decoration of the component
12407 containing the tag of a secondary dispatch table and the component
12408 containing the offset to the base of the object (this latter component
12409 is only generated when the parent type has discriminants --as documented
12411 (Inherit_Components): Use the new decoration of the tag components to
12412 improve the condition that avoids inheriting the components associated
12413 with secondary tags of the parent.
12414 (Build_Discriminanted_Subtype): Indicate to the backend that the
12415 size of record types associated with dispatch tables is known at
12417 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
12418 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
12419 to include task, protected, and synchronized interfaces as limited
12421 (Process_Discriminants): Remove the setting of
12422 Is_Local_Anonymous_Access on the type of (anonymous) access
12423 discriminants of nonlimited types.
12424 (Analyze_Interface_Type_Declaration): Complete the decoration of the
12425 class-wide entity it is is already present. This situation occurs if
12426 the limited-view has been previously built.
12427 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
12429 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
12432 2007-06-06 Ed Schonberg <schonberg@adacore.com>
12434 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
12435 of the type that specify the position of interface tags when the type
12436 inherits discriminated array components from the parent type.
12437 If a component is initialized with a box, check for the presence of a
12438 default expression in its declaration before using its default
12439 initialization procedure.
12440 (Resolve_Record_Aggregate): If a component is box-initialized, and the
12441 component type has a discriminants, create a partial aggregate for it
12442 by copying the discriminants of the component subtype.
12443 Reject attempt to initialize a discriminant with a box.
12444 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
12445 associated with dispatch tables is known at compile time.
12446 (Get_Value): If an association in a record aggregate has a box
12447 association, and the corresponding record component has a default
12448 expression, always copy the default expression, even when the
12449 association has a single choice, in order to create a proper
12450 association for the expanded aggregate.
12452 2007-06-06 Ed Schonberg <schonberg@adacore.com>
12453 Robert Dewar <dewar@adacore.com>
12455 * par-ch12.adb (P_Generic_Associations): The source position of an
12456 Others association is that of the others keyword, not that of the token
12457 that follows the box.
12458 (P_Formal_Type_Definition): Handle formal access types that carry a
12459 not null indicator.
12461 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
12462 multiple identifier are present, save Scan_State before scanning the
12463 colon, to ensure that separate trees are constructed for each
12465 (P_Identifier_Declarations): For object declaration, set new flag
12466 Has_Init_Expression if initialization expression present.
12467 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
12468 Improve NOT NULL error messages
12470 2007-06-06 Robert Dewar <dewar@adacore.com>
12472 * par-ch4.adb: (P_Name): Recover from literal used as name
12474 2007-06-06 Vincent Celier <celier@adacore.com>
12476 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
12477 defaulted to False.
12478 In the "not" case, recursive call with Complemented set to True.
12479 Do not allow "or" or "and" operators when Complemented is True.
12481 2007-06-06 Vincent Celier <celier@adacore.com>
12483 * prj.adb (Project_Empty): Gives default value for new component
12486 * prj-attr.ads: Minor reformatting
12488 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
12489 directory using the untouched casing.
12490 (For_All_Source_Dirs): Idem.
12492 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
12493 directories specified with switches -aP.
12494 (Add_Search_Project_Directory): New procedure
12495 (Initialize_Project_Path): Put the directories in table
12496 Search_Directories in the project search path.
12497 (Initialize_Project_Path): For VMS, transform into canonical form the
12500 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12502 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
12503 true if configurable run-time or No_Run_Time is set.
12504 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
12505 processing an unit which is not the one being compiled.
12507 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12509 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
12510 Replace UC by Ada.UC
12512 * s-bitops.adb: Get rid of System.Pure_Exceptions.
12513 Replace UC by Ada.UC
12515 2007-06-06 Robert Dewar <dewar@adacore.com>
12517 * scng.adb: (Check_End_Of_Line): Deal with very long lines
12519 2007-06-06 Robert Dewar <dewar@adacore.com>
12521 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
12522 Remove no longer used nodes.
12524 2007-06-06 Javier Miranda <miranda@adacore.com>
12525 Ed Schonberg <schonberg@adacore.com>
12526 Robert Dewar <dewar@adacore.com>
12528 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
12529 on obsolescent withed unit in case of limited-withed units.
12530 (Analyze_Compilation_Unit): Add guard to code that removed an
12531 instantiation from visibility, to prevent compiler aborts when
12532 instantiation is abandoned early on.
12533 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
12534 current unit being analyzed, and Distinguish local incomplete types
12535 from limited views of types declared elsewhere.
12536 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
12537 to state that the class-wide entity is shared by the limited-view
12539 (Analyze_With_Clause): Improve placement of flag for case of
12540 unimplemented unit.
12541 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
12542 manner similar to GNAT.Current_Exception. This is a violation of
12543 restriction (No_Exception_Propagation), and also inhibits the
12544 optimization of local raise to goto.
12545 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
12546 and if so set Most_Recent_Exception_Used flag in Opt, and also check
12547 for violation of restriction No_Exception_Propagation.
12549 2007-06-06 Javier Miranda <miranda@adacore.com>
12550 Hristian Kirtchev <kirtchev@adacore.com>
12551 Gary Dismukes <dismukes@adacore.com>
12553 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
12554 use of entity Exception_Occurrence if it is not available in the
12557 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
12558 concurrent types are declared within an Ada 2005 generic, build their
12559 corresponding record types since they are needed for overriding-related
12561 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
12562 protected type does not implement a task interface or a nonlimited
12564 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
12565 type does not implement a protected interface or a nonlimited interface.
12566 (Single_Task_Declaration, Single_Protected_Declaration): use original
12567 entity for variable declaration, to ensure that debugging information
12568 is correcty generated.
12569 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
12570 routines if the expander is not active.
12571 (Analyze_Task_Body): Mark all handlers to stop optimization of local
12572 raise, since special things happen for task exception handlers.
12574 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
12575 concurrent types declared within a generic.
12576 (Check_Dispatching_Operation): Do not emit warning about late interface
12577 operations in the context of an instance.
12578 (Check_Dispatching_Call): Remove restriction against calling a
12579 dispatching operation with a limited controlling result.
12580 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
12581 Register_Interface_DT_Entry by calls to Register_Primitive.
12582 (Check_Dispatching_Formals): Handle properly a function with a
12583 controlling access result.
12585 2007-06-06 Robert Dewar <dewar@adacore.com>
12586 Arnaud Charlet <charlet@adacore.com>
12588 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
12589 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
12590 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
12591 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
12592 message when using a VM, since this attribute is not supported.
12593 (Analyze_Record_Representation_Clause): Give unrepped component warnings
12595 * usage.adb: Add new warning for renaming of function return objects
12596 Indicate that -gnatwp and -gnatwP concern front-end inlining
12597 Add line for -gnatyg
12598 Add usage information for -gnatw.c/C
12600 2007-06-06 Robert Dewar <dewar@adacore.com>
12601 Ed Schonberg <schonberg@adacore.com>
12604 (Find_Var): Do not consider function call in test for infinite loop
12605 warning if warnings set off for function entity.
12606 (One_Bound): Do not create a temporary for a loop bound if it is a
12608 (Analyze_Assignment): Traverse the right hand side of an assignment and
12609 mark all allocators as static coextensions.
12610 (Analyze_Assignment): Exempt assignments involving a dispatching call
12611 to a function with a controlling access result from the check requiring
12612 the target to be class-wide.
12614 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
12615 Ed Schonberg <schonberg@adacore.com>
12616 Robert Dewar <dewar@adacore.com>
12617 Javier Miranda <miranda@adacore.com>
12619 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
12620 chain of coextensions when an allocator serves as the root of such a
12622 (Propagate_Coextensions): Remove the test for the root being an
12624 (Resolve_Allocator): Add condition to ensure that all future decoration
12625 occurs on an allocator node. Add processing and cleanup for static
12627 (Valid_Conversion): If the operand type is the limited view of a
12628 class-wide type, use the non-limited view is available to determine
12629 legality of operation.
12630 (Ambiguous_Character): move to spec, for use elsewhere.
12631 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
12632 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
12633 character literals.
12634 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
12635 Do_Division_Check flag explicitly.
12636 (Resolve_Actuals): If the actual is of a synchronized type, and the
12637 formal is of the corresponding record type, this is a call to a
12638 primitive operation of the type, that is declared outside of the type;
12639 the actual must be unchecked-converted to the type of the actual
12640 (Resolve_Call): Kill all current values for any subprogram call if
12641 flag Suppress_Value_Tracking_On_Call is set.
12642 (Resolve_Type_Conversion): Generate error message the the operand
12643 or target of interface conversions come from a limited view.
12644 (Check_Infinite_Recursion): Ignore generated calls
12645 (Check_Allocator_Discrim_Accessibility): New procedure for checking
12646 that an expression that constrains an access discriminant in an
12647 allocator does not denote an object with a deeper level than the
12648 allocator's access type.
12649 (Resolve_Allocator): In the case of an allocator initialized by an
12650 aggregate of a discriminated type, check that associations for any
12651 access discriminants satisfy accessibility requirements by calling
12652 Check_Allocator_Discrim_Accessibility.
12653 (Resolve_Equality_Op): Handle comparisons of anonymous access to
12654 subprogram types in the same fashion as other anonymous access types.
12655 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
12656 message that is not a continuation message.
12657 (Resolve_Type_Conversion): Add missing support for conversion to
12659 (Resolve_Actuals): Introduce a transient scope around the call if an
12660 actual is a call to a function returning a limited type, because the
12661 resulting value must be finalized after the call.
12662 (Resolve_Actuals): If the call was given in prefix notations, check
12663 whether an implicit 'Access reference or implicit dereference must be
12664 added to make the actual conform to the controlling formal.
12666 2007-06-06 Robert Dewar <dewar@adacore.com>
12667 Javier Miranda <miranda@adacore.com>
12669 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
12670 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
12671 overriding of an inherited private subprogram now there is no need to
12672 inherit its dispatching slot and reduce the size of the dispatch table.
12673 Set_All_DT_Position now ensures that the same slot is now assigned to
12674 both entities. This is required to statically build the dispatch table.
12675 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
12676 of calling Set_All_DT_Position to re-evaluate the position of the
12677 entries in the dispatch table. Such reevaluation is not desired if
12678 the tagged type is already frozen.
12680 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
12681 Gary Dismukes <dismukes@adacore.com>
12682 Robert Dewar <dewar@adacore.com>
12683 Javier Miranda <miranda@adacore.com>
12685 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
12686 reference acts as an lvalue when the attribute name modifies the prefix
12687 (Is_Coextension_Root): New routine.
12688 (Mark_Static_Coextensions): New routine.
12689 (Type_Access_Level): Revise code for checking the level of the
12690 anonymous access type of a return object.
12691 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
12692 (Matches_Prefixed_View_Profile): Remove the no longer necessary
12693 retrieval of the corresponding controlling record type.
12694 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
12695 concurrent types declared within a generic as well as class wide types.
12696 Emit a mode incompatibility error whenever a protected entry or routine
12697 override an interface routine whose first parameter is not of mode
12698 "out", "in out" or access to variable.
12699 (Overrides_Synchronized_Primitive): Rename to
12700 Find_Overridden_Synchronized_Primitive.
12701 (Collect_Interface_Components): New subprogram that collects all the
12702 components of a tagged record containing tags of secondary dispatch
12704 (Add_Global_Declaration): New procedure
12705 (Abstract_Interface_List): Handle properly the case of a subtype of a
12707 (Type_Access_Level): In the case of a type whose parent scope is a
12708 return statement, call Type_Access_Level recursively on the enclosing
12709 function's result type to determine the level of the return object's
12711 (Build_Elaboration_Entity): Build name of elaboration entity from the
12712 scope chain of the entity, rather than the unit name of the file name.
12713 (Check_Nested_Access): New procedure.
12714 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
12715 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
12716 (Get_Renamed_Entity): Utility routine for performing common operation
12717 of chasing the Renamed_Entity field of an entity.
12719 2007-06-06 Robert Dewar <dewar@adacore.com>
12721 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
12723 (Check_A_Call): Add check for entry call which was causing blowup
12725 2007-06-06 Olivier Hainque <hainque@adacore.com>
12727 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
12728 special code on ia64-vms to handle major incompatibilities between the
12729 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
12730 this routine with a very different set of arguments and expectations on
12733 2007-06-06 Thomas Quinot <quinot@adacore.com>
12735 * socket.c (__gnat_close_signalling_fd): New function.
12736 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
12737 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
12738 New supporting functions for task safe Netdb operations.
12740 2007-06-06 Thomas Quinot <quinot@adacore.com>
12741 Olivier Hainque <hainque@adacore.com>
12743 * a-except-2005.ads, a-except-2005.adb
12744 (Raise_From_Controlled_Operation): New procedure in
12745 (private part of) Ada.Exceptions (standard runtime version). Used to
12746 provide informational exception message when Program_Error is raised as
12747 a result of an Adjust or Finalize operation propagating an exception.
12748 (Rmsg_28): Fix description for E.4(18) check.
12749 (Raise_Current_Excep): Call Debug_Raise_Exception just before
12750 propagation starts, to let debuggers know about the event in a reliable
12752 Take the address of E and dereference to make sure it is homed on stack
12753 and prevent the stores from being deleted, necessary for proper
12754 debugger behavior on "break exception" hits.
12755 (Local_Raise): Moved to System.Exceptions
12757 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
12758 exception message from the current occurrence and raise Program_Error
12759 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
12761 2007-06-06 Jose Ruiz <ruiz@adacore.com>
12762 Arnaud Charlet <charlet@adacore.com>
12764 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
12767 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
12768 priority associated to a lock.
12770 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
12771 assertion to take into account case of no abort restriction.
12772 (Initialize_Protection_Entries): Add initialization for the field
12773 New_Ceiling associated to the protected object.
12774 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
12777 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
12778 since this function needs to be set consistently with Update_Exception.
12780 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
12781 since this function needs to be set consistently with Update_Exception.
12783 * s-taskin.ads: Update comments on
12784 Interrupt_Server_Blocked_On_Event_Flag.
12785 (Unbind_Handler): Fix handling of server_task wakeup
12786 (Server_Task): Set self's state so that Unbind_Handler can take
12787 appropriate actions.
12788 (Common_ATCB): Now use a constant from System.Parameters to determine
12789 the max size of the Task_Image field.
12791 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
12792 Initialize_Analyzer function.
12793 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
12794 take into account case of no abort restriction.
12795 ([Vulnerable_]Complete_Master): Modify assertion.
12797 * s-tataat.adb (Finalize): Use the nestable versions of
12798 Defer/Undefer_Abort.
12800 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
12802 * s-tpobop.ads: Update comments.
12804 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
12805 of locking the object manually, to avoid inconsistencies between
12806 Lock/Unlock_Entry assertions.
12808 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
12810 application and System.Parameters.No_Abort is True.
12811 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
12812 (Unbind_Handler): Fix handling of server_task wakeup
12813 (Server_Task): Set self's state so that Unbind_Handler can take
12814 appropriate actions.
12816 2007-06-06 Thomas Quinot <quinot@adacore.com>
12818 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
12819 declarations instead of an explicit null body, for conciseness.
12821 2007-06-06 Robert Dewar <dewar@adacore.com>
12823 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
12824 illegal aggregate and the type is still Any_Composite.
12825 (Subtypes_Statically_Match): Fix problem of empty discriminant list
12827 2007-06-06 Ed Schonberg <schonberg@adacore.com>
12829 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
12830 to prevent subsequent expansion.
12832 2007-06-06 Robert Dewar <dewar@adacore.com>
12834 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
12836 2007-06-06 Ed Schonberg <schonberg@adacore.com>
12837 Robert Dewar <dewar@adacore.com>
12839 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
12841 (Write_Itype): Handle case of string literal subtype, which
12842 comes up in this context.
12843 (Update_Itype): when debugging expanded code, update sloc of itypes
12844 associated with defining_identifiers and ranges, for gdb use.
12845 (Sprint_Node_Actual): Add static keyword to object or exception
12846 declaration output if Is_Statically_Allocated is True.
12847 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
12848 or task body, so that the tree carries the proper Sloc information for
12850 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
12852 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12854 * s-secsta.adb (Chunk): Ensure this object has a static size known at
12855 compile time, to avoid dynamic memory allocation
12856 (Elaboration code): Only use dynamic memory allocation when needed.
12858 2007-06-06 Quentin Ochem <ochem@adacore.com>
12860 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
12862 (Stack_Analyzer): Added field "Overflow_Guard"
12863 (Task_Result): Added field "Overflow_Guard".
12864 (Index_Str): New constant.
12865 (Task_Name_Str): New constant.
12866 (Actual_Size_Str): New constant.
12867 (Pattern_Array_Element_Size): New constant.
12868 (Get_Usage_Range): New subprogram.
12869 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
12870 Now align the output.
12872 (Initialize): Added value for Overflow_Guard.
12873 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
12874 Update the value of the overflow guard according to the actual
12875 beginning of the pattern array.
12876 (Initialize_Analyzer): Added parameter Overflow_Guard.
12877 Take this parameter into accound when computing the max size.
12878 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
12879 (Report_Result): Removed extra useless procedure.
12880 Updated call to Output_Result.
12881 Moved full computation of the Task_Result here.
12883 2007-06-06 Thomas Quinot <quinot@adacore.com>
12885 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
12886 Thread_Blocking_IO, always True by default, set False on a per-runtime
12888 Add Windows-specific constants
12889 Add new constant Need_Netdb_Buffer.
12890 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
12891 not, whether to use getXXXbyYYY_r.
12893 * gsocket.h: Add new constant Need_Netdb_Buffer.
12894 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
12895 not, whether to use getXXXbyYYY_r.
12897 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
12899 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
12900 than their first call.
12901 Add type Dummy_Communication_Block used in the generation of the pre-
12902 defined dispatching primitive _disp_asynchronous_select.
12903 (Storage_Element): Put Pragma Universal_Aliasing on it.
12905 2007-06-06 Vincent Celier <celier@adacore.com>
12907 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
12910 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
12911 letter if it is not followed by a '/' or a '\'.
12912 (Windows): New Boolean function
12914 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
12916 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
12918 (Containing_Directory): Raise Use_Error when the directory is a root
12920 (Extension): When returning the result, use a conversion to Result_Type,
12921 not a qualification.
12923 2007-06-06 Robert Dewar <dewar@adacore.com>
12925 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
12926 (Set_Style_Check_Options): Recognize new -gnatyg style switch
12928 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
12929 Warn_On_Non_Local_Exception to False, to turn off warnings for
12930 No_Exception_Propagation in ZFP runtime.
12931 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
12933 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
12935 2007-06-06 Vincent Celier <celier@adacore.com>
12937 * switch-b.adb (Scan_Binder_Switches): Add processing for new
12940 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
12941 (Scan_Make_Switches): Recognize new switch -aP
12943 2007-06-06 Matthew Gingell <gingell@adacore.com>
12944 Jose Ruiz <ruiz@adacore.com>
12946 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
12947 VxWorks task descriptor in the Ada run time, call a C subprogram
12948 (__gnat_get_stack_info) that extracts the required information.
12950 * sysdep.c: Back out temporary lynxos workaround.
12951 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
12952 time the stack information associated to the currently executing task.
12953 Only VxWorks systems require this function.
12955 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
12957 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
12958 add the stack bias if the offset is computed from a frame address.
12959 (__gnat_backtrace): Adjust for above change.
12961 2007-06-06 Thomas Quinot <quinot@adacore.com>
12963 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
12964 PE_Non_Transportable_Actual.
12965 (By_Descriptor_Last): New constant.
12966 (By_Copy_Return): Likewise.
12968 2007-06-06 Vincent Celier <celier@adacore.com>
12970 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
12973 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
12974 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
12975 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
12976 Add missing comment for /OPTIMIZE=SPACE
12977 Add entry for OPTIMIZE=SPACE
12978 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
12979 Add documentation for new qualifiers corresponding to -gnatw.c/.C
12981 2007-06-06 Vincent Celier <celier@adacore.com>
12982 Robert Dewar <dewar@adacore.com>
12984 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
12987 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
12988 Document gnatbind switch -a
12989 (case Constructions): Document that variables declarations are allowed
12990 for previously declared variables.
12991 Fix external lib project example
12992 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
12993 Indicate that "#if not X or Y then" is not allowed in input files to
12995 Document gnatw.x and gnatw.X warning flags
12996 Mention -Winline switch to activate warnings when back-end inlining is
12998 Add gnatcheck rule descriptions
12999 Describe how to use the GNAT driver to call a tool on a closure.
13000 Describe how to run project-wide checks or metrics.
13001 Document gnatbind's -R option
13002 Updated to account for Ada 2005 support
13004 * gnat_rm.texi (Case Construction): Allow variable declarations for
13005 previously declared variables.
13006 (Representation Clauses and Pragmas): Lift restriction on alignment
13007 clauses for record types.
13008 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
13009 Document No_Exception_Propagation restriction
13010 Document No_Body pragma
13011 Updated to account for Ada 2005 support; corrected some typos
13012 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
13014 * gnat-style.texi: Make it clear that we never use mode IN for
13015 procedures or functions
13017 * ug_words: Add entries for -gnatw.x and -gnatw.X
13018 Add entries for -gnatw.c/.C
13020 2007-06-06 Pascal Obry <obry@adacore.com>
13021 Vincent Celier <celier@adacore.com>
13023 * makegpr.adb (Add_Archive_Path): Use untouched object and library
13024 dirs and library name.
13025 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
13027 (Build_Library): Idem.
13028 (Compile_Individual_Sources): Idem.
13029 (Compile_Link_With_Gnatmake): Idem.
13030 (Compile_Sources): Idem.
13031 (Get_Imported_Directories): Idem.
13032 (Link_Executables): Idem. Same change for the executable dir.
13033 (Check_Compilation_Needed): C_Source_Path new variable containing
13034 the canonical form of Source_Path to check against the source names
13035 in the dependency file.
13036 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
13037 verbose mode, display the name of the object directory we're changing
13039 (Saved_Switches): New name of table X_Switches
13040 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
13041 (Usage): New line for switch -aP
13042 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
13043 testing if a directory should be added to the search path.
13045 2007-06-06 Javier Miranda <miranda@adacore.com>
13047 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
13048 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
13049 declaration after freezing point of all its associated tagged types;
13050 otherwise such types are frozen too early.
13052 2007-06-06 Robert Dewar <dewar@adacore.com>
13054 * a-reatim.adb: Documentation addition
13056 * g-cgideb.adb: Minor code reorganization
13058 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
13059 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
13060 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
13062 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
13063 function. Change name New_Scope to Push_Scope
13064 (Get_Debug_Flag_K): Remove unused obsolete function.
13066 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
13069 * makeusg.adb: Update Copyright notice
13070 Add line for switch -aP
13072 * makeusg.adb: Fix wording of some usage messages
13074 * s-assert.adb (Raise_Assert_Failure): Add call to
13075 Debug_Raise_Assert_Failure.
13077 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
13078 (2, Standard'Alignment) for compatibility with AAMP (where alignment
13079 is restricted to 1).
13081 * s-wchjis.adb: Remove use of System.Pure_Exceptions
13083 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
13084 node location to No_Location when we're not debugging the expanded
13087 2007-05-22 Alexandre Oliva <aoliva@redhat.com>
13089 * misc.c (enumerate_modes): Consider log2_b to always be one.
13091 2007-05-14 Rafael Avila de Espindola <espindola@google.com>
13093 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
13095 2007-05-02 Pascal Obry <obry@adacore.com>
13097 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
13098 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
13099 encoding support of Stream_IO.
13100 (Write_Unit): Idem.
13102 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
13103 filename and corresponding encoding to match the OS requirement.
13104 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
13105 routine will fail on specific devices like CON: AUX: ...
13107 PR ada/29856: Add missing braces
13109 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
13112 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
13114 2007-04-21 Jan Hubicka <jh@suse.cz>
13116 * misc.c (gnat_expand_body): Don't call target for destructors,
13117 avoid redundant check on syntax errors.
13119 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
13121 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
13122 instead of checking GIMPLE_STMT_P in chain_next.
13124 2007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
13127 * system-linux-alpha.ads: Disable constant condition warning for the
13128 Default_Bit_Order variable.
13129 * system-linux-s390.ads: Likewise.
13130 * system-linux-s390x.ads: Likewise.
13131 * system-linux-sparc.ads: Likewise.
13133 2007-04-06 Javier Miranda <miranda@adacore.com>
13134 Matt Heaney <heaney@adacore.com>
13135 Robert Dewar <dewar@adacore.com>
13137 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
13138 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
13139 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
13140 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
13141 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
13142 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
13143 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
13144 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
13145 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
13146 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
13147 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
13148 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
13149 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
13150 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
13151 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
13152 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
13153 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
13154 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
13155 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
13156 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
13157 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
13158 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
13159 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
13160 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
13161 s-taprop-tru64.adb, s-taprop-irix.adb,
13162 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
13163 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
13164 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
13165 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
13166 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
13167 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
13168 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
13169 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
13170 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
13171 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
13172 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
13173 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
13174 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
13175 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
13176 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
13177 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
13178 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
13179 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
13180 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
13181 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
13183 Update documentation.
13186 2007-04-06 Robert Dewar <dewar@adacore.com>
13188 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
13189 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
13190 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
13191 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
13192 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
13193 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
13194 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
13195 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
13196 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
13197 system-hpux-ia64.ads, targparm.adb,
13198 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
13200 * system.ads: Move Functions_Return_By_DSP to obsolete section,
13201 kept for bootstrap purposes only.
13203 2007-04-06 Arnaud Charlet <charlet@adacore.com>
13205 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
13206 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
13207 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
13208 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
13210 2007-04-06 Robert Dewar <dewar@adacore.com>
13212 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
13213 (Local_Raise): New dummy procedure called when a raise is converted
13214 to a local goto. Used for debugger to detect that the exception
13217 * debug.adb: Document new d.g flag (expand local raise statements to
13218 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
13220 * exp_sel.adb: Use Make_Implicit_Exception_Handler
13222 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
13223 suppress warnings for unused handlers.
13224 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
13225 warnings for raise statements not handled locally.
13226 (Get_RT_Exception_Entity): New function
13227 (Get_Local_Call_Entity): New function
13228 (Find_Local_Handler): New function
13229 (Warn_If_No_Propagation): New procedure
13230 (Expand_At_End_Handler): Call Make_Implicit_Handler
13231 (Expand_Exception_Handlers): Major additions to deal with local handlers
13232 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
13233 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
13236 * exp_ch11.ads (Get_RT_Exception_Entity): New function
13237 (Get_Local_Call_Entity): New function
13239 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
13240 of restrictions that the binder will never suggest adding.
13242 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
13245 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
13246 be with'ed in the presence of pragma Restriction
13247 (No_Exception_Propagation).
13249 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
13251 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
13252 parameter, then the handler is not a suitable target for a local raise,
13253 and this is a violation of restriction No_Exception_Propagation.
13254 (Analyze_Handled_Statements): Analyze choice parameters in exception
13255 handlers before analyzing statement sequence (needed for proper
13256 detection of local raise statements).
13257 (Analyze_Raise_Statement): Reraise statement is a violation of the
13258 No_Exception_Propagation restriction.
13260 * s-rident.ads: Add new restriction No_Exception_Propagation
13262 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
13263 function, like Make_Exception_Handler but sets Local_Raise_Statements
13265 (Add_Unique_Serial_Number): Deal with case where this is called during
13266 processing of configuration pragmas.
13268 2007-04-06 Thomas Quinot <quinot@adacore.com>
13269 Pat Rogers <rogers@adacore.com>
13270 Pascal Obry <obry@adacore.com>
13272 * g-stsifd-sockets.adb: New file.
13274 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
13275 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
13276 g-socthi-vms.adb: Move signalling
13277 fd management to a nested package, so that they can conveniently be
13278 moved to a subunit that is shared across Windows, VMS, and VxWorks
13279 (Ada implementation) or completed with imported bodies from socket.c
13281 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
13283 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
13284 the signalling file descriptor.
13285 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
13286 signalling file descriptor.
13287 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
13288 instead of creating a pair of sockets for signalling here.
13290 * g-socthi.adb: Ditto.
13291 Set the runtime process to ignore SIGPIPEs on platforms that support
13292 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
13294 * g-socthi-mingw.adb: Ditto.
13295 (WS_Version): Use Windows 2.2.
13296 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
13298 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
13299 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
13301 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
13302 added GNAT byte swapping facility
13303 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
13305 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
13307 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
13309 (__gnat_create_signalling_fds): New subprogram.
13310 Set the runtime process to ignore SIGPIPEs on platforms that support
13311 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
13313 2007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
13314 Vincent Celier <celier@adacore.com>
13316 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
13317 New version of Ada.Calendar which supports the new upper bound of Ada
13318 time (2399-12-31 86_399.999999999).
13319 The following modifications have been made to the package:
13320 - New representation of time as count of nanoseconds since the start of
13321 Ada time (1901-1-1 0.0).
13322 - Target independent Split and Time_Of routines which service both
13323 Ada 95 and Ada 2005 code.
13324 - Target independent interface to the Ada 2005 children of Calendar.
13325 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
13326 - Handling of non-leap centenial years.
13327 - Updated clock function.
13328 - Updated arithmetic and comparison operators.
13330 * a-caldel.adb (To_Duration): Add call to target independent routine in
13331 Ada.Calendar to handle the conversion of time to duration.
13333 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
13335 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
13337 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
13338 targets do not have a natural time zone, GMT is used as a default.
13339 (__gnat_get_task_options): New.
13341 * a-direct.adb (Modification_Time): Add with and use clauses for
13342 Ada.Calendar and Ada.
13343 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
13344 since it is no longer needed.
13345 (Duration_To_Time): Removed.
13346 (OS_Time_To_Long_Integer): Removed.
13347 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
13348 Formatting Time_Of routines which automatically handle time zones,
13349 buffer periods and leap seconds.
13351 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
13352 target independent routines in Ada.Calendar.
13354 * a-calfor.ads, a-calfor.adb:
13355 Code cleanup and addition of validity checks in various routines.
13356 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
13359 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
13360 independent routine in Ada.Calendar.
13362 2007-04-06 Olivier Hainque <hainque@adacore.com>
13365 (convert_addresses): Adjust prototype and dummy definition to expect an
13366 extra file_name argument.
13368 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
13369 filling the now expected file_name argument with the appropriate
13371 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
13372 (tracebk): Array of void * instead of char *, corresponding to what
13373 convert_addresses expects.
13374 (exename): New static global, to hold the executable file name to be
13375 used in all convert_addresses invocations.
13376 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
13378 (__gnat_gmem_a2l_initialize): Resolve exename.
13379 (__gnat_convert_addresses): Use exename as the convert_addresses
13380 file_name argument.
13382 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
13383 "convert_addresses", now expecting a filename argument. Import the
13384 necessary entities to compute the filename to use and pass it to
13387 2007-04-06 Matt Gingell <gingell@adacore.com>
13389 * system-aix.ads: Back out previous change.
13390 (Functions_Return_By_DSP): Removed
13392 2007-04-06 Pascal Obry <obry@adacore.com>
13394 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
13395 or the monotonic used by Ada.Real_Time) to compute the sleep duration
13398 2007-04-06 Jose Ruiz <ruiz@adacore.com>
13400 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
13401 function. Its value changes in different VxWorks versions, and it is
13402 now handled by the function __gnat_get_task_options.
13404 * s-taprop-vxworks.adb (Create_Task): Call the function
13405 __gnat_get_task_options to get the required options for creating a task.
13407 2007-04-06 Pascal Obry <obry@adacore.com>
13408 Thomas Quinot <quinot@adacore.com>
13410 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
13411 dealing with filename.
13412 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
13413 filename from a standard string to a wide-string depending on the
13415 (__gnat_freopen): Idem.
13416 (__gnat_current_time): New function (wrapper for time(3) standard C
13419 * g-os_lib.ads (Current_Time): New function. Returns the current
13420 system time as an OS_Time value.
13422 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
13423 (Monotonic_Clock): Same.
13425 2007-04-06 Quentin Ochem <ochem@adacore.com>
13427 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
13429 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
13431 2007-04-06 Jose Ruiz <ruiz@adacore.com>
13433 * a-retide.adb: Add elaboration code to ensure that the tasking run
13434 time is initialized when using delay operations even when no task is
13437 2007-04-06 Javier Miranda <miranda@adacore.com>
13439 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
13440 component Num_Prim_Ops.
13441 (Set_Num_Prim_Ops): Removed.
13442 Remove all the assertions because all the routines of this
13443 package are inline always.
13444 (Get_Offset_Index): Add support to primary dispatch tables.
13445 Move the documentation about the dispatch table to a-tags.ads
13446 (Set_External_Tag): Removed
13447 (Inherit_TSD): Removed.
13448 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
13449 moved to a-tags.ads
13450 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
13451 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
13452 of the TSD field "Table" because this field has been renamed to
13454 (Inherit_CPP_DT): Removed.
13455 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
13456 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
13457 declarations have been moved to a-tags.ads
13458 (Check_Size): Removed.
13459 (Expanded_Name): Updated to get access to the new field of TSD
13460 containing the address of the expanded name.
13461 (Get_Access_Level/Set_Access_Level): Removed.
13462 (Get_Predefined_Prim_Op_Address): Removed.
13463 (Set_Predefined_Prim_Op_Address): Removed.
13464 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
13465 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
13466 (Set_Expanded_Name): Removed.
13467 (Inherit_DT): Removed.
13468 (Inherit_CPP_DT): Removed.
13469 (Set_RC_Offset): Removed.
13470 (Set_TSD): Removed.
13471 (Base_Address): New function that displaces "this" to point to the base
13472 of the object (that is, to point to the primary tag of the object).
13474 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13475 Javier Miranda <miranda@adacore.com>
13477 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
13478 anonymous access component, do not create a master_id if type already
13479 has one, as may happen if the type is a subcomponent of a packed array
13481 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
13482 Initialize_Tag): Remove code associated with the old CPP pragmas.
13483 CPP_Virtual and CPP_Vtable are no longer supported.
13484 (Build_Offset_To_Top_Internal): Add support for concurrent record types
13485 (Build_Offset_To_Top_Functions): Add support for concurrent record types
13486 (Freeze_Record_Type): Remove call to
13487 Init_Predefined_Interface_Primitives.
13488 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
13489 code required to initialize the tags of the secondary dispatch tables.
13490 This leaves the algoritm more clear.
13491 (Init_Secondary_Tags): Add support for concurrent record types
13492 (Make_Predefined_Primitive_Specs): Code cleanup.
13493 (Predefined_Primitive_Bodies): Code cleanup.
13494 (Build_Master_Renaming): New local subprogram.
13495 (Expand_N_Full_Type_Declaration): Build the master_id associated with
13496 anonymous access to task type components.
13497 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
13498 subtype indication are resolved during analysis, and must not be done
13500 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
13502 2007-04-06 Geert Bosch <bosch@adacore.com>
13503 Ed Schonberg <schonberg@adacore.com>
13504 Javier Miranda <miranda@adacore.com>
13505 Bob Duff <duff@adacore.com>
13507 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
13508 for conversion of a Float_Type'Truncation to integer.
13510 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
13511 check if a node is an attribute that can be handled directly by the
13513 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
13514 attributes that can be handled directly by the back end.
13515 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
13516 use new predicate Is_Access_Protected_Subprogram_Type.
13517 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
13518 and Unchecked_Union if it is generated as part of the default Output
13519 procedure for a type with default discriminants.
13520 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
13521 if we are compiling under restriction No_Dispatching_Calls.
13522 (Constrained): Use Underlying_Type, in case the type is private without
13523 discriminants, but the full type has discriminants.
13524 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
13525 call to Build_Get_Access_Level.
13526 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
13527 interface objects requires a call to the run-time subprogram that
13528 returns the base address of the object.
13529 (Valid_Conversion): Improve error message on illegal attempt to store
13530 an anonymous access to subprogram value into a record component.
13532 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
13534 (Simplify_Type_Conversion): New procedure that performs simplification
13535 of Int_Type (Float_Type'Truncation (X)).
13536 (Resolve_Type_Conversion): Call above procedure after resolving operand
13537 and before performing checks. This replaces the existing ineffective
13539 (Set_String_Literal_Subtype): When creating the internal static lower
13540 bound subtype for a string literal, use a newly created copy of the
13541 subtree representing the lower bound.
13542 (Resolve_Call): Exclude build-in-place function calls from transient
13543 scope treatment. Update comments to describe this exception.
13544 (Resolve_Equality_Op): In case of dispatching call check violation of
13545 restriction No_Dispatching_Calls.
13546 (Resolve_Call): If the call returns an array, the context imposes the
13547 component type of the array, and the function has one non-defaulted
13548 parameter, rewrite the call as the indexing of a call with a single
13549 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
13551 (Resolve_Actuals): If an actual is an allocator for an access parameter,
13552 the master of the created object is the innermost enclosing statement.
13553 (Remove_Conversions): For a binary operator, check if type of second
13554 formal is numeric, to check if an abstract interpretation is present
13555 in the case of exponentiation as well.
13557 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13558 Bob Duff <duff@adacore.com>
13560 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
13561 copying a parameter list in a call, set properly the First_Named_Formal
13562 and Next_Named_Formal fields in the new list and in the enclosing call.
13563 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
13564 names, to ease typing in the debugger. Improve comments.
13565 (Watch_Node): New variable, intended to be set in the debugger.
13566 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
13567 called when the watched node is created.
13568 (New_Node_Debugging_Output): Combined version of local procedures
13569 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
13570 with a parameter so that conditional breakpoints like "if Node = 12345"
13572 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
13573 Add Elist1 function
13575 2007-04-06 Thomas Quinot <quinot@adacore.com>
13576 Ed Schonberg <schonberg@adacore.com>
13577 Gary Dismukes <dismukes@adacore.com>
13579 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
13580 required for a conversion between two access-to-unconstrained-array
13582 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
13583 to discriminant constraints on discriminant objects. This rule must
13584 apply as well to discriminants of protected types in private components.
13585 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
13586 object of a null-excluding access type then don't require the
13587 the object declaration to have an expression and don't emit a
13590 2007-04-06 Arnaud Charlet <charlet@adacore.com>
13591 Eric Botcazou <botcazou@adacore.com>
13593 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
13596 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
13597 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
13600 * fe.h (Compiler_Abort): Add third parameter.
13602 * misc.c (internal_error_function): Build third argument from current
13603 input location and pass it to Compiler_Abort.
13605 2007-04-06 Gary Dismukes <dismukes@adacore.com>
13607 * cstand.adb (Create_Standard): When the target's storage unit size is
13608 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
13611 2007-04-06 Nicolas Roche <roche@adacore.com>
13613 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
13614 absolute path can have the following form: device:/a/b. In this case
13615 '/' should be inserted between the path and the filename.
13617 2007-04-06 Olivier Hainque <hainque@adacore.com>
13618 Eric Botcazou <botcazou@adacore.com>
13620 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
13621 VAR_DECL to a CONST_DECL we make for a public constant when we know the
13622 corresponding definition has created the so made visible variable.
13623 Handle anonymous access to protected subprogram.
13624 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
13625 object with an address clause volatile. Re-enable original fix.
13626 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
13628 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
13629 associated with either the Equivalent or Root type, instead of the
13631 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
13632 subtree for every field of a global record type.
13633 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
13634 discriminants, invoke again variable_size on its newly computed sizes.
13636 2007-04-06 Robert Dewar <dewar@adacore.com>
13637 Thomas Quinot <quinot@adacore.com>
13638 Ed Schonberg <schonberg@adacore.com>
13639 Bob Duff <duff@adacore.com>
13641 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
13642 (Next_Component_Or_Discriminant): New function and procedure
13643 (First_Index, First_Literal, Master_Id,
13644 Set_First_Index, Set_First_Literal, Set_Master_Id):
13645 Add missing Ekind assertions.
13646 (Is_Access_Protected_Subprogram_Type): New predicate.
13647 (Has_RACW): New entity flag, set on package entities to indicate that
13648 the package contains the declaration of a remote accecss-to-classwide
13650 (E_Return_Statement): This node type has the Finalization_Chain_Entity
13651 attribute, in case the result type has controlled parts.
13652 (Requires_Overriding): Add this new flag, because "requires
13653 overriding" is subtly different from "is abstract" (see AI-228).
13654 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
13655 Is_Abstract_Type. Make sure these are called only when appropriate.
13656 (Has_Pragma_Unreferenced_Objects): New flag
13658 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
13659 class-wide, the tag of the right-hand side must be an exact match, not
13660 an ancestor of that of the object on left-hand side.
13661 (Move_Activation_Chain): New procedure to create the call to
13662 System.Tasking.Stages.Move_Activation_Chain.
13663 (Expand_N_Extended_Return_Statement): Generate code to call
13664 System.Finalization_Implementation.Move_Final_List at the end of a
13665 return statement if the function's result type has controlled parts.
13666 Move asserts to Build_In_Place_Formal.
13667 (Move_Final_List): New function to create the call statement.
13668 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
13669 tagged type, replace generation of call to the run-time subprogram
13670 CW_Membership by call to Build_CW_Membership.
13671 (Expand_N_Return_Statement): Replace generation of call to the run-time
13672 subprogram Get_Access_Level by call to Build_Get_Access_Level.
13673 (Expand_N_Simple_Function_Return): Replace generation of call to the
13674 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
13676 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
13677 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
13678 access to protected operations.
13679 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
13680 master and chain actual parameters to a build-in-place function call
13682 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
13684 (Make_Build_In_Place_Call_In_Allocator,
13685 Make_Build_In_Place_Call_In_Anonymous_Context,
13686 Make_Build_In_Place_Call_In_Assignment,
13687 Make_Build_In_Place_Call_In_Object_Declaration): Call
13688 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
13689 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
13690 stubbed procedure with a null body, replace the call with a null
13691 statement without using the full inlining machinery, for efficiency
13692 and to avoid invalid values in source file table entries.
13694 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
13695 renamings of calls to build-in-place functions.
13697 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
13698 provides the functionality of RTE_Available to record components.
13699 (RTU_Entity): The function Entity has been renamed to RTU_Entity
13700 to avoid undesired overloading.
13701 (Entity): New subprogram that returns the entity for the referened
13702 unit. If this unit has not been loaded, it returns Empty.
13703 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
13704 Remove no longer used entities.
13705 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
13706 (RE_Type_Specific_Data): New entity.
13707 (RE_Move_Any_Value): New entity.
13708 (RE_TA_A, RE_Get_Any_Type): New entities.
13709 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
13710 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
13711 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
13712 (Entity): New subprogram that returns the entity for the referened
13713 unit. If this unit has not been loaded, it returns Empty.
13714 (RTE): Addition of a new formal that extends the search to the scopes
13715 of the record types found in the chain of the package.
13717 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
13718 "abstract subprograms must be visible" message, whether or not the type
13719 is an interface; that is, remove the special case for interface types.
13720 (Analyze_Function_Return): Remove error message "return of task objects
13721 is not yet implemented" because this is now implemented.
13722 (Create_Extra_Formals): Add the extra master and activation chain
13723 formals in case the result type has tasks.
13724 Remove error message "return of limited controlled objects is not yet
13726 (Create_Extra_Formals): Add the extra caller's finalization list formal
13727 in case the result type has controlled parts.
13728 (Process_Formals): In case of access formal types there is no need
13729 to continue with the analysis of the formals if we already notified
13731 (Check_Overriding_Indicator): Add code to check overriding of predefined
13733 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
13734 flags for formals that do not require them,.
13735 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
13736 hidden entity is use visible or directly visible.
13737 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
13738 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
13739 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
13740 New_Overloaded_Entity): Split Is_Abstract flag into
13741 Is_Abstract_Subprogram and Is_Abstract_Type.
13743 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
13744 a return statement's finalization list to the caller's list, used for
13745 build-in-place functions with result type with controlled parts.
13746 Remove no longer used entities.
13748 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
13749 longer needed, because the full type is now limited, and therefore a
13750 pass-by-reference type.
13751 (Foreign_Task_Level): New constant.
13753 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
13754 move tasks from the activation chain belonging to a return statement to
13755 the one passed in by the caller, and update the master to the one
13756 passed in by the caller.
13757 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
13758 of unactivated tasks, so we don't kill the ones that are being returned
13759 by a build-in-place function.
13760 (Create_Task): Ignore AI-280 for foreign threads.
13762 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13763 Robert Dewar <dewar@adacore.com>
13764 Bob Duff <duff@adacore.com>
13765 Gary Dismukes <dismukes@adacore.com>
13767 * errout.adb (Unwind_Internal_Type): Use predicate
13768 Is_Access__Protected_Subprogram_Type.
13770 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
13771 (Freeze_Entity, packed array case): Do not override explicitly set
13772 alignment and size clauses.
13773 (Freeze_Entity): An entity declared in an outer scope can be frozen if
13774 the enclosing subprogram is a child unit body that acts as a spec.
13775 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
13776 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
13777 Remove all code for DSP option
13779 * layout.adb (Layout_Record_Type): Use First/
13780 Next_Component_Or_Discriminant
13781 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
13782 to handle properly the anonymous access case.
13784 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
13785 for all access attributes, because overload resolution should work the
13786 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
13787 causes the error message for the ambiguous "X'Access = Y'Access" and
13788 "X'Unrestricted_Access = Y'Access" and so forth to match.
13789 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
13790 now that anonymous access to protected operations have their own kind.
13791 (Resolve_Attribute): In case of dispatching call check the violation of
13792 restriction No_Dispatching_Calls.
13793 (Check_Array_Type): Check new -gnatyA array index style option
13795 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
13796 attempt to derive from a synchronized tagged type.
13797 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
13798 type, inherit the class-wide type already created, because it may
13799 already have been used in a self-referential anonymous access component.
13800 (Mentions_T): Recognize self-referential anonymous access components
13801 that use (a subtype of) the class-wide type of the enclosing type.
13802 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
13803 Derived_Type for Prev formal on call to
13804 Check_Anonymous_Access_Components rather than Empty.
13805 (Make_Incomplete_Type_Declaration): Add test for case where the type has
13806 a record extension in deciding whether to create a class-wide type,
13807 rather than just checking Tagged_Present.
13808 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
13809 to stand-alone object declarations as well as component declarations.
13810 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
13811 prevent accidental overwriting when enclosing package appears in
13812 a limited_with_clause.
13813 (Array_Type_Declaration): If the component type is an anonymous access,
13814 the associated_node for the itype is the type declaration itself.
13815 (Add_Interface_Tag_Components): Modified to support concurrent
13816 types with abstract interfaces.
13817 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
13818 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
13819 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
13820 to complete the decoration of synchronized interface types. Add also
13821 a call to Check_Abstract_Interfaces to verify the ARM rules.
13822 (Derive_Interface_Subprograms): Modified to support concurrent types
13823 with abstract interfaces.
13824 (Analyze_Subtype_Indication): Resolve the range with the given subtype
13825 mark, rather than delaying the full resolution depending on context.
13826 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
13827 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
13828 Array_Type_Declaration,Build_Derived_Record_Type,
13829 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
13830 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
13831 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
13832 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
13833 called only when appropriate.
13834 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
13836 (Analyze_Subtype_Declaration): For an access subtype declaration, create
13837 an itype reference for the anonymous designated subtype, to prevent
13838 scope anonmalies in gigi.
13839 (Build_Itype_Reference): New utility, to simplify construction of such
13842 2007-04-06 Vincent Celier <celier@adacore.com>
13844 * errutil.adb (Initialize): Initialize warnings table, if all warnings
13845 are suppressed, supply an initial dummy entry covering all possible
13848 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
13849 and start with only one, such as "-RTS=none".
13850 (Collect_Arguments): Do not check for sources outside of projects.
13851 Do not collect arguments if project is externally built.
13852 (Compile_Sources): Do nothing, not even check if the source is up to
13853 date, if its project is externally built.
13854 (Compile): When compiling a predefined source, add -gnatpg
13855 as the second switch, after -c.
13856 (Compile_Sources): Allow compilation of Annex J renames without -a
13857 (Is_In_Object_Directory): Check if the ALI file is in the object
13858 even if there is no project extension.
13859 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
13860 gnatbind if the ALI file effectively exists.
13861 (Initialize): Add the directory where gnatmake is invoked in front of
13862 the path if it is invoked from a bin directory, even without directory
13863 information, so that the correct GNAT tools will be used when spawned
13864 without directory information.
13866 * makeusg.adb: Change switch -S to -eS
13867 Add lines for new switches -we, -wn and -ws
13868 Add line for new switch -p
13870 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
13871 Treat_As_Error and there are warnings.
13873 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
13874 -gnatww Change gnatmake switch -S to -eS
13875 (Scan_Make_Switches): Code reorganisation. Process separately multi
13876 character switches and single character switches.
13877 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
13878 False when switch is not recognized by gnatmake.
13879 (Scan_Make_Switches): Set Setup_Projects True when -p or
13880 --create-missing-dirs is specified.
13882 * fname.adb (Is_Predefined_File_Name): Return True for annex J
13883 renamings Calendar, Machine_Code, Unchecked_Conversion and
13884 Unchecked_Deallocation only when Renamings_Included is True.
13886 * par.adb: Allow library units Calendar, Machine_Code,
13887 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
13888 when -gnatg is not specified.
13889 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
13890 there is no need to generate always a record_definition_node in case
13891 of synchronized interface types.
13892 (SIS_Entry_Active): Initialize global variable to False
13893 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
13894 indicate cases where AI-447 says "not null" is legal.
13896 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
13898 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
13899 files with with several lines starting with the object fileb name.
13900 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
13902 (Initialize): Add the directory where gprmake is invoked in front of the
13903 path, if it is invoked from a bin directory or with directory
13904 information, so that the correct GNAT tools will be used when invoked
13906 (Check_Compilation_Needed): Process correctly backslashes on Windows.
13908 * vms_data.ads: Update switches/qualifiers
13910 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13911 Thomas Quinot <quinot@adacore.com>
13914 If the array component is a discriminated record, the array aggregate
13915 is non-static even if the component is given by an aggregate with
13917 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
13918 (Convert_Aggr_In_Allocator): If the allocator is for an access
13919 discriminant and the type is controlled. do not place on a finalization
13920 list at this point. The proper list will be determined from the
13922 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
13923 initialize record controller if needed, before the components, to ensure
13924 that they are properly finalized.
13925 (Build_Record_Aggr_Code): For the case of an array component that has a
13926 corresponding array aggregate in the record aggregate, perform sliding
13929 2007-04-06 Javier Miranda <miranda@adacore.com>
13930 Gary Dismukes <dismukes@adacore.com>
13931 Ed Schonberg <schonberg@adacore.com>
13933 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
13934 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
13936 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
13937 accessibility on class-wide allocators if the allocator occurs at the
13938 same scope level as the allocator's type. The check is guaranteed to
13939 succeed in that case, even when the expression originates from a
13940 parameter of the containing subprogram.
13941 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
13942 under No_Dispatching_Calls restriction. During the semantic analysis
13943 we already notified such violation.
13944 (Tagged_Membership): Constant folding. There is no need to check
13945 the tag at run-time if the type of the right operand is non
13946 class-wide abstract.
13947 Replace call to Is_Ancestor by call to Is_Parent
13948 to support concurrent types with interface types.
13949 (Expand_N_Allocator): Add an assertion associated with the generation
13951 (Expand_N_Slice): Do not enable range check to nodes associated
13952 with the frontend expansion of the dispatch table.
13953 (Is_Local_Access_Discriminant): Subsidiary function to
13954 Expand_N_Allocator.
13955 (Tagged_Membership): Replace generation of call to the run-time
13956 subprogram CW_Membership by call to Build_CW_Membership.
13957 (Expand_Allocator_Expression): Replace generation of call to the
13958 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
13960 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
13961 initialize most the TSD components by means of an aggregate.
13962 Modify the declaration of the object containing the TSD
13963 because we now expand code that has a higher level of abstraction.
13964 The TSD has a discriminant containing the Inheritance Depth Level,
13965 value that is used in the membership test but also to fix the size
13966 of the table of ancestors.
13967 (Expand_Interface_Conversion): Insert function body at the closest place
13968 to the conversion expression, to prevent access-before-elaboration
13969 errors in the backend.
13970 Code improved to reduce the size of the dispatch table if
13971 compiling under restriction No_Dispatching_Calls plus code cleanup.
13972 Code reorganization plus removal of calls to Set_Num_Prim_Ops
13973 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
13974 (Expand_Dispatching_Call): Minor code reorganization plus addition of
13975 code to return immediately if compiling under No_Dispatching_Calls
13977 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
13978 CPP_Virtual and CPP_Vtable are no longer supported.
13979 (Expand_Interface_Conversion): Add missing support for interface type
13981 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
13982 Is_Parent to support concurrent types with interfaces.
13983 (Init_Predefined_Interface_Primitives): Removed.
13984 (Make_Secondary_DT): Modified to support concurrent record types.
13985 (Set_All_DT_Position): Modified to support concurrent record types.
13986 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
13987 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
13988 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
13989 with CW_Membership.
13990 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
13991 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
13992 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
13993 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
13994 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
13995 (Expand_Dispatching_Call): Replace generation of call to the run-time
13996 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
13997 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
13999 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
14000 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
14001 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
14002 Build_Set_Prim_Op_Address.
14003 (Get_Remotely_Callable): Subprogram removed.
14004 (Init_Predefined_Interface_Primitives): Replace generation of call to
14005 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
14008 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
14009 First (Parameter_Associations ()) with the call to First_Actual that
14010 returns an actual parameter expression for both named and positional
14013 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
14014 check violation of restriction No_Dispatching_Calls.
14015 (Check_Controlling_Type): A formal of a tagged incomplete type is a
14016 controlling argument.
14018 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
14019 First/Next_Component_Or_Discriminant
14020 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
14021 (Find_Implemented_Interface): Removed. All the calls to this subprogram
14022 specify Any_Limited_Interface, and this functionality is already
14023 provided by the function Has_Abstract_Interfaces.
14024 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
14025 support concurrent types implementing interfaces.
14026 (Find_Implemented_Interface): Removed. All the calls to this subprogram
14027 specify kind Any_Limited_Interface, and this functionality is already
14028 provided by the function Has_Abstract_Interfaces.
14029 (Remove_Side_Effects): replace Controlled_Type by
14030 CW_Or_Controlled_Type whenever the issue is related to
14031 using or not the secondary stack.
14033 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
14034 P_Interface_Type_Definition to fulfill the new interface (the formal
14035 Is_Synchronized is no longer required).
14037 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
14038 Update dependencies.
14040 * exp_atag.ads, exp_atag.adb: New file
14042 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14043 Bob Duff <duff@adacore.com>
14044 Cyrille Comar <comar@adacore.com>
14046 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
14047 anonymous, use finalization list of enclosing dynamic scope.
14048 (Expand_N_Package_Declaration): For a library package declaration
14049 without a corresponding body, generate RACW subprogram bodies in the
14050 spec (just as we do for the task activation call).
14051 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
14052 Is_Abstract_Type. Make sure these are called only when appropriate.
14053 Remove all code for DSP option
14054 (CW_Or_Controlled_Type): new subprogram.
14056 2007-04-06 Eric Botcazou <botcazou@adacore.com>
14057 Ed Schonberg <schonberg@adacore.com>
14058 Gary Dismukes <dismukes@adacore.com>
14060 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
14061 parameter. If it is set to true, return a result capped according to
14062 the global upper bound for the index of an entry family.
14063 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
14064 (Build_Find_Body_Index): Adjust for above change.
14065 (Entry_Index_Expression): Likewise.
14066 (Is_Potentially_Large_Family): New function extracted from...
14067 (Collect_Entry_Families): ...here. Call it to detect whether the family
14068 is potentially large.
14069 (Build_Entry_Count_Expression): If the family is potentially large, call
14070 Family_Size with 'Cap' set to true.
14071 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
14072 a protected version of an operation declared in the private part of
14073 a protected object, because they may be invoked through a callback.
14074 (Set_Privals): If the type of a private component is an anonymous access
14075 type, do not create a new itype for each protected body.
14076 If the body of a protected operation creates
14077 controlled types (including allocators for class-widetypes), the
14078 body of the corresponding protected subprogram must include a
14080 (Build_Activation_Chain_Entity): Build the chain entity for extended
14082 (Type_Conformant_Parameters): Use common predicate Conforming_Types
14083 to determine whether operation overrides an inherited primitive.
14084 (Build_Wrapper_Spec): Add code to examine the parents while looking
14085 for a possible overriding candidate.
14086 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
14087 hold an actual parameter value since its initialization is separated
14088 from the the declaration. Prevents errors on null-excluding access
14091 2007-04-06 Thomas Quinot <quinot@adacore.com>
14092 Pablo Oliveira <oliveira@adacore.com>
14094 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
14095 Do an Unchecked_Conversion to handle the passage from the Underlying
14096 Type to the Base Type when calling Build_To_Any_Call and
14097 Build_From_Any_Call.
14098 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
14099 E_Constant, depending upon Variable formal.
14100 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
14101 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
14102 parameter that requires an extra constrained parameter, declare
14103 temporary for actual as a variable, not a constant.
14104 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
14105 the unit being compiled is the one that contains the stub type.
14106 Change primitive operation name for the RACW associated with a RAS
14107 from Call to _Call so it cannot clash with any legal identifier.
14108 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
14110 (Append_RACW_Bodies): New subprogram.
14111 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
14112 Add_Receiving_Stubs_To_Declarations functions.
14113 When expanding a package body, this list correspond to the
14114 statements in the HSS at the end of the pacakge.
14115 When expanding a package spec, this list correspond to the
14117 (Add_Receiving_Stubs_To_Declarations): Append the function
14118 registering the receiving stubs at the end of the 'Stmts' list.
14119 (RCI_Package_Locator): Pass the new Version generic formal when
14120 instantiating a RCI_Locator package.
14121 (Build_From_Any_Function): To compute the High bound for an
14122 unconstrained array actual, we add the Low bound with the length.
14123 Thus we must convert the low bound and the length to an appropriate
14124 type before doing the sum.
14125 (Build_Subprogram_Receiving_Stubs, PolyORB):
14126 * Retrieve the extra formals parameters at the
14127 end of the parameter stream.
14128 * Use Move_Any_Value to write back out parameters
14129 after executing the request as it is more efficient
14130 than Copy_Any_Value.
14131 * Build the any containing Extra Formals with the
14132 appropriate typecode.
14133 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
14134 empty Component_List.
14135 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
14136 the tree the declaration for an object that serves as actual parameter
14137 in server-side stubs.
14138 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
14139 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
14140 Use Build_Actual_Object_Declaration to prepare the actuals.
14141 (Add_Parameter_To_NVList): Set the parameter mode to In for
14142 Extra Constrained Parameters.
14143 (Build_General_Calling_Stubs): Set the parameter type to boolean for
14144 Extra Constrained parameters.
14145 (Build_To_Any_Function, Build_From_Any_Function,
14146 Built_TypeCode_Function): When Typ is implicit, call the correct
14147 function with the first not implicit parent type.
14148 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
14149 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
14150 typecode from the Etype. Therefore we retrieve the correct typecode
14151 with a call to Get_Any_Type.
14152 (Copy_Specification): Do controlling formal type substitution based on
14153 Is_Controlling_Formal flag, instead of caller-provided object type.
14154 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
14155 a RACW primitive operation, we might get a subprogram declaration for an
14156 ancestor of the RACW designated type (not for the designated type
14157 itself), in the case where this operation is inherited. In this case we
14158 have no easy means of determining the original tagged type for which
14159 the primitive was declared, so instead we now rely on
14160 Copy_Specification to use the Is_Controlling_Formal flag to determine
14161 which formals require type substitution.
14163 2007-04-06 Robert Dewar <dewar@adacore.com>
14164 Ed Schonberg <schonberg@adacore.com>
14166 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
14167 GNAT.Current_Exception are not allowed if pragma Restrictions
14168 (No_Exception_Propagation) is set and in any case make the associated
14169 handler unsuitable as a target for a local raise statement.
14170 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
14171 run-time subprogram CW_Membership by call to Build_CW_Membership.
14172 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
14173 by a function call, a temporary must be created before expanding the
14174 Constructor_Call itself, to prevent out-of-order elaboration in the
14175 back-end when stack checking is enabled..
14177 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14179 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
14180 result are the bounds of the left operand, not the right.
14182 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14185 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
14186 discriminant defaults.
14187 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
14188 (Make_Component_List_Attributes): Ditto.
14190 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14191 Bob Duff <duff@adacore.com>
14193 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
14194 an association with a box as providing a value even though the
14195 initialization procedure for the type is not available.
14196 (Resolve_Record_Aggregate): Check that a choice of an association with a
14197 box corresponds to a component of the type.
14198 (Resolve_Record_Aggregate): Split Is_Abstract flag into
14199 Is_Abstract_Subprogram and Is_Abstract_Type.
14201 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
14204 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
14205 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
14206 called only when appropriate.
14208 2007-04-06 Olivier Hainque <hainque@adacore.com>
14210 * g-alleve.ads (Low Level Vector type definitions): Map each to the
14211 associated vector view instead of all to the unsigned char view.
14213 * g-altcon.adb (Generic_Conversions): New internal generic package,
14214 offering facilities for all the Vector/View conversion routines
14215 implemented by this unit.
14216 (To_View/To_Vector - all versions): Reimplemented in a systematic
14217 manner, using the internal Generic_Conversions facilities.
14219 2007-04-06 Pascal Obry <obry@adacore.com>
14221 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
14223 (Create): Free the source string before storing the new one.
14225 2007-04-06 Vincent Celier <celier@adacore.com>
14227 * g-debpoo.adb (Validity): New package with a complete new
14228 implementation of subprograms Is_Valid and Set_Valid.
14229 (Is_Valid): Move to local package Validity
14230 (Set_Valid): Move to local package Validity
14232 2007-04-06 Arnaud Charlet <charlet@adacore.com>
14233 Pablo Oliveira <oliveira@adacore.com>
14235 * g-expect.adb (Get_Command_Output): When expanding the output buffer
14236 we must ensure that there is enough place for the new data we are going
14239 2007-04-06 Thomas Quinot <quinot@adacore.com>
14241 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
14244 2007-04-06 Jose Ruiz <ruiz@adacore.com>
14245 Vincent Celier <celier@adacore.com>
14247 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
14248 (Stack_String): Add this String that contains the name of the Stack
14249 package in the project file.
14250 (Packages_To_Check_By_Stack): Add this list that contains the packages
14251 to be checked by gnatstack, which are the naming and the stack packages.
14252 (Check_Files): If no .ci files were specified for gnatstack we add all
14253 the .ci files belonging to the projects, including binder generated
14255 (Non_VMS_Usage): Document that gnatstack accept project file switches.
14256 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
14257 Add gnatstack to the list of commands that use project file related
14258 switches, and get the single attribute Switches from the stack package
14259 in a project file when calling gnatstack. Parse the -U flag for
14260 processing files belonging to all projects in the project tree.
14261 Remove all processing for command Setup
14263 * prj-attr.adb: Add new package Stack with single attribute Switches
14265 * vms_conv.ads (Command_Type): Add command Stack.
14266 Move to body declarations that are only used in the body: types Item_Id,
14267 Translation_Type, Item_Ptr, Item and its subtypes.
14269 * vms_conv.adb: (Initialize): Add data for new command Stack.
14270 Add declarations moved from the spec: types Item_Id, Translation_Type,
14271 Item_Ptr, Item and its subtypes.
14272 (Cargs_Buffer): New table
14273 (Cargs): New Boolean global variable
14274 (Process_Buffer): New procedure to create arguments
14275 (Place): Put character in table Buffer or Cargs_Buffer depending on the
14277 (Process_Argument): Set Cargs when processing qualifiers for GNAT
14279 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
14280 empty, for table Cargs_Buffer.
14281 (Initialize): Remove component Setup in Command_List
14283 2007-04-06 Vincent Celier <celier@adacore.com>
14285 * gprep.adb (Process_Files.Process_One_File): Use full file name when
14286 issuing pragma Source_Reference.
14288 2007-04-06 Emmanuel Briot <briot@adacore.com>
14290 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
14291 [[:xdigit:]] character class.
14292 Also raise an exception when an invalid character class is used.
14294 2007-04-06 Pascal Obry <obry@adacore.com>
14296 * i-cstrea.ads: (fopen): Add encoding parameter.
14298 Change reference from a-sysdep.c to sysdep.c in comment.
14299 Update copyright notice.
14300 This set of patch add support for the encoding form parameter.
14302 * mingw32.h (S2WSU): New macro to convert from a string to a
14303 wide-string using the UTF-8 encoding. The S2WS macro supports now only
14304 standard 8bits encoding.
14305 (WS2SU): As above but converting from wide-sring to string.
14306 This is needed as it is necessary to have access to both versions in the
14307 runtime for the form parameter encoding support.
14308 This set of patch add support for the encoding form parameter.
14309 (S2WS): Improve implementation to handle cases where the filename is not
14310 UTF-8 encoded. In this case we default to using the current code page
14311 for the conversion.
14313 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
14314 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
14315 the constants defined in adaint.h.
14316 (fopen): Add encoding parameter.
14319 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
14320 encoding. This is needed for the Reset routine (freopen low level-call).
14322 * s-fileio.adb (Open): Decode encoding form parameter and set the
14323 corresponding encoding value into AFCB structure.
14324 (Reset): Pass the encoding value to freopen.
14325 (Close): Move the call to Lock_Task to the beginning of the procedure.
14327 2007-04-06 Geert Bosch <bosch@adacore.com>
14328 Robert Dewar <dewar@adacore.com>
14330 * i-fortra.ads: Add Double_Complex type.
14332 * impunit.adb: (Is_Known_Unit): New function
14333 Add Gnat.Byte_Swapping
14335 Add new Ada 2005 units
14336 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
14337 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
14338 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
14339 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
14341 * impunit.ads (Is_Known_Unit): New function
14343 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
14344 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
14345 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
14346 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
14347 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
14348 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
14351 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
14353 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
14355 2007-04-06 Eric Botcazou <botcazou@adacore.com>
14356 Arnaud Charlet <charlet@adacore.com>
14358 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
14359 __gnat_adjust_context_for_raise.
14360 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
14361 implementation of floating point operations as native x86 targets.
14362 So the FPU should be initialized in the same way using finit. Fix
14363 floating point operations accuracy issues.
14364 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
14365 member in struct sigaction, so as to avoid warning for incompatible
14368 2007-04-06 Serguei Rybin <rybin@adacore.com>
14370 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
14371 switches from previously loaded tree
14373 2007-04-06 Thomas Quinot <quinot@adacore.com>
14375 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
14376 cases where a given dependency has a body or not.
14377 (Write_With_File_Names): New subprogram, common code for the two cases
14380 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14381 Javier Miranda <miranda@adacore.com>
14383 * lib-xref.ads, lib-xref.adb:
14384 Modify the loop that collects type references, to include interface
14385 types that the type implements. List each of these interfaces when
14386 building the entry for the type.
14387 (Generate_Definition): Initialize component Def and Typ of new entry
14388 in table Xrefs, to avoid to have these components unitialized.
14389 (Output_References): Split Is_Abstract flag into
14390 Is_Abstract_Subprogram and Is_Abstract_Type.
14391 (Generate_Reference): Add barrier to do not generate the warning
14392 associated with Ada 2005 entities with entities generated by the
14395 2007-04-06 Robert Dewar <dewar@adacore.com>
14396 Arnaud Charlet <charlet@adacore.com>
14397 Vincent Celier <celier@adacore.com>
14399 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
14400 Update 'Exception Handling Control' chapter which was outdated.
14401 Minor fix to documentation of -gnatwq
14402 Remove section "Adapting the Run Time to a New C++ Compiler" because
14403 it is now obsolete.
14404 Add passage on need of -nostart-files in some non-ada-main cases.
14405 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
14406 Update documentation about Interfacing with C++
14407 Add documentation for new gnatmake switch -p
14408 Add missing protocol part in URLs.
14410 Document pragma Compile_Time_Error
14411 Add documentation for Object_Size indicating that stand alone
14412 objects can have a larger size in some cases.
14413 Add node for GNAT.Byte_Swapping, GNAT.SHA1
14414 Update reference to the Ravenscar profile.
14415 Document pragma Unreferenced_Objects
14417 * gnat-style.texi: Fix typo
14419 2007-04-06 Vincent Celier <celier@adacore.com>
14421 * mlib.adb (Building_Library): Only output "building a library..." in
14424 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
14425 files in verbose mode.
14427 * mlib-utl.adb (Ar): Only output the first object files when not in
14429 (Gcc): Do not display all the object files if not in verbose mode, only
14432 2007-04-06 Robert Dewar <dewar@adacore.com>
14434 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
14435 it no longer destroys the contents of Name_Buffer or Name_Len and
14436 non-standard and invalid names are handled better.
14437 (Get_Decoded_Name_String): Improve performance by using
14438 Name_Has_No_Encodings flag in the name table.
14439 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
14440 Used for debugging printouts.
14442 2007-04-06 Robert Dewar <dewar@adacore.com>
14443 Javier Miranda <miranda@adacore.com>
14444 Bob Duff <duff@adacore.com>
14446 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
14447 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
14448 there is no need to generate always a record_definition_node in case
14449 of synchronized interface types.
14450 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
14451 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
14452 illegal in Ada 95, in cases where it is legal. Change the warnings to
14453 errors in other cases. Don't give the error unless the "not null"
14454 parses properly. Correct the source position at which the error occurs.
14455 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
14456 P_Null_Exclusion, to suppress "not null" warnings.
14457 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
14458 associated goto statements.
14460 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
14463 * scans.ads (Type_Token_Location): New flag
14465 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
14466 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
14467 P_Null_Exclusion, to suppress "not null" warnings.
14469 2007-04-06 Robert Dewar <dewar@adacore.com>
14470 Javier Miranda <miranda@adacore.com>
14471 Bob Duff <duff@adacore.com>
14472 Vincent Celier <celier@adacore.com>
14474 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
14475 (Extensions_Allowed): No longer sets Ada_Version
14476 Entry for pragma Unreferenced_Objects
14478 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
14479 system.tasking if pragma priority used in a procedure
14480 (Analyze_Pragma, case Warning): Handle dot warning switches
14481 (Process_Compile_Time_Warning_Or_Error): New procedure
14482 (Analyze_Pragma): Add processing for Compile_Time_Error
14483 Add support for extra arguments External_Name and Link_Name.
14484 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
14485 (Process_Import_Or_Interface): Add support for the use of pragma Import
14487 (Extensions_Allowed): No longer affects Ada_Version
14488 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
14489 Is_Abstract_Type. Make sure these are called only when appropriate.
14490 Add processing for pragma Unreferenced_Objects
14492 * snames.h, snames.ads, snames.adb: Add entry for pragma
14494 Add new standard name Minimum_Binder_Options for new gprmake
14495 Add new standard names for gprmake: Archive_Suffix,
14496 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
14497 Library_Support, Library_Version_Options,
14498 Shared_Library_Minimum_Options,
14499 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
14500 Change Name_Call to Name_uCall so that it cannot clash with a legal
14502 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
14503 Append C_Plus_Plus to convention identifiers as synonym for CPP
14504 Add new standard names Stack and Builder_Switches
14505 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
14506 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
14507 Run_Path_Option, Toolchain_Version.
14508 Entry for pragma Unreferenced_Objects
14510 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
14511 switches, without repetition of "eD". Make sure that last character of
14512 -gnatep= switch is not taken as -gnat switch character.
14513 Complete rewrite of circuit for handling saving compilation options
14514 Occasioned by need to support dot switchs for -gnatw, but cleans up
14516 -gnatX does not affect Ada_Version
14517 Include -gnatyA in -gnatg style switches
14519 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
14520 warnings on return objects.
14521 (Warn_On_Useless_Assignment): Exclude warnings on return objects
14522 (Set_Dot_Warning_Switch): New procedure
14523 (Check_References): Add missing case of test for
14524 Has_Pragma_Unreferenced_Objects
14525 (Output_Unreferenced_Messages): Implement effect of new pragma
14526 Unreferenced_Objects, remove special casing of limited controlled
14529 2007-04-06 Vincent Celier <celier@adacore.com>
14531 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
14532 the default project path, initially done during elaboration of the
14534 If the prefix returned by Sdefault is null, get the prefix from a call
14535 to Executable_Prefix_Path.
14536 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
14539 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
14540 canonical directory name to open the directory from which files are
14542 (Record_Other_Sources): Idem.
14543 (Locate_Directory): Add the possibility to create automatically missing
14544 directories when Setup_Projects is True.
14545 Call Locate_Directory so that the directory will be created when
14546 Setup_Projects is True, for object dir, library dir, library ALI dir,
14547 library source copy dir and exec dir.
14549 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
14552 2007-04-06 Robert Dewar <dewar@adacore.com>
14554 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
14555 Use First/Next_Component_Or_Discriminant
14556 (Analyze_Record_Representation_Clause):
14557 Use First/Next_Component_Or_Discriminant
14558 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
14559 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
14560 definition if type is unconstrained.
14561 (Adjust_Record_For_Reverse_Bit_Order): New procedure
14562 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
14563 Is_Abstract_Subprogram and Is_Abstract_Type.
14564 (Adjust_Record_For_Reverse_Bit_Order): New procedure
14566 * repinfo.adb (List_Record_Info): Use First/
14567 Next_Component_Or_Discriminant.
14569 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
14572 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
14573 Include -gnatyA in default switches
14575 * opt.ads: (Warn_On_Non_Local_Exception): New flag
14576 (Warn_On_Reverse_Bit_Order): New flag
14577 (Extensions_Allowed): Update the documentation.
14578 (Warn_On_Questionable_Missing_Parens): Now on by default
14580 * usage.adb: Add documentation of -gnatw.x/X switches
14581 Document new -gnatyA style switch
14582 -gnatq warnings are on by default
14584 2007-04-06 Ed Falis <falis@adacore.com>
14586 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
14587 full word is no longer compared twice.
14589 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14591 * sem_ch10.adb (Install_Limited_Context_Clauses.
14592 Expand_Limited_With_Clause): Use a new copy of selector name in the
14593 call to Make_With_Clause. This fixes the tree structure for ASIS
14594 purposes. Nothing is changed in the compiler behaviour.
14595 (Process_Body_Clauses): Handle properly use clauses whose prefix is
14596 a package renaming.
14597 (Install_Limited_With_Clauses): Do not install non-limited view when it
14598 is still incomplete.
14600 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14601 Gary Dismukes <dismukes@adacore.com>
14603 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
14604 when capturing size information, instead of base type, which for a
14605 formal array type will be the unconstrained type.
14606 (Analyze_Formal_Object_Declaration): Add check for illegal default
14607 expressions for a formal in object of a limited type.
14608 (Instantiate_Object): Ditto.
14609 (Check_Formal_Package_Instance): Skip entities that are formal objects,
14610 because they were defaulted in the formal package and no check applies
14612 (Check_Formal_Package_Instance): Extend conformance check to other
14613 discrete types beyond Integer.
14614 (Process_Default): Copy directly the unmatched formal. A generic copy
14615 has already been performed in Analyze_Formal_Package.
14616 (Analyze_Associations): If a formal subprogram has no match, check for
14617 partial parametrization before looking for a default, to prevent
14619 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
14620 not set the instantiation environment before analyzing the actuals.
14621 Fixes regression on 8515-003 with implementation of AI-133.
14622 Set_Instance_Env checks whether the generic unit is a predefined
14623 unit, in which case the instance must be analyzed with the latest Ada
14624 mode. This setting must take place after analysis of the actuals,
14625 because the actuals must be analyzed and frozen in the Ada mode extant
14626 outside of the current instantiation.
14627 (Save_Env, Restore_Env): Preserve and restore the configuration
14628 parameters so that predefined units can be compiled in the proper Ada
14630 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
14631 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
14632 and Is_Abstract_Type.
14633 (Analyze_Formal_Package): For better error recovery, Add exception
14634 handler to catch Instantion_Error, which can be raised in
14635 Analyze_Associations
14637 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14638 Bob Duff <duff@adacore.com>
14639 Gary Dismukes <dismukes@adacore.com>
14641 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
14642 prefix type is a discriminated subtype of the type of the formal.
14643 (Analyze_Allocator): Collect all coextensions regardless of the context.
14644 Whether they can be allocated statically is determined in exp_ch4.
14645 (Analyze_Selected_Component): If the prefix is a limited view and the
14646 non-limited view is available, use the non-limited one.
14647 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
14648 therefore illegal), suggest a qualified expression rather than a type
14649 conversion, because a type conversion would be illegal in this context.
14650 (Anayze_Allocator): Trace recursively all nested allocators so that all
14651 coextensions are on the corresponding list for the root. Do no mark
14652 coextensions if the root allocator is within a declaration for a stack-
14653 allocated object, because the access discriminants will be allocated on
14655 (Analyze_Call): Remove restriction on calls to limited functions for the
14656 cases of generic actuals for formal objects, defaults for formal objects
14657 and defaults for record components.
14658 (Analyze_Allocator): Before analysis, chain coextensions on the proper
14659 element list. Their expansion is delayed until the enclosing allocator
14660 is processed and its finalization list constructed.
14661 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
14662 for an operation with the given name among the primitive operations of
14663 the corresponding record type.
14664 (Analyze_Selected_Component): If the prefix is a task type that
14665 implements an interface, and there is no entry with the given name,
14666 check whether there is another primitive operation (e.g. a function)
14668 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
14669 properly the indexing of a function call written in prefix form, where
14670 the function returns an array type, and all parameters of the function
14671 except the first have defaults.
14672 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
14673 the original operands, rather than relocating them, for efficiency and
14674 to work properly when an operand is overloaded.
14675 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
14676 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
14677 (Analyze_Selected_Component): If the prefix is a private extension, only
14678 scan the visible components, not those of the full view.
14679 (Try_Primitive_Operation): If the operation is a procedure, collect all
14680 possible interpretations, as for a function, because in the presence of
14681 classwide parameters several primitive operations of the type can match
14682 the given arguments.
14684 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14685 Robert Dewar <dewar@adacore.com>
14687 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
14688 tag-indeterminate call to an abstract function, when the left-hand side
14690 (Analyze_Loop_Statement): Improve detection of infinite loops
14692 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14693 Thomas Quinot <quinot@adacore.com>
14695 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
14696 out of Analyze_Package_Declaration, because processing must be applied
14697 to package bodies as well, for deferred constants completed by pragmas.
14698 (Analyze_Package_Declaration): When the package declaration being
14699 analyzed does not require an explicit body, call Check_Completion.
14700 (May_Need_Implicit_Body): An implicit body is required when a package
14701 spec contains the declaration of a remote access-to-classwide type.
14702 (Analyze_Package_Body): If the package contains RACWs, append the
14703 pending subprogram bodies generated by exp_dist at the end of the body.
14704 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
14705 Is_Abstract_Subprogram and Is_Abstract_Type.
14706 (Preserve_Full_Attributes): The full entity list is not an attribute
14707 that must be preserved from full to partial view.
14709 * sem_dist.adb (Add_RAS_Dereference_TSS):
14710 Change primitive name to _Call so it cannot clash with any legal
14711 identifier, and be special-cased in Check_Completion.
14712 Mark the full view of the designated type for the RACW associated with
14713 a RAS as Comes_From_Source to get proper view switching when installing
14714 private declarations.
14715 Provite a placeholder nested package body along with the nested spec
14716 to have a place for Append_RACW_Bodies to generate the calling stubs
14717 and stream attributes.
14719 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14720 Robert Dewar <dewar@adacore.com>
14722 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
14723 that is a limited view, check the non-limited view if available.
14724 (Undefined): Refine error message for missing with of Text_IO
14725 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
14726 to distinguish real missing with cases.
14727 Fix format of all missing with messages
14728 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
14729 renaming as body when renamed entity is abstract.
14731 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14732 Javier Miranda <miranda@adacore.com>
14734 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
14735 predicate recursive, to handle complex expressions on literals whose
14736 spurious ambiguity comes from the abstract interpretation of some
14738 (Interface_Present_In_Ancestor): Add support to concurrent record
14740 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
14741 Is_Abstract_Subprogram and Is_Abstract_Type.
14743 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14744 Javier Miranda <miranda@adacore.com>
14746 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
14747 dereference of a local object R created as a reference to another
14748 object O, use the access level of O.
14749 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
14750 rather than local Same_Formal_Type, to check whether protected operation
14751 overrides an inherited one.
14752 (Same_Formal_Type): New predicate, used when matching signatures of
14753 overriding synchronized operations, to handle the case when a formal
14754 has a type that is a generic actual.
14755 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
14756 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
14757 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
14758 syntactic ambiguities involving indexing of function calls that return
14760 (Abstract_Interface_List): New subprogram that returns the list of
14761 abstract interfaces associated with a concurrent type or a
14762 concurrent record type.
14763 (Interface_Present_In_Parent): New subprogram used to check if a
14764 given type or some of its parents implement a given interface.
14765 (Collect_Abstract_Interfaces): Add support for concurrent types
14766 with interface types.
14767 (Has_Abstract_Interfaces): Add support for concurrent types with
14769 (Is_Parent): New subprogram that determines whether E1 is a parent
14770 of E2. For a concurrent type its parent is the first element of its
14771 list of interface types; for other types this function provides the
14772 same result than Is_Ancestor.
14773 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
14774 (Collect_Synchronized_Interfaces): Removed because the subprogram
14775 Collect_Abstract_Interfaces provides this functionality.
14776 (Collect_Abstract_Interfaces): Minor update to give support to
14777 concurrent types and thus avoid undesired code duplication.
14778 (Get_Subprogram_Entity): Handle entry calls.
14779 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
14781 (Enter_Name): Do not give -gnatwh hiding warning for record component
14782 entities, they never result in hiding.
14784 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14785 Robert Dewar <dewar@adacore.com>
14787 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
14788 to chain nested components that are allocators for access discriminants
14789 of the enclosing object.
14790 Add N_Push and N_Pop nodes
14791 New field Exception_Label added
14792 (Local_Raise_Statements): New field in N_Exception_Handler_Node
14793 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
14794 (Is_Coextension): New flag for allocators, to mark allocators that
14795 correspond to access discriminants of dynamically allocated objects.
14796 (N_Block_Statement): Document the fact that the corresponding entity
14797 can be an E_Return_Statement.
14798 (Is_Coextension): New flag for allocators.
14799 Remove all code for DSP option
14801 * sprint.ads, sprint.adb: Display basic information for class_wide
14802 subtypes. Add handling of N_Push and N_Pop nodes
14804 2007-04-06 Arnaud Charlet <charlet@adacore.com>
14806 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
14807 before propagating exception.
14809 2007-04-06 Olivier Hainque <hainque@adacore.com>
14811 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
14812 an address always within the call instruction from a return address.
14814 2007-04-06 Olivier Hainque <hainque@adacore.com>
14815 Eric Botcazou <botcazou@adacore.com>
14817 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
14818 expression with a COMPOUND_EXPR including the call instead of emitting
14819 the call directly here.
14820 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
14821 high bound is constant and the slice is empty. Tidy.
14822 (tree_transform, case N_Op_Not): Handle properly the case where the
14823 operation applies to a private type whose full view is a modular type.
14824 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
14825 Address_Clause, use the associated Expression as the GNAT tree
14826 representing the choice value to ensure the corresponding GCC tree is
14827 of the proper kind.
14828 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
14829 instead of just the operands, as the base GCC stabilize_reference does.
14830 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
14831 requested; otherwise fail.
14832 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
14834 2007-04-06 Thomas Quinot <quinot@adacore.com>
14836 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
14837 implementation of UI_Div.
14838 (UI_Div): Reimplement as a call to UI_Div_Rem.
14839 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
14840 remainder, avoiding the cost of a multiplication and a subtraction.
14841 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
14842 provides both quotient and remainder in a single computation.
14843 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
14844 functions for uint.
14845 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
14846 is undefined if the given n is not inversible.
14848 2007-04-06 Olivier Hainque <hainque@adacore.com>
14850 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
14851 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
14854 2007-04-06 Eric Botcazou <botcazou@adacore.com>
14855 Olivier Hainque <hainque@adacore.com>
14857 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
14858 when updating the contents of the old pointer to an unconstrained array.
14859 (end_subprog_body): Set error_gnat_node to Empty.
14860 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
14861 (unchecked_convert): For subtype to base type conversions, require that
14862 the source be a subtype if it is an integer type.
14863 (builtin_decls): New global, vector of available builtin functions.
14864 (gnat_pushdecl): Add global builtin function declaration nodes to the
14865 builtin_decls list.
14866 (gnat_install_builtins): Adjust comments.
14867 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
14868 calling gnat_pushdecl, so that it knows when it handed a builtin
14869 function declaration node.
14870 (builtin_decl_for): Search the builtin_decls list.
14872 2007-04-06 Eric Botcazou <botcazou@adacore.com>
14874 * s-stchop-vxworks.adb:
14875 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
14877 2007-04-06 Robert Dewar <dewar@adacore.com>
14878 Arnaud Charlet <charlet@adacore.com>
14880 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
14882 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
14884 Add mention of -Sev (set initialize_scalars option from environment
14885 variable at run time) in gnatbind usage message.
14887 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
14889 * fname-uf.ads: Minor comment fix
14891 * osint.ads: Change pragma Elaborate to Elaborate_All
14893 * par-load.adb: Add documentation.
14895 * sem_cat.ads, sem_cat.adb: Minor code reorganization
14897 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
14899 * s-secsta.ads: Extra comments
14901 * s-soflin.ads: Minor comment fixes
14903 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
14905 * s-wchcon.ads: Minor comment addition
14907 * treepr.adb: Minor change in message
14908 (Print_Name,Print_Node): Make these debug printouts more robust: print
14909 "no such..." instead of crashing on bad input.
14911 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
14913 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
14914 instead of gnat_signed_or_unsigned_type.
14915 * utils.c (gnat_signed_or_unsigned_type): Remove.
14916 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
14917 * gigi.h (gnat_signed_or_unsigned_type): Remove
14919 2007-03-09 Roger Sayle <roger@eyesopen.com>
14921 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
14922 fold with the result of buildN.
14923 * decl.c (gnat_to_gnu_entity): Likewise.
14924 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
14925 * utils.c (finish_record_type, merge_sizes, max_size, convert):
14927 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
14928 nonbinary_modular_operation, build_binary_op, build_unary_op,
14929 build_cond_expr): Likewise.
14931 * utils.c (convert): Use fold_build1 when casting values to void.
14932 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
14933 fold_convert instead of convert when appropriate.
14935 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
14937 * Make-lang.in: Add install-pdf target as copied from
14938 automake v1.10 rules.
14940 2007-02-28 Andreas Schwab <schwab@suse.de>
14942 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
14943 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
14944 (doc/gnat-style.info): Likewise.
14946 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
14948 * gnat-style.texi: Standardize title page.
14949 * gnat_rm.texi: Likewise.
14950 * gnat_ugn.texi: Likewise.
14952 2007-02-25 Mark Mitchell <mark@codesourcery.com>
14954 * decl.c (annotate_value): Adjust for refactoring of tree_map
14957 2007-02-24 Mark Mitchell <mark@codesourcery.com>
14959 * decl.c (annotate_value): Adjust for refactoring of tree_map
14962 2007-02-21 Ed Schonberg <schonberg@adacore.com>
14965 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
14966 untagged derived type, add hidden components to keep discriminant
14967 layout consistent, when a given discriminant of the derived type
14968 constraints several discriminants of the parent type.
14970 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
14971 Sandra Loosemore <sandra@codesourcery.com>
14973 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
14974 build the call expression.
14975 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
14976 * utils.c (max_size) <tcc_exceptional>: Delete.
14977 <tcc_vl_exp>: New case.
14978 <tcc_expression>: Delete CALL_EXPR subcase.
14979 (build_global_cdtor): Use build_call_nary instead of build3.
14980 * utils2.c (build_call_1_expr): Likewise.
14981 (build_call_2_expr): Likewise.
14982 (build_call_0_expr): Likewise.
14983 (build_call_alloc_dealloc): Likewise.
14985 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
14987 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
14988 get_action_description_for): Replace _Unwind_Word with _uleb128_t
14989 and _Unwind_SWord with _sleb128_t.
14991 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
14993 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
14994 * decl.c: Include gt-ada-decl.h.
14995 (annotate_value_cache): New.
14996 (annotate_value): Use it instead of TREE_COMPLEXITY.
14998 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
15000 * misc.c, utils2.c: Fix comment typos.
15002 2007-01-24 Roger Sayle <roger@eyesopen.com>
15004 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
15005 TREE_CONSTANT_OVERFLOW.
15006 (allocatable_size_p, annotate_value): Likewise.
15007 * trans.c (gnat_to_gnu): Likewise.
15008 * utils.c (unchecked_convert): Likewise.
15009 * utils2.c (build_simple_component_ref): Likewise.
15011 2007-01-23 Richard Guenther <rguenther@suse.de>
15014 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
15015 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
15016 (gnatboot3): Likewise.
15017 (GNATBIND): Do not define.
15018 * Makefile.in (GNATBIND): Do not define.
15020 2007-01-08 Richard Guenther <rguenther@suse.de>
15022 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
15023 * trans.c (gnat_to_gnu): Likewise.
15025 2006-12-07 Geoffrey Keating <geoffk@apple.com>
15027 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
15028 * adaint.c: Likewise.
15030 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
15032 Merge from gimple-tuples-branch:
15033 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
15035 * ada-tree.h (lang_tree_node): Handle gimple tuples.
15036 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
15037 GIMPLE_MODIFY_STMT.
15039 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
15041 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
15042 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
15045 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
15048 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
15049 if the initializer takes into account the padding.
15051 2006-11-11 Richard Guenther <rguenther@suse.de>
15053 * trans.c (maybe_stabilize_reference): Remove handling of
15054 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
15056 2006-11-05 Arnaud Charlet <charlet@adacore.com>
15059 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
15060 (To_Target_Priority): New function.
15062 2006-10-31 Robert Dewar <dewar@adacore.com>
15064 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
15065 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
15066 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
15067 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
15068 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
15069 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
15070 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
15071 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
15072 a-szbzha.adb: Minor reformatting. Fix header.
15074 * a-numaux-x86.adb: Add parentheses for use of unary minus
15075 * a-ngcefu.adb: Supply missing parentheses for unary minus
15076 * a-ngcoty.adb: Add parens for use of unary minus
15077 * a-ngelfu.adb: Add missing parens for unary minus
15078 * a-tifiio.adb: Add parentheses for uses of unary minus
15080 2006-10-31 Robert Dewar <dewar@adacore.com>
15081 Bob Duff <duff@adacore.com>
15082 Ed Schonberg <schonberg@adacore.com>
15084 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
15085 with multiplying operator.
15086 (Expected_Type_Is_Any_Real): New function to determine from the Parent
15087 pointer whether the context expects "any real type".
15088 (Resolve_Arithmetic_Op): Do not give an error on calls to the
15089 universal_fixed "*" and "/" operators when they are used in a context
15090 that expects any real type. Also set the type of the node to
15091 Universal_Real in this case, because downstream processing requires it
15092 (mainly static expression evaluation).
15093 Reword some continuation messages
15094 Add some \\ sequences to continuation messages
15095 (Resolve_Call): Refine infinite recursion case. The test has been
15096 sharpened to eliminate some false positives.
15097 Check for Current_Task usage now includes entry barrier, and is now a
15098 warning, not an error.
15099 (Resolve): If the call is ambiguous, indicate whether an interpretation
15100 is an inherited operation.
15101 (Check_Aggr): When resolving aggregates, skip associations with a box,
15102 which are priori correct, and will be replaced by an actual default
15103 expression in the course of expansion.
15104 (Resolve_Type_Conversion): Add missing support for conversion from
15105 a class-wide interface to a tagged type. Minor code cleanup.
15106 (Valid_Tagged_Converion): Add support for abstact interface type
15108 (Resolve_Selected_Component): Call Generate_Reference here rather than
15109 during analysis, and use May_Be_Lvalue to distinguish read/write.
15110 (Valid_Array_Conversion): New procedure, abstracted from
15111 Valid_Conversion, to incorporate accessibility checks for arrays of
15112 anonymous access types.
15113 (Valid_Conversion): For a conversion to a numeric type occurring in an
15114 instance or inlined body, no need to check that the operand type is
15115 numeric, since this has been checked during analysis of the template.
15116 Remove legacy test for scope name Unchecked_Conversion.
15118 * sem_res.ads: Minor reformatting
15120 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
15121 (PE_Current_Task_In_Entry_Body): New exception code
15122 (SE_Restriction_Violation): Removed, not used
15124 * a-except.ads: Update comments.
15126 * types.h, types.ads: Add definition for Validity_Check
15127 (PE_Current_Task_In_Entry_Body): New exception code
15128 (SE_Restriction_Violation): Removed, not used
15130 2006-10-31 Thomas Quinot <quinot@adacore.com>
15132 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
15135 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
15136 Jose Ruiz <ruiz@adacore.com>
15138 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
15139 part of Ada.Calendar: all subprogram raise Unimplemented.
15140 (Split_W_Offset): Temp function body, raising Unimplemented
15142 * a-calend.ads, a-calend-vms.ads:
15143 Add imported variable Invalid_TZ_Offset used to designate targets unable
15144 to support time zones.
15145 (Unimplemented): Temporary function raised by the body of new
15147 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
15148 unit provides handling of leap seconds and is used by the new Ada 2005
15149 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
15150 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
15151 version returns an extra value which is the offset to UTC.
15153 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
15154 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
15155 (Split_W_Offset): New function body.
15156 (Time_Of): When a date is close to UNIX epoch, compute the time for
15157 that date plus one day (that amount is later substracted after
15158 executing mktime) so there are no problems with time zone adjustments.
15160 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
15162 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
15163 a-catizo.ads, a-catizo.adb: New files.
15165 * impunit.adb: Add new Ada 2005 entries
15167 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
15168 Rename all occurences of "__gnat_localtime_r" to
15169 "__gnat_localtime_tzoff".
15170 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
15171 zone data and calculate the GMT offset.
15172 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
15173 Use the field "tm_gmtoff" to extract the GMT offset.
15174 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
15175 the external variable "timezone" to calculate the GMT offset.
15177 2006-10-31 Arnaud Charlet <charlet@adacore.com>
15178 Jose Ruiz <ruiz@adacore.com>
15180 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
15181 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
15182 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
15183 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
15184 System.Any_Priority to a POSIX priority on the target.
15186 * system-linux-ia64.ads:
15187 Extend range of Priority types on Linux to use the whole range made
15188 available by the system.
15190 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
15191 function maps from System.Any_Priority to a POSIX priority on the
15193 (PTHREAD_PRIO_PROTECT): Set real value.
15194 (PTHREAD_PRIO_INHERIT): Now a function.
15195 (SIGCPUFAIL): New signal.
15196 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
15197 are documented as reserved by the OS.
15199 * system-aix.ads: Use the full range of priorities provided by the
15202 * s-taprop-posix.adb: Call new function To_Target_Priority.
15203 (Set_Priority): Take into account Task_Dispatching_Policy and
15204 Priority_Specific_Dispatching pragmas when determining if Round Robin
15205 must be used for scheduling the task.
15207 * system-linux-x86_64.ads, system-linux-x86.ads,
15208 system-linux-ppc.ads: Extend range of Priority types on Linux to use
15209 the whole range made available by the system.
15211 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
15212 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
15213 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
15214 when deallocating the TCB in order to avoid potential references to
15216 (Set_Priority): Take into account Task_Dispatching_Policy and
15217 Priority_Specific_Dispatching pragmas when determining if Round Robin
15218 or FIFO within priorities must be used for scheduling the task.
15220 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
15221 the Thread field (to be used internally by the run-time system) and the
15222 kernel-level task id in the LWP field (to be used by the debugger).
15223 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
15224 instance, and propagate the current task options to the spawned task.
15225 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
15226 (Initialize): Set Round Robin dispatching when the corresponding pragma
15229 2006-10-31 Robert Dewar <dewar@adacore.com>
15231 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
15232 system-linux-hppa.ads, system-hpux-ia64.ads,
15233 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
15234 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
15235 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
15236 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
15237 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
15238 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
15239 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
15240 Default_Bit_Order) to kill constant condition warnings for references
15243 2006-10-31 Vincent Celier <celier@adacore.com>
15244 Eric Botcazou <ebotcazou@adacore.com>
15246 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
15247 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
15248 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
15249 Ext_To, when building the library file name
15251 * mlib-tgt-vxworks.adb: ditto.
15252 (Get_Target_Suffix): Add support for x86 targets.
15254 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
15256 * mlib-tgt-darwin.adb:
15257 Use Append_To, instead of Ext_To, when building the library file name
15258 (Flat_Namespace): New global variable.
15259 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
15260 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
15261 (Link_Shared_Libgcc): Delete.
15262 (Build_Dynamic_Library): Adjust for above changes.
15264 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
15266 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
15268 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
15269 (Initialize): Add type conversions required by above change.
15271 2006-10-31 Jose Ruiz <ruiz@adacore.com>
15273 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
15274 (getpid): New body for this function that uses the underlying taskIdSelf
15275 function for VxWorks 5 and VxWorks 6 in kernel mode.
15276 (unsigned_int): New type, modular to allow logical bit operations.
15277 (taskOptionsGet): New imported function.
15279 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
15280 field to be compliant with the type used by the corresponding operating
15283 2006-10-31 Pascal Obry <obry@adacore.com>
15284 Eric Botcazou <ebotcazou@adacore.com>
15285 Vincent Celier <celier@adacore.com>
15287 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
15288 ASCII version of the registry API. This is needed as the GNAT runtime
15289 is now UNICODE by default.
15291 (get_gcc_version): Do not hardcode the return value.
15292 (__gnat_file_time_name): On Windows properly set the default returned
15293 value to -1 which corresponds to Invalid_Time.
15294 (__gnat_fopen): New routine. A simple wrapper on all plateforms
15295 except on Windows where it does conversion for unicode support.
15296 (__gnat_freopen): Idem.
15297 (__gnat_locate_exec_on_path): If environment variable PATH does not
15298 exist, return a NULL pointer
15300 * adaint.h: (__gnat_fopen): Declare.
15301 (__gnat_freopen): Likewise.
15303 * mingw32.h (_tfreopen): Define this macro here for older MingW
15305 Activate the unicode support on platforms using a MingW runtime
15306 version 3.9 or newer.
15308 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
15309 This is needed for proper unicode support on Windows.
15312 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
15313 Nicolas Setton <setton@adacore.com>
15314 Olivier Hainque <hainque@adacore.com>
15315 Gary Dismukes <dismukes@adacore.com>
15317 * gigi.h: (tree_code_for_record_type): Declare.
15318 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
15319 (get_global_renaming_pointers): Rename to
15320 invalidate_global_renaming_pointers.
15321 (static_ctors): Delete.
15322 (static_dtors): Likewise.
15323 (gnat_write_global_declarations): Declare.
15324 (create_var_decl): Adjust descriptive comment to indicate that the
15325 subprogram may return a CONST_DECL node.
15326 (create_true_var_decl): Declare new function, similar to
15327 create_var_decl but forcing the creation of a VAR_DECL node.
15328 (get_global_renaming_pointers): Declare.
15329 (add_global_renaming_pointer): Likewise.
15331 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
15333 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
15334 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
15336 (gnat_to_gnu_entity): Remove From_With_Type from computation for
15338 <E_Access_Type>: Use the Non_Limited_View as the full view of the
15339 designated type if the pointer comes from a limited_with clause. Make
15340 incomplete designated type if it is in the main unit and has a freeze
15342 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
15343 Underlying_Full_View similarly. Return earlier if the full view already
15344 has an associated tree.
15345 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
15346 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
15347 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
15348 reference type built for objects with an address clause.
15349 Use create_true_var_decl with const_flag set for
15350 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
15352 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
15353 for Character and Wide_Character types. This info is read by the
15354 dwarf-2 writer, and is needed to be able to use the command "ptype
15355 character" in the debugger.
15356 (gnat_to_gnu_entity): When generating a type representing
15357 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
15358 so that debug writers can distinguish it from ordinary integers.
15359 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
15360 addition to TREE_READONLY to assert the constantness of variables for
15361 elaboration purposes.
15362 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
15363 parameters to call new Einfo function First_Formal_With_Extras.
15364 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
15365 protected type with its corresponding discriminant, to obtain a usable
15367 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
15368 for a multiple elaboration of the "equivalent" type.
15369 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
15370 into record_global_renaming_pointer.
15371 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
15372 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
15373 <E_Array_Subtype>: Likewise.
15374 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
15375 incomplete subtypes and incomplete subtypes of incomplete types visible
15376 through a limited with clause.
15377 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
15378 the base index type for the maximum size of the array only if they are
15380 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
15381 expression into a SAVE_EXPR if stabilization failed.
15383 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
15384 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
15385 by lower level compilation passes.
15386 (gnat_genericize): New function, lowering a function body to GENERIC.
15387 Turn the type of RESULT_DECL into a real reference type if the decl
15388 has been marked DECL_BY_REFERENCE, and adjust references to the latter
15390 (gnat_genericize_r): New function. Tree walking callback for
15392 (convert_from_reference, is_byref_result): New functions. Helpers for
15394 (create_type_decl): Call gnat_pushdecl before calling
15395 rest_of_decl_compilation, to make sure that field TYPE_NAME of
15396 type_decl is properly set before calling the debug information writers.
15397 (write_record_type_debug_info): The heuristics which compute the
15398 alignment of a field in a variant record might not be accurate. Add a
15399 safety test to make sure no alignment is set to a smaller value than
15400 the alignment of the field type.
15401 (make_dummy_type): Use the Non_Limited_View as the underlying type if
15402 the type comes from a limited_with clause. Do not loop on the full view.
15403 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
15404 (dummy_node_table): New global variable, moved from decl.c.
15405 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
15406 (save_gnu_tree): Use above macros.
15407 (get_gnu_tree): Likewise.
15408 (present_gnu_tree): Likewise.
15409 (init_dummy_type): New function, moved from decl.c. Use above macros.
15410 (make_dummy_type): Likewise.
15411 (tree_code_for_record_type): New function extracted from make_dummy_type
15412 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
15413 (static_ctors): Change it to a vector, make static.
15414 (static_dtors): Likewise.
15415 (end_subprog_body): Adjust for above change.
15416 (build_global_cdtor): Moved from trans.c.
15417 (gnat_write_global_declarations): Emit global constructor and
15418 destructor, and call cgraph_optimize before emitting debug info for
15419 global declarations.
15420 (global_decls): New global variable.
15421 (gnat_pushdecl): Store the global declarations in global_decls, for
15423 (gnat_write_global_declarations): Emit debug information for global
15425 (create_var_decl_1): Former create_var_decl, with an extra argument to
15426 state whether the creation of a CONST_DECL is allowed.
15427 (create_var_decl): Behavior unchanged. Now a wrapper around
15428 create_var_decl_1 allowing CONST_DECL creation.
15429 (create_true_var_decl): New function, similar to create_var_decl but
15430 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
15431 (create_field_decl): Do not always mark the field as addressable
15432 if its type is an aggregate.
15433 (global_renaming_pointers): New static variable.
15434 (add_global_renaming_pointer): New function.
15435 (get_global_renaming_pointers): Likewise.
15437 * misc.c (gnat_dwarf_name): New function.
15438 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
15439 (gnat_post_options): Add comment about structural alias analysis.
15440 (gnat_parse_file): Do not call cgraph_optimize here.
15441 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
15443 * trans.c (process_freeze_entity): Don't abort if we already have a
15444 non dummy GCC tree for a Concurrent_Record_Type, as it might
15445 legitimately have been elaborated while processing the associated
15446 Concurrent_Type prior to this explicit freeze node.
15447 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
15448 exception handler volatile if it is of variable size.
15449 (process_type): Remove bypass for types coming from a limited_with
15451 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
15452 actual, convert the corresponding gnu_actual to the real destination
15453 type when necessary.
15454 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
15455 originally TREE_READONLY but whose elaboration cannot be performed
15457 Part of fix for F504-021.
15458 (tree_transform, subprogram cases): Change loops on formal parameters to
15459 call new Einfo function First_Formal_With_Extras.
15460 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
15461 stemming from type conversion for the lhs.
15462 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
15463 number of bits per unit for components of records.
15464 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
15465 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
15466 with At_End_Proc after the SJLJ EH cleanup.
15467 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
15469 (elaborate_all_entities): Do not retest type_annotate_only.
15470 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
15471 result type of an abstract subprogram, which may be an itype associated
15472 with an anonymous access result (related to AI-318-02).
15473 (build_global_cdtor): Move to utils.c.
15474 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
15475 this choice is not a null tree nor an integer constant.
15476 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
15477 on the body of elaboration routines instead of mark_unvisited.
15478 (add_stmt): Do not mark the tree.
15479 (add_decl_expr): Tweak comment.
15480 (mark_unvisited): Delete.
15481 (unshare_save_expr): New static function.
15482 (call_to_gnu): Issue an error when making a temporary around a
15483 procedure call because of non-addressable actual parameter if the
15484 type of the formal is by_reference.
15485 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
15486 after building the elaboration routine.
15488 2006-10-31 Bob Duff <duff@adacore.com>
15490 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
15491 as finalization-started, so we can raise Program_Error on 'new'.
15493 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
15494 collection has already started.
15496 * s-finimp.ads (Collection_Finalization_Started): Added new special
15497 flag value for indicating that a collection's finalization has started.
15499 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
15500 create a task whose master has already waited for dependent tasks.
15502 2006-10-31 Robert Dewar <dewar@adacore.com>
15504 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
15506 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
15507 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
15508 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
15509 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
15510 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
15511 a-except-2005.ads: Add pragma Preelaborable_Warning
15513 2006-10-31 Robert Dewar <dewar@adacore.com>
15514 Jose Ruiz <ruiz@adacore.com>
15516 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
15518 * ali.adb (Get_Name): Properly handle scanning of wide character names
15519 encoded with brackets notation.
15520 (Known_ALI_Lines): Add S lines to this list.
15521 (Scan_ALI): Acquire S (priority specific dispatching) lines.
15522 New flag Elaborate_All_Desirable in unit table
15524 * ali.ads (Priority_Specific_Dispatching): Add this range of
15525 identifiers to be used for Priority_Specific_Dispatching table entries.
15526 (ALIs_Record): Add First_Specific_Dispatching and
15527 Last_Specific_Dispatching that point to the first and last entries
15528 respectively in the priority specific dispatching table for this unit.
15529 (Specific_Dispatching): Add this table for storing each S (priority
15530 specific dispatching) line encountered in the input ALI file.
15531 New flag Elaborate_All_Desirable in unit table
15533 * bcheck.adb: (Check_Configuration_Consistency): Add call to
15534 Check_Consistent_Dispatching_Policy.
15535 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
15536 verifying that the use of Priority_Specific_Dispatching,
15537 Task_Dispatching_Policy, and Locking_Policy is consistent across the
15540 * bindgen.adb: (Public_Version_Warning): function removed.
15541 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
15542 required information from ALI files in order to initialize the table
15543 containing the specific dispatching policy.
15544 (Gen_Adainit_Ada): Generate the variables required for priority specific
15545 dispatching entries (__gl_priority_specific_dispatching and
15546 __gl_num_specific_dispatching).
15547 (Gen_Adainit_C): Generate the variables required for priority specific
15548 dispatching entries (__gl_priority_specific_dispatching and
15549 __gl_num_specific_dispatching).
15550 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
15552 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
15553 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
15555 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
15556 a call to gnat_set_globals.
15557 Generate a string containing settings from
15558 Priority_Specific_Dispatching pragma entries.
15559 (Gen_Object_Files_Options): Do not include the runtime libraries when
15560 pragma No_Run_Time is specified.
15562 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
15563 consistency with s-intman-posix.adb.
15564 (__gnat_error_handler, case FreeBSD): Account for the fact that the
15565 handler is installed with SA_SIGINFO.
15566 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
15567 FreeBSD ZCX support, copied from Linux version.
15568 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
15569 sigfillset, and sigemptyset so the routines defined by MaRTE.
15570 (__gl_priority_specific_dispatching): Add this variable that stores the
15571 string containing priority specific dispatching policies in the
15573 (__gl_num_specific_dispatching): Add this variable that indicates the
15574 highest priority for which a priority specific dispatching pragma
15576 (__gnat_get_specific_dispatching): Add this routine that returns the
15577 priority specific dispatching policy, as set by a
15578 Priority_Specific_Dispatching pragma appearing anywhere in the current
15579 partition. The input argument is the priority number, and the result
15580 is the upper case first character of the policy name.
15581 (__gnat_set_globals): Now a dummy function.
15582 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
15583 mechargs instead of sigargs, as the latter can be retrieved from the
15584 former and sigargs is not what we want on ia64.
15585 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
15587 (__gnat_adjust_context_for_raise, ia64-vms): New function.
15588 (tasking_error): Remove unused symbol.
15589 (_abort_signal): Move this symbol to the IRIX specific part since this
15590 is the only target that uses this definition.
15591 (Check_Abort_Status): Move this symbol to the IRIX specific part since
15592 this is the only target that uses this definition.
15593 (Lock_Task): Remove unused symbol.
15594 (Unlock_Task): Remove unused symbol.
15596 * lib-writ.adb (Write_ALI): Output new S lines for
15597 Priority_Specific_Dispatching pragmas.
15598 Implement new flag BD for elaborate body desirable
15600 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
15601 (Specific_Dispatching): Add this table for storing the entries
15602 corresponding to Priority_Specific_Dispatching pragmas.
15603 Document new BD flag for elaborate body desirable
15605 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
15608 2006-10-31 Javier Miranda <miranda@adacore.com>
15610 * a-tags.ads, a-tags.adb:
15611 (Predefined_DT): New function that improves readability of the code.
15612 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
15613 Inherit_DT): Use the new function Predefined_DT to improve code
15615 (Register_Interface_Tag): Update assertion.
15616 (Set_Interface_Table): Update assertion.
15617 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
15618 determining progenitor interfaces in Tags.
15619 (Inherit_CPP_DT): New subprogram.
15621 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
15622 analysis of the thunk code.
15623 (Expand_Interface_Conversion): Handle run-time conversion of
15624 access to class wide types.
15625 (Expand_Dispatching_Call): When generating the profile for the
15626 subprogram itype for a dispatching operation, properly terminate the
15627 formal parameters chaind list (set the Next_Entity of the last formal
15629 (Collect_All_Interfaces): Removed. This routine has been moved to
15630 sem_util and renamed as Collect_All_Abstract_Interfaces.
15631 (Set_All_DT_Position): Hidden entities associated with abstract
15632 interface primitives are not taken into account in the check for
15633 3.9.3(10); this check is done with the aliased entity.
15634 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
15635 interfacing with CPP by default.
15636 (Expand_Interface_Conversion): Add missing support for static conversion
15637 from an interface to a tagged type.
15638 (Collect_All_Interfaces): Add new out formal containing the list of
15639 abstract interface types to cleanup the subprogram Make_DT.
15640 (Make_DT): Update the code to generate the table of interfaces in case
15641 of abstract interface types.
15642 (Is_Predefined_Dispatching_Alias): New function that returns true if
15643 a primitive is not a predefined dispatching primitive but it is an
15644 alias of a predefined dispatching primitive.
15645 (Make_DT): If the ancestor of the type is a CPP_Class and we are
15646 compiling under full ABI compatibility mode we avoid the generation of
15647 calls to run-time services that fill the dispatch tables because under
15648 this mode we currently inherit the dispatch tables in the IP subprogram.
15649 (Write_DT): Emit an "is null" indication for a null procedure primitive.
15650 (Expand_Interface_Conversion): Use an address as the type of the formal
15651 of the internally built function that handles the case in which the
15652 target type is an access type.
15654 2006-10-31 Robert Dewar <dewar@adacore.com>
15656 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
15658 2006-10-31 Robert Dewar <dewar@adacore.com>
15660 * bindusg.ads, bindusg.adb:
15661 Change to package and rename procedure as Display, which
15662 now ensures that it only outputs usage information once.
15664 2006-10-31 Jose Ruiz <ruiz@adacore.com>
15666 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
15669 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
15672 2006-10-31 Robert Dewar <dewar@adacore.com>
15673 Ed Schonberg <schonberg@adacore.com>
15675 * treepr.adb: Use new subtype N_Membership_Test
15677 * checks.ads, checks.adb: Add definition for Validity_Check
15678 (Range_Or_Validity_Checks_Suppressed): New function
15679 (Ensure_Valid): Test Validity_Check suppressed
15680 (Insert_Valid_Check): Test Validity_Check suppressed
15681 (Insert_Valid_Check): Preserve Do_Range_Check flag
15682 (Validity_Check_Range): New procedure
15683 (Expr_Known_Valid): Result of membership test is always valid
15684 (Selected_Range_Checks): Range checks cannot be applied to discriminants
15685 by themselves. Disabling those checks must also be done for task types,
15686 where discriminants may be used for the bounds of entry families.
15687 (Apply_Address_Clause_Check): Remove side-effects if address expression
15688 is non-static and is not the name of a declared constant.
15689 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
15690 Code cleanup and new error messages.
15691 (Enable_Range_Check): Test for some cases of suppressed checks
15692 (Generate_Index_Checks): Suppress index checks if index checks are
15693 suppressed for array object or array type.
15694 (Apply_Selected_Length_Checks): Give warning for compile-time detected
15695 length check failure, even if checks are off.
15696 (Ensure_Valid): Do not generate a check on an indexed component whose
15697 prefix is a packed boolean array.
15698 * checks.adb: (Alignment_Checks_Suppressed): New function
15699 (Apply_Address_Clause_Check): New procedure, this is a completely
15700 rewritten replacement for Apply_Alignment_Check
15701 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
15702 we request a discriminal value only in case of discriminants.
15703 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
15704 assignments where the target subtype is unconstrained and the target
15705 object is a parameter or dereference (other aliased cases are known
15706 to be unconstrained).
15708 2006-10-31 Robert Dewar <dewar@adacore.com>
15710 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
15711 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
15712 vms_conv.adb: Fix bad table increment values (much too small)
15714 * table.adb (Realloc): Make sure we get at least some new elements
15715 Defends against silly small values for table increment
15717 2006-10-31 Robert Dewar <dewar@adacore.com>
15718 Ed Schonberg <schonberg@adacore.com>
15719 Bob Duff <duff@adacore.com>
15721 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
15722 entities. Move other fields around to make this possible
15723 (Is_Derived_Type): Add missing call to Is_Type.
15724 (Extra_Formals): New function for subprograms, entries, subprogram
15726 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
15727 (First_Formal_With_Extras): New function for subprogs, entries, subp
15729 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
15730 Add node information for E_Return_Statement.
15731 (Elaborate_Body_Desirable): New flag
15732 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
15733 to be Is_Inherently_Limited_Type, because return-by-reference has
15734 no meaning in Ada 2005.
15735 (E_Return_Statement): New entity kind.
15736 (Return_Applies_To): Field of E_Return_Statement.
15737 (Is_Return_Object): New flag in object entities.
15738 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
15739 (Must_Have_Preelab_Init): New flag
15740 (Known_To_Have_Preelab_Init): New flag
15741 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
15742 (Is_Visible_Formal): New flag on entities in formal packages.
15743 (Low_Bound_Known): New flag
15744 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
15746 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
15747 output when Id is an incomplete subtype.
15749 2006-10-31 Robert Dewar <dewar@adacore.com>
15751 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
15752 Avoid abbreviation Creat
15753 (Finalize): List all sources in extended mail source if -gnatl
15755 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
15756 (Finalize): Implement new -gnatl=xxx switch to output listing to file
15757 (Set_Specific_Warning_On): New procedure
15758 (Set_Specific_Warning_Off): New procedure
15759 Add implementation of new insertion \\
15760 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
15761 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
15763 (Error_Msg_Internal): Make sure that we set Last_Killed to
15764 True when a message from another package is suppressed.
15765 Implement insertion character ~ (insert string)
15766 (First_Node): Minor adjustments to get better placement.
15769 Implement new -gnatl=xxx switch to output listing to file
15772 Implement new -gnatl=xxx switch to output listing to file
15774 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
15775 (Commands_To_Stdout): New flag
15776 Implement new -gnatl=xxx switch to output listing to file
15777 New switch Dump_Source_Text
15778 (Warn_On_Deleted_Code): New warning flag for -gnatwt
15779 Define Error_Msg_Line_Length
15780 (Warn_On_Assumed_Low_Bound): New switch
15782 * osint.ads, osint.adb
15783 (Normalize_Directory_Name): Fix bug.
15784 Implement new -gnatl=xxx switch to output listing to file
15785 (Concat): Removed, replaced by real concatenation
15786 Make use of concatenation now allowed in compiler
15787 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
15788 we find the 'lib' or 'bin' directory even when the tool has been
15789 invoked with a relative path.
15790 (Executable_Name): New function taking string parameters.
15792 * osint-c.ads, osint-c.adb:
15793 Implement new -gnatl=xxx switch to output listing to file
15795 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
15798 Implement new -gnatl=xxx switch to output listing to file
15799 Recognize new -gnatL switch
15800 (no longer keep in old warning about old style usage)
15801 Use concatenation to simplify code
15802 Recognize -gnatjnn switch
15803 (Scan_Front_End_Switches): Clean up handling of -gnatW
15804 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
15806 2006-10-31 Robert Dewar <dewar@adacore.com>
15808 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
15809 (Set_Specific_Warning_Off): New procedure
15810 (Warning_Specifically_Suppressed): New function
15811 (Validate_Specific_Warnings): New procedure
15812 (Output_Msg_Text): Complete rewrite to support -gnatjnn
15814 * err_vars.ads: Implement insertion character ~ (insert string)
15816 2006-10-31 Bob Duff <duff@adacore.com>
15817 Ed Schonberg <schonberg@adacore.com>
15819 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
15820 the parent part is a build-in-place function call, generate assignments.
15821 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
15822 are build-in-place function calls.
15823 (Replace_Self_Reference): New subsidiary of
15824 Make_OK_Assignment_Statement, to replace an access attribute that is a
15825 self-reference into an access to the appropriate component of the
15826 target object. Generalizes previous mechanism to handle self-references
15827 nested at any level.
15828 (Is_Self_Referential_Init): Remove, not needed.
15829 (Is_Self_Referential_Init): New predicate to simplify handling of self
15830 referential components in record aggregates.
15831 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
15832 check for presence of entity before checking for self-reference.
15833 (Has_Default_Init_Comps): Return True if a component association is a
15834 self-reference to the enclosing type, which can only come from a
15835 default initialization.
15836 (Make_OK_Assignment_Statement): If the expression is of the form
15837 Typ'Acc, where Acc is an access attribute, the expression comes from a
15838 default initialized self-referential component.
15839 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
15840 that has been derived from several abstract interfaces we must also
15841 initialize the tags of the secondary dispatch tables.
15843 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15844 Thomas Quinot <quinot@adacore.com>
15845 Javier Miranda <miranda@adacore.com>
15846 Robert Dewar <dewar@adacore.com>
15849 (Expand_Access_To_Protected_Op): If the context indicates that an access
15850 to a local operation may be transfered outside of the object, create an
15851 access to the wrapper operation that must be used in an external call.
15852 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
15853 target, pass the Valid attribute applied to a floating-point prefix on
15854 to the back end without expansion.
15855 (Storage_Size): Use the new run-time function Storage_Size to retrieve
15856 the allocated storage when it is specified by a per-object expression.
15857 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
15858 Nothing to do here, the attribute has been rewritten during semantic
15860 (Expand_Attribute_Reference): Handle expansion of the new Priority
15862 (Find_Fat_Info): Handle case of universal real
15863 (Expand_Access_To_Protected_Op): Fix use of access to protected
15864 subprogram from inside the body of a protected entry.
15865 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
15866 'Access and 'Unrestricted_Access, to transform the attribute reference
15867 into a fat pointer.
15868 (Is_Constrained_Aliased_View): New predicate to help determine whether a
15869 subcomponent's enclosing variable is aliased with a constrained subtype.
15870 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
15871 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
15872 an aliased prefix must be known to be constrained in order to use True
15873 for the attribute value, and now it's possible for some aliased views
15874 to be unconstrained.
15876 2006-10-31 Robert Dewar <dewar@adacore.com>
15878 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
15879 (Expand_Entity_Reference): Correct error of not handling subprogram
15880 formals in current_value processing.
15882 2006-10-31 Javier Miranda <miranda@adacore.com>
15883 Robert Dewar <dewar@adacore.com>
15884 Ed Schonberg <schonberg@adacore.com>
15885 Gary Dismukes <dismukes@adacore.com>
15887 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
15888 register in the final list objects containing class-wide interfaces;
15889 otherwise we incorrectly register the tag of the interface in the final
15891 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
15892 generate the wrapper if the parent primitive is abstract. This is
15893 required to report the correct error message.
15894 (Expand_N_Subtype_Indication): Do validity checks on range
15895 (Clean_Task_Names): If an initialization procedure includes a call to
15896 initialize a task (sub)component, indicate that the procedure will use
15897 the secondary stack.
15898 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
15899 compatibility for interfacing with CPP by default.
15900 (Expand_N_Object_Declaration): Only build an Adjust call when the
15901 object's type is a nonlimited controlled type.
15902 * exp_ch3.adb: Add with and use of Exp_Ch6.
15903 (Expand_N_Object_Declaration): Check for object initialization that is a
15904 call to build-in-place function and apply Make_Build_In_Place_Call_In_
15905 Object_Declaration to the call.
15906 (Freeze_Type): When the designated type of an RACW was not frozen at the
15907 point where the RACW was declared, validate the primitive operations
15908 with respect to E.2.2(14) when it finally is frozen.
15909 (Build_Initialization_Call,Expand_Record_Controller): Rename
15910 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
15911 return-by-reference has no meaning in Ada 2005.
15912 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
15913 to register tag of the immediate ancestor interfaces in the
15914 run-time structure.
15915 (Init_Secondary_Tags): Moved to the specification to allow the
15916 initialization of extension aggregates with abstract interfaces.
15917 (Build_Master_Renaming): Make public, for use by function declarations
15918 whose return type is an anonymous access type.
15919 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
15920 Insert_List_Before_And_Analyze after the generation of the specs
15921 associated with null procedures.
15922 (Expand_Tagged_Root): Update documentation in its specification.
15923 (Init_Secondary_Tags): Update documentation.
15924 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
15925 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
15926 then generate code to inherit the contents of the dispatch table
15927 directly from the ancestor.
15928 (Expand_Record_Controller): Insert controller component after tags of
15929 implemented interfaces.
15930 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
15931 create null procedure overridings when null procedures are inherited
15933 (Make_Null_Procedure_Specs): New procedure to generate null procedure
15934 declarations for overriding null primitives inherited from interfaces.
15935 (Is_Null_Interface_Procedure): New function in
15936 Make_Null_Procedure_Specs.
15937 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
15938 immediate ancestor of a tagged type is an abstract interface type we
15939 must generate the specification of the predefined primitives associated
15940 with controlled types (because the dispatch table of the ancestor is
15941 null and hence these entries cannot be inherited). This is required to
15942 elaborate well the dispatch table.
15944 2006-10-31 Javier Miranda <miranda@adacore.com>
15945 Ed Schonberg <schonberg@adacore.com>
15946 Bob Duff <duff@adacore.com>
15947 Gary Dismukes <dismukes@adacore.com>
15948 Robert Dewar <dewar@adacore.com>
15950 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
15952 (Expand_N_In): Do validity checks on range
15953 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
15954 (Expand_N_Allocator): For "new T", if the object is constrained by
15955 discriminant defaults, allocate the right amount of memory, rather than
15956 the maximum for type T.
15957 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
15958 when the allocator is initialized by a build-in-place call, since the
15959 allocator is already rewritten as a reference to the function result,
15960 and this prevents an unwanted duplication of the function call.
15961 Add with and use of Exp_Ch6.
15962 (Expand_Allocator_Expresssion): Check for an allocator whose expression
15963 is a call to build-in-place function and apply
15964 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
15965 untagged designated types).
15966 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
15967 optimization if source or target is biased.
15968 (Expand_N_Allocator): Add comments for case of an allocator within a
15969 function that returns an anonymous access type designating tasks.
15970 (Expand_N_Allocator): apply discriminant checks for access
15971 discriminants of anonymous access types (AI-402, AI-416)
15973 2006-10-31 Bob Duff <duff@adacore.com>
15974 Robert Dewar <dewar@adacore.com>
15975 Gary Dismukes <dismukes@adacore.com>
15976 Ed Schonberg <schonberg@adacore.com>
15978 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
15980 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
15981 (Expand_N_Assignment_Statement): Call
15982 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
15983 build-in-place function call. Currently, this can happen only for
15984 assignments that come from aggregates.
15985 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
15986 in order to alleviate the upward compatibility introduced by AI-318.
15987 (Expand_N_Extended_Return_Statement): Add support for handling the
15988 return object as a build-in-place result.
15989 (Expand_Non_Function_Return): Implement simple return statements nested
15990 within an extended return.
15991 (Enable_New_Return_Processing): Turn on the new processing of return
15993 (Expand_Non_Function_Return): For a return within an extended return,
15994 don't raise Program_Error, because Sem_Ch6 now gives a warning.
15995 (Expand_N_Extended_Return_Statement): Implement AI-318
15996 (Expand_Simple_Function_Return): Ditto.
15997 (Expand_N_If_Statement): Handle new -gnatwt warning
15998 (Expand_N_Case_Statement): Handle new -gnatwt warning
15999 (Expand_N_Assignment): Handle assignment to the Priority attribute of
16000 a protected object.
16001 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
16002 validity checking of assignments to elementary record components.
16003 (Expand_N_Return_Statement): return Class Wide types on the secondary
16004 stack independantly of their controlled status since with HIE runtimes,
16005 class wide types are not potentially controlled anymore.
16007 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
16010 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
16011 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
16012 it expects a block, procedure, or task. The return statement will get
16013 turned into a block, and Expand_Cleanup_Actions will happen then.
16015 2006-10-31 Robert Dewar <dewar@adacore.com>
16016 Ed Schonberg <schonberg@adacore.com>
16017 Bob Duff <duff@adacore.com>
16018 Gary Dismukes <dismukes@adacore.com>
16020 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
16022 (Expand_Inlined_Call): Tagged types are by-reference types, and
16023 therefore should be replaced by a renaming declaration in the expanded
16024 body, as is done for limited types.
16025 (Expand_Call): If this is a call to a function with dispatching access
16026 result, propagate tag from context.
16027 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
16029 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
16030 build-in-place when the right-hand side of an assignment is a
16031 build-in-place function call.
16032 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
16033 of the explicit dereference of the allocator to the result subtype of
16034 the build-in-place function. This is needed to satisfy type checking
16035 in cases where the caller's return object is created by an allocator for
16036 a class-wide access type and the type named in the allocator is a
16038 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
16039 conversion of the reference to the declared object to the result subtype
16040 of the build-in-place function. This is needed to satisfy type checking
16041 in cases where the declared object has a class-wide type. Also, in the
16042 class-wide case, change the type of the object entity to the specific
16043 result subtype of the function, to avoid passing a class-wide object
16044 without explicit initialization to the back end.
16045 (Register_Interface_DT_Entry): Moved outside the body of
16046 Freeze_Subprogram because this routine is now public; it is called from
16047 Check_Dispatching_Overriding to handle late overriding of abstract
16048 interface primitives.
16049 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
16050 adding an implicit access actual on a call to a build-in-place function.
16051 (Expand_Actuals): Test for an actual parameter that is a call to a
16052 build-in-place function and apply
16053 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
16054 (Is_Build_In_Place_Function): New function to determine whether an
16055 entity is a function whose calls should be handled as build-in-place.
16056 (Is_Build_In_Place_Function_Call): New function to determine whether an
16057 expression is a function call that should handled as build-in-place.
16058 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
16059 calls to build-in-place functions as the initialization of an allocator.
16060 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
16061 handling calls to build-in-place functions in contexts that do not
16062 involve init of a separate object (for example, actuals of subprogram
16064 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
16065 handling calls to build-in-place functions as the initialization of an
16066 object declaration.
16067 (Detect_Infinite_Recursion): Add explicit parameter Process to
16068 instantiation of Traverse_Body to avoid unreferenced warning.
16069 (Check_Overriding_Inherited_Interfaces): Removed.
16070 (Register_Interface_DT_Entry): Code cleanup.
16071 (Register_Predefined_DT_Entry): Code cleanup.
16072 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
16073 inlined statements if within a transient scope.
16074 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
16075 formal parameters with occurrences of actuals in inlined body, establish
16076 visibility on the proper view of the actual's subtype for the body's
16078 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
16079 compatibility mode and we have an imported CPP subprogram because
16080 for now we assume that imported CPP primitives correspond with
16081 objects whose constructor is in the CPP side (and therefore we
16082 don't need to generate code to register them in the dispatch table).
16083 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
16084 aligned selected component.
16085 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
16086 the actual of an in-mode parameter is a type conversion.
16087 (Expand_Actuals): If the call does not come from source and the actual
16088 is potentially misaligned, let gigi handle it rather than rejecting the
16089 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
16090 Class Wide types as returning by reference independantly of their
16091 controlled status since with HIE runtimes class wide types are not
16092 potentially controlled anymore.
16094 2006-10-31 Ed Schonberg <schonberg@adacore.com>
16096 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
16097 references that are private components of the protected object.
16098 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
16099 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
16100 instantiation to deal with warnings.
16101 (Initialize_Protection): If expression for priority is non-static, use
16102 System_Priority as its expected type, in case the expression has not
16105 2006-10-31 Robert Dewar <dewar@adacore.com>
16107 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
16108 initialization of Homonym_Len.
16109 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
16110 names from fully qualified name. Fixes problem of duplicate
16111 external names differing only in the presence of such a block name.
16113 2006-10-31 Thomas Quinot <quinot@adacore.com>
16114 Pablo Oliveira <oliveira@adacore.com>
16116 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
16117 subprogram Ids, even if they are not yet assigned.
16118 (Build_Subprogram_Id): It is now this function that will take care of
16119 calling Assign_Subprogram_Ids if necessary.
16120 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
16121 should be done only once they are assigned.
16122 (Build_From_Any_Function, case of tagged types): Add missing call to
16124 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
16125 type for an RACW type.
16126 (Add_RACW_Features): When processing an RACW declaration for which the
16127 designated type is already frozen, enforce E.2.2(14) rules immediately.
16128 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
16129 special reordering of controlling formals.
16131 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
16132 associated stub type for an RACW type.
16134 2006-10-31 Ed Schonberg <schonberg@adacore.com>
16136 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
16137 fixed-point operations in an integer context, i.e. as operands of a
16138 conversion to an integer type, indicate that result must be rounded.
16140 2006-10-31 Robert Dewar <dewar@adacore.com>
16142 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
16143 cases, pass the encoding method, since it is now required by the run
16146 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
16147 assumption that Str'First = 1.
16148 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
16149 it on to the Value_Wide_Wide_Character call.
16150 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
16151 properly handles a string of the form quote-encoded_wide_char-quote.
16153 * s-wchcnv.adb: Minor reformatting
16155 2006-10-31 Javier Miranda <miranda@adacore.com>
16157 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
16158 run-time membership test to ensure that the constructed object
16159 implements the target abstract interface.
16161 2006-10-31 Robert Dewar <dewar@adacore.com>
16163 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
16164 Machine_Attribute pragma internally to implement the user pragma.
16165 Add processing for pragma Interface so that it is now completely
16166 equivalent to pragma Import.
16168 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
16169 so that it can be applied to all entities, including record components
16170 and enumeration literals.
16171 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
16172 priority ranges are correct, verify compatibility against task
16173 dispatching and locking policies, and if everything is correct an entry
16174 is added to the table containing priority specific dispatching entries
16175 for this compilation unit.
16176 (Delay_Config_Pragma_Analyze): Delay processing
16177 Priority_Specific_Dispatching pragmas because when processing the
16178 pragma we need to access run-time data, such as the range of
16179 System.Any_Priority.
16180 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
16181 Allow pragma Unreferenced as a context item
16182 Add pragma Preelaborable_Initialization
16183 (Analyze_Pragma, case Interface): Interface is extended so that it is
16184 now syntactically and semantically equivalent to Import.
16185 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
16186 insertion characters.
16187 Add handling for Pragma_Wide_Character_Encoding
16188 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
16189 never supercedes a real restriction, and that a real restriction
16190 always supercedes a warning.
16191 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
16194 2006-10-31 Bob Duff <duff@adacore.com>
16195 Ed Schonberg <schonberg@adacore.com>
16196 Robert Dewar <dewar@adacore.com>
16198 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
16199 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
16200 Is_Inherently_Limited_Type, because return-by-reference has no meaning
16202 (Find_Node_To_Be_Wrapped): Use new method of determining the result
16203 type of the function containing a return statement, because the
16204 Return_Type field was removed. We now use the Return_Applies_To field.
16206 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
16207 (Build_Task_Image_Decl): If procedure is not called from an
16208 initialization procedure, indicate that function that builds task name
16209 uses the sec. stack. Otherwise the enclosing initialization procedure
16210 will carry the indication.
16211 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
16212 N_Object_Declaration instead.
16213 (Kill_Dead_Code): New interface to implement -gnatwt warning for
16214 conditional dead code killed, and change implementation accordingly.
16215 (Insert_Actions): Add N_Return_Object_Declaration case.
16216 Correct comment to mention N_Extension_Aggregate node.
16217 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
16218 attempts to save information for global variables which cannot be
16220 (Get_Current_Value_Condition): Handle conditions the other way round
16221 (constant on left). Also handle right operand of AND and AND THEN
16222 (Set_Current_Value_Condition): Corresponding changes
16223 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
16224 (Get_Current_Value_Condition): Handle simple boolean operands
16225 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
16226 (Get_Current_Value_Condition): If the variable reference is within an
16227 if-statement, does not appear in the list of then_statments, and does
16228 not come from source, treat it as being at unknown location.
16229 (Get_Current_Value_Condition): Enhance to allow while statements to be
16230 processed as well as if statements.
16231 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
16233 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
16234 of loop. This is safe now that we fixed Kill_Current_Values.
16235 (OK_To_Do_Constant_Replacement): Check whether current scope is
16236 Standard, before examining outer scopes.
16238 2006-10-31 Vincent Celier <celier@adacore.com>
16240 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
16241 When True, apply VMS treatment to children of packages A, G, I and S.
16244 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
16246 2006-10-31 Robert Dewar <dewar@adacore.com>
16247 Ed Schonberg <schonberg@adacore.com>
16249 * freeze.adb: Add handling of Last_Assignment field
16250 (Warn_Overlay): Supply missing continuation marks in error msgs
16251 (Freeze_Entity): Add check for Preelaborable_Initialization
16253 * g-comlin.adb: Add Warnings (Off) to prevent new warning
16255 * g-expect.adb: Add Warnings (Off) to prevent new warning
16257 * lib-xref.adb: Add handling of Last_Assignment field
16258 (Generate_Reference): Centralize handling of pragma Obsolescent here
16259 (Generate_Reference): Accept an implicit reference generated for a
16260 default in an instance.
16261 (Generate_Reference): Accept a reference for a node that is not in the
16262 main unit, if it is the generic body corresponding to an subprogram
16265 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
16267 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
16269 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
16271 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
16272 use clauses, to avoid messages on packages used to qualify, and also
16273 to avoid messages from obsolescent units.
16274 (Warn_On_Useless_Assignments): Don't generate messages for imported
16275 and exported variables.
16276 (Warn_On_Useless_Assignments): New procedure
16277 (Output_Obsolescent_Entity_Warnings): New procedure
16278 (Check_Code_Statement): New procedure
16280 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
16281 Change name Is_Ada_2005 to Is_Ada_2005_Only
16282 (Last_Assignment): New field for useless assignment warning
16284 2006-10-31 Olivier Hainque <hainque@adacore.com>
16286 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
16287 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
16289 2006-10-31 Bob Duff <duff@adacore.com>
16290 Robert Dewar <dewar@adacore.com>
16291 Ed Schonberg <schonberg@adacore.com>
16293 * g-awk.adb (Default_Session, Current_Session): Compile this file in
16294 Ada 95 mode, because it violates the new rules for AI-318.
16296 * g-awk.ads: Use overloaded subprograms in every case where we used to
16297 have a default of Current_Session. This makes the code closer to be
16298 correct for both Ada 95 and 2005.
16300 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
16301 code, relying on the fact that the compiler generates a warning
16302 instead of an error in -gnatg mode.
16304 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
16305 E_Return_Statement entity kind.
16306 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
16308 * par.adb (P_Interface_Type_Definition): Addition of one formal to
16309 report an error if the reserved word abstract has been previously found.
16310 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
16312 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
16313 parenthesized range attribute usage
16314 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
16316 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
16317 in the syntax for extended_return_statement. This is not in the latest
16318 RM, but the ARG is expected to issue an AI allowing this.
16319 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
16320 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
16321 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
16322 P_Return_Statement): Parse the new syntax for extended_return_statement.
16324 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
16325 Output_End_Missing): Add error-recovery code for the new
16326 extended_return_statement syntax; that is, the new E_Return entry on
16329 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
16330 limited to nonlimited, because otherwise we violate the new Ada 2005
16331 rules about returning limited types in function Create_AST_Handler in
16334 * sem.adb (Analyze): Add cases for new node kinds
16335 N_Extended_Return_Statement and N_Return_Object_Declaration.
16337 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
16338 type is in the same category as type of context before applying check,
16339 to prevent anomalies in instantiations.
16340 (Resolve_Aggregate): Remove test for limited components in aggregates.
16341 It's unnecessary in Ada 95, because if it has limited components, then
16342 it must be limited. It's wrong in Ada 2005, because limited aggregates
16344 (Resolve_Record_Aggregate): Move check for limited types later, because
16345 OK_For_Limited_Init requires its argument to have been resolved.
16346 (Get_Value): When copying the component default expression for a
16347 defaulted association in an aggregate, use the sloc of the aggregate
16348 and not that of the original expression, to prevent spurious
16349 elaboration errors, when the expression includes function calls.
16350 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
16351 were missing. We also didn't handle qualified expressions. Now also
16352 allow function calls. Use new common routine OK_For_Limited_Init.
16353 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
16354 with space can upper case letter).
16356 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
16357 Has_Static_Discriminants flag
16358 (Record_Type_Declaration): Diagnose an attempt to declare an interface
16359 type with discriminants.
16360 (Process_Range_Expr_In_Decl): Do validity checks on range
16361 (Build_Discriminant_Constraints): Use updated form of
16362 Denotes_Discriminant.
16363 (Process_Subtype): If the subtype is a private subtype whose full view
16364 is a concurrent subtype, introduce an itype reference to prevent scope
16366 (Build_Derived_Record_Type, Collect_Interface_Primitives,
16367 Record_Type_Declaration): The functionality of the subprograms
16368 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
16369 is now performed by a single routine.
16370 (Build_Derived_Record_Type): If the type definition includes an explicit
16371 indication of limitedness, then the type must be marked as limited here
16372 to ensure that any access discriminants will not be treated as having
16373 a local anonymous access type.
16374 (Check_Abstract_Overriding): Issue a detailed error message when an
16375 abstract subprogram was not overridden due to incorrect mode of its
16377 (Analyze_Private_Extension_Declaration): Add support for the analysis of
16378 synchronized private extension declarations. Verify that the ancestor is
16379 a limited or synchronized interface or in the generic case, the ancestor
16380 is a tagged limited type or synchronized interface and all progenitors
16381 are either limited or synchronized interfaces.
16382 Derived_Type_Declaration): Check for presence of private extension when
16383 dealing with synchronized formal derived types.
16384 Process_Full_View): Enchance the check done on the usage of "limited" by
16385 testing whether the private view is synchronized.
16386 Verify that a synchronized private view is completed by a protected or
16388 (OK_For_Limited_Init_In_05): New function.
16389 (Analyze_Object_Declaration): Move check for limited types later,
16390 because OK_For_Limited_Init requires its argument to have been resolved.
16391 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
16392 in order to alleviate the upward compatibility introduced by AI-318.
16393 (Constrain_Corresponding_Record): If the constraint is for a component
16394 subtype, mark the itype as frozen, to avoid out-of-scope references to
16395 discriminants in the back-end.
16396 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
16397 this subprogram against wrong sources.
16398 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
16399 discriminant of limited type completed with a protected type, when the
16400 discriminant is used to constrain a private component of the type, and
16401 expansion is disabled.
16402 (Find_Type_Of_Object): Do not treat a return subtype that is an
16403 anonymous subtype as a local_anonymous_type, because its accessibility
16404 level is the return type of the enclosing function.
16405 (Check_Initialization): In -gnatg mode, turn the error "cannot
16406 initialize entities of limited type" into a warning.
16407 (OK_For_Limited_Init): Return true for generated nodes, since it
16408 sometimes violates the legality rules.
16409 (Make_Incomplete_Declaration): If the type for which an incomplete
16410 declaration is created happens to be the currently visible entity,
16411 preserve the homonym chain when removing it from visibility.
16412 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
16413 inherited subprograms.
16414 (Access_Definition): If this is an access to function that is the return
16415 type of an access_to_function definition, context is a type declaration
16416 and the scope of the anonymous type is the current one.
16417 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
16418 incomplete subtype to the set of private dependents of the original
16420 (Constrain_Discriminated_Type): Emit an error message whenever an
16421 incomplete subtype is being constrained.
16422 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
16423 corresponding subtype of the full view of the original incomplete type.
16424 (Check_Incomplete): Properly detect invalid usage of incomplete types
16427 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
16429 * g-catiio.ads, g-catiio.adb (Value): New function.
16430 Given an input String, try and parse a valid Time value.
16432 2006-10-31 Vincent Celier <celier@adacore.com>
16434 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
16435 Integer_Address arithmetic, as in Set_Valid.
16437 2006-10-31 Arnaud Charlet <charlet@adacore.com>
16438 Robert Dewar <dewar@adacore.com>
16440 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
16441 handling executable extension manually and duplicating code.
16443 * make.adb: Implement new -S switch
16444 (Gnatmake): Use new function Osint.Executable_Name instead
16445 of handling executable extension manually.
16447 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
16448 is specified, the executable name ends with this suffix.
16449 Take advantage of Osint.Executable_Name instead of duplicating code.
16451 * switch-m.adb: Recognize new gnatmake -S switch
16453 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
16455 (Get_Target_Parameters): Set Executable_Extension_On_Target if
16458 * makeusg.adb: Add line for gnatmake -S switch
16460 2006-10-31 Vincent Celier <celier@adacore.com>
16462 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
16463 call it with -static-libgcc, as there are some platforms, such as
16464 Darwin, where one of these two switches is compulsory to link.
16466 2006-10-31 Vincent Celier <celier@adacore.com>
16468 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
16469 instead of ADA_PROJECT_PATH, for the project path.
16470 (Gnatls): When displaying the project path directories, use host dir
16473 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
16474 names in the project path, as absolute paths may correspond to
16475 multi-valued VMS logical names.
16477 2006-10-31 Vincent Celier <celier@adacore.com>
16479 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
16480 absolute path name.
16481 (Locate_Regular_File): Ditto
16482 (Change_Dir): Remove, no longer used
16483 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
16484 on Windows. Get it calling Get_Current_Dir.
16485 (OpenVMS): Remove imported boolean, no longer needed.
16486 (Normalize_Pathname)[VMS]: Do not resolve directory names.
16487 (Pid_To_Integer): New function to convert a Process_Id to Integer
16489 2006-10-31 Thomas Quinot <quinot@adacore.com>
16491 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
16492 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
16494 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
16497 2006-10-31 Robert Dewar <dewar@adacore.com>
16499 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
16500 initial letter o as a zero.
16502 2006-10-31 Robert Dewar <dewar@adacore.com>
16504 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
16506 2006-10-31 Robert Dewar <dewar@adacore.com>
16508 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
16510 (Layout_Variant_Record): Retrieve the discriminants from the entity
16511 rather than from the type definition, because in the case of a full
16512 type for a private type we need to take the discriminants from the
16514 (Layout_Component_List): When applying the Max operator to variants with
16515 a nonstatic size, check whether either operand is static and scale that
16516 operand from bits to storage units before applying Max.
16517 (Layout_Type): In VMS, if a C-convention access type has no explicit
16518 size clause (and does not inherit one in the case of a derived type),
16519 then the size is reset to 32 from 64.
16521 2006-10-31 Vincent Celier <celier@adacore.com>
16523 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
16524 its file has already been loaded, according to the unit being loaded,
16525 not to the current value of Multiple_Unit_Index.
16527 2006-10-31 Thomas Quinot <quinot@adacore.com>
16528 Eric Botcazou <ebotcazou@adacore.com>
16529 Arnaud Charlet <charlet@adacore.com>
16531 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
16532 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
16534 (a-except.o): Pass it to the compiler.
16535 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
16536 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
16537 a-calend-mingw.adb version.
16539 * Makefile.rtl: Added s-dsaser.
16540 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
16541 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
16542 Ada.Dispatching.Round_Robin.
16543 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
16545 * Make-lang.in: Remove all references to gt-ada-decl.h.
16546 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
16548 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
16549 Update dependencies.
16551 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
16553 2006-10-31 Vincent Celier <celier@adacore.com>
16555 * mlib-utl.adb (Initialized): Remove, no longer used
16556 (Initialize): Remove, no longer used
16557 (Ar): If Ar_Exec is null, get the location of the archive builder and,
16558 if there is one, the archive indexer. Fail if the archive builder cannot
16560 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
16563 2006-10-31 Ed Schonberg <schonberg@adacore.com>
16565 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
16566 Process_Body_Clauses): If the context of a body includes a use clause
16567 for P.Q then a with_clause for P in the same body is not redundant,
16568 even if the spec also has a with_clause on P.
16569 Add missing continuation mark to error msg
16570 (Build_Limited_Views): A limited view of a type is tagged if its
16571 declaration includes a record extension.
16572 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
16573 node, even if the subunit has errors. This avoids malfunction by
16574 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
16575 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
16576 generation of obsolescent messages for with statements (cannot do
16577 this too early, or we cannot implement avoiding the messages in the
16578 case of obsolescent units withing obsolescent units).
16579 (Install_Siblings): If the with_clause is on a remote descendant of
16580 an ancestor of the current compilation unit, find whether there is
16581 a sibling child unit that is immediately visible.
16582 (Remove_Private_With_Clauses): New procedure, invoked after completing
16583 the analysis of the private part of a nested package, to remove from
16584 visibility the private with_clauses of the enclosing package
16586 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
16587 now centralized in Generate_Reference.
16588 (Install_Limited_Context_Clauses): Remove superfluous error
16589 message associated with unlimited view visible through use
16590 and renamings. In addition, at the point in which the error
16591 is reported, we add the backslash to the text of the error
16592 to ensure that it is reported as a single error message.
16593 Use new // insertion for some continuation messages
16594 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
16595 to create implicit with_clause for parent unit mentioned in original
16596 limited_with_clause.
16597 (Install_Limited_With_Unit): Set entity of parent identifiers if the
16598 unit is a child unit. For ASIS queries.
16599 (Analyze_Subunit): If the subunit appears within a child unit, make all
16600 ancestor child units directly visible again.
16602 2006-10-31 Robert Dewar <dewar@adacore.com>
16604 * par-ch10.adb (P_Context_Clause): Minor error message fix
16606 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
16607 Javier Miranda <miranda@adacore.com>
16609 * par-ch12.adb: Grammar update and cleanup.
16610 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
16611 support for synchronized derived type definitions.
16612 Add the new actual Abstract_Present to every call to
16613 P_Interface_Type_Definition.
16614 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
16615 a formal object declaration with an access definition or a subtype mark
16616 with a null exclusion.
16617 (P_Generic_Association): Handle association with box, and others_choice
16618 with box, to support Ada 2005 partially parametrized formal packages.
16620 2006-10-31 Robert Dewar <dewar@adacore.com>
16621 Javier Miranda <miranda@adacore.com>
16623 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
16624 (P_Type_Declaration): Remove barrier against the reserved word "limited"
16625 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
16626 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
16627 private extensions.
16628 (P_Type_Declaration): Add the new actual Abstract_Present to every call
16629 to P_Interface_Type_Definition.
16630 (P_Interface_Type_Definition): Addition of one formal to report an error
16631 if the reserved word abstract has been previously found.
16632 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
16633 object renaming declaration with an access definition or subtype mark
16634 with a possible null exclusion.
16636 * par-ch9.adb: Minor error msg fix
16638 * par-load.adb: Add missing continuation mark to error msg
16640 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
16642 2006-10-31 Vincent Celier <celier@adacore.com>
16644 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
16645 unknown attribute in unknown package or in package that does not need
16647 (Parse_Package_Declaration): Do not issue warning for unknown package in
16650 2006-10-31 Vincent Celier <celier@adacore.com>
16652 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
16653 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
16656 2006-10-31 Vincent Celier <celier@adacore.com>
16658 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
16659 on VMS, change "__" to '.' before checking the name.
16660 (Record_Ada_Source): Always add the source file name in the list of
16661 of sources, even if it is not the first time, as it is for another
16663 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
16664 dot, instead of replacing only the first '_'.
16666 * prj-part.adb (Parse): Convert project file path to canonical form
16668 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
16669 extended, the project id of the project extending it is recorded in its
16670 data, even when it has already been processed as an imported project.
16672 2006-10-31 Robert Dewar <dewar@adacore.com>
16674 * repinfo.adb (List_Entities): Don't list entities from renaming
16677 2006-10-31 Arnaud Charlet <charlet@adacore.com>
16678 Robert Dewar <dewar@adacore.com>
16680 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
16681 only a restriction warning is active for the given restriction. This is
16682 desirable because we do not want to modify code in the case where only
16684 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
16685 causes overriding of real restrictions.
16686 Take advantage of new No_Restrictions constant.
16688 * raise.h: (__gnat_set_globals): Change profile.
16690 2006-10-31 Arnaud Charlet <charlet@adacore.com>
16692 * rtsfind.adb: Remove s-polint from comment as it exists no more.
16695 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
16696 Move all the entities in obsolete package System.PolyORB_Interface to
16697 System.Partition_Interface.
16698 (RE_Storage_Size): New function in System.Tasking.
16699 (RE_Get_Ceiling): New entity.
16700 (RE_Set_Ceiling): New entity.
16701 (RO_PE_Get_Ceiling): New entity.
16702 (RO_RE_Set_Ceiling): New entity.
16703 (Inherit_CPP_DT): New entity
16705 2006-10-31 Robert Dewar <dewar@adacore.com>
16707 * scng.adb (Scan, case of numeric literal): Better msg for identifier
16708 starting with a digit.
16710 2006-10-31 Ed Schonberg <schonberg@adacore.com>
16711 Thomas Quinot <quinot@adacore.com>
16712 Javier Miranda <miranda@adacore.com>
16713 Gary Dismukes <dismukes@adacore.com>
16715 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
16716 properly an attempt to apply Unchecked_Access to a protected operation.
16717 (OK_Self_Reference): New subprogram to check the legality of an access
16718 attribute whose prefix is the type of an enclosing aggregate.
16719 Generalizes previous mechanism to handle attribute references nested
16720 arbitrarily deep within the aggregate.
16721 (Analyze_Access_Attribute): An access attribute whose prefix is a type
16722 can appear in an aggregate if this is a default-initialized aggregate
16723 for a self-referential type.
16724 (Resolve_Attribute, case Access): Ditto.
16725 Add support for new implementation defined attribute Stub_Type.
16726 (Eval_Attribute, case Attribute_Stub_Type): New case.
16727 (Analyze_Attribute, case Attribute_Stub_Type): New case.
16728 (Stream_Attribute_Available): Implement using new subprogram from
16729 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
16730 Has_Specified_Stream_Attribute flag.
16731 Disallow Storage_Size and Storage_Pool for access to subprogram
16732 (Resolve_Attribute, case 'Access et al): Take into account anonymous
16733 access types of return subtypes in extended return statements. Remove
16734 accessibility checks on anonymous access types when Unchecked_Access is
16736 (Analyze_Attribute): Add support for the use of 'Class to convert
16737 a class-wide interface to a tagged type.
16738 Add support for the attribute Priority.
16739 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
16740 whether the designated type is discriminated with a constrained partial
16741 view and require static matching in that case.
16742 Add local variable Des_Btyp. The Designated_Type
16743 of an access to incomplete subtype is either its non-limited view if
16744 coming from a limited with or its etype if regular incomplete subtype.
16746 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
16747 Fix predicate to identify and allow cases of (expander-generated)
16748 references to tag of designated object of a RACW.
16749 (Validate_Static_Object_Name): In Ada 2005, a formal object is
16750 non-static, and therefore cannot appear as a primary in a preelaborable
16752 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
16753 Has_Read_Write_Attributes.
16754 (Has_Read_Write_Attributes): Reimplement in termes of
16755 Has_Stream_Attribute_Definition.
16756 (Missing_Read_Write_Attributes): When checking component types in a
16757 record, unconditionally call Missing_Read_Write_Attributes recursively
16758 (remove guard checking for Is_Record_Type / Is_Access_Type).
16760 2006-10-31 Robert Dewar <dewar@adacore.com>
16762 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
16763 useless assignments here and conditionalize it on absence of exception
16765 (Analyze_Exception_Handlers): Small code reorganization of error
16766 detection code, for new handling of formal packages.
16768 2006-10-31 Ed Schonberg <schonberg@adacore.com>
16769 Hristian Kirtchev <kirtchev@adacore.com>
16771 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
16772 that has been constant-folded, preserve information of original tree,
16774 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
16775 generated private extension declaration if the formal derived type is
16776 synchronized. Carry synchronized present over to the generated private
16778 (Validate_Derived_Type_Instance): Ensure that the actual of a
16779 synchronized formal derived type is a synchronized tagged type.
16780 (Instantiate_Formal_Package): When creating the instantiation used to
16781 validate the actual package of a formal declared without a box, check
16782 whether the formal itself depends on a prior actual.
16783 (Instantiate_Formal_Subprogram): Create new entities for the defining
16784 identifiers of the formals in the renaming declaration, for ASIS use.
16785 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
16786 a renaming declaration or a subtype declaration for an actual in an
16787 instance, capture location information of declaration in generic, for
16789 (Instantiate_Formal_Package): Add comments on needed additional tests.
16790 AI-317 (partial parametrization) is fully implemented.
16791 (Validate_Private_Type_Instance): Add check for actual which
16792 must have preelaborable initialization
16793 Use new // insertion for some continuation messages
16794 (Analyze_Formal_Object_Declaration): Change usage of Expression to
16795 Default_Expression. Add type retrieval when the declaration has an
16796 access definition. Update premature usage of incomplete type check.
16797 (Check_Access_Definition): New subsidiary routine. Check whether the
16798 current compilation version is Ada 05 and the supplied node has an
16800 (Instantiate object): Alphabetize local variables. Handle the creation
16801 of new renaming declarations with respect to the kind of definition
16802 used - either an access definition or a subtype mark. Guard against
16803 unnecessary error message in the context of anonymous access types after
16804 they have been resolved. Add check for required null exclusion in a
16805 formal object declaration.
16806 (Switch_View): A private subtype of a non-private type needs to be
16807 switched (the base type can have been switched without its private
16808 dependents because of the last branch of Check_Private_View.
16809 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
16811 (Instantiate_Type): Emit an error message whenever a class-wide type of
16812 a tagged incomplete type is used as a generic actual.
16813 (Find_Actual_Type): Extend routine to handle a component type in a child
16814 unit that is imported from a formal package in a parent.
16815 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
16816 agree on constrainedness, rather than checking against ultimate ancestor
16817 (Instantiate_Subprogram_Body): Create a cross-reference link to the
16818 generic body, for navigation purposes.
16820 2006-10-31 Robert Dewar <dewar@adacore.com>
16821 Thomas Quinot <quinot@adacore.com>
16823 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
16825 (New_Stream_Subprogram): When processing an attribute definition clause
16826 for a stream-oriented subprogram, record an entity node occurring at
16827 the point of clause to use for checking the visibility of the clause,
16828 as defined by 8.3(23) as amended by AI-195.
16829 (New_Stream_Subprogram): New procedure, factoring behaviour from both
16830 New_Stream_Function and New_Stream_Procedure.
16831 (New_Stream_Function, New_Stream_Procedure): Removed.
16832 (Analyze_Attribute_Definition_Clause, case Address): Check new
16833 Alignment_Check check
16835 2006-10-31 Ed Schonberg <schonberg@adacore.com>
16836 Javier Miranda <miranda@adacore.com>
16837 Robert Dewar <dewar@adacore.com>
16839 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
16840 generate the same errors compiling under -gnatc.
16841 (Try_Object_Operation): If no candidate interpretation succeeds, but
16842 there is at least one primitive operation with the right name, report
16843 error in call rather than on a malformed selected component.
16844 (Analyze_Selected_Component): If the prefix is an incomplete type from
16845 a limited view, and the full view is available, use the full view to
16846 determine whether this is a prefixed call to a primitive operation.
16847 (Operator_Check): Verify that a candidate interpretation is a binary
16848 operation before checking the type of its second formal.
16849 (Analyze_Call): Add additional warnings for function call contexts not
16851 (Analyze_Allocator): Move the check for "initialization not allowed for
16852 limited types" after analyzing the expression. This is necessary,
16853 because OK_For_Limited_Init looks at the structure of the expression.
16854 Before analysis, we don't necessarily know what sort of expression it
16855 is. For example, we don't know whether F(X) is a function call or an
16856 indexed component; the former is legal in Ada 2005; the latter is not.
16857 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
16858 were missing. We also didn't handle qualified expressions. Now also
16859 allow function calls. Use new common routine OK_For_Limited_Init.
16860 (Analyze_Type_Conversion): Do not perform some legality checks in an
16861 instance, because the error message will be redundant or spurious.
16862 (Analyze_Overloaded_Selected_Component): Do not do style check when
16863 setting an entity, since we do not know it is the right entity yet.
16864 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
16865 (Analyze_Overloaded_Selected_Component): Same change
16866 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
16867 since regular incomplete subtypes are transformed into corresponding
16868 subtypes of their full views.
16869 (Complete_Object_Operation): Treat name of transformed subprogram call
16870 as coming from source, for browsing purposes.
16871 (Try_Primitive_Operation): If formal is an access parameter, compare
16872 with base type of object to determine whether it is a primitive
16874 (Operator_Check): If no interpretation of the operator matches, check
16875 whether a use clause on any candidate might make the operation legal.
16876 (Try_Class_Wide_Operation): Check whether the first parameter is an
16877 access type whose designated type is class-wide.
16879 2006-10-31 Robert Dewar <dewar@adacore.com>
16880 Ed Schonberg <schonberg@adacore.com>
16881 Gary Dismukes <dismukes@adacore.com>
16883 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
16884 warn on infinite loops.
16885 Add \\ to some continuation messages
16886 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
16887 (Process_Bounds): If the bounds are integer literals that result from
16888 constant-folding, and they carry a user-defined type, preserve that type
16889 rather than treating this as an integer range.
16890 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
16891 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
16892 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
16893 left hand side of assignment.
16894 (Analyze_Assignment): Add suport to manage assigments to the attribute
16895 priority of a protected object.
16896 (Check_Possible_Current_Value_Condition): Allow fully qualified names
16897 not just identifiers.
16898 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
16899 or AND THEN for possible tracking.
16900 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
16901 case of while loops so we can track values in the loop body.
16903 2006-10-31 Ed Schonberg <schonberg@adacore.com>
16904 Hristian Kirtchev <kirtchev@adacore.com>
16905 Bob Duff <duff@adacore.com>
16907 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
16908 procedure cannot be a protected operation (it is a basic_declaration,
16909 not a subprogram_declaration).
16910 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
16911 Subp. Add logic for entry processing.
16912 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
16913 Determine whether an entry or subprogram of a protected or task type
16914 override an inherited primitive of an implemented interface.
16915 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
16916 Update the actual used in calls to Check_Overriding_Indicator.
16917 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
16918 generate the proper reference to the parent unit, for cross-reference.
16919 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
16921 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
16922 (Add_Extra_Formal): Revise procedure to allow passing in associated
16923 entity, scope, and name suffix, and handle setting of the new
16924 Extra_Formals field.
16925 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
16926 pass new parameters. Add support for adding the new extra access formal
16927 for functions whose calls are treated as build-in-place.
16928 (Analyze_A_Return_Statement): Correct casing in error message.
16929 Move Pop_Scope to after Analyze_Function_Return, because an extended
16930 return statement really is a full-fledged scope. Otherwise, visibility
16931 doesn't work right. Correct use of "\" for continuation messages.
16932 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
16933 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
16934 the node doesn't get properly marked as analyzed.
16935 (Analyze_Subprogram_Body): If subprogram is a function that returns
16936 an anonymous access type that denotes a task, build a Master Entity
16938 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
16939 proper usage of null exclusion in a result definition.
16940 (Process_Formals): Code cleanup and new error message.
16941 (Process_Formals): Detect incorrect application of null exclusion to
16943 (Conforming_Types): Handle conformance between [sub]types and itypes
16944 generated for entities that have null exclusions applied to them.
16945 (Maybe_Primitive_Operation): Add an additional type retrieval when the
16946 base type is an access subtype. This case arrises with null exclusions.
16947 (New_Overloaded_Entity): Do not remove the overriden entity from the
16948 homonym chain if it corresponds with an abstract interface primitive.
16949 (Process_Formals): Replace membership test agains Incomplete_Kind with a
16950 call to the synthesized predicate Is_Incomplete_Type.
16951 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
16953 (Analyze_Subprogram_Declaration): Check that abstract interface
16954 primitives are abstract or null.
16955 (Analyze_Subprogram_Specification): Remove previous check for abstract
16956 interfaces because it was not complete.
16957 (Has_Interface_Formals): Removed.
16959 2006-10-31 Ed Schonberg <schonberg@adacore.com>
16960 Javier Miranda <miranda@adacore.com>
16962 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
16963 of Analyze_Package_Body, to create Itype references for anonymous
16964 access types created in the package declaration, whose designated types
16965 may have only a limited view.
16966 (Analyze_Package_Specification): For the private part of a nested
16967 package, install private_with_clauses of enclosing compilation unit if
16968 we are in its visible part.
16969 (Declare_Inherited_Private_Subprograms): Complete barrier
16970 to ensure that the primitive operation has an alias to some parent
16971 primitive. This is now required because, after the changes done for the
16972 implementation of abstract interfaces, the contents of the list of
16973 primitives has entities whose alias attribute references entities of
16974 such list of primitives.
16975 (Analyze_Package_Specification): Simplify code that handles parent units
16976 of instances and formal packages.
16977 (Uninstall_Declarations): Check the convention consistency among
16978 primitive overriding operations of a tagged record type.
16980 2006-10-31 Robert Dewar <dewar@adacore.com>
16981 Hristian Kirtchev <kirtchev@adacore.com>
16982 Javier Miranda <miranda@adacore.com>
16983 Ed Schonberg <schonberg@adacore.com>
16985 * sem_ch8.adb: Minor error msg rewording
16986 (Undefined): When checking for misspellings, invert arguments (to get
16987 expected and found set right)
16988 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
16989 (Analyze_Generic_Renaming): Same fix
16990 (Use_One_Package): Do not take into account the internal entities of
16991 abstract interfaces during the analysis of entities that are marked
16992 as potentially use-visible.
16993 (Find_Type): Handle the case of an attribute reference for
16994 implementation defined attribute Stub_Type (simply let the analysis of
16995 the attribute reference rewrite it).
16996 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
16997 type that appears in a Use_Type clause.
16998 (Analyze_Object_Renaming): Add support for renaming of the Priority
17000 (Find_Type): In Ada 2005, a task type can be used within its own body,
17001 when it appears in an access definition.
17002 (Analyze_Object_Renaming): Remove warning on null_exclusion.
17003 (Analyze_Object_Renaming): Introduce checks for required null exclusion
17004 in a formal object declaration or in a subtype declaration.
17005 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
17006 (Check_Null_Exclusion): New local routine to
17007 Analyze_Subprogram_Renaming. Check whether the formals and return
17008 profile of a renamed subprogram have required null exclusions when
17009 their counterparts of the renaming already impose them.
17010 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
17011 Determine whether an entity is inside a generic scope.
17012 (In_Open_Scope): First pass of documentation update.
17013 (Find_Expanded_Name): Add support for shadow entities associated with
17014 limited withed packages. This is required to handle nested packages.
17015 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
17016 that makes a renaming of a limited withed package illegal.
17018 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
17019 Ed Schonberg <schonberg@adacore.com>
17021 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
17022 Check_Overriding_Indicator.
17023 (Analyze_Task_Definition): Ditto.
17024 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
17025 (Check_Overriding_Indicator): To find overridden interface operation,
17026 examine only homonyms that have an explicit subprogram declaration, not
17027 inherited operations created by an unrelated type derivation.
17028 (Check_Overriding_Indicator): When checking for the presence of "null"
17029 in a procedure, ensure that the queried node is a procedure
17031 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
17032 type when the formal is an access to variable.
17033 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
17034 (Analyze_Task_Type): Same addition
17035 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
17036 provide navigation capabilities for entries.
17038 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
17039 Ed Schonberg <schonberg@adacore.com>
17040 Javier Miranda <miranda@adacore.com>
17041 Gary Dismukes <dismukes@adacore.com>
17043 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
17044 inherited from an interface ancestor by another interface in the
17045 context of an instance as 'late'.
17046 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
17047 of a call to a function that dispatches on access result.
17048 (Check_Dispatching_Operation): In case of late overriding of a primitive
17049 that covers abstract interface subprograms we register it in all the
17050 secondary dispatch tables associated with abstract interfaces.
17051 (Check_Dispatching_Call): Add check that a dispatching call is not made
17052 to a function with a controlling result of a limited type. This is a
17053 current implementation restriction.
17054 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
17055 (Check_Dispatching_Operation): Do no emit a warning if the controlling
17056 argument is an interface type that is a generic formal.
17057 (Is_Interface_Subprogram): Removed.
17058 (Check_Dispatching_Operation): If the subprogram is not a dispatching
17059 operation, check the formals to handle the case in which it is
17060 associated with an abstract interface type.
17062 2006-10-31 Robert Dewar <dewar@adacore.com>
17063 Ed Schonberg <schonberg@adacore.com>
17065 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
17066 Add new calls to this procedure during traversal
17067 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
17068 another unit if expansion is disabled.
17070 2006-10-31 Robert Dewar <dewar@adacore.com>
17072 * sem_eval.adb (Compile_Time_Compare): Make use of information from
17073 Current_Value in the conditional case, to evaluate additional
17074 comparisons at compile time.
17076 2006-10-31 Ed Schonberg <schonberg@adacore.com>
17077 Hristian Kirtchev <kirtchev@adacore.com>
17078 Javier Miranda <miranda@adacore.com>
17080 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
17081 subprogram type to provide better diagnostics in case of ambiguity.
17082 (Covers): Handle coverage of formal and actual anonymous access types in
17083 the context of generic instantiation.
17084 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
17085 abstract interface types; this is required to handle concurrent types
17086 with discriminants and abstract interface types.
17087 (Covers): Include type coverage of both regular incomplete subtypes and
17088 incomplete subtypes of incomplete type visibles through a limited with
17091 2006-10-31 Robert Dewar <dewar@adacore.com>
17092 Hristian Kirtchev <kirtchev@adacore.com>
17093 Ed Schonberg <schonberg@adacore.com>
17095 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
17096 messages for entities in packages which are not used.
17097 (Collect_Synchronized_Interfaces): New procedure.
17098 (Overrides_Synchronized_Primitive): New function.
17099 (Denotes_Discriminant): Extend predicate to apply to task types.
17100 Add missing continuation marks in error msgs
17101 (Unqualify): New function for removing zero or more levels of
17102 qualification from an expression. There are numerous places where this
17103 ought to be used, but we currently only deal properly with zero or one
17105 (In_Instance); The analysis of the actuals in the instantiation of a
17106 child unit is not within an instantiation, even though the parent
17107 instance is on the scope stack.
17108 (Safe_To_Capture_Value): Exclude the case of variables that are
17110 (Check_Obsolescent): Removed
17111 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
17112 is an aliased view, even when rewritten as a reference to the target
17113 object in an assignment.
17114 (Get_Subprogram_Entity): New function
17115 (Known_To_Be_Assigned): New function
17116 (Type_Access_Level): Compute properly the access level of a return
17117 subtype that is an anonymous access type.
17118 (Explain_Limited_Type): Correct use of "\" for continuation messages.
17119 (Is_Transfer): The new extended_return_statement causes a transfer of
17121 (Has_Preelaborable_Initialization): New function
17122 (Has_Null_Exclusion): New function. Given a node N, determine whether it
17123 has a null exclusion depending on its Nkind.
17124 Change Is_Lvalue to May_Be_Lvalue
17125 (May_Be_Lvalue): Extensive additional code to deal with subprogram
17126 arguments (IN parameters are not Lvalues, IN OUT parameters are).
17127 (Safe_To_Capture_Value): Extend functionality so it can be used for
17128 the current value condition case.
17129 (Has_Compatible_Alignment): New function
17130 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
17131 objects to handle the Ada 2005 case, where aliasedness no longer implies
17132 that the object is constrained. In particular, for dereferenced names,
17133 the designated object must be assumed to be unconstrained.
17134 (Kill_Current_Values): Properly deal with the case where we encounter
17135 a loop in the scope chain.
17136 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
17138 (Compile_Time_Constraint_Error): Improve error message in error case
17140 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
17141 associated with entities of abstract interface primitives.
17142 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
17144 2006-10-31 Robert Dewar <dewar@adacore.com>
17146 * s-osinte-tru64.adb:
17147 Mark Asm statements Volatile to prevent warnings (seems a
17148 reasonable change anyway)
17151 * s-mastop-irix.adb: Add Volatile to Asm statements
17152 Suppresses warning, and seems appropriate in any case
17154 * s-osinte-vms.adb: Add Volatile to Asm statement
17156 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
17158 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
17160 Add call to Check_Code_Statement
17162 2006-10-31 Robert Dewar <dewar@adacore.com>
17163 Ed Schonberg <schonberg@adacore.com>
17164 Bob Duff <duff@adacore.com>
17166 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
17167 Synchronized_Present): Add Formal_Derived_Type_Definition and
17168 Private_Extension_Declaration to the list of assertions.
17169 (Is_Entry_Barrier_Function): New flag
17170 (Has_Self_Reference): New flag on aggregates, to indicate that they
17171 contain a reference to the enclosing type, inserted through a default
17173 (Next_Rep_Item): Move from Node4 to Node5.
17174 (Entity): Add this field for N_Attribute_Definition_Clause.
17175 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
17176 (N_Return_Object_Declaration): Remove this node kind. We now use
17177 N_Object_Declaration instead.
17178 (Actual_Designated_Subtype): Move to a different place to make room in
17179 N_Extended_Return_Statement.
17180 (Procedure_To_Call): Move to a different place to make room in
17181 N_Extended_Return_Statement.
17182 (Return_Type): Removed this field to make room in return statements
17184 (Return_Statement_Entity): New field in return statements, in part to
17185 replace Return_Type, and in part to support the fact that return
17186 statements are now pushed on the scope stack during semantic analysis.
17187 (Return_Object_Declarations): New field to support extended return
17189 (N_Extended_Return_Statement): New node for extended_return_statement
17191 (N_Return_Object_Declaration): New node for part of
17192 extended_return_statement nonterminal. Needed because all the necessary
17193 fields won't fit in N_Extended_Return_Statement.
17194 Generic_associations now carry the Box_Present flag, to indicate a
17195 default for an actual in a partially parametrized formal package.
17197 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
17198 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
17199 and for the new predefined dispatching policies: EDF_Across_Priorities,
17200 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
17201 Introduce new name Stub_Type for implementation defined attribute.
17202 Add pragma Preelaborable_Initialization
17203 Add entry for Priority attribute.
17204 Add Pragma_Wide_Character_Encoding
17205 (Get_Convention_Name): Given a convention id, this function returns the
17206 corresponding name id from the names table.
17208 2006-10-31 Ed Schonberg <schonberg@adacore.com>
17209 Robert Dewar <dewar@adacore.com>
17210 Bob Duff <duff@adacore.com>
17212 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
17213 print null exclusion twice in the case of an access definition,
17214 Implement new -gnatL switch
17215 Remove N_Return_Object_Declaration. We now use
17216 N_Object_Declaration instead. Implement the case for
17217 N_Extended_Return_Statement. Alphabetize the cases.
17218 Add cases for new nodes N_Extended_Return_Statement and
17219 N_Return_Object_Declaration. The code is not yet written.
17220 Update the output for N_Formal_Object_Declaration
17221 and N_Object_Renaming_Declaration.
17222 (Write_Itype): Account for the case of a modular integer subtype whose
17223 base type is private.
17225 2006-10-31 Arnaud Charlet <charlet@adacore.com>
17227 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
17228 Remove elaboration code, now done in the binder.
17230 * s-rident.ads: Make this unit Preelaborate.
17231 (No_Restrictions): New constant used to clean up code and follow
17232 preelaborate constraints.
17235 Add System.Restrictions dependence, referenced directly from the
17236 binder generated file.
17238 2006-10-31 Gary Dismukes <dismukes@adacore.com>
17240 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
17241 True when AAMP extended floating-point is in use (48-bit). Change type
17242 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
17243 the two byte array types on AFloat. Change type of IV_Ilf overlay
17244 variable from Byte8 to ByteLF. Add appropriate initializations of
17245 floating-point overlays for AAMP cases.
17247 2006-10-31 Javier Miranda <miranda@adacore.com>
17249 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
17250 (Get_Ceiling): New subprogram that returns
17251 the ceiling priority of the protected object.
17252 (Set_Ceiling): New subprogram that sets the new ceiling priority of
17253 the protected object.
17255 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
17257 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
17259 2006-10-31 Jose Ruiz <ruiz@adacore.com>
17261 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
17262 requeuing to the same protected object to give higher priority tasks
17263 the opportunity to execute.
17265 2006-10-31 Robert Dewar <dewar@adacore.com>
17267 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
17268 add more precise check for the character sequence that follows '[' to
17269 avoid possible confusion in case if '[' is the last character of a
17271 (Scan_Wide): Always allow brackets encoding
17273 2006-10-31 Olivier Hainque <hainque@adacore.com>
17275 * s-stchop.ads: make this unit preelaborate. This is desirable in
17276 general and made mandatory by the use of this unit by s-taprop which
17277 is itself preelaborate.
17279 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
17280 Td_Events component.
17282 2006-10-31 Vincent Celier <celier@adacore.com>
17284 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
17287 2006-10-31 Vincent Celier <celier@adacore.com>
17289 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
17291 2006-10-31 Vincent Celier <celier@adacore.com>
17293 * makegpr.adb (Check_Compilation_Needed): Take into account path names
17295 (Check_Compilation_Needed): When checking a C or C++ source, do not
17296 resolve symbolic links.
17297 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
17298 When not in verbose mode and Ellipse is True, display "..." for the
17299 first argument with Display set to False.
17300 (Build_Global_Archive): Always set Display True for the first object
17301 file. Call Display_Command with Ellipse set to True.
17303 2006-10-31 Matt Heaney <heaney@adacore.com>
17305 * a-crbtgo.ads: Commented each subprogram
17307 * a-crbtgo.adb: Added reference to book from which algorithms were
17310 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
17311 indicate which child.
17312 (Generic_Conditional_Insert): changed parameter name from "Success" to
17314 (Generic_Unconditional_Insert_With_Hint): improved algorithm
17316 * a-coorse.adb (Replace_Element): changed parameter name in call to
17317 conditional insert operation.
17319 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
17321 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
17324 * a-ciorse.adb (Replace_Element): changed parameter name in call to
17325 conditional insert operation.
17327 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
17330 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
17331 instead of mode inout.
17333 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
17335 (Generic_Read): preserve existing buckets array if possible
17336 (Generic_Write): don't send buckets array length anymore
17338 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
17339 instead of mode inout.
17341 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
17342 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
17344 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
17345 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
17346 (Replace_Element): local operation is now an instantiation
17348 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
17349 check current length.
17350 (Generic_Replace_Element): new operation
17352 2006-10-31 Doug Rupp <rupp@adacore.com>
17354 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
17355 Call TBK$SYMBOLIZE without omitting parameters.
17357 2006-10-31 Vincent Celier <celier@adacore.com>
17359 * symbols-processing-vms-ia64.adb,
17360 symbols-processing-vms-alpha.adb (Process): Do not include symbols
17361 that come from generic instantiations in bodies.
17363 2006-10-31 Pat Rogers <rogers@adacore.com>
17365 * a-rttiev.ads, a-rttiev.adb:
17366 This is a significant redesign primarily for the sake of automatic
17367 timer task termination but also to fix a design flaw.
17368 Therefore we are now using an RTS lock, instead of a protected
17369 object, to provide mutual exclusion to the queue of pending events
17370 and the type Timing_Event is no longer a protected type.
17372 2006-10-31 Robert Dewar <dewar@adacore.com>
17373 Cyrille Comar <comar@adacore.com>
17374 Ben Brosgol <brosgol@adacore.com>
17376 * debug.adb: Update flags documentation
17378 * gnat_ugn.texi: Add documentation for new -gnatwq switch
17379 Clean up documentation for several other warning switches
17380 Clarify how task stack size can be specified with various
17381 versions of Windows.
17382 Add note that -gnatVo includes ranges including loops
17383 Add documentation for -gnatL switch
17384 Add note on elaboration warning for initializing variables
17385 Add documentation for new -gnatwt warning switch
17386 Document new form of pragma Warnings (On|Off, string)
17387 Add comment on use of pragma Warnings to control warnings
17388 Add documentation for -gnatjnn switch
17389 Modify section on interfacing with C for VMS 64-bit.
17390 Add doc for -gnatVe/E
17391 Add documentation of new warning flags -gnatww/-gnatwW
17392 Add warnings about address clause overlays to list of warnings
17393 (Exception Handling Control): Document that the option --RTS must be
17394 used consistently for gcc and gnatbind.
17395 Clarify that inlining is not always possible
17396 Update documentation on pragma Unchecked_Union.
17399 Add documentation for new extended version of pragma Obsolescent
17400 Add documentation for implementation defined attribute 'Stub_Type.
17401 Add note on use of Volatile in asm statements
17402 Add documentation on use of pragma Unreferenced in context clause
17403 Document new form of pragma Warnings (On|Off, pattern)
17404 Document pragma Wide_Character_Encoding
17405 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
17406 enforced if code generation is active.
17407 Add section on pragma Suppress to document GNAT specific check
17409 Clarify difference between No_Dispatching_Calls & No_Dispatch.
17410 Add documentation for pragma Restrictions (No_Elaboration_Code)
17413 Add comments on layout of subprogram local variables in the
17414 presence of nested subprograms.
17416 * ug_words: Resync.
17418 * elists.ads: Minor reformatting
17419 Node returns Node_Or_Entity_Id (doc change only)
17421 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
17423 * g-arrspl.ads (Create): Update comments.
17425 * sem.ads: Add details on the handling of the scope stack.
17427 * usage.adb: Update documentation.
17429 * validsw.ads, validsw.adb:
17430 Add definition of Validity_Check_Components and implement -gnatVe/E
17432 * vms_data.ads: Add missing VMS qualifiers.
17434 * s-addope.ads: Add documentation on overflow and divide by zero
17436 2006-10-31 Robert Dewar <dewar@adacore.com>
17437 Thomas Quinot <quinot@adacore.com>
17438 Arnaud Charlet <charlet@adacore.com>
17440 * fmap.adb: Put routines in alpha order
17442 * g-boumai.ads: Remove redundant 'in' keywords
17444 * g-cgi.adb: Minor reformatting
17446 * g-cgi.ads: Remove redundant 'in' keywords
17448 * get_targ.adb: Put routines in alpha order
17450 * prj-attr.ads: Minor reformatting
17452 * s-atacco.ads: Minor reformatting
17454 * scn.adb: Put routines in alpha order
17456 * sinput-l.adb: Minor comment fix
17458 * sinput-p.adb: Minor comment fix
17460 * s-maccod.ads: Minor reformatting
17462 * s-memory.adb: Minor reformatting
17464 * s-htable.adb: Fix typo in comment.
17466 * s-secsta.adb: Minor comment update.
17468 * s-soflin.adb: Minor reformatting
17471 Add comment about odd qualification in Storage_Offset declaration
17474 Remove unnecessary 'in' keywords for formal parameters.
17476 * treeprs.adt: Minor reformatting
17478 * urealp.adb: Put routines in alpha order
17480 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
17483 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
17485 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
17487 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
17488 workaround as on other platforms.
17490 * g-eacodu-vms.adb: Remove redundant 'in' keywords
17491 * g-expect-vms.adb: Remove redundant 'in' keywords
17493 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
17494 clear error message if the list-of-files file cannot be opened.
17496 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
17497 equality operator is always visible.
17499 * lang.opt: Woverlength-strings: New option.
17502 Update copyright, since nmake.ads and nmake.adb have changed.
17504 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
17505 (Binder_Output_Time_Stamps_Set): removed.
17506 (Old_Binder_Output_Time_Stamp): idem.
17507 (New_Binder_Output_Time_Stamp): idem.
17508 (Recording_Time_From_Last_Bind): idem.
17509 (Recording_Time_From_Last_Bind): Make constant.
17511 * output.ads, output.adb (Write_Str): Allow LF characters
17512 (Write_Spaces): New procedure
17514 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
17516 * inline.adb: Minor reformatting
17518 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
17520 * s-mastop-vms.adb: Remove redundant 'in' keywords
17522 * s-osprim-vms.adb: Remove redundant 'in' keywords
17524 * s-trafor-default.adb: Remove redundant 'in' keywords
17526 * 9drpc.adb: Remove redundant 'in' keywords
17528 * s-osinte-mingw.ads: Minor reformatting
17530 * s-inmaop-posix.adb: Minor reformatting
17532 * a-direio.ads: Remove quotes from Compile_Time_Warning message
17534 * a-exexda.adb: Minor code reorganization
17536 * a-filico.adb: Minor reformatting
17538 * a-finali.adb: Minor reformatting
17540 * a-nudira.ads: Remove quote from Compile_Time_Warning message
17542 * a-numeri.ads: Minor reformatting
17544 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
17546 * exp_pakd.ads: Fix obsolete comment
17548 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
17549 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
17550 Probably not a bug, but certainly neater and more efficient.
17552 * a-tienio.adb: Minor reformatting
17554 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
17555 Avoid assuming low bound of string is 1.
17557 * gnatbind.adb: Change Bindusg to package and rename procedure as
17558 Display, which now ensures that it only outputs usage information once.
17559 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
17561 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
17564 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
17566 (Match): Add pragma Assert to ensure that Matches'First is zero
17568 * g-regpat.ads (Match): Document that Matches lower bound must be zero
17570 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
17571 documented preconditions (also kills warnings about bad indexes).
17573 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
17575 (Build_Import_Library): Ditto;
17577 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
17579 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
17581 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
17582 lower bound of choice table is 1.
17584 * sem_case.ads (Analyze_Choices): Document that lower bound of
17587 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
17590 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
17591 and add appropriate Assert pragma to suppress warnings.
17593 * atree.h, atree.ads, atree.adb
17594 Change Elist24 to Elist25
17595 Add definitions of Field28 and Node28
17596 (Traverse_Field): Use new syntactic parent table in sinfo.
17598 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
17600 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
17602 * exp_tss.adb: Put routines in alpha order
17604 * fe.h: Remove redundant declarations.
17606 2006-10-23 Rafael Avila de Espindola <rafael.espindola@gmail.com>
17608 * utils.c (builtin_function): Rename to gnat_builtin_function.
17609 Move common code to add_builtin_function.
17610 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
17611 gnat_builtin_function.
17612 * gigi.h (builtin_function): Rename to gnat_builtin_function.
17613 Change the signature.
17615 2006-10-16 Brooks Moses <bmoses@stanford.edu>
17617 * Makefile.in: Add TEXI2PDF definition.
17618 * Make-lang.in: Add "ada.pdf" target.
17620 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
17622 * decl.c, utils.c: Fix comment typos.
17623 * utils.c: Fix a typo.
17625 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
17627 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
17628 on "pure" Ada subprograms if SJLJ exceptions are used.
17629 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
17630 on the declaration node of JMPBUF_SAVE.
17631 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
17632 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
17633 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
17635 2006-08-20 Laurent Guerby <laurent@guerby.net>
17638 g-socket.adb (Bind_Socket): Call Set_Address.
17640 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
17643 * decl.c (same_discriminant_p): New static function.
17644 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
17645 subtype and we have discriminants, fix up the COMPONENT_REFs
17646 for the discriminants to make them reference the corresponding
17647 fields of the parent subtype after it has been built.
17649 2006-09-15 Roger Sayle <roger@eyesopen.com>
17652 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
17653 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
17655 2006-09-13 Olivier Hainque <hainque@adacore.com>
17658 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
17659 of a SAVE_EXPR, just make the operand addressable/not-readonly and
17660 let the common gimplifier code make and propagate a temporary copy.
17661 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
17662 out/in-out actuals and defer setting the addressable/readonly bits
17665 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
17668 * decl.c (components_to_record): Defer emitting debug info for the
17669 record type associated with the variant until after we are sure to
17672 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
17675 * gigi.h (gnat_internal_attribute_table): Declare.
17676 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
17677 * utils.c (gnat_internal_attribute_table): New global variable.
17678 (builtin_function): Always call decl_attributes on the builtin.
17679 (handle_const_attribute): New static function.
17680 (handle_nothrow_attribute): Likewise.
17682 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
17684 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
17686 2006-06-23 Olivier Hainque <hainque@adacore.com>
17688 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
17689 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
17691 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
17692 Eric Botcazou <ebotcazou@adacore.com>
17695 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
17696 check-gnat into check-acats.
17698 2006-06-17 Karl Berry <karl@gnu.org>
17700 * gnat-style.texi (@dircategory): Use "Software development"
17701 instead of "Programming", following the Free Software Directory.
17703 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17706 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
17708 2006-06-06 Laurent Guerby <laurent@guerby.net>
17711 mlib-utl.adb: Use Program_Name.
17713 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
17715 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
17716 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
17717 trans.c, utils.c: Fix comment typos. Follow spelling
17719 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
17722 2006-05-19 Nicolas Setton <setton@adacore.com>
17724 * misc.c (gnat_dwarf_name): New function.
17725 (LANG_HOOKS_DWARF_NAME): Define to it.
17727 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
17729 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
17730 (ada/misc.o): Likewise.
17731 (ada/utils.o): Likewise.
17733 2006-04-08 Aurelien Jarno <aurel32@debian.org>
17735 * Makefile.in: Add Ada support for GNU/kFreeBSD.
17736 * s-osinte-kfreebsd-gnu.ads: New file.
17738 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
17740 * Make-lang.in: Rename docdir to gcc_docdir.
17742 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
17744 * gigi.h (get_ada_base_type): Delete.
17745 * utils2.c (get_ada_base_type): Likewise.
17746 * trans.c (convert_with_check): Operate in the real base type.
17748 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17750 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
17752 2006-03-02 Richard Sandiford <richard@codesourcery.com>
17754 * utils.c (create_var_decl): Use have_global_bss_p when deciding
17755 whether to make the decl common.
17757 2006-02-20 Rafael �vila de Esp�ndola <rafael.espindola@gmail.com>
17759 * Make-lang.in (Ada): Remove.
17760 (.PHONY): Remove Ada
17762 2006-02-17 Ed Schonberg <schonberg@adacore.com>
17764 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
17765 aggregate, check the interpretations of the other operand to find one
17766 that may be a boolean array.
17768 (Analyze_Selected_Component): Fix flow-of-control typo in case where
17769 the prefix is a private extension.
17771 2006-02-17 Eric Botcazou <botcazou@adacore.com>
17774 * utils2.c (find_common_type): If both input types are BLKmode and
17775 have the same constant size, keep using the first one.
17777 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
17779 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
17781 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
17783 2006-02-17 Jose Ruiz <ruiz@adacore.com>
17785 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
17786 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
17787 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
17788 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
17789 Abort_Defer/Undefer pairs to avoid the possibility of a task being
17790 aborted while owning a lock.
17792 2006-02-17 Javier Miranda <miranda@adacore.com>
17793 Robert Dewar <dewar@adacore.com>
17795 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
17796 through an access to class-wide interface we force the displacement of
17797 the pointer to the allocated object to reference the corresponding
17798 secondary dispatch table.
17799 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
17800 if Long_Shifts are supported on the target, even if 64 bit divides
17801 are not supported (configurable run time mode).
17802 (Expand_N_Type_Conversion): Do validity check if validity checks on
17803 operands are enabled.
17804 (Expand_N_Qualified_Expression): Do validity check if validity checks
17805 on operands are enabled.
17807 2006-02-17 Ed Schonberg <schonberg@adacore.com>
17809 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
17810 must be materialized when the renamed expression is an explicit
17813 2006-02-17 Ed Schonberg <schonberg@adacore.com>
17815 * freeze.adb (Statically_Discriminated_Components): Return false if
17816 the bounds of the type of the discriminant are not static expressions.
17818 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
17819 the bounds of the discriminant type are not static.
17821 2006-02-17 Robert Dewar <dewar@adacore.com>
17823 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
17824 then we close To if it is valid.
17826 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
17828 * init.c (facility_resignal_table): new array
17829 (__gnat_default_resignal_p): enhance default predicate to resignal if
17830 VMS condition has one of the predefined facility codes.
17832 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
17834 * Makefile.in: Use VMS64 specialized versions of several units in
17835 Interfaces.C hierarchy to be compatible with HP C default size choices.
17836 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
17838 2006-02-17 Ed Schonberg <schonberg@adacore.com>
17840 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
17841 instantiation, the corresponding entity is the related_instance of the
17842 wrapper package created for the instance.
17844 2006-02-17 Ed Schonberg <schonberg@adacore.com>
17846 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
17847 the current instance is nested within another instance in a child unit.
17849 2006-02-17 Javier Miranda <miranda@adacore.com>
17850 Ed Schonberg <schonberg@adacore.com>
17852 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
17853 type we cannot inherit the primitive operations; we inherit the
17854 Corresponding_Record_Type (which has the list of primitive operations).
17855 (Check_Anonymous_Access_Types): When creating anonymous access types for
17856 access components, use Rewrite in order to preserve the tree structure,
17858 (Analyze_Object_Declaration): For limited types with access
17859 discriminants with defaults initialized by an aggregate, obtain
17860 subtype from aggregate as for other mutable types.
17861 (Derived_Type_Declaration): If the derived type is a limited interface,
17862 set the corresponding flag (Is_Limited_Record is not sufficient).
17864 2006-02-17 Ed Schonberg <schonberg@adacore.com>
17866 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
17867 to inline a function that returns an unconstrained type, the return
17868 expression must be the first variable declared in the body of the
17871 2006-02-17 Javier Miranda <miranda@adacore.com>
17873 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
17874 abstract interface type, the static analysis is not enough to know if
17875 the interface is implemented or not by the source tagged type. Hence
17876 we must pass the work to the expander to generate the required code to
17877 evaluate the conversion at run-time.
17878 (Resolve_Equality_Op): Do not apply previous
17879 transformation if expansion is disasbled, to prevent anomalies when
17880 locating global references in a generic unit.
17882 2006-02-17 Vincent Celier <celier@adacore.com>
17884 * snames.ads, snames.adb: New standard names for new project attributes:
17885 archive_builder, archive_indexer, compiler_pic_option,
17886 config_body_file_name, config_body_file_name_pattern,
17887 config_file_switches, config_file_unique, config_spec_file_name,
17888 config_spec_file_name_pattern, default_builder_switches,
17889 default_global_compiler_switches, default_language,
17890 dependency_file_kind, global_compiler_switches, include_path,
17891 include_path_file, language_kind, linker_executable_option,
17892 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
17893 roots, runtime_project.
17895 2006-02-17 Matthew Heaney <heaney@adacore.com>
17897 * a-convec.ads, a-convec.adb:
17898 (operator "&"): handle potential overflow for large index types
17899 (Insert): removed Contraint_Error when using large index types
17900 (Insert_Space): removed Constraint_Error for large index types
17901 (Length): moved constraint check from Length to Insert
17903 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
17904 as not null access.
17905 Explicit raise statements now include an exception message.
17906 (operator "&"): handle potential overflow for large index types
17907 (Insert): removed Contraint_Error when using large index types
17908 (Insert_Space): removed Constraint_Error for large index types
17909 (Length): moved constraint check from Length to Insert
17911 2006-02-17 Robert Dewar <dewar@adacore.com>
17913 * s-wchcnv.adb: Document handling of [ on output (we do not change
17914 this to ["5B"] and the new comments say why not.
17917 Add note for -gnatVo that this now includes the cases of type
17918 conversions and qualified expressions.
17919 Add comments on handling of brackets encoding for Text_IO
17921 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
17922 Thomas Quinot <quinot@adacore.com>
17923 Robert Dewar <dewar@adacore.com>
17924 Javier Miranda <miranda@adacore.com>
17926 * expander.adb: Fix typo in comment
17928 * exp_pakd.adb: Fix typo
17929 Minor comment reformatting.
17931 * g-dyntab.adb: Minor reformatting
17933 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
17934 aliased subprograms to look for the abstract interface subprogram.
17936 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
17938 * env.c (__gnat_setenv): Use size_t.
17939 (__gnat_unsetenv): Likewise.
17940 (__gnat_clearenv): Likewise.
17942 2006-02-16 Arnaud Charlet <charlet@adacore.com>
17944 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
17946 2006-02-13 Arnaud Charlet <charlet@adacore.com>
17948 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
17949 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
17950 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
17951 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
17952 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
17953 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
17954 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
17955 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
17956 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
17959 2006-02-13 Jose Ruiz <ruiz@adacore.com>
17961 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
17962 protection against race conditions is not needed.
17963 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
17965 (Set_Specific_Handler): Add mutual exclusive access to the specific
17967 (Specific_Handler): Add mutual exclusive access for retrieving the
17970 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
17973 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
17974 Fall_Back_Handler and Specific_Handler.
17976 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
17977 termination handlers.
17978 Set two different owerflow depending on the maximal stack size.
17980 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
17981 protection against race conditions is not needed when executing the
17982 task termination handler.
17984 2006-02-13 Robert Dewar <dewar@adacore.com>
17986 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
17987 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
17988 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
17989 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
17990 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
17991 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
17992 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
17993 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
17994 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
17995 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
17996 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
17997 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
17998 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
17999 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
18000 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
18001 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
18002 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
18003 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
18004 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
18005 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
18006 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
18007 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
18008 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
18009 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
18010 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
18011 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
18012 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
18013 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
18014 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
18015 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
18016 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
18017 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
18018 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
18019 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
18022 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
18024 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
18025 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
18026 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
18027 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
18028 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
18029 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
18030 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
18031 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
18032 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
18034 2006-02-13 Arnaud Charlet <charlet@adacore.com>
18036 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
18037 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
18038 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
18039 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
18040 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
18041 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
18042 replaced by anonymous access type.
18043 (pthread_sigmask): Now take an access sigset_t
18045 * s-osinte-hpux.ads: Ditto.
18046 (pthread_mutex_t, pthread_cond_t): Update definitions to support
18047 properly 32 and 64 bit ABIs.
18049 2006-02-13 Pascal Obry <obry@adacore.com>
18051 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
18052 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
18053 s-taprop-linux.adb, s-taprop-solaris.adb,
18054 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
18055 adjustement is already done when calling this routine.
18057 2006-02-13 Pascal Obry <obry@adacore.com>
18059 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
18060 table to take advantage of the 16 priority levels available on Windows
18061 2000 and XP. On NT4 there are only 7 priority levels, this is properly
18062 supported by this new mapping.
18064 2006-02-13 Nicolas Setton <setton@adacore.com>
18066 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
18067 (get_encoding): New subprogram. Extracts the encodings from an encoded
18070 2006-02-13 Pascal Obry <obry@adacore.com>
18071 Nicolas Roche <roche@adacore.com>
18072 Arnaud Charlet <charlet@adacore.com>
18074 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
18076 (__gnat_try_lock): Add unicode support by using a specific section on
18078 (__gnat_get_current_dir): Idem.
18079 (__gnat_open_read): Idem.
18080 (__gnat_open_rw): Idem.
18081 (__gnat_open_create): Idem.
18082 (__gnat_create_output_file): Idem.
18083 (__gnat_open_append): Idem.
18084 (__gnat_open_new): Idem.
18085 (__gnat_file_time_name): Idem.
18086 (__gnat_set_file_time_name): Idem.
18087 (__gnat_stat): Idem.
18088 (win32_no_block_spawn): Idem.
18089 (__gnat_locate_exec_on_path): Idem.
18090 (__gnat_opendir): New routine.
18091 (__gnat_closedir): Idem.
18092 (__gnat_readdir): Add new parameter length (pointer to int). Update
18093 implementation to use it and add specific Win32 code for Unicode
18095 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
18096 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
18097 (convert_addresses): Do not define this dummy routine on VMS.
18099 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
18100 runtime Unicode support will be activated.
18101 (S2WS): String to Wide-String conversion. This version just copy a
18102 string in non Unicode version.
18103 (WS2S): Wide-String to String conversion. This version just copy a
18104 string in non Unicode version.
18106 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
18107 (Open): Now import __gnat_opendir from adaint.c.
18108 (Read): Change the implementation to support unicode characters. It is
18109 not possible to use strlen() on Windows as this version supports only
18110 standard ASCII characters. So the length of the directory entry is now
18111 returned from the imported __gnat_readdir routine.
18112 Update copyright notice.
18114 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
18115 (opendir): Moved to adaint.c.
18117 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
18118 (Get_Directory): Fix wrong indexing.
18119 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
18120 __gnat_getenv from env.c
18121 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
18124 * env.h, env.c: New file.
18126 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
18127 adaint.c by __gnat_getenv from env.c
18129 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
18130 adaint.c by __gnat_getenv from env.c
18132 * Make-lang.in: Add env.o in the list of C object needed by gnat1
18134 Update dependencies.
18136 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18137 Olivier Hainque <hainque@adacore.com>
18138 Eric Botcazou <ebotcazou@adacore.com>
18140 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
18142 * gigi.h (value_factor_p): Add prototype and description, now public.
18144 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
18145 promotion for field with rep clause if the associated size was proven
18147 Expand comments describing attempts to use a packable type.
18148 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
18149 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
18150 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
18151 necessary since these are not different types and pointers may
18152 actually designate any subtype in this hierarchy.
18153 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
18154 discriminants but put them into record only if not Unchecked_Union;
18155 pass flag to components_to_record showing Unchecked_Union.
18156 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
18157 components before variants; don't set TYPE_UNCHECKED_UNION_P.
18158 (components_to_record): New argument UNCHECKED_UNION.
18159 Remove special case code for Unchecked_Union and instead use main code
18160 with small changes.
18163 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
18164 variable with the expression being built, only its inner field.
18166 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
18167 emit_sequence_entry_statements.
18168 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
18169 (establish_gnat_vms_condition_handler): Move before
18170 Subprogram_Body_to_gnu.
18171 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
18172 for a subprogram if it has a foreign convention or is exported.
18173 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
18174 substituted for a CONST_DECL.
18175 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
18176 Etype to assoc_to_constructor.
18177 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
18178 discriminants of Unchecked_Union.
18179 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
18180 don't need cluttering preprocessor directives.
18181 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
18182 condition handler as current in the compiled function.
18183 (body_with_handlers_p): New function. Tell whether a given sequence of
18184 statements node is attached to a package or subprogram body and involves
18185 exception handlers possibly nested within inner block statements.
18186 (emit_sequence_entry_statements): New function, to emit special
18187 statements on entry of sequences when necessary. Establish GNAT
18188 condition handler in the proper cases for VMS.
18189 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
18190 emit_sequence_entry_statements.
18192 * utils2.c (find_common_type): If both input types are BLKmode and
18193 have a constant size, use the smaller one.
18194 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
18197 * utils.c (value_factor_p): Make public, to allow uses from other gigi
18199 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
18200 (convert, case UNION_TYPE): Remove special treatment for unchecked
18204 (update_pointer_to): Update variants of pointer types to unconstrained
18205 arrays by attaching the list of fields of the main variant.
18207 2006-02-13 Arnaud Charlet <charlet@adacore.com>
18208 Robert Dewar <dewar@adacore.com>
18210 * a-exexpr.adb, a-exexpr-gcc.adb
18211 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
18212 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
18213 Remove code unused for exception propagation for the compiler itself
18214 from a-except.adb and update to still share separate packages.
18216 * a-except.ads, a-except.adb: Ditto.
18217 Add comments that this version is now used only by the compiler and
18218 other basic tools. The full version that includes the Ada 2005 stuff
18219 is in separate files a-except-2005.ads/adb. The reason is that we do
18220 not want to cause bootstrap problems with compilers not recognizing
18222 Add exception reason code PE_Implicit_Return
18223 Add new exception reason code (Null Exception_Id)
18225 * a-except-2005.adb, a-except-2005.ads: New files.
18227 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
18229 * s-wchcon.adb: New file.
18231 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
18232 (traceback.o deps): Likewise.
18233 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
18234 Activate build of GMEM instrumentation library on VMS targets.
18235 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
18236 Use a-except-2005.ads/adb for all run-time library builds unless
18237 specified otherwise.
18238 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
18239 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
18240 Use s-parame.adb on all native platforms.
18241 Use s-parame-vxworks.adb on all vxworks platforms.
18242 Add env.c env.h in LIBGNAT_SRCS
18243 Add env.o in LIBGNAT_OBJS
18244 (GNATMAKE_OBJS): Remove ctrl_c.o object.
18245 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
18246 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
18247 supports VxWorks 6 RTPs.
18248 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
18249 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
18251 * types.h, types.ads (Terminate_Program): New exception
18252 Add comment on modifying multiple versions of a-except.adb when the
18253 table of exception reasons is modified.
18254 Add exception reason code PE_Implicit_Return
18255 Add new exception reason code (Null Exception_Id)
18257 * clean.adb (Initialize): Get the target parameters before checking
18258 if target is OpenVMS. Move the OpenVMS specific code here from package
18259 body elaboration code.
18261 2006-02-13 Thomas Quinot <quinot@adacore.com>
18262 Vincent Celier <celier@adacore.com>
18263 Robert Dewar <dewar@adacore.com>
18265 * ali-util.adb (Get_File_Checksum): Update to account for change in
18266 profile of Initialize_Scanner.
18268 * gprep.adb (Gnatprep): Update to account for change in profile of
18269 Initialize_Scanner.
18270 (Process_One_File): Same.
18272 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
18273 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
18274 that behaviour using the new Unit information recorded in the source
18275 files table, rather than going through all units every time.
18276 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
18277 (Get_Source_Unit): Same.
18279 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
18280 change in profile of Initialize_Scanner.
18281 (Prepare_To_Preprocess): Same.
18283 * lib.ads: Fix typo in comment (templace -> template).
18285 * prj-part.adb (Parse_Single_Project): Update to account for change in
18286 profile of Initialize_Scanner.
18288 * scn.adb (Initialize_Scanner): Account for change in profile of
18289 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
18290 Also record the association of the given Source_File_Index to the
18291 corresponding Unit_Number_Type.
18293 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
18295 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
18296 Remove Unit formal for generic scanner: this formal
18297 is only relevant to Scn (the scanner instance used to parse Ada source
18298 files), not to other instances. Update comment accordingly.
18299 (Scan): Use new function Snames.Is_Keyword_Name.
18301 * sinfo-cn.adb: Fix typo in comment.
18303 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
18306 * sinput.ads (Source_File_Record): New component Unit, used to capture
18307 the unit identifier (if any) associated to a source file.
18309 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
18310 Unit in Source_File_Record.
18312 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
18313 in profile of Initialize_Scanner.
18315 * scans.adb (Initialize_Ada_Keywords): New procedure
18317 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
18318 Ada keywords in the Namet table, without the need to call
18319 Initialize_Scanner.
18321 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
18322 (Is_Keyword_Name): New function
18324 * snames.ads: Add subtype Configuration_Pragma_Names
18325 Add pragma Ada_2005 (synonym for Ada_05)
18326 (Is_Keyword_Name): New function
18328 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
18330 2006-02-13 Arnaud Charlet <charlet@adacore.com>
18332 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
18335 * a-stwima.adb (To_Set): Add extra check when N = 0.
18337 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
18339 2006-02-13 Arnaud Charlet <charlet@adacore.com>
18341 * s-parame-mingw.adb, s-parame-linux.adb,
18342 s-parame-solaris.adb: Removed, replaced by s-parame.adb
18344 * s-parame-vxworks.ads: Fix typo.
18346 * s-parame-vxworks.adb: New file.
18348 * s-parame.adb: Version now used by all native platforms.
18349 (Default_Stack_Size): Use 2 megs for default stack size and use
18350 __gl_default_stack_size when available.
18351 (Minimum_Stack_Size): Use 12K.
18353 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
18354 (Create_Task): Refine implementation taking advantage of the XP stack
18355 size support. On XP, we now create the thread using the flag
18356 STACK_SIZE_PARAM_IS_A_RESERVATION.
18358 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
18360 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
18361 XP and 0 on older Windows versions.
18363 * interfac-vms.ads: Removed, no longer used.
18365 2006-02-13 Matthew Heaney <heaney@adacore.com>
18367 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
18368 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
18369 a-cohase.adb: All explicit raise statements now include an exception
18372 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
18373 (Update_Element_Preserving_Key): renamed op to just Update_Element.
18374 Explicit raise statements now include an exception message
18376 * a-cihase.ads, a-cohase.ads: Removed comment.
18378 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
18379 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
18380 a-szbzha.adb, a-szfzha.ads: New files.
18382 2006-02-13 Matthew Heaney <heaney@adacore.com>
18384 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
18387 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
18389 * lang.opt: Wvariadic-macros: New option.
18390 Wold-style-definition: Likewise.
18391 Wmissing-format-attribute: Likewise.
18393 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
18394 -Wold-style-definition and -Wmissing-format-attribute.
18396 2006-02-13 Robert Dewar <dewar@adacore.com>
18398 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
18400 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
18402 2006-02-13 Nicolas Roche <roche@adacore.com>
18404 * a-envvar.adb, a-envvar.ads: New files.
18406 2006-02-13 Douglas Rupp <rupp@adacore.com>
18408 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
18410 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
18412 2006-02-13 Pat Rogers <rogers@adacore.com>
18414 * a-rttiev.adb, a-rttiev.ads: New files.
18416 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
18418 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
18419 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
18421 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
18423 2006-02-13 Robert Dewar <dewar@adacore.com>
18425 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
18426 sem_case.adb: Minor code reorganization (not Present should be No)
18428 2006-02-13 Geert Bosch <bosch@adacore.com>
18429 Gary Dismukes <dismukes@adacore.com>
18431 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
18432 0, since the lower bound of the actual string may be greater than one.
18435 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
18436 layout is requested.
18438 2006-02-13 Vincent Celier <celier@adacore.com>
18440 * back_end.adb (Scan_Compiler_Arguments): Check if
18441 Search_Directory_Present is True and, if it is, add the argument in
18442 the source search directory path.
18444 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
18445 Search_Directory_Present to True.
18447 2006-02-13 Joel Brobecker <brobecke@adacore.com>
18449 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
18450 volatile, to tell the compiler to preserve this variable at any level
18452 (Gen_Versions_Ada): Temporarily work around codegen bug.
18454 2006-02-13 Vincent Celier <celier@adacore.com>
18456 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
18457 gcc to link with option -shared-libgcc.
18458 (Gnatlink): Remove duplicate switches -shared-libgcc
18460 2006-02-13 Robert Dewar <dewar@adacore.com>
18462 * gnatvsn.ads (Current_Year): New constant, used to easily update
18463 copyright on all GNAT tools.
18465 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
18468 2006-02-13 Robert Dewar <dewar@adacore.com>
18470 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
18471 after hyphen (small aesthetic change useful for a range of numbers
18473 Suppress range checks for a couple of assignments which otherwise
18474 cause validity checks with validity checking turned on.
18476 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
18477 Improvement in error message for object.
18478 (Rep_Item_Too_Late): Remove '!' in warning message.
18480 2006-02-13 Robert Dewar <dewar@adacore.com>
18481 Eric Botcazou <ebotcazou@adacore.com>
18483 * err_vars.ads: Suppress range checks for a couple of assignments
18484 which otherwise cause validity checks with validity checking turned on.
18487 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
18488 Make message unconditional if it is a warning.
18489 (Error_Msg_NEL): Always output warning messages.
18490 Suppress range checks for a couple of assignments which otherwise
18491 cause validity checks with validity checking turned on.
18493 * errout.ads (Message Insertion Characters): Document that '!' is
18494 implied by '?' in error messages.
18496 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
18497 (Gnat1drv): Use a goto to end of main subprogram instead of
18498 Exit_Program (E_Success) so that finalization can occur normally.
18500 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
18502 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
18505 2006-02-13 Vincent Celier <celier@adacore.com>
18507 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
18508 Unchecked_Conversion functions.
18509 (Modification_Time): Use direct conversion of OS_Time to Calendar time
18510 when OpenVMS returns False.
18512 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
18513 a-dirval.adb (OpenVMS): New Boolean function
18515 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18516 Thomas Quinot <quinot@adacore.com>
18518 * checks.adb (Build_Discriminant_Checks): If the expression being
18519 checks is an aggregate retrieve the values of its discriminants to
18520 generate the check, rather than creating a temporary and a reference
18522 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
18523 (Install_Null_Excluding_Check): Ditto
18524 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
18525 not for the renamed object, so that the actual itype is attached in the
18528 2006-02-13 Robert Dewar <dewar@adacore.com>
18529 Vincent Celier <celier@adacore.com>
18531 * debug.adb: Eliminate numeric switches for binder/gnatmake
18533 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
18534 switches for the compiler.
18535 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
18536 (Scan_Make_Switches): When failing with an illegal switch, output an
18537 error message with the full switch.
18538 Eliminate numeric switches for binder/gnatmake
18540 * switch.ads, switch.adb (Bad_Switch): New procedure
18542 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
18543 Remove 0-9 as debug flag character possibilities
18544 -d is now controlling the primary stack size when its value is a
18545 positive. Also add checks against invalid values, and support for kb,
18546 mb. Ditto for -D switch.
18548 2006-02-13 Robert Dewar <dewar@adacore.com>
18549 Serguei Rybin <rybin@adacore.com>
18551 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
18552 save/restore routines.
18553 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
18554 were not always properly handled previously.
18555 Since we are changing the tree format anyway, also get rid of the
18556 junk obsolete Immediate_Errors flag.
18557 (Tree_Read): Change the way of reading Tree_Version_String - now we
18558 read the version string from the tree even if its length is not the
18559 same as the length of the version string computed from Gnatvsn.
18560 (Search_Directory_Present): New Boolean flag for the compiler.
18561 Define Tree_Version_String as a dynamic string.
18562 (Default_Stack_Size): new variable, used to handle switch -d.
18565 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
18566 only for main unit.
18567 Add pragma Ada_2005 (synonym for Ada_05)
18568 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
18569 were not always properly handled previously.
18571 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
18572 explicit Ada_95 to Ada_2005.
18574 2006-02-13 Javier Miranda <miranda@adacore.com>
18575 Robert Dewar <dewar@adacore.com>
18576 Ed Schonberg <schonberg@adacore.com>
18578 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
18579 against errors in the source program: a private types for which the
18580 corresponding full type declaration is missing and pragma CPP_Virtual
18582 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
18583 (Is_Known_Null): New flag
18584 (Has_Pragma_Pure): New flag
18585 (No_Return): Present in all entities, set only for procedures
18586 (Is_Limited_Type): A type whose ancestor is an interface is limited if
18587 explicitly declared limited.
18588 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
18589 entities. Only used for component marked Is_Tag. If present it stores
18590 the Offset_To_Top function used to provide this value in tagged types
18591 whose ancestor has discriminants.
18593 * exp_ch2.adb: Update status of new Is_Known_Null flag
18595 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
18597 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
18598 the categorization sense if Is_Pure was set by pragma Pure_Function.
18600 2006-02-13 Quentin Ochem <ochem@adacore.com>
18601 Olivier Hainque <hainque@adacore.com>
18603 * bindusg.adb: Updated documentation for -d and -D switches.
18605 * raise.h (__gnat_set_globals): added new parameter for
18606 Default_Stack_Size.
18608 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
18609 (__gnat_handle_vms_condition): Adjust context before raise.
18610 (__gnat_install_handler): Restore the global vector setup for GCC
18611 versions before 3.4, as the frame based circtuitry is not available
18613 (__gnat_set_globals): added a parameter default_stack_size
18614 (__gl_default_stack_size): new variable.
18616 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18618 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
18619 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
18620 does not exist in the Ada RM.
18621 (Compatible_Int_Bounds): Determine whether two integer range bounds
18622 are of equal length and have the same start and end values.
18623 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
18624 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
18625 aggregate when it is part of an object declaration.
18626 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
18627 constrains discriminants of its parent, add explicitly the discriminant
18628 constraints of the ancestor by retrieving them from the
18629 stored_constraint of the parent.
18631 2006-02-13 Robert Dewar <dewar@adacore.com>
18633 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
18634 attribute Mechanism_Code is applied to renamed subprogram, modify
18635 prefix to point to base subprogram.
18636 Max/Min attributes now violate Restriction No_Implicit_Conditionals
18638 * sinfo.ads: Document that Mechanism_Code cannot be applied to
18639 renamed subprograms so that the front-end must replace the prefix
18642 2006-02-13 Javier Miranda <miranda@adacore.com>
18643 Gary Dismukes <dismukes@adacore.com>
18645 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
18646 availability of RE_Interface_Tag.
18647 (Build_Initialization_Call): Fix wrong access to the discriminant value.
18648 (Freeze_Record_Type): Do not generate the tables associated with
18649 timed and conditional dispatching calls through synchronized
18650 interfaces if compiling under No_Dispatching_Calls restriction.
18651 When compiling for Ada 2005, for a nonabstract
18652 type with a null extension, call Make_Controlling_Function_Wrappers
18653 and insert the wrapper function declarations and bodies (the latter
18654 being appended as freeze actions).
18655 (Predefined_Primitive_Bodies): Do not generate the bodies of the
18656 predefined primitives associated with timed and conditional
18657 dispatching calls through synchronized interfaces if we are
18658 compiling under No_Dispatching_Calls.
18659 (Build_Init_Procedure): Use RTE_Available to check if a run-time
18660 service is available before generating a call.
18661 (Make_Controlling_Function_Wrappers): New procedure.
18662 (Expand_N_Full_Type_Declaration): Create a class-wide master for
18663 access-to-limited-interfaces because they can be used to reference
18664 tasks that implement such limited interface.
18665 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
18666 procedure spec and body of the Offset_To_Top function that is generated
18667 when the parent of a type with discriminants has secondary dispatch
18669 (Init_Secondary_Tags): Handle the case in which the parent of the type
18670 containing secondary dispatch tables has discriminants to generate the
18671 correct arguments to call Set_Offset_To_Top.
18672 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
18674 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
18675 Add Wide_[Wide_]Expanded_Name.
18676 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
18677 the same functionality of Get_Prim_Op_Address but applied to predefined
18678 primitive operations because the pointers to the predefined primitives
18679 are now saved in a separate table.
18680 (Parent_Size): Modified to get access to the separate table of primitive
18681 operations or the parent type.
18682 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
18683 functionality of Set_Prim_Op_Address but applied to predefined primitive
18685 (Set_Signature): New subprogram used to store the signature of a DT.
18686 (Displace): If the Offset_To_Top value is not static then call the
18687 function generated by the expander to get such value; otherwise use
18688 the value stored in the table of interfaces.
18689 (Offset_To_Top): The type of the actual has been changed to Address to
18690 give the correct support to tagged types with discriminants. In this
18691 case this value is stored just immediately after the tag field.
18692 (Set_Offset_To_Top): Two new formals have been added to indicate if the
18693 offset_to_top value is static and hence pass this value to the run-time
18694 to store it in the table of interfaces, or else if this value is dynamic
18695 and then pass to the run-time the address of a function that is
18696 generated by the expander to provide this value for each object of the
18699 * rtsfind.ads (Default_Prin_Op_Count): Removed.
18700 (Default_Prim_Op_Count): New entity
18701 (Get_Predefined_Prim_Op_Address): New entity
18702 (Set_Predefined_Prim_Op_Address): New entity
18703 (RE_Set_Signature): New entity
18705 2006-02-13 Thomas Quinot <quinot@adacore.com>
18706 Ed Schonberg <schonberg@adacore.com>
18708 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
18709 Make_Adjust_Call done for a newly-allocated object.
18711 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
18712 in a subprogram are wrapped in a cleanup block, indicate that the
18713 subprogram contains an inner block with an exception handler.
18714 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
18715 Adjust call is for a newly-allocated object. In that case we must not
18716 assume that the finalization list chain pointers are correct (since they
18717 come from a bit-for-bit copy of the original object's pointers) so if
18718 the attach level would otherwise be zero (no change), we set it to 4
18719 instead to cause the pointers to be reset to null.
18721 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
18722 reset chain pointers to null.
18724 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18726 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
18727 string, and the context requires a loop for the assignment (e.g.
18728 because the left-hand side is packed), generate a unique name for the
18729 temporary that holds the string, to prevent spurious name clashes.
18731 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18732 Javier Miranda <miranda@adacore.com>
18733 Robert Dewar <dewar@adacore.com>
18734 Gary Dismukes <dismukes@adacore.com>
18736 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
18737 return unconstrained arrays.
18739 (Expand_Call): An indirect call through an access parameter of a
18740 protected operation is not a protected call.
18741 Add circuit to raise CE in Ada 2005 mode following call
18742 to Raise_Exception.
18743 (Register_DT_Entry): Do nothing if
18744 the run-time does not give support to abstract interfaces.
18745 (Freeze_Subprogram): In case of dispatching operations, do not generate
18746 code to register the operation in the dispatch table if the source
18747 is compiled with No_Dispatching_Calls.
18748 (Register_Predefined_DT_Entry): Generate code that calls the new
18749 run-time subprogram Set_Predefined_Prim_Op_Address instead of
18750 Set_Prim_Op_Address.
18752 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
18753 on array assignments if the right-hand side is a function call that has
18754 been inlined. Check is performed on the assignment in the block.
18755 (Process_Bounds): If bounds and range are overloaded, apply preference
18756 rule for root operations to disambiguate, and diagnose true ambiguity.
18757 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
18758 a tag-indeterminate right-hand side even when Expander_Active is True.
18759 Needed to ensure that dispatching calls to T'Input are allowed and
18760 get the tag of the target class-wide object.
18762 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
18763 an inherited primitive operation that already overrides several
18764 abstract interface primitives. For transitivity, the new entity must
18765 also override all the abstract interface primitives covered by the
18766 inherited overriden primitive.
18767 Emit warning if new entity differs from homograph in same scope only in
18768 that one has an access parameter and the other one has a parameter of
18769 a general access type with the same designated type, at the same
18770 position in the signature.
18771 (Make_Inequality_Operator): Use source locations of parameters and
18772 subtype marks from corresponding equality operator when creating the
18773 tree structure for the implicit declaration of "/=". This does not
18774 change anything in behaviour except that the decoration of the
18775 components of the subtree created for "/=" allows ASIS to get the
18776 string images of the corresponding identifiers.
18777 (Analyze_Return_Statement): Remove '!' in warning message.
18778 (Check_Statement_Sequence): Likewise.
18779 (Analyze_Subprogram_Body): For an access parameter whose designated type
18780 is an incomplete type imported through a limited_with clause, use the
18781 type of the corresponding formal in the body.
18782 (Check_Returns): Implicit return in No_Return procedure now raises
18783 Program_Error with a compile time warning, instead of beging illegal.
18784 (Has_Single_Return): Function returning unconstrained type cannot be
18785 inlined if expression in unique return statement is not an identifier.
18786 (Build_Body_To_Inline): It is possible to inline a function call that
18787 returns an unconstrained type if all return statements in the function
18788 return the same local variable. Subsidiary procedure Has_Single_Return
18789 verifies that the body conforms to this restriction.
18791 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
18792 same type, and one of them is of an anonymous access type, convert
18793 the other operand to it, so that this is a valid binary operation for
18795 (Resolve_Type_Conversion): Handle subtypes of protected types and
18796 task types when accessing to the corresponding record type.
18797 (Resolve_Allocator): Add '\' in 2-line warning message.
18798 Remove '!' in warning message.
18799 (Resolve_Call): Add '\' in 2-line warning message.
18800 (Valid_Conversion): Likewise.
18801 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
18802 resulting type may be an access type with an implicit dereference.
18803 Obtain the proper component from the designated type.
18804 (Make_Call_Into_Operator): Handle properly a call to predefined equality
18805 given by an expanded name with prefix Standard, when the operands are
18806 of an anonymous access type.
18807 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
18808 Explicit_Dereference and Resolve_Selected_Component, to verify that the
18809 prefix of the expression is not of an incomplete type. Allows full
18810 diagnoses of all semantic errors.
18811 (Resolve_Actuals): If the actual is an allocator whose directly
18812 designated type is a class-wide interface we build an anonymous
18813 access type to use it as the type of the allocator. Later, when
18814 the subprogram call is expanded, if the interface has a secondary
18815 dispatch table the expander will add a type conversion to force
18816 the displacement of the pointer.
18817 (Resolve_Call): If a function that returns an unconstrained type is
18818 marked Inlined_Always and inlined, the call will be inlined and does
18819 not require the creation of a transient scope.
18820 (Check_Direct_Boolean_Op): Removed
18821 (Resolve_Comparison_Op): Remove call to above
18822 (Resolve_Equality_Op): Remove call to above
18823 (Resolve_Logical_Op): Inline above, since this is only call.
18824 (Valid_Conversion): Handle properly conversions between arrays of
18825 convertible anonymous access types.
18828 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
18829 the literal in an unchecked conversion, because GCC 4.x needs a static
18830 value for a string bound.
18832 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18833 Hristian Kirtchev <kirtchev@adacore.com>
18835 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
18836 components of the corresponding record, take into account component
18837 definitions that are access definitions.
18838 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
18839 procedure is not considered a dispatching call and will be expanded
18842 2006-02-13 Javier Miranda <miranda@adacore.com>
18844 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
18845 controlling argument of the dispatching call is an abstract interface
18846 class-wide type then we use it directly.
18847 Check No_Dispatching_Calls restriction.
18848 (Default_Prim_Op_Position): Remove the code that looks for the last
18849 entity in the list of aliased subprograms. This code was wrong in
18851 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
18852 when the source is compiled with the No_Dispatching_Calls restriction.
18853 (Init_Predefined_Interface_Primitives): No need to inherit primitives
18854 if we are compiling with restriction No_Dispatching_Calls.
18855 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
18856 subprograms if we are compiling under No_Dispatching_Calls restriction.
18857 (Make_DT): Generate a dispatch table with a single dummy entry if
18858 we are compiling with the No_Dispatching_Calls restriction. In
18859 addition, in this case we don't generate code that calls to the
18860 following run-time subprograms: Set_Type_Kind, Inherit_DT.
18861 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
18862 of this subprogram if compiling with the No_Dispatching_Calls
18864 (Expand_Type_Conversion): Instead of using the actual parameter,
18865 the argument passed as parameter to the conversion function was
18866 erroneously referenced by the expander.
18867 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
18868 Set_Predefined_Primitive_Op_Address and Set_Signature.
18869 (Expand_Dispatching_Call): Generate call to
18870 Get_Predefined_Prim_Op_Address for predefined primitives.
18871 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
18872 predefined primitives.
18873 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
18874 primitives we reserve one dummy entry to ensure that the tag does not
18875 point to some memory that is associated with some other object. In
18876 addition, remove all the old code that generated the assignments
18877 associated with the signature of the dispatch table and replace them
18878 by a call to the new subprogram Set_Signature.
18879 (Set_All_DT_Position): Change the algorithm because now we have a
18880 separate dispatch table associated with predefined primitive operations.
18881 (Expand_Interface_Conversion): In case of non-static offset_to_top
18882 add explicit dereference to get access to the object after the call
18883 to displace the pointer to the object.
18884 (Expand_Interface_Thunk): Modify the generation of the actual used
18885 in the calls to the run-time function Offset_To_Top to fulfil its
18887 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
18889 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18891 * exp_dist.adb (Copy_Specification): For access parameters, copy
18892 Null_Exclusion flag, which will have been set for stream subprograms
18895 2006-02-13 Pascal Obry <obry@adacore.com>
18897 * expect.c (__gnat_expect_portable_execvp): New implementation. The
18898 previous implementation was using the C runtime spawnve routine but
18899 the corresponding wait was using directly the Win32 API. This was
18900 causing some times a lock when waiting for an event using
18901 WaitForSingleObject in __gnat_waitpid. This new implementation uses
18902 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
18903 API fixes this problem.
18905 2006-02-13 Robert Dewar <dewar@adacore.com>
18907 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
18910 2006-02-13 Thomas Quinot <quinot@adacore.com>
18912 * exp_pakd.ads: Fix typos in comments.
18914 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
18915 array reference that is an explicit dereference, mark the converted
18916 (packed) array reference as analyzed to prevent a forthcoming
18917 reanalysis from resetting its type to the original (non-packed) array
18920 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18921 Javier Miranda <miranda@adacore.com>
18922 Eric Botcazou <ebotcazou@adacore.com>
18924 * exp_util.ads, exp_util.adb (Find_Prim_Op,
18925 Is_Predefined_Primitive_Operation): When
18926 searching for the predefined equality operator, verify that operands
18927 have the same type.
18928 (Is_Predefined_Dispatching_Operation): Remove the code that looks
18929 for the last entity in the list of aliased subprograms. This code
18930 was wrong in case of renamings.
18931 (Set_Renamed_Subprogram): New procedure
18932 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
18933 Exp_Type constant computed when entering this subprogram.
18934 (Known_Null): New function
18935 (OK_To_Do_Constant_Replacement): New function
18936 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
18937 (Side_Effect_Free): An attribute reference 'Input is not free of
18938 side effect, unlike other attributes that are functions. (from code
18940 (Remove_Side_Effects): Expressions that involve packed arrays or records
18941 are copied at the point of reference, and therefore must be marked as
18942 renamings of objects.
18943 (Is_Predefined_Dispatching_Operation): Return false if the operation is
18944 not a dispatching operation.
18947 (Remove_Side_Effects): Lift enclosing type conversion nodes for
18948 elementary types in all cases.
18950 2006-02-13 Javier Miranda <miranda@adacore.com>
18952 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
18953 task types when accessing to the corresponding record type.
18954 Remove '!' in warning message.
18956 2006-02-13 Olivier Hainque <hainque@adacore.com>
18958 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
18959 to avoid useless and space inefficient overalignments on targets where
18960 Max_Alignment is larger than 16.
18962 2006-02-13 Pascal Obry <obry@adacore.com>
18964 * g-catiio.adb (Sec_Number): New type used to compute the number of
18965 seconds since 1-1-1970.
18966 (Image) [Natural]: The parameter was an Integer, as we can't deal with
18967 negative numbers (years, months...) it is better to have a Natural here.
18969 (Image) [Number]: Change parameter from Long_Integer to Number.
18970 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
18971 overflow for dates past year 2038.
18973 2006-02-13 Matthew Heaney <heaney@adacore.com>
18975 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
18978 2006-02-13 Arnaud Charlet <charlet@adacore.com>
18980 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
18982 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
18983 finalization can occur normally.
18985 2006-02-13 Vincent Celier <celier@adacore.com>
18987 * gnatcmd.adb (Rules_Switches): New table
18988 (Add_To_Rules_Switches): New procedure
18989 (GNATCmd): For command CHECK, put all options following "-rules" in the
18990 Rules_Switches table. Append these -rules switches after the -cargs
18993 2006-02-13 Robert Dewar <dewar@adacore.com>
18995 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
18996 These two cases were generating incorrect output, and if this unit
18997 was built with checks on, generated a discriminant mismatch constraint
19000 2006-02-13 Ed Schonberg <schonberg@adacore.com>
19001 Robert Dewar <dewar@adacore.com>
19003 * lib-xref.adb (Get_Type_Reference): For a private type whose full
19004 view is an array type, indicate the component type as well, for
19005 navigation purposes.
19006 (Generate_Reference): Don't consider array ref on LHS to be a case
19007 of violating pragma Unreferenced.
19008 Do not give Ada 2005 warning except on real reference.
19010 2006-02-13 Vincent Celier <celier@adacore.com>
19012 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
19013 main source, add switch -mdebug-main=_ada_ so that the executable can
19014 be debugged by the standard VMS debugger.
19015 (Gnatmake): Set No_Main_Subprogram to True when there is no main
19016 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
19017 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
19018 of the last source, as the binding and linking phases are never
19020 Set all executable obsolete when rebuilding a library.
19022 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
19025 2006-02-13 Javier Miranda <miranda@adacore.com>
19028 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
19029 code to improve the error message reported when the program has
19030 declarations of abstract interface types and it is not compiled with
19031 the -gnat05 switch.
19032 (P_Access_Definition): Reorganize the code to improve the error
19033 message reported when the new Ada 2005 syntax for anonymous
19034 access types is used and the program is not compiled with the
19037 2006-02-13 Robert Dewar <dewar@adacore.com>
19039 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
19040 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
19043 2006-02-13 Javier Miranda <miranda@adacore.com>
19045 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
19046 against source containing syntax errors.
19048 2006-02-13 Vincent Celier <celier@adacore.com>
19050 * prj.adb (Reset): Initialize the first element of table Namings with
19051 the standard naming data.
19053 2006-02-13 Vincent Celier <celier@adacore.com>
19055 * prj.ads (Error_Warning): New enumeration type
19057 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
19058 unknown, use the location of the project to report the error.
19059 (When_No_Sources): New global variable
19060 (Report_No_Ada_Sources): New procedure
19061 (Check): New parameter When_No_Sources. Set value of global variable
19063 (Find_Sources): Call Report_No_Ada_Sources when appropriate
19064 (Get_Sources_From_File): Ditto
19065 (Warn_If_Not_Sources): Better warning messages indicating the unit name
19068 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
19069 Call Prj.Proc.Process with parameter When_No_Sources.
19071 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
19072 Call Recursive_Check with parameter When_No_Sources.
19073 (Recursive_Check): New parameter When_No_Sources. Call itself and
19074 Prj.Nmsc.Check with parameter When_No_Sources.
19075 (Process): New parameter When_No_Sources. Call Check with parameter
19077 (Copy_Package_Declarations): New procedure to copy renamed parameters
19078 and setting the location of the declared attributes to the location
19079 of the renamed package.
19080 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
19083 2006-02-13 Vincent Celier <celier@adacore.com>
19085 * prj-makr.adb (Make): Preserve the comments from the original project
19087 When removing nodes (attributes Source_Dirs, Source_Files,
19088 Source_List_File and package Naming), save the comments and attach the
19089 saved comments to the newly created nodes.
19090 Do not add a with clause for the naming package if one already exists.
19092 2006-02-13 Javier Miranda <miranda@adacore.com>
19093 Gary Dismukes <dismukes@adacore.com>
19094 Robert Dewar <dewar@adacore.com>
19096 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
19098 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
19099 aliased entities to look for the overriden abstract interface
19101 (Is_Interface_Subprogram): Complete documentation.
19102 (Check_Dispatching_Operation): Do not generate code to register the
19103 operation in the dispatch table if the source is compiled with
19104 restriction No_Dispatching_Calls.
19105 (Override_Dispatching_Operation): Check for illegal attempt to override
19106 No_Return procedure with procedure that is not No_Return
19107 (Check_Dispatching_Call): Suppress the check for an abstract operation
19108 when the original node of an actual is a tag-indeterminate attribute
19109 call, since the attribute, which must be 'Input, can never be abstract.
19110 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
19111 call to the Input attribute (even when rewritten).
19112 (Propagate_Tag): Augment comment to indicate the possibility of a call
19113 to an Input attribute.
19115 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
19116 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
19118 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
19119 No_Wide_Characters is no longer partition-wide
19120 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
19123 2006-02-13 Douglas Rupp <rupp@adacore.com>
19125 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
19127 2006-02-13 Javier Miranda <miranda@adacore.com>
19129 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
19130 handles default-initialized components to keep separate the management
19131 of this feature but also avoid the unrequired resolution and
19132 expansion of components that do not have partially initialized
19134 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
19135 (Check_Bounds): Likewise.
19136 (Check_Length): Likewise.
19138 2006-02-13 Javier Miranda <miranda@adacore.com>
19139 Ed Schonberg <schonberg@adacore.com>
19141 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
19142 abstract interface type call analyze_and_resolve to expand the type
19143 conversion into the corresponding displacement of the
19144 reference to the base of the object.
19145 (Eval_Attribute, case Width): For systems where IEEE extended precision
19146 is supported, the maximum exponent occupies 4 decimal digits.
19147 (Accessibility_Message): Add '\' in 2-line warning message.
19148 (Resolve_Attribute): Likewise.
19149 (case Attribute_Access): Significantly revise checks
19150 for illegal access-to-subprogram Access attributes to properly enforce
19151 the rules of 3.10.2(32/2).
19152 Diagnose use of current instance with an illegal attribute.
19154 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
19156 (Enclosing_Generic_Unit): New function to return a node's innermost
19157 enclosing generic declaration node.
19158 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
19159 (Type_Access_Level): The accessibility level of anonymous acccess types
19160 associated with discriminants is that of the current instance of the
19161 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
19162 (Compile_Time_Constraint_Error): Handle case of conditional expression.
19163 (Kill_Current_Values_For_Entity): New function
19164 (Enter_Name): Change formal type to Entity_Id
19166 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
19167 Ed Schonberg <schonberg@adacore.com>
19168 Gary Dismukes <dismukes@adacore.com>
19170 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
19171 Analyze_Compilation_Unit.
19172 Detect and warn on redundant with clauses detected in a package spec
19173 and/or body when -gnatwr is used.
19174 (Analyze_Context): Analyze config pragmas before other items
19175 (Install_Context_Items): Don't analyze config pragmas here
19176 (Install_Limited_Withed_Unit): Set limited entity of package in
19177 with_clause so that cross-reference information or warning messages on
19178 unused packages can be properly generated
19179 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
19180 has Error_Posted set. Prevent infinite loops in illegal programs.
19181 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
19182 to the point of the error test requiring the current unit to be private.
19183 This ensures that private with clauses are not exempted from the basic
19184 checking for being a descendant of the same library unit parent as a
19185 withed private descendant unit.
19186 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
19187 handle private with clauses properly, as well as to account for cases
19188 where the withed unit is a public descendant of a private ancestor
19189 (in which case the current unit must be a descendant of the private
19190 ancestor's parent). The spec comments were updated accordingly. Also,
19191 the old error message in this subprogram was replaced with error
19192 messages that mirror the errors tested and reported by
19193 Check_Private_Child_Unit.
19194 Parameter and variable names improved for readability.
19195 (Install_Limited_Context_Clauses): Remove test for a withed unit being
19196 private as the precondition for calling
19197 Check_Private_Limited_Withed_Unit since that subprogram has been
19198 revised to test public units as well as private units.
19200 2006-02-13 Thomas Quinot <quinot@adacore.com>
19201 Robert Dewar <dewar@adacore.com>
19202 Ed Schonberg <schonberg@adacore.com>
19203 Javier Miranda <miranda@adacore.com>
19205 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
19206 that Scope_Stack.First = 1.
19207 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
19208 were not always properly handled previously.
19209 (Formal_Entity): Complete rewrite, to handle properly some complex case
19210 with multiple levels of parametrization by formal packages.
19211 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
19212 to the corresponding derived type declaration for proper semantics.
19214 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
19215 (Check_Component): Enforce restriction on components of
19216 unchecked_unions: a component in a variant cannot contain tasks or
19218 (Unchecked_Union): Allow nested variants and multiple discriminants, to
19220 Add pragma Ada_2005 (synonym for Ada_05)
19221 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
19222 were not always properly handled previously.
19223 Document that pragma Propagate_Exceptions has no effect
19224 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
19225 (Set_Convention_From_Pragma): Check that if a convention is
19226 specified for a dispatching operation, then it must be
19227 consistent with the existing convention for the operation.
19228 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
19229 longer required to specify an vtable-ptr component in the record. For
19230 compatibility reasons we leave the support for the previous definition.
19231 (Analyze_Pragma, case No_Return): Allow multiple arguments
19233 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
19234 non-overrideen inherited operation with a controlling result as
19235 illegal only its implicit declaration comes from the derived type
19236 declaration of its result's type.
19237 (Check_Possible_Deferred_Completion): Relocate the object definition
19238 node of the subtype indication of a deferred constant completion rather
19239 than directly analyzing it. The analysis of the generated subtype will
19240 correctly decorate the GNAT tree.
19241 (Record_Type_Declaration): Check whether this is a declaration for a
19242 limited derived record before analyzing components.
19243 (Analyze_Component_Declaration): Diagnose record types not explicitly
19244 declared limited when a component has a limited type.
19245 (Build_Derived_Record_Type): Code reorganization to check if some of
19246 the inherited subprograms of a tagged type cover interface primitives.
19247 This check was missing in case of a full-type associated with a private
19249 (Constant_Redeclaration): Check that the subtypes of the partial and the
19250 full view of a constrained deferred constant statically match.
19251 (Mentions_T): A reference to the current type in an anonymous access
19252 component declaration must be an entity name.
19253 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
19254 class_wide type to refer to full type, not to the incomplete one.
19255 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
19256 available. Required to give support to the certified run-time.
19257 (Analyze_Component_Declaration): In case of anonymous access components
19258 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
19259 (Process_Discriminants): For an access discriminant, use the
19260 discriminant specification as the associated_node_for_itype, to
19261 simplify accessibility checks.
19263 2006-02-13 Ed Schonberg <schonberg@adacore.com>
19264 Javier Miranda <miranda@adacore.com>
19266 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
19267 abstract interpretations on an operator, remove interpretations that
19268 yield Address or a type derived from it, if one of the operands is an
19270 (Try_Object_Operation.Try_Primitive_Operation,
19271 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
19272 location when creating the new reference to a primitive or class-wide
19273 operation as a part of rewriting a subprogram call.
19274 (Try_Primitive_Operations): If context requires a function, collect all
19275 interpretations after the first match, because there may be primitive
19276 operations of the same type with the same profile and different return
19277 types. From code reading.
19278 (Try_Primitive_Operation): Use the node kind to choose the proper
19279 operation when a function and a procedure have the same parameter
19281 (Complete_Object_Operation): If formal is an access parameter and prefix
19282 is an object, rewrite as an Access reference, to match signature of
19283 primitive operation.
19284 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
19285 by an expanded name with prefix Standard, when the operands are of an
19286 anonymous access type.
19287 (Remove_Abstract_Operations): If the operation is abstract because it is
19288 inherited by a user-defined type derived from Address, remove it as
19289 well from the set of candidate interpretations of an overloaded node.
19290 (Analyze_Membership_Op): Membership test not applicable to cpp-class
19293 2006-02-13 Bob Duff <duff@adacore.com>
19295 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
19296 redundant use clauses.
19297 In particular, if the scope of two use clauses overlaps, but one is not
19298 entirely included in the other, we should not warn. This can happen
19299 with nested packages.
19300 (Analyze_Subprogram_Renaming): Protect the compiler against previously
19301 reported errors. The bug was reported when the compiler was built
19302 with assertions enabled.
19303 (Find_Type): If the node is a 'Class reference and the prefix is a
19304 synchronized type without a corresponding record, return the type
19307 2006-02-13 Javier Miranda <miranda@adacore.com>
19309 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
19310 if this is the full-declaration associated with a private declaration
19311 that implement interfaces, then the private type declaration must be
19313 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
19314 as aliased. The use of the 'access attribute is not available for such
19315 object (for this purpose the object should be explicitly marked as
19316 aliased, but being an anonymous type this is not possible).
19318 2006-02-13 Ed Schonberg <schonberg@adacore.com>
19319 Robert Dewar <dewar@adacore.com>
19321 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
19322 compilation unit is an elaboration scope.
19323 (Add_Task_Proc): Add '\' in 2-line warning message.
19324 (Activate_All_Desirable): Deal with case of unit with'ed by parent
19326 2006-02-13 Ed Schonberg <schonberg@adacore.com>
19327 Javier Miranda <miranda@adacore.com>
19329 * sem_type.adb (Write_Overloads): Improve display of candidate
19331 (Add_One_Interp): Do not add to the list of interpretations aliased
19332 entities corresponding with an abstract interface type that is an
19333 immediate ancestor of a tagged type; otherwise we have a dummy
19334 conflict between this entity and the aliased entity.
19335 (Disambiguate): The predefined equality on universal_access is not
19336 usable if there is a user-defined equality with the proper signature,
19337 declared in the same declarative part as the designated type.
19338 (Find_Unique_Type): The universal_access equality operator defined under
19339 AI-230 does not cover pool specific access types.
19340 (Covers): If one of the types is a generic actual subtype, check whether
19341 it matches the partial view of the other type.
19343 2006-02-13 Thomas Quinot <quinot@adacore.com>
19345 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
19346 line. This is necessary to allow In_Extended_Main_Unit to provide
19347 correct results for itypes while writing out expanded source.
19348 (Close_File): No need to update the source_index_table here since it's
19349 now done for each line.
19351 2006-02-13 Ed Schonberg <schonberg@adacore.com>
19352 Robert Dewar <dewar@adacore.com>
19354 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
19355 preserve the source unit where the itype is declared, and prevent a
19357 (Note_Implicit_Run_Time_Call): New procedure
19358 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
19361 * sprint.ads: Document use of $ for implicit run time routine call
19363 2006-02-13 Quentin Ochem <ochem@adacore.com>
19365 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
19368 2006-02-13 Bob Duff <duff@adacore.com>
19370 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
19371 Scan_Unsigned, so we do not scan leading blanks and sign twice.
19372 Integer'Value("- 5") and Integer'Value("-+5") now correctly
19373 raise Constraint_Error.
19375 * s-vallli.adb (Scan_Long_Long_Integer): Call
19376 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
19377 do not scan leading blanks and sign twice.
19378 Integer'Value("- 5") and Integer'Value("-+5") now correctly
19379 raise Constraint_Error.
19381 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
19382 Scan_Long_Long_Unsigned): Split out most of the processing from
19383 Scan_Long_Long_Unsigned out into
19384 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
19385 This prevents scanning leading blanks and sign twice.
19386 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
19389 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
19390 out most of the processing from Scan_Unsigned out into
19391 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
19392 This prevents scanning leading blanks and sign twice.
19394 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
19395 use with Modular'Value attribute.
19396 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
19399 2006-02-13 Robert Dewar <dewar@adacore.com>
19401 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
19403 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
19405 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
19406 (PPC VxWorks): Likewise.
19407 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
19408 (forced_callee): Make non-inlinable and non-pure.
19409 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
19411 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19412 Ben Brosgol <brosgol@adacore.com>
19413 Robert Dewar <dewar@adacore.com>
19415 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
19417 Document that gnatbind -M option is for cross environments only.
19418 Added description of using gnatmem to trace gnat rtl allocs and deallocs
19419 Add note on use of $ to label implicit run time calls
19420 Add documentation for -gnatyI (check mode IN)
19421 Updated chapter on compatibility with HP Ada
19422 VMS-oriented edits.
19423 Ran spell and corrected errors
19424 Add documentation for gnatbind -d and rework documentation of -D
19426 Add subprogram/data elimination section.
19427 Minor editing of annex A.
19428 Add section for gnatcheck.
19429 Add documentation for restriction No_Dispatching_Calls
19430 Add documentation for pragma Ada_2005
19431 Remove mention of obsolete pragma Propagate_Exceptions
19432 Document that pragma Unreferenced can appear after DO in ACCEPT
19433 Clarify Pure_Function for library level units
19434 Mention Max/Min in connection with No_Implicit_Conditionals
19435 No_Wide_Characters restriction is no longer partition-wide
19436 Add a nice example for Universal_Literal_String attribute
19437 Document that pragma No_Return can take multiple arguments
19439 * ug_words: Added entry for gnatcheck
19441 * g-ctrl_c.ads (Install_Handler): Enhance comments
19443 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
19445 * g-trasym.ads: Add documentation on how to do off line symbolic
19446 traceback computation.
19448 * s-fatgen.adb: Add comments for Unaligned_Valid
19450 * stand.ads: Fix typo in comment
19452 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
19454 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
19456 2006-02-06 Roger Sayle <roger@eyesopen.com>
19458 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
19460 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19463 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
19464 implementation that calls __main.
19466 2006-01-25 Peter O'Gorman <peter@pogma.com>
19469 * Makefile.in (GCC_LINK): Remove quotes.
19470 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
19473 (powerpc-darwin): Pass -shared-libgcc when building shared library.
19475 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19478 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
19480 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19482 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
19484 2005-12-12 Arnaud Charlet <charlet@adacore.com>
19486 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
19489 2005-12-12 Arnaud Charlet <charlet@adacore.com>
19491 * Make-lang.in: Update dependencies
19493 2005-12-12 Arnaud Charlet <charlet@adacore.com>
19495 * Make-lang.in: Add rule for ada/exp_sel.o
19497 2005-12-12 Arnaud Charlet <charlet@adacore.com>
19499 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
19501 2005-12-09 Arnaud Charlet <charlet@adacore.com>
19503 * gnatvsn.ads (Library_Version): Bump to version 4.2
19504 (ASIS_Version_Number): Bumped.
19506 2005-12-09 Doug Rupp <rupp@adacore.com>
19508 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
19509 Ada bind file prefix on VMS from b$ to b__.
19510 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
19513 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
19514 Targparm.OpenVMS_On_Target.
19515 (Object_Suffix): Initialize with target object suffix.
19516 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
19518 * butil.adb: Change some Hostparm.OpenVMS checks to
19519 Targparm.OpenVMS_On_Target.
19521 * clean.adb: Change some Hostparm.OpenVMS checks to
19522 Targparm.OpenVMS_On_Target.
19523 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
19524 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
19525 Ada bind file prefix on VMS from b$ to b__.
19527 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
19528 --GCC so that Get_Target_Parameters can find system.ads.
19529 (Gnatlink): Call Get_Target_Parameters in mainline.
19530 Initialize standard packages for Targparm.
19531 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
19532 (Process_Args): Also Check for object files with target object
19534 (Make_Binder_File_Names): Create with target object extension.
19535 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
19538 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
19539 Targparm.OpenVMS_On_Target.
19540 ({declaration},Build_Library,Check_Library): Change Ada bind file
19541 prefix on VMS from b$ to b__.
19543 * osint-b.adb: Change some Hostparm.OpenVMS checks to
19544 Targparm.OpenVMS_On_Target.
19545 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
19548 * targext.c: New file.
19550 * Makefile.in: add support for vxworks653 builds
19551 (../../vxaddr2line): gnatlink with targext.o.
19552 (TOOLS_LIBS): Move targext.o to precede libgnat.
19553 (init.o, initialize.o): Minor clean up in dependencies.
19554 (GNATLINK_OBJS): Add targparm.o, snames.o
19555 Add rules fo building targext.o and linking it explicitly with all
19557 Also add targext.o to gnatlib.
19559 * Make-lang.in: Add rules for building targext.o and linking it in
19560 with gnat1 and gnatbind.
19561 Add entry for exp_sel.o.
19563 * osint.adb Change some Hostparm.OpenVMS checks to
19564 Targparm.OpenVMS_On_Target.
19565 (Object_File_Name): Use target object suffix.
19567 * osint.ads (Object_Suffix): Remove, no longer used.
19568 (Target_Object_Suffix): Initialize with target object suffix.
19570 * rident.ads: Add special exception to license.
19572 * targparm.adb (Get_Target_Parameters): Set the value of
19573 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
19575 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
19577 * targparm.ads: Add special exception to license.
19579 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
19581 (Copy_File): Make sure from file is closed if error on to file
19582 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
19584 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
19585 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
19587 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
19588 target object suffix.
19590 2005-12-09 Jose Ruiz <ruiz@adacore.com>
19591 Quentin Ochem <ochem@adacore.com>
19592 Florian Villoing <villoing@adacore.com>
19594 * a-taster.ads, a-taster.adb: New files.
19596 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
19597 link to the version that does nothing. This way the task termination
19598 routine is not executed twice for the environment task when finishing
19599 because of an unhandled exception.
19601 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
19602 handler because of an unhandled exception.
19604 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
19605 System.Tasking.Utilities instead of that in System.Tasking.Stages.
19607 * s-finimp.adb (initialization code): Modify the soft link for the
19608 finalization of the global list instead of Adafinal.
19610 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
19611 non-tasking version of the soft link for task termination. We do
19612 nothing since if we are using the non-tasking version it
19613 means that the task termination functionality is not used.
19614 (Null_Finalize_Global_List): Add this null version for the procedure
19615 in charge of finalizing the global list for controlled objects.
19616 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
19617 instead for handling run-time termination in a more flexible way.
19618 (Adafinal_NT): This new procedure will take care of finalizing the
19619 global list for controlled objects if needed, but no tasking
19622 * s-tarest.adb (Task_Lock): Do not try to lock again the
19623 Global_Task_Lock if we already own it. Otherwise, we get blocked in
19624 some run-time operations.
19625 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
19626 until all nested locks have been released.
19627 (Task_Wrapper): Call the fall-back task termination handler. It
19628 applies to all tasks but the environment task.
19629 (Finalize_Global_Tasks): Add the call for the task termination
19630 procedure for the environment task.
19631 (Task_Wrapper): suppress warnings around declaration of
19632 Secondary_Stack_Address.
19634 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
19635 moved to the Common_ATCB record.
19636 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
19637 Common_ATCB record.
19638 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
19639 Common_ATCB record.
19641 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
19642 Fall_Back_Handler, and Specific_Handler.
19644 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
19645 defined in Ada.Task_Termination, to avoid circular dependencies.
19646 (Termination_Handler): Redefine this type here, alredy defined in
19647 Ada.Task_Termination, for avoiding circular dependencies.
19648 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
19649 for storing task termination handlers. In addition,
19650 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
19651 Common_ATCB because it is used by both the regular and the restricted
19653 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
19654 Common_ATCB because it is used by both the regular and the restricted
19656 (Common_ATCB): Added a dynamic task analyzer field.
19658 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
19659 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
19660 (Task_Wrapper): Call the task termination handler. It applies to all
19661 tasks but the environment task.
19662 (Finalize_Global_Tasks): Call the task termination procedure for the
19663 environment task. The call to Finalize_Global_List is now performed
19664 using the soft links mechanism.
19665 (Task_Wrapper): added dynamic stack analysis.
19667 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
19668 potentially blocking operations has been moved from
19669 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
19670 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
19671 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
19672 this run-time check.
19674 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
19675 of task termination procedure.
19676 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
19677 link for the task termination procedure.
19679 * bindusg.adb: (Bindusg): Added documentation for -u option.
19681 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
19682 (Get_Main_C): Add handling of dynamic stack analysis.
19683 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
19685 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
19686 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
19687 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
19689 * opt.ads: Added flags used by dynamic stack measurement.
19690 (Max_Line_Length): Remove (not used anymore)
19692 * s-io.ads, s-io.adb (Standard_Error): new subprogram
19693 (Standart_Output): new subprogram
19694 (Set_Output): new subprogram
19695 (Put): now uses the value of Current_Out to know if the output has to be
19696 send to stderr or stdout.
19698 * s-stausa.ads: Complete implementation.
19700 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
19702 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
19703 list of Ada 05 files.
19704 (GNAT Library Units): Add AltiVec files.
19706 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
19707 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
19708 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
19710 2005-12-09 Nicolas Setton <setton@adacore.com>
19712 * adaint.c (__gnat_locate_regular_file): Return immediately if
19713 file_name is empty.
19715 2005-12-09 Javier Miranda <miranda@adacore.com>
19716 Hristian Kirtchev <kirtchev@adacore.com>
19718 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
19719 to the specification because the frontend generates code that uses this
19721 (Set_Interface_Table): Add missing assertion.
19722 Update documentation describing the run-time structure.
19723 (Displace): New subprogram that displaces the pointer to the object
19724 to reference one of its secondary dispatch tables.
19725 (IW_Membership): Modified to use the new table of interfaces.
19726 (Inherit_TSD): Modified to use the new table of interfaces.
19727 (Register_Interface_Tag): Use the additional formal to fill the
19728 contents of the new table of interfaces.
19729 (Set_Interface_Table): New subprogram that stores in the TSD the
19730 pointer to the table of interfaces.
19731 (Set_Offset_To_Top): Use the additional formal to save copy of
19732 the offset value in the table of interfaces.
19733 Update structure of GNAT Primary and Secondary dispatch table diagram.
19734 Add comment section on GNAT dispatch table prologue.
19735 (Offset_To_Signature): Update the constant value of the Signature field.
19736 (Dispatch_Table): Update comment on hidden fields in the prologue.
19737 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
19738 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
19739 the type of formal parameter T to Tag, introduce additional assertions.
19740 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
19742 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
19744 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
19745 in all the calls to Expand_Interface_Thunk. Instead of referencing the
19746 record component containing the tag of the secondary dispatch table we
19747 have to use the Offset_To_Top run-time function to get this information;
19748 otherwise if the pointer to the base of the object has been displace
19749 we get a wrong value if we use the 'position attribute.
19751 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
19752 all the calls to Expand_Interface_Thunk.
19753 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
19754 interfaces; hence the call to Set_Interface_Table was clearly wrong.
19755 (Collect_All_Interfaces): Modify the internal subprogram Collect to
19756 ensure that the interfaces implemented by the ancestors are placed
19757 at the header of the generated list.
19758 (Expand_Interface_Conversion): Handle the case in which the displacement
19759 associated with the interface conversion is not statically known. In
19760 this case we generate a call to the new run-time subprogram Displace.
19761 (Make_DT): Generate and fill the new table of interfaces.
19762 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
19763 Get_Tagged_Kind and Set_Tagged_Kind.
19764 (Tagged_Kind): New function that determines the tagged kind of a type
19765 with respect to limitedness and concurrency and returns a reference to
19767 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
19768 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
19769 primary dispatch table for a type.
19770 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
19771 secondary dispatch table respectively of a tagged type.
19773 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
19774 (Expand_Interface_Conversion): New subprogram to indicate if the
19775 displacement of the type conversion is statically known.
19776 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
19778 * rtsfind.ads (RE_Offset_To_Top): New entity
19779 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
19780 accessible to users.
19781 (Re_Displace): New entity
19782 (RE_Interface_Data): New entity
19783 (RE_Set_Interface_Data): New_Entity
19784 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
19785 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
19786 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
19787 RE_TK_Tagged, RE_TK_Task.
19789 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
19790 Init_Secondary_Tags_Internal to allow its use with interface types and
19791 also to generate the code for the new additional actual required
19792 by Set_Offset_To_Top.
19793 (Build_Init_Statements): In case of components associated with abstract
19794 interface types there is no need to generate a call to its IP.
19795 (Freeze_Record_Type): Generate Select Specific Data tables only for
19797 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
19798 the bodies and specifications of the predefined primitive operations
19799 dealing with dispatching selects and abort, 'Callable, 'Terminated only
19800 for concurrent types.
19802 * exp_sel.ads, exp_sel.adb: New files.
19804 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
19805 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
19806 properly protected objects and attach handler in the case of the
19807 restricted profile.
19808 Move embeded package Select_Expansion_Utilities into a separate external
19810 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
19811 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
19812 (Build_K, Build_S_Assignment): New subprograms, part of the select
19813 expansion utilities.
19814 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
19815 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
19816 where the trigger is a dispatching procedure of a limited tagged type.
19818 2005-12-09 Olivier Hainque <hainque@adacore.com>
19820 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
19821 pointer initialization values. Make a SAVE_EXPR instead. Add comments
19822 about the use and expansion of SAVE_EXPRs in the various possible
19823 renaming handling cases.
19824 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
19825 abusing DECL_FCONTEXT.
19827 2005-12-09 Matthew Heaney <heaney@adacore.com>
19829 * a-convec.adb (Merge): Added assertions to check whether vector params
19832 * a-coinve.adb (Merge): Added assertions to check whether vector params
19835 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
19837 (Cursor'Read): raises PE
19839 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
19840 to its default value.
19842 * a-cihama.adb: Manually check whether cursor's key and elem are
19845 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
19846 (Merge): Assert that target and source lists are in order
19847 (Swap): Declare non-const temporaries, to pass to Splice
19849 * a-cdlili.ads: (Splice): Changed param name and param mode
19851 * a-cdlili.adb: (Splice): Changed param name and param mode
19852 (Merge): Assert that target and source lists are in order
19853 (Swap): Declare non-const temporaries, to pass to Splice
19855 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
19856 (Write): declare Stream param as not null
19858 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
19859 an exception message.
19861 2005-12-09 Thomas Quinot <quinot@adacore.com>
19862 Robert Dewar <dewar@adacore.com>
19864 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
19865 which is the absolute maximum length we can support.
19867 * frontend.adb: For the processing of configuration pragma files,
19868 remove references to Opt.Max_Line_Length, which is not checked anymore.
19870 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
19873 * scn.adb, scng.adb:
19874 Always check line length against the absolute supported maximum,
19875 Hostparm.Max_Line_Length.
19877 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
19878 value for the maximum line length is Max_Line_Length (not
19879 Column_Number'Last).
19880 Minor error msg update
19881 (Set_Style_Check_Options): New interface returning error msg
19882 Minor code reorganization (processing for 'M' was out of alpha order)
19884 * switch-c.adb: New interface for Set_Style_Check_Options
19886 * stylesw.ads (Set_Style_Check_Options): New interface returning error
19889 2005-12-09 Javier Miranda <miranda@adacore.com>
19891 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
19892 with IP subprogram were only supported if there were limited types.
19894 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
19895 records with IP subprogram were only supported if there were limited
19898 2005-12-09 Olivier Hainque <hainque@adacore.com>
19899 Eric Botcazou <ebotcazou@adacore.com>
19901 * trans.c (tree_transform, emit_check): Adjust calls to
19902 build_call_raise, passing the now expected GNAT_NODE argument.
19904 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
19905 source line information than what the current global locus indicates
19908 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
19909 field has overflowed.
19910 (build_call_raise): Add a GNAT_NODE argument to convey better source
19911 line information than what the current global locus indicates when
19913 (build_component_ref): Adjust call to build_call_raise.
19915 2005-12-09 Pascal Obry <obry@adacore.com>
19917 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
19918 the iterator is quitting iteration on parent directory.
19920 2005-12-09 Javier Miranda <miranda@adacore.com>
19922 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
19923 and the assignment to a class-wide object, before the assignment we
19924 generate a run-time check to ensure that the tag of the Target is
19925 covered by the tag of the source.
19927 2005-12-09 Robert Dewar <dewar@adacore.com>
19929 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
19930 parameter in call to Image_Wide_Character.
19932 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
19933 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
19934 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
19935 annoying FFFE/FFFF inconsistency.
19937 2005-12-09 Robert Dewar <dewar@adacore.com>
19938 Javier Miranda <miranda@adacore.com>
19939 Ed Schonberg <schonberg@adacore.com>
19941 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
19942 of type conversion.
19943 (Find_Interface): New subprogram that given a tagged type and one of its
19944 component associated with the secondary table of an abstract interface
19945 type, return the entity associated with such abstract interface type.
19946 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
19947 base type to create anonymous subtype, because entity may be a locally
19948 declared subtype or generic actual.
19949 (Find_Interface): New subprogram that given a tagged type and one of its
19950 component associated with the secondary table of an abstract interface
19951 type, return the entity associated with such abstract interface type.
19953 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
19954 conversion cannot be handled at compile time. In this case we pass this
19955 information to the expander to generate the appropriate code.
19957 2005-12-09 Robert Dewar <dewar@adacore.com>
19958 Ed Schonberg <schonberg@adacore.com>
19959 Gary Dismukes <dismukes@adacore.com>
19960 Javier Miranda <miranda@adacore.com>
19961 Hristian Kirtchev <kirtchev@adacore.com>
19963 * einfo.adb (Itype_Printed): New flag
19964 (Is_Limited_Type): Derived types do not inherit limitedness from
19965 interface progenitors.
19966 (Is_Return_By_Reference_Type): Predicate does not apply to limited
19969 * einfo.ads (Itype_Printed): New flag
19970 Move Is_Wrapper_Package to proper section
19971 Add missing Inline for Is_Volatile
19973 * output.ads, output.adb (Write_Erase_Char): New procedure
19974 (Save/Restore_Output_Buffer): New procedures
19975 (Save/Restore_Output_Buffer): New procedures
19977 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
19978 Add missing support for anonymous access type
19979 (Write_Id): Insert calls to Write_Itype
19980 (Write_Itype): New procedure to output itypes
19982 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
19983 use of "limited" in declaration.
19985 * sinfo.ads, sinfo.adb:
19986 Formal derived types can carry an explicit "limited" indication.
19988 * sem_ch3.adb: Add with and use of Targparm.
19989 (Create_Component): If Frontend_Layout_On_Target is True and the
19990 copied component does not have a known static Esize, then reset
19991 the size and positional fields of the new component.
19992 (Analyze_Component_Declaration): A limited component is
19993 legal within a protected type that implements an interface.
19994 (Collect_Interfaces): Do not add to the list the interfaces that
19995 are implemented by the ancestors.
19996 (Derived_Type_Declaration): If the parent of the full-view is an
19997 interface perform a transformation of the tree to ensure that it has
19998 the same parent than the partial-view. This simplifies the job of the
19999 expander in order to generate the correct object layout, and it is
20000 needed because the list of interfaces of the full-view can be given in
20002 (Process_Full_View): The parent of the full-view does not need to be
20003 a descendant of the parent of the partial view if both parents are
20005 (Analyze_Private_Extension_Declaration): If declaration has an explicit
20006 "limited" the parent must be a limited type.
20007 (Build_Derived_Record_Type): A derived type that is explicitly limited
20008 must have limited ancestor and progenitors.
20009 (Build_Derived_Type): Ditto.
20010 (Process_Full_View): Verify that explicit uses of "limited" in partial
20011 and full declarations are consistent.
20012 (Find_Ancestor_Interface): Remove function.
20013 (Collect_Implemented_Interfaces): New procedure used to gather all
20014 implemented interfaces by a type.
20015 (Contain_Interface): New function used to check whether an interface is
20017 (Find_Hidden_Interface): New function used to determine whether two
20018 lists of interfaces constitute a set equality. If not, the first
20019 differing interface is returned.
20020 (Process_Full_View): Improve the check for the "no hidden interface"
20021 rule as defined by AI-396.
20023 2005-12-09 Robert Dewar <dewar@adacore.com>
20025 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
20026 types, not on record subtypes.
20027 (Freeze_Entity): Code cleanup. Add barrier to the loop
20028 that generates the references for primitive operations. This allows to
20029 remove an unnecessary exception handler.
20030 Code reformatting and comment clean ups.
20032 2005-12-09 Vincent Celier <celier@adacore.com>
20034 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
20035 If GNAT CHECK is called with a project file, but with no
20036 source on the command line, call gnatcheck with all the compilable
20037 sources of the project.
20038 Take into account the new command Check, for gnatcheck. Treat as for
20039 other ASIS tools: take into account project, specific package Check and
20041 For ASIS tools, add the switches in package Compiler for
20042 the invocation of the compiler.
20044 * prj-attr.adb: Add package Check and its attributes
20046 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
20048 * vms_conv.adb (Initialize): Change Params of command Check to
20050 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
20051 Add data for new command Check
20053 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
20055 Add qualifiers for Check command options
20056 (Command_Type): New command Check
20058 2005-12-09 Thomas Quinot <quinot@adacore.com>
20060 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
20061 command line switch overruns the output buffer.
20063 2005-12-09 Robert Dewar <dewar@adacore.com>
20065 * sem_prag.adb: Processing for new pragma Complete_Representation
20066 (Analyze_Pragma, case Debug): Implement two argument form.
20068 * par-prag.adb: Entry for new pragma Complete_Representation
20069 (Prag, case Debug): Recognize two argument form of pragma Debug
20070 New interface for Set_Style_Check_Options.
20072 * sem_ch13.adb: Implement new pragma Complete_Representation.
20074 * snames.adb, snames.ads, snames.h: Entry for new pragma
20075 Complete_Representation.
20077 2005-12-09 Gary Dismukes <dismukes@adacore.com>
20079 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
20080 available user-specified stream attributes on limited parameters to
20081 also test the type directly rather than only its underlying type (for
20082 Ada 95) and, in the case of Ada 2005, to check that the user-specified
20083 attributes are visible at the point of the subprogram declaration.
20084 For Ada 2005, the error message is modified to indicate that the
20085 type's stream attributes must be visible (again, only for -gnat05).
20087 2005-12-09 Ed Schonberg <schonberg@adacore.com>
20089 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
20090 anonymous access types.
20092 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
20093 matching of anonymous access types and anonymous access to subprogram
20094 types. 'R'M 4.9.1 (2/2).
20096 2005-12-09 Ed Schonberg <schonberg@adacore.com>
20098 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
20099 rule prematurely when operands are universal, remaining ambiguities
20100 will be removed during resolution.
20103 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
20104 that are Ada 2005 functions.
20105 (Has_Abstract_Interpretation): Subsidiary to
20106 Remove_Conversions, to remove ambiguities caused by abstract operations
20107 on numeric types when operands are universal.
20109 2005-12-09 Robert Dewar <dewar@adacore.com>
20111 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
20112 for case where spec is categorized.
20114 2005-12-09 Javier Miranda <miranda@adacore.com>
20116 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
20117 types use the corresponding record type. This was not needed before
20118 the implementation of Ada 2005 synchronized types because
20119 concurrent types were never tagged types in Ada 95.
20121 2005-12-09 Ed Schonberg <schonberg@adacore.com>
20123 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
20124 first subtype of the type of the expression to verify that it is a
20127 2005-12-09 Robert Dewar <dewar@adacore.com>
20129 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
20132 2005-12-09 Quentin Ochem <ochem@adacore.com>
20133 Robert Dewar <dewar@adacore.com>
20134 Ed Falis <falis@adacore.com>
20135 Florian Villoing <villoing@adacore.com>
20136 Thomas Quinot <quinot@adacore.com>
20137 Arnaud Charlet <charlet@adacore.com>
20139 * gnat_ugn.texi: Created section "Stack Related Tools"
20140 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
20141 "Stack Related Tools"
20142 Added subsection "Static Stack Usage Analysis"
20143 Added subsection "Dynamic Stack Usage Analysis"
20144 Include documentation of itypes in sprint listing (-gnatG)
20145 Documented gnatbind -D switch (default sec stack size for fixed sec
20147 Added Interrupt_State and Persistent_BSS to list of configuration
20149 Add missing doc for maximum value of nnn in -gnatyMnnn
20151 * gnat_rm.texi: Document the AltiVec binding.
20152 Add documentation for pragma Complete_Representation
20153 Shortened an overly long line (> 79 chars)
20154 Clarify documentation of unchecked conversion in implementation
20156 Document two argument form of pragma Debug
20158 * types.ads (Column_Number): Update documentation.
20160 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
20161 library level Finalize_Storage_Only objects (these are not attached to
20162 any finalization list).
20164 * system-mingw.ads: (Underlying_Priorities): Update comment.
20166 2005-12-09 Robert Dewar <dewar@adacore.com>
20168 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
20169 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
20170 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
20171 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
20172 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
20173 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
20174 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
20175 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
20178 2005-12-09 Robert Dewar <dewar@adacore.com>
20180 * s-vaflop-vms-alpha.adb: (Ne_F): New function
20181 (Ne_G): New function
20183 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
20184 for tag assignment.
20185 (Rewrite_Comparison): Handle case where operation is not a comparison
20186 and ignore, and also handle type conversion case.
20188 2005-12-09 Thomas Quinot <quinot@adacore.com>
20190 * exp_aggr.ads: Fix typo in comment.
20191 ???-mark Convert_Aggr_In_Assignment as needing documentation.
20193 2005-12-09 Gary Dismukes <dismukes@adacore.com>
20195 * layout.adb: Replace various uses of byte by storage unit throughout.
20196 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
20197 static size, convert to storage units before returning, to conform to
20200 2005-12-09 Matthew Gingell <gingell@adacore.com>
20202 * g-exctra.ads: Fix typo in comment.
20204 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20206 * utils.c: Minor reformatting.
20208 2005-12-09 Robert Dewar <dewar@adacore.com>
20211 Further comment fixes to make the status of the default file clear
20213 * s-bitops.adb: Clarify comment for Bits_Array
20215 2005-12-07 Rafael �vila de Esp�ndola <rafael.espindola@gmail.com>
20217 * Make-lang.in (ada.install-normal): Remove.
20219 2005-12-07 Rafael �vila de Esp�ndola <rafael.espindola@gmail.com>
20221 * Make-lang.in: Remove all dependencies on s-gtype.
20223 2005-12-05 Richard Guenther <rguenther@suse.de>
20225 * utils.c (convert): Use fold_convert where appropriate.
20227 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
20229 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
20232 2005-12-02 Richard Guenther <rguenther@suse.de>
20234 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
20236 2005-12-01 Roger Sayle <roger@eyesopen.com>
20238 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
20241 2005-11-23 Laurent Guerby <laurent@guerby.net>
20243 * mlib-prj.adb (Build_Library): Initialize Delete.
20245 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
20247 * socket.c: Add extern int h_errno for rtems since networking header
20248 files are not available at this point in a tool bootstrap. Newlib
20249 only has basic C library header files.
20251 2005-11-19 Richard Guenther <rguenther@suse.de>
20252 Roger Sayle <roger@eyesopen.com>
20255 * misc.c (internal_error_function): Don't use vsprintf to format
20256 the error message text, instead use pp_format_text and the new
20257 pretty printer APIs. This allows handling of %qs, %w, etc.
20259 2005-11-18 Laurent Guerby <laurent@guerby.net>
20262 * Makefile.in: Use s-auxdec-empty for RTEMS.
20264 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20267 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
20268 a temporary if taking the address of something that is neither
20269 reference, declaration, or constant, since the gimplifier
20270 can't handle that case.
20272 2005-11-17 Laurent Guerby <laurent@guerby.net>
20275 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
20277 2005-11-16 Richard Guenther <rguenther@suse.de>
20279 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
20281 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
20284 * raise-gcc.c: Add missing stdarg.h include.
20286 2005-11-16 Richard Guenther <rguenther@suse.de>
20288 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
20289 (ada/misc.o): Likewise.
20291 2005-11-14 Thomas Quinot <quinot@adacore.com>
20293 * g-soccon.ads: Minor reformatting. Update comments.
20295 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
20296 gain visibility on the declaration of struct timeval.
20298 * g-soccon-freebsd.ads,
20299 g-soccon-darwin.ads,
20300 g-soccon-tru64.ads,
20304 g-soccon-solaris.ads,
20306 g-soccon-mingw.ads,
20307 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
20309 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
20310 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
20311 g-soccon-linux-x86.ads: New files.
20313 * g-socthi-mingw.adb:
20314 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
20316 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
20317 (time_t, suseconds_t): New types constructed to match the tv_sec
20318 and tv_usec fields of C struct timeval.
20319 (Timeval): Construct structure in terms of the new types.
20320 (Host_Errno): New function (imported from socket.c), returns last hosts
20323 * g-socthi-vxworks.adb: Add error handling circuitry.
20325 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
20326 components of struct timeval.
20327 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
20328 (Check_Selector): In error conditions, clear internal socket sets to
20329 avoid a memory leak.
20330 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
20331 Send_Timeout, Receive_Timeout.
20333 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
20334 the tv_sec and tv_usec fields of C struct timeval.
20335 (Timeval): Construct structure in terms of the new types.
20336 (Host_Errno): New function (imported from socket.c), returns last hosts
20339 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
20340 hosts database last error code.
20342 * gen-soccon.c: Complete value expansion should not be performed on
20343 TARGET, as it has the form of a math expression, and some components
20344 may be platform-defined macros.
20345 For VxWorks, generate the OK and ERROR values.
20346 New constants giving the sizes of the components of C struct timeval.
20348 2005-11-14 Robert Dewar <dewar@adacore.com>
20349 Ed Schonberg <schonberg@adacore.com>
20352 * types.ads: Include All_Checks in Suppress_Array
20354 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
20355 not(a=b), since we no longer do this rewriting, and hence it is not
20357 (Elaboration_Checks_Suppressed): Add special casing to
20358 deal with different cases of static and dynamic elaboration checks (all
20359 checks does not count in the first case, but does in the second).
20360 (Expr_Known_Valid): Do not assume that the result of any arbitrary
20361 function call is valid, since this is not the case.
20362 (Ensure_Valid): Do not apply validity check to a real literal
20363 in a universal or fixed context
20365 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
20366 elementary types using the operator in standard. It is cleaner not to
20367 modify the programmers intent, especially in the case of floating-point.
20368 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
20369 it did not matter because we always rewrote a/=b to not(a=b).
20370 (Expand_Allocator_Expression): For an allocator expression whose nominal
20371 subtype is an unconstrained packed type, convert the expression to its
20372 actual constrained subtype.
20373 Implement warning for <= or >= where < or > not possible
20374 Fix to Vax_Float tests (too early in many routines, causing premature
20375 Vax_Float expansions.
20377 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
20378 to be used with packages and generic packages as well as with
20380 (Suppress): Set All_Checks, but not Elaboration_Check, for case
20381 of pragma Suppress (All_Checks)
20382 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
20383 a string literal for precise control over warnings.
20384 Avoid raise of pragma in case of unrecognized pragma and just return
20387 * sem_prag.ads: Minor reformatting
20389 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
20390 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
20391 Switch. Do not handle any exception.
20392 Include -gnatwx as part of -gnatg (warn on redundant parens)
20393 Allow optional = after -gnatm
20394 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
20395 longer sets Elaboration_Checks.
20396 Code to set warning mode moved to Sem_Warn
20397 so that it can be shared by pragma processing.
20399 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
20402 * s-taprop-solaris.adb:
20403 Change some <= to =, to avoid new warning
20405 * a-exexda.adb, prj-proc.adb:
20406 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
20407 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
20409 2005-11-14 Robert Dewar <dewar@adacore.com>
20411 * exp_vfpt.adb: Handle /= case
20412 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
20413 so that we do not get duplicate scaling for fixed point conversions.
20415 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
20417 2005-11-14 Matthew Gingell <gingell@adacore.com>
20419 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
20420 Increase default priority on Lynx from 15 to 17, and meet the Ada
20421 requirement that Default_Priority be ((Priority'First +
20422 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
20424 2005-11-14 Vincent Celier <celier@adacore.com>
20426 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
20427 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
20428 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
20429 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
20430 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
20431 mlib-tgt-lynxos.adb (DLL_Prefix): New function
20433 2005-11-14 Doug Rupp <rupp@adacore.com>
20435 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
20438 2005-11-14 Arnaud Charlet <charlet@adacore.com>
20440 * s-traces-default.adb, s-trafor-default.ads,
20441 s-tratas-default.adb: Fix compilation errors.
20443 2005-11-14 Jose Ruiz <ruiz@adacore.com>
20445 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
20446 raising the exception so the memory used is freed.
20448 2005-11-14 Arnaud Charlet <charlet@adacore.com>
20450 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
20451 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
20452 (convert_address): Update comments and list of platforms using this.
20454 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
20457 2005-11-14 Pascal Obry <obry@adacore.com>
20458 Vincent Celier <celier@adacore.com>
20460 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
20463 * memroot.adb: Remove redundant with/use clause on
20464 System.Storage_Elements.
20466 2005-11-14 Arnaud Charlet <charlet@adacore.com>
20468 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
20469 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
20470 related code to a-exexpr.adb
20471 (Save_Occurrence_And_Private): Move GCC EH related code to
20473 (Raise_Current_Excep): Add new variable Id with pragma
20474 volatile, to ensure that the variable lives on stack.
20476 * a-exexpr-gcc.adb, raise-gcc.c: New file.
20478 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
20480 Move GCC EH related code to a-exexpr-gcc.adb
20482 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
20484 Split the Linux version of g-soccon into separate variants for 32 and 64
20486 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
20487 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
20488 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
20489 of host variable $(RANLIB_FLAGS).
20490 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
20491 Code clean up: remove unused/obsolete targets.
20492 (EH_MECHANISM): New variable introduced to differenciate between the
20493 two EH mechanisms statically.
20494 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
20495 (LIBGNAT_OBJS): Add raise-gcc.o
20496 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
20497 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
20498 supports VxWorks 6 RTPs.
20499 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
20500 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
20502 * raise.c: Move all GCC EH-related routines to raise-gcc.c
20504 2005-11-14 Jose Ruiz <ruiz@adacore.com>
20506 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
20507 deferral level, when abort is not allowed, to a later stage (the
20509 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
20510 it will not get changed by the generated code. It was previously done
20513 2005-11-14 Thomas Quinot <quinot@adacore.com>
20514 Olivier Hainque <hainque@adacore.com>
20515 Eric Botcazou <ebotcazou@adacore.com>
20518 Factor common code to build a storage type for an unconstrained object
20519 from a fat or thin pointer type and a constrained object type.
20520 (annotate_value): Handle BIT_AND_EXPR.
20521 (annotate_rep): Don't restrict the back annotation of inherited
20522 components to the type_annotate_only case.
20523 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
20524 we are not defining the type.
20525 <E_Record_Type>: Likewise.
20526 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
20527 to get advantage of the new maybe_stabilize_reference interface, to
20528 ensure that what we reference is indeed stabilized instead of relying
20529 on assumptions on what the stabilizer does.
20530 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
20531 type imported through a limited_with clause, use its non-limited view.
20532 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
20534 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
20535 of #if sections + explicit comparisons of convention identifiers.
20536 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
20537 before early-returning for certain types when code generation is
20539 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
20540 nullification of gnu_expr we do for objects with address clause and
20541 that we are not defining.
20542 (elaborate_expression_1): Do not create constants when creating
20543 variables needed by the debug info: the dwarf2 writer considers that
20544 CONST_DECLs is used only to represent enumeration constants, and emits
20546 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
20547 object with an address clause into an indirect reference, drop the
20548 initializing expression.
20550 (STACK_CHECK_BUILTIN): Delete.
20551 (STACK_CHECK_PROBE_INTERVAL): Likewise.
20552 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
20553 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
20554 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
20555 corresponding to the renamed object as ignored for debugging purposes.
20557 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
20558 related): For a prefix that is a dereference of a fat or thin pointer,
20559 if there is an actual subtype provided by the front-end, use that
20560 subtype to build an actual type with bounds template.
20561 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
20562 is provided by the front-end, use that subtype to compute the size of
20563 the deallocated object.
20564 (gnat_to_gnu): When adding a statement into an elaboration procedure,
20565 check for a potential violation of a No_Elaboration_Code restriction.
20566 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
20567 with extra arguments to control whether to recurse through non-values
20568 and to let the caller know if the stabilization has succeeded.
20569 (gnat_stabilize_reference): Now a simple wrapper around
20570 maybe_stabilize, for common uses without restriction on lvalues and
20571 without need to check for the success indication.
20572 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
20573 pass false instead of 0 as the FORCE argument which is a bool.
20574 (Identifier_to_gnu): Remove checks ensuring that an renamed object
20575 attached to a renaming pointer has been properly stabilized, as no such
20576 object is attached otherwise.
20577 (call_to_gnu): Invoke create_var_decl to create the temporary when the
20578 function uses the "target pointer" return mechanism.
20579 Reinstate conversion of the actual to the type of the formal
20580 parameter before any other specific treatment based on the passing
20581 mechanism. This turns out to be necessary in order for PLACEHOLDER
20582 substitution to work properly when the latter type is unconstrained.
20584 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
20586 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
20587 with extra arguments to control whether to recurse through non-values
20588 and to let the caller know if the stabilization has succeeded.
20590 * utils2.c (gnat_build_constructor): Only sort the fields for possible
20591 static output of record constructor if all the components are constant.
20592 (gnat_build_constructor): For a record type, sort the list of field
20593 initializers in increasing bit position order.
20594 Factor common code to build a storage type for an unconstrained object
20595 from a fat or thin pointer type and a constrained object type.
20596 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
20597 types variants, and process special cases of VIEW_CONVERT expressions
20598 as their NOP_EXPR counterpart to ensure we get to the
20599 CORRESPONDING_VARs associated with CONST_DECls.
20600 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
20601 on the right-hand side.
20603 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
20605 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
20606 are converting back to its original type.
20607 (convert) <JM input>: Fallthrough regular conversion code instead of
20608 extracting the object if converting to a type variant.
20609 (create_var_decl): When a variable has an initializer requiring code
20610 generation and we are at the top level, check for a potential violation
20611 of a No_Elaboration_Code restriction.
20612 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
20613 SIZE and SIZE_UNIT which we need for later back-annotations.
20614 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
20615 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
20616 is an unchecked union.
20617 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
20618 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
20619 main variant, just replace the VIEW_CONVERT_EXPR.
20620 <UNION_TYPE>: Revert 2005-03-02 change.
20622 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
20624 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
20626 2005-11-14 Matthew Heaney <heaney@adacore.com>
20628 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
20629 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
20630 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
20631 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
20632 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
20633 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
20634 Compiles against the spec for ordered maps described in sections
20635 A.18.6 of the most recent (August 2005) AI-302 draft.
20637 2005-11-14 Olivier Hainque <hainque@adacore.com>
20639 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
20640 to ensure bias adjustments take place when need be and to prevent
20641 occurrences of intermediate overflows.
20643 2005-11-14 Matthew Gingell <gingell@adacore.com>
20644 Olivier Hainque <hainque@adacore.com>
20646 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
20649 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
20650 tracebacks on ia64 HP-UX and provide explanatory comment.
20651 Enable backtraces on ia64 GNU/Linux.
20652 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
20653 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
20655 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
20656 Javier Miranda <miranda@adacore.com>
20658 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
20659 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
20660 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
20661 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
20663 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
20664 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
20667 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
20668 subprogram that generates the external name associated with a
20669 secondary dispatch table.
20670 (Get_Secondary_DT_External_Name): New subprogram that generates the
20671 external name associated with a secondary dispatch table.
20673 2005-11-14 Emmanuel Briot <briot@adacore.com>
20675 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
20676 line in the ALI file to include both an instantiation reference, and a
20679 2005-11-14 Vincent Celier <celier@adacore.com>
20681 * clean.adb (Check_Project): Look for Ada code in extending project,
20682 even if Ada is not specified as a language.
20683 Use new function DLL_Prefix for DLL_Name
20684 (Clean_Interface_Copy_Directory): New procedure
20685 (Clean_Library_Directory): New procedure
20686 (Clean_Directory): Remove procedure, no longer used
20687 (Clean_Project): Do not delete any file in an externally built project
20689 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
20690 directory of an extending project, even when there are no Ada source
20692 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
20693 (Set_Ada_Paths.Add.Recursive_Add): Ditto
20695 * mlib-prj.adb (Check_Library): For all library projects, get the
20696 library file timestamp.
20697 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
20698 (Build_Library): Use new function DLL_Prefix for the DLL_Name
20699 (Clean): Remove procedure, no longer used
20700 (Ultimate_Extension_Of): New function
20701 (Build_Library): When cleaning the library directory, only remove an
20702 existing library file and any ALI file of a source of the project.
20703 When cleaning the interface copy directory, remove any source that
20704 could be a source of the project.
20706 * prj.ads, prj.adb (Project_Empty): Add values of new components
20707 Library_TS and All_Imported_Projects.
20708 (Project_Empty): Add values for new components of Project_Data:
20709 Library_ALI_Dir and Display_Library_ALI_Dir
20711 * prj-attr.adb: New project level attribute name Library_ALI_Dir
20713 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
20714 attribute Library_ALI_Dir.
20715 (Check_Library_Attributes): The library directory cannot be the same as
20716 any source directory of the project tree.
20717 (Check_Stand_Alone_Library): The interface copy directory cannot be
20718 the same as any source directory of the project tree.
20720 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
20721 all temporary files.
20723 2005-11-14 Robert Dewar <dewar@adacore.com>
20724 Ed Schonberg <schonberg@adacore.com>
20726 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
20727 (Check_Elab_Call): A call within a protected body is never an
20728 elaboration call, and does not require checking.
20729 (Same_Elaboration_Scope): Take into account protected types for both
20731 (Activate_Elaborate_All_Desirable): New procedure
20733 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
20736 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
20737 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
20739 * lib-writ.ads, lib-writ.adb:
20740 Implement new AD/ED for Elaborate_All/Elaborate desirable
20741 Use new Elaborate_All_Desirable flag in N_With_Clause node
20743 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
20744 N_Free_Statement nodes.
20745 Define new class N_Subprogram_Instantiation
20746 Add Elaborate_Desirable flag to N_With_Clause node
20747 Add N_Delay_Statement (covering two kinds of delay)
20749 * debug.adb: Introduce d.f flag for compiler
20750 Add -da switch for binder
20752 2005-11-14 Ed Schonberg <schonberg@adacore.com>
20753 Cyrille Comar <comar@adacore.com>
20755 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
20756 for task component, in the case of a limited aggregate. The enclosed
20757 object declaration will create it earlier. Otherwise, in the case of a
20758 nested aggregate, the object may appear in the wrong scope.
20759 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
20760 (Gen_Assign): If the component being assigned is an array type and the
20761 expression is itself an aggregate, wrap the assignment in a block to
20762 force finalization actions on the temporary created for each row of the
20764 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
20765 structures are initialized after all discriminants are set so that
20766 they can be accessed even when their offset is dynamic.
20768 2005-11-14 Robert Dewar <dewar@adacore.com>
20769 Hristian Kirtchev <kirtchev@adacore.com>
20771 * sem_attr.adb: Implement Machine_Rounding attribute
20772 (Analyze_Access_Attribute): The access attribute may appear within an
20773 aggregate that has been expanded into a loop.
20774 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
20775 'Terminated whenever the prefix is of a task interface class-wide type.
20776 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
20777 the prefix is of a task interface class-wide type.
20779 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
20782 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
20783 Remove pragma Inline for [Unaligned_]Valid.
20784 Add comments that Valid routines do not work for Vax_Float
20786 * exp_attr.adb: Implement Machine_Rounding attribute
20788 * snames.h: Add entry for Machine_Rounding attribute
20790 2005-11-14 Javier Miranda <miranda@adacore.com>
20791 Robert Dewar <dewar@adacore.com>
20792 Hristian Kirtchev <kirtchev@adacore.com>
20794 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
20795 and related): For a prefix that is an explicit dereference of an
20796 access to unconstrained packed array type, annotate the dereference
20797 with an actual subtype so GIGI can make a correct size computation.
20798 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
20799 'Unrestricted_Access, if the designated type is an interface we
20800 add a type conversion to force the displacement of the pointer
20801 to the secondary dispatch table.
20802 Use Universal_Real instead of Long_Long_Float when we need a high
20803 precision float type for the generated code (prevents gratuitous
20804 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
20805 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
20806 'Terminated for task interface class-wide objects. Generate a call to
20807 the predefined dispatching routine used to retrieve the _task_id from
20808 a task corresponding record.
20809 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
20811 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
20812 (Check_Dispatching_Operation): Protect the frontend againts
20813 previously detected errors.
20815 * Makefile.rtl: Add new instantiations of system.fat_gen
20817 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
20818 Change name of instantiated package for better consistency
20819 with newly added system.fat_gen instantiations.
20821 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
20822 s-fvagfl.ads: New files.
20824 2005-11-14 Cyrille Comar <comar@adacore.com>
20825 Thomas Quinot <quinot@adacore.com>
20827 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
20828 assignment of a value of a tagged type that has been rewritten to a
20829 block statement, it is known by construction that no checks are
20830 necessary for the statements within the block: analyze it with checks
20832 (Expand_N_If_Statement): When killing a dead then-branch in an
20833 if-statement that has elsif_parts, recompute the Current_Value node
20834 for any entity whose value is known from the condition of the first
20836 (Expand_N_Return_Statement): When returning a mutable record, convert
20837 the return value into its actual subtype in order to help the backend
20838 to return the actual size instead of the maximum. This is another
20839 aftermath of not returning mutable records on the sec-stack anymore.
20841 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
20842 handling of error msg for suspicious reverse range iteration.
20843 (Check_Possible_Current_Value_Condition): Move declaration from body to
20844 spec, to allow this subprogram to be called from exp_ch5.
20846 2005-11-14 Thomas Quinot <quinot@adacore.com>
20848 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
20849 generate a set of nested array aggregates instead of a single flat
20850 aggregate for multi-dimensional arrays.
20852 2005-11-14 Pascal Obry <obry@adacore.com>
20854 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
20855 by spawnve is a process handle, no need to convert. Add a parameter
20856 close to control wether the process handle must be closed.
20857 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
20858 a process handle, not need to convert.
20859 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
20861 * g-expect.adb: (Kill): Document the new close parameter.
20862 (Close): Do not release the process handle in the kill there as
20863 waitpid() is using it.
20864 (Send_Signal): Release the process handle.
20866 2005-11-14 Robert Dewar <dewar@adacore.com>
20868 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
20869 need a high precision float type for the generated code (prevents
20870 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
20873 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
20874 need a high precision float type for the generated code (prevents
20875 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
20877 (Expand_Width_Attribute): In configurable run-time, the attribute is not
20878 allowed on non-static enumeration subtypes. Force a load error to emit
20879 the correct diagnostic.
20881 2005-11-14 Thomas Quinot <quinot@adacore.com>
20882 Robert Dewar <dewar@adacore.com>
20883 Ed Schonberg <schonberg@adacore.com>
20885 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
20886 subtype to compute the size of the designated object at run-time,
20887 create such a subtype and store it in the Actual_Designated_Subtype
20888 attribute of the N_Free_Statement.
20889 Generate itype for classwide designated object in both cases of
20890 user-specified storage pool: specific and class-wide, not only in the
20892 Raise CE when trying to set a not null access type object to null.
20893 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
20894 an explicit loop, because freeze nodes make its position variable.
20896 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
20899 2005-11-14 Javier Miranda <miranda@adacore.com>
20901 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
20902 Build_Stream_Procedure): Add the null-excluding attribute to the first
20904 This has no semantic meaning under Ada95 mode but it is a
20905 requirement under Ada05 mode.
20907 * par-ch3.adb (P_Access_Definition): Addition of warning message if
20908 the null exclusion is used under Ada95 mode
20909 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
20910 (P_Access_Definition): Remove assertion that forbids the use of
20911 the null-exclusion feature in Ada95.
20913 2005-11-14 Robert Dewar <dewar@adacore.com>
20915 * impunit.adb: Exclude container helper units not intended for use by
20918 2005-11-14 Ed Schonberg <schonberg@adacore.com>
20920 * freeze.adb (Freeze_Entity): For an access formal that is an access
20921 to subprogram, freeze the anonymous subprogram type at the same time,
20922 to prevent later freezing in the wrong scope, such as the enclosing
20924 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
20925 subprogram whenever available.
20927 2005-11-14 Arnaud Charlet <charlet@adacore.com>
20930 * gnatvsn.ads (Library_Version): Bump to 4.1
20932 2005-11-14 Robert Dewar <dewar@adacore.com>
20934 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
20935 Storage_Offset to avoid wrap around causing invalid results.
20937 2005-11-14 Pascal Obry <obry@adacore.com>
20939 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
20941 (Scan_Bind_Arg): Fail with an error message if -M option is used
20942 on a native compiler.
20944 2005-11-14 Robert Dewar <dewar@adacore.com>
20945 Vincent Celier <celier@adacore.com>
20947 * gprep.adb: Implement -C switch to scan comments
20949 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
20951 * scans.ads: Comment updates (including new use of Tok_Comment in
20954 * opt.ads: Add documentation for flags that are used by gprmake,
20955 currently and in the next version of gprmake.
20956 (Verbosity_Level): New variable
20957 Add Replace_In_Comments switch
20959 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
20961 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
20963 2005-11-14 Arnaud Charlet <charlet@adacore.com>
20965 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
20966 message, friendlier.
20968 2005-11-14 Robert Dewar <dewar@adacore.com>
20970 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
20972 2005-11-14 Doug Rupp <rupp@adacore.com>
20974 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
20976 2005-11-14 Robert Dewar <dewar@adacore.com>
20978 * interfac.ads: Change declarations of IEEE float types so that we no
20979 longer need a separate version of this package for VMS.
20981 2005-11-14 Ed Schonberg <schonberg@adacore.com>
20983 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
20984 internal entity created for the declaration of a child subprogram body
20985 with no spec as coming from source, to generate proper cross-reference
20988 2005-11-14 Vincent Celier <celier@adacore.com>
20990 * make.adb (Compile_Sources): Change verbose message to minimum
20991 verbosity level High for "is in an Ada library", "is a read-only
20992 library" and "is an internal library",
20993 (Create_Binder_Mapping_File): Path name of ALI file for library project
20994 must include the library directory, not the object directory.
20995 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
20996 for new switches -vl, -vm and -vh.
20997 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
20998 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
20999 (Compile_Sources): Do not attempt to compile if an ALI file is missing
21000 in a project that is externally built.
21001 (Compute_All_Imported_Projects): New procedure
21002 (Gnatmake): Check if importing libraries should be regenerated because
21003 at least an imported library is more recent.
21004 (Initialize): For each project compute the list of the projects it
21005 imports directly or indirectly.
21006 (Add_Library_Search_Dir): New procedure, used in place of
21007 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
21008 put in the search paths.
21009 (Add_Source_Search_Dir): New procedure, used in place of
21010 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
21011 put in the search paths.
21012 (Mark_Directory): Resolve the absolute path the directory before marking
21015 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
21016 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
21017 Switch. Do not handle any exception.
21018 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
21019 so that the switch is recognized as valid.
21020 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
21022 2005-11-14 GNAT Script <nobody@adacore.com>
21024 * Make-lang.in: Makefile automatically updated
21026 2005-11-14 Pascal Obry <obry@adacore.com>
21028 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
21030 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
21031 In both cases the last argument was dropped.
21033 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
21035 * namet.h: (Column_Numbe): New type.
21036 (Get_Column_Number): Define to sinput__get_column_number.
21037 (Instantiation): Define to sinput__instantiation.
21038 (Get_Column_Number): Declare.
21039 (Instantiation): Likewise.
21041 2005-11-14 Robert Dewar <dewar@adacore.com>
21043 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
21044 syntax, which could cause compiler hangs.
21046 2005-11-14 Vincent Celier <celier@adacore.com>
21048 * prj-ext.adb: Take into account new environment variable
21049 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
21051 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
21052 normalize its path name, making it absolute and resolving symbolic
21053 links, and replace the original if resolved path is different.
21055 2005-11-14 Vincent Celier <celier@adacore.com>
21057 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
21058 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
21060 2005-11-14 Emmanuel Briot <briot@adacore.com>
21062 * prj-pp.adb (Print): Do not output the with statement if the
21063 associated name is empty, which happens for virtual extending projects.
21064 (Print): Preserve the "extends all" attribute when printing the project.
21066 * prj-tree.ads (String_Value_Of): Add comment about returned value for
21067 a virtual extending project.
21069 2005-11-14 Ed Schonberg <schonberg@adacore.com>
21071 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
21072 rhs of an assignment even if the type is unconstrained, when the
21073 context is non-expanding.
21074 In an inlined body, if the context type is private,
21075 resolve with its full view, which must be a composite type.
21077 2005-11-14 Robert Dewar <dewar@adacore.com>
21078 Ed Schonberg <schonberg@adacore.com>
21080 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
21081 Do not give obsolescent warning on with of subprogram (since we
21083 (Analyze_With_Clause): Add test for obsolescent package
21084 (Install_Context_Clauses): If the unit is the body of a child unit, do
21085 not install twice the private declarations of the parents, to prevent
21086 circular lists of Use_Clauses in a parent.
21087 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
21088 compiling body of child unit.
21089 Use new class N_Subprogram_Instantiation
21090 (Expand_With_Clause): If this is a private with_clause for a child unit,
21091 appearing in the context of a package declaration, then the implicit
21092 with_clauses generated for parent units are private as well.
21093 (License_Check): Do not generate message if with'ed unit is internal
21095 2005-11-14 Gary Dismukes <dismukes@adacore.com>
21096 Ed Schonberg <schonberg@adacore.com>
21097 Thomas Quinot <quinot@adacore.com>
21099 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
21100 names are internal, because they will not have a corresponding partner
21101 in the actual package.
21102 (Analyze_Formal_Package): Move the setting of the formal package spec's
21103 Generic_Parent field so that it occurs prior to analyzing the package,
21104 to allow proper operation of Install_Parent_Private_Declarations.
21105 (Analyze_Package_Instantiation): Set the instantiated package entity's
21106 Package_Instantiation field.
21107 (Get_Package_Instantiation_Node): Move declaration to package spec.
21108 Retrieve the N_Package_Instantiation node when the Package_Instantiation
21110 (Check_Generic_Child_Unit): Within an inlined call, the only possible
21111 instantiation is Unchecked_Conversion, for which no parents are needed.
21112 (Inline_Instance_Body): Deinstall and record the use_clauses for all
21113 parent scopes of a scope being removed prior to inlining an instance
21115 (Analyze_Package_Instantiation): Do not perform front-end inlining when
21116 the current context is itself an instance within a non-instance child
21117 unit, to prevent scope stack errors.
21118 (Save_References): If the node is an aggregate that is an actual in a
21119 call, rewrite as a qualified expression to preserve some type
21120 information, to resolve possible ambiguities in the instance.
21121 (Instance_Parent_Unit): New global variable to record the ultimate
21122 parent unit associated with a generic child unit instance (associated
21123 with the existing Parent_Unit_Visible flag).
21124 (type Instance_Env): New component Instance_Parent_Unit for stacking
21125 parents recorded in the global Instance_Parent_Unit.
21126 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
21128 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
21129 it's not a top-level unit, and only do this if Instance_Parent_Unit is
21130 not already set. Replace test of Is_Child_Unit with test of parent's
21131 scope against package Standard. Add comments and a ??? comment.
21132 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
21133 on a child instance parent to test that the parent equals
21134 Instance_Parent rather than simply checking that the unit is not a
21136 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
21137 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
21138 a formal interface are ancestors of the corresponding actual.
21139 (Validate_Formal_Interface_Type): Additional legality checks.
21140 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
21141 interface types with ancestors.
21142 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
21143 to diagnose attempts to use generic within its own declaration.
21145 2005-11-14 Ed Schonberg <schonberg@adacore.com>
21146 Javier Miranda <miranda@adacore.com>
21148 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
21150 (Build_Private_Derived_Type): The entity of the created full view of the
21151 derived type does not come from source. If after installing the private
21152 declarations of the parent scope the parent is still private, use its
21153 full view to construct the full declaration of the derived type.
21154 (Build_Derived_Record_Type): Relax the condition that controls the
21155 execution of the check that verifies that the partial view and
21156 the full view agree in the set of implemented interfaces. In
21157 addition, this test now only takes into account the progenitors.
21158 (Derive_Interface_Subprograms): No need to derive subprograms
21159 of ancestors that are interfaces.
21160 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
21162 Change name Is_Package to Is_Package_Or_Generic_Package
21163 (Complete_Subprograms_Derivation): Handle the case in which the full
21164 view is a transitive derivation of the ancestor of the partial view.
21165 (Process_Full_View): Rename local subprogram Find_Interface_In_
21166 Descendant to Find_Ancestor_Interface to leave the code more clear.
21167 Remove wrong code that avoids the generation of an error message
21168 when the immediate ancestor of the partial view is an interface.
21169 In addition some minor reorganization of the code has been done to
21170 leave it more clear.
21171 (Analyze_Type_Declaration): If type has previous incomplete tagged
21172 partial view, inherit properly its primitive operations.
21173 (Collect_Interfaces): Make public, for analysis of formal
21175 (Analyze_Interface_Declaration): New procedure for use for regular and
21176 formal interface declarations.
21177 (Build_Derived_Record_Type): Add support for private types to the code
21178 that checks if a tagged type implements abstract interfaces.
21179 (Check_Aliased_Component_Type): The test applies in the spec of an
21181 (Access_Type_Declaration): Clean up declaration of malformed type
21182 declared as an access to its own classwide type, to prevent cascaded
21184 (Collect_Interfaces): For private extensions and for derived task types
21185 and derived protected types, the parent may be an interface that must
21186 be included in the interface list.
21187 (Access_Definition): If the designated type is an interface that may
21188 contain tasks, create Master_Id for it before analyzing the expression
21189 of the declaration, which may be an allocator.
21190 (Record_Type_Declaration): Set properly the interface kind, for use
21191 in allocators, the creation of master id's for task interfaces, etc.
21193 2005-11-14 Javier Miranda <miranda@adacore.com>
21194 Ed Schonberg <schonberg@adacore.com>
21196 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
21197 omitted in case of stream attribute subprograms.
21198 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
21199 appear immediately after a subprogram body, when there is no previous
21200 subprogram declaration.
21201 Change name Is_Package to Is_Package_Or_Generic_Package
21202 (Process_Formals): A non null qualifier on a non null named access
21203 type is not an error, and is a warning only if Redundant_Constructs
21206 2005-11-14 Gary Dismukes <dismukes@adacore.com>
21207 Ed Schonberg <schonberg@adacore.com>
21209 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
21210 nested within Analyze_Package_Specification to install the private
21211 declarations and use clauses within each of the parent units of a
21212 package instance of a generic child package.
21213 (Analyze_Package_Specification): When entering a private part of a
21214 package associated with a generic instance or formal package, the
21215 private declarations of the parent must be installed (by calling new
21216 procedure Install_Parent_Private_Declarations).
21217 Change name Is_Package to Is_Package_Or_Generic_Package
21218 (Preserve_Full_Attributes): For a synchronized type, the corresponding
21219 record is absent in a generic context, which does not indicate a
21222 2005-11-14 Ed Schonberg <schonberg@adacore.com>
21224 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
21225 not try to rewrite a renamed stream attribute, because the operations
21226 on the type may not have been generated.
21227 Handle properly a renaming_as_body generated for a stream operation
21228 whose default is abstract because the object type itself is abstract.
21229 (Find_Type): If the type is incomplete and appears as the prefix of a
21230 'Class reference, it is tagged, and its list of primitive operations
21231 must be initialized properly.
21232 (Chain_Use_Clauses): When chaining the use clauses that appear in the
21233 private declaration of a parent unit, prior to compiling the private
21234 part of a child unit, find on the scope stack the proper parent entity
21235 on which to link the use clause.
21236 (Note_Redundant_Use): Emit a warning when a redundant use clause is
21238 (Analyze_Object_Renaming): An attribute reference is not a legal object
21239 if it is not a function call.
21241 2005-11-14 Robert Dewar <dewar@adacore.com>
21242 Ed Schonberg <schonberg@adacore.com>
21244 * sem_eval.adb: Implement d.f flag
21245 (Subtype_Statically_Match): A generic actual type has unknown
21246 discriminants when the corresponding actual has a similar partial view.
21247 If the routine is called to validate the signature of an inherited
21248 operation in a child instance, the generic actual matches the full view,
21250 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
21251 Ed Schonberg <schonberg@adacore.com>
21252 Robert Dewar <dewar@adacore.com>
21253 Thomas Quinot <quinot@adacore.com>
21255 * sem_res.adb (Resolve_Call): Provide a better error message whenever
21256 a procedure call is used as a select statement trigger and is not an
21257 entry renaming or a primitive of a limited interface.
21258 (Valid_Conversion): If the operand has a single interpretation do not
21259 remove address operations.
21260 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
21261 statement to inhibit warning.
21262 (Resolve_Unary_Op): Do not produce a warning when
21263 processing an expression of the form -(A mod B)
21264 Use Universal_Real instead of Long_Long_Float when we need a high
21265 precision float type for the generated code (prevents gratuitous
21266 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
21267 (Resolve_Concatenation_Arg): Improve error message when argument is an
21268 ambiguous call to a function that returns an array.
21269 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
21270 there is an implicit operator in the given scope if we are within an
21271 instance: legality check has been performed on the generic.
21272 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
21273 after resolving operand, to avoid false warnings on overloaded calls.
21275 2005-11-14 Ed Schonberg <schonberg@adacore.com>
21276 Javier Miranda <miranda@adacore.com>
21279 * sem_type.adb (Covers): In an inlined body, a composite type matches
21280 a private type whose full view is a composite type.
21281 (Interface_Present_In_Ancestor): Protect the frontend against
21282 previously detected errors to ensure that its compilation
21283 with assertions enabled gives the same output that its
21284 compilation without assertions.
21285 (Interface_Present_In_Ancestor): Add support for private types.
21286 Change name In_Actual to In_Generic_Actual (clean up)
21287 (Disambiguate): New predicate In_Actual, to recognize expressions that
21288 appear in the renaming declaration generated for generic actuals, and
21289 which must be resolved in the outer context.
21291 2005-11-14 Robert Dewar <dewar@adacore.com>
21292 Thomas Quinot <quinot@adacore.com>
21293 Hristian Kirtchev <kirtchev@adacore.com>
21294 Ed Schonberg <schonberg@adacore.com>
21296 * sem_util.ads, sem_util.adb: Change name Is_Package to
21297 Is_Package_Or_Generic_Package.
21298 (Check_Obsolescent): New procedure.
21299 (Set_Is_Public): Remove obsolete junk test.
21300 (Set_Public_Status): Do not set Is_Public on an object whose declaration
21301 occurs within a handled_sequence_of_statemets.
21302 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
21303 for a parameterless procedure.
21304 (Enter_Name): Recognize renaming declarations created for private
21305 component of a protected type within protected operations, so that
21306 the source name of the component can be used in the debugger.
21308 2005-11-14 Ed Schonberg <schonberg@adacore.com>
21309 Robert Dewar <dewar@adacore.com>
21311 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
21312 of a generic subprogram are not visible outside the body.
21313 (Set_Warning_Switch): New procedure (code to set warning mode moved
21314 here from Switch.C so that it can be shared by pragma processing.
21315 (Check_References): Special case warning for non-modified non-imported
21317 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
21318 form with a string literal argument
21320 2005-11-14 Javier Miranda <miranda@adacore.com>
21322 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
21324 (Write): Addition of "not null" to the anonymous access.
21325 (Read): Addition of "not null" to the anonymous access.
21326 (Write): Addition of "not null" to the anonymous access.
21328 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
21329 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
21330 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
21331 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
21332 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
21333 "not null" to the anonymous access.
21335 2005-11-14 Robert Dewar <dewar@adacore.com>
21337 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
21340 2005-11-14 Vincent Celier <celier@adacore.com>
21342 * switch.adb (Bad_Switch): New procedure
21343 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
21344 message when in error.
21346 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
21347 Too_Many_Output_Files): Remove declarations, no longer used.
21348 (Scan_Nat): New parameter Switch
21350 (Bad_Switch): New procedure
21352 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
21353 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
21354 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
21355 to Osint.Fail. Do not handle any exception.
21357 2005-11-14 Vincent Celier <celier@adacore.com>
21359 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
21360 designates a non existent directory.
21362 2005-11-14 Robert Dewar <dewar@adacore.com>
21364 * xgnatugn.adb: Replace invalid membership test by 'Valid
21366 2005-11-14 Vincent Celier <celier@adacore.com>
21368 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
21369 there is no object directory.
21371 2005-11-14 Robert Dewar <dewar@adacore.com>
21373 * usage.adb: Minor adjustment to output format, use nn instead of nnn
21374 (so that -gnateInnn does not run into next column)
21376 2005-11-14 Ed Falis <falis@adacore.com>
21378 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
21381 2005-11-14 Cyrille Comar <comar@adacore.com>
21383 * s-chepoo.ads: Add comments on Dereference.
21384 Remove unnecessary inherited abstract primitives.
21387 2005-11-14 Robert Dewar <dewar@adacore.com>
21389 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
21390 node parameter, not needed, since it is available as Declaration_Node.
21392 2005-11-14 Geert Bosch <bosch@adacore.com>
21394 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
21395 grammatically correct.
21397 2005-11-14 Vincent Celier <celier@adacore.com>
21399 * s-fileio.ads: Correct spelling error in comment
21401 2005-11-14 Cyrille Comar <comar@adacore.com>
21402 Robert Dewar <dewar@adacore.com>
21403 Vincent Celier <celier@adacore.com>
21404 Ben Brosgol <brosgol@adacore.com>
21405 Jose Ruiz <ruiz@adacore.com>
21406 Pascal Obry <obry@adacore.com>
21409 Document that -fstack-check is needed for strict compliance with the
21410 Ada 95 Reference Manual.
21411 Correct reference to VAX systems to meet HP guidelines
21412 Add documentation for new gnatmake switches -vl, -vm and -vh
21413 Replace DEC Ada by HP Ada
21414 Replace DIGITAL by HP
21415 Remove empty section on tools in compatibility section
21416 Clarify the Windows convention semantics.
21417 Document the Win32 calling convention.
21418 The Stdcall, Win32 and DLL convention are synonyms.
21419 Add a note in -gnatR description about zero size record components
21420 Note on new >= and <= warnings for -gnatwc
21421 Document that equal sign after -gnatm is optional.
21422 Note that strip is working fine on DLL built with a Library
21423 Project. The restriction apply only to DLL built with gnatdll.
21424 Update section about the way to debug a DLL.
21425 Update information about the DLL convention.
21426 Document -C switch for gnatprep
21427 Document new attribute Library_ALI_Dir
21428 Update elaboration doc to include implicit Elaborate pragmas now
21429 generated for subprogram instantiations.
21430 Document limitation on executable names that include spaces for --GCC,
21431 --GNATBIND, and --GNATLINK switches.
21432 Document that -w causes -gnatws to be added at start of gcc switches
21434 * gnat_rm.texi: Document that -mieee is needed for generating infinite
21435 and NaN values in case of overflow on machines that are not fully
21436 compliant with the IEEE floating-point standard.
21437 Create a section describing the set of compiler options needed for
21438 strict compliance with the Ada 95 Reference Manual.
21439 Add documentation for pragma Obsolescent applied to a package
21440 Clarify potential issues of mixed language programs related to the
21441 I/O buffering enabling in the elaboration of the GNAT runtime.
21442 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
21443 This documentation only patch adds extra documentsion for pragma
21444 Restrictions (No_Elaboration_Code), explaining why it is not possible
21445 to document this restriction in terms of allowed source constructs.
21446 Document string literal form of pragma Warnings
21447 Document new attribute Library_ALI_Dir
21448 Add documentation on stable attributes in project files that was missing
21450 * gnat-style.texi: Indicate that paragraphs within a single comment
21451 should be separated by empty comment lines
21453 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
21456 * bindusg.adb: Minor cleanup, put -m before -M for consistency
21458 2005-11-14 Robert Dewar <dewar@adacore.com>
21460 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
21461 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
21462 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
21463 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
21464 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
21465 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
21466 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
21467 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
21468 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
21469 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
21470 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
21471 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
21472 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
21473 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
21474 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
21475 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
21476 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
21477 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
21478 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
21479 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
21480 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
21481 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
21482 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
21483 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
21484 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
21485 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
21486 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
21487 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
21488 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
21489 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
21490 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
21491 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
21492 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
21493 system-interix.ads, system-solaris-sparc.ads,
21494 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
21495 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
21496 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
21497 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
21498 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
21499 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
21500 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
21501 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
21502 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
21503 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
21504 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
21505 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
21506 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
21507 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
21508 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
21509 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
21510 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
21511 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
21512 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
21513 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
21514 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
21515 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
21516 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
21517 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
21518 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
21519 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
21520 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
21521 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
21522 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
21523 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
21524 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
21525 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
21526 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
21527 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
21528 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
21529 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
21530 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
21531 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
21532 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
21533 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
21534 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
21535 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
21536 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
21537 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
21538 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
21539 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
21540 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
21541 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
21542 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
21543 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
21544 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
21545 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
21546 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
21547 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
21548 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
21549 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
21550 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
21551 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
21552 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
21553 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
21554 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
21555 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
21556 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
21557 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
21558 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
21559 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
21560 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
21561 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
21562 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
21563 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
21564 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
21565 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
21566 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
21567 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
21568 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
21569 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
21570 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
21571 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
21572 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
21573 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
21574 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
21575 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
21576 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
21577 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
21578 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
21579 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
21580 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
21581 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
21582 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
21583 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
21584 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
21585 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
21586 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
21587 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
21588 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
21589 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
21590 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
21591 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
21592 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
21593 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
21594 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
21595 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
21596 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
21597 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
21598 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
21599 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
21600 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
21601 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
21602 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
21603 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
21604 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
21605 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
21606 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
21607 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
21608 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
21609 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
21610 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
21611 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
21612 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
21613 a-numaux-darwin.ads, a-numaux-darwin.adb,
21614 a-swuwha.ads, a-stunha.ads: Minor reformatting
21616 2005-11-14 Robert Dewar <dewar@adacore.com>
21619 * osint-m.adb: Add pragma Elaborate_All for Osint
21621 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
21624 * trans.c (call_to_gnu): Restore statement lost in translation.
21626 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
21628 * init.c: Use the Linux-specific section for the IA-64/Linux target.
21629 (__gnat_adjust_context_for_raise): Add conditional code so that the
21630 IA-64 is also supported.
21632 2005-11-03 James E Wilson <wilson@specifix.com>
21635 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
21636 TREE_OVERFLOW check.
21638 2005-09-21 Olivier Hainque <hainque@adacore.com>
21641 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
21642 as we create them to store a size in bits.
21644 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
21652 * utils2.c (build_return_expr): New helper function.
21653 * gigi.h (build_return_expr): Declare it.
21654 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
21655 of manually building the RETURN_EXPR tree.
21656 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
21657 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
21658 build_binary_op for the "target pointer" case. Use build_return_expr
21659 instead of manually building the RETURN_EXPR tree.
21661 2005-09-16 Laurent Guerby <laurent@guerby.net>
21664 * s-tpinop.ads: Make this unit Preelaborate.
21666 2005-09-16 Andreas Jaeger <aj@suse.de>
21668 * socket.c: Add string.h for memcpy.
21670 2005-09-05 Arnaud Charlet <charlet@adacore.com>
21672 * dec-io.ads, dec-io.adb: Removed, no longer used.
21674 2005-09-01 Arnaud Charlet <charlet@adacore.com>
21676 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
21678 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
21679 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
21680 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
21681 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
21682 dependent units are Preelaborate.
21683 (Initialize): Call Interrupt_Managemeent.Initialize and
21684 OS_Primitives.Initialize to ensure proper initialization of this unit.
21685 Remove use of System.Soft_Links
21686 Make this unit Preelaborate.
21688 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
21689 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
21690 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
21691 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
21692 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
21693 s-tratas.ads, s-tasinf.ads: Minor reformatting.
21694 Add pragma Preelaborate, since these packages are suitable for this
21698 * s-traent-vms.ads, s-intman-dummy.adb,
21699 s-taprop-dummy.adb: Make this unit Preelaborate.
21701 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
21702 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
21703 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
21704 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
21705 s-intman-solaris.adb, s-intman-irix-athread.adb,
21706 s-intman-irix.adb: Mark this unit Preelaborate.
21707 (Initialize): New procedure.
21710 * s-taspri-linux.ads: Removed.
21712 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
21713 as done by other implementations (e.g. posix).
21715 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
21716 responsible for deferring abort.
21717 Mark this unit Preelaborate.
21719 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
21720 proper initialization of the tasking run-time.
21722 * s-tasdeb.ads: Mark this unit Preelaborate.
21723 (Known_Tasks): Add explicit default value to avoid elaboration code.
21725 * s-inmaop-vms.adb (Elaboration code): Add call to
21726 Interrupt_Management.Initialize since the elaboration code depends on
21727 proper initialization of this package.
21729 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
21730 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
21731 s-osprim-posix.adb: Make this unit Preelaborate.
21733 * a-calend.adb: Add call to OS_Primitives.Initialize
21735 * a-elchha.adb: Update use of Except.Id.Full_Name.
21736 Minor reformatting.
21737 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
21739 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
21740 Move with clauses outside Warnings Off now that dependent units are
21742 Use raise xxx with "..."; Ada 2005 form.
21744 * a-taside.ads, a-taside.adb:
21745 Remove some dependencies, to make it easier to make this unit truly
21747 Rewrite some code to be conformant with Preelaborate rules.
21749 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
21750 marked Preelaborate in the future.
21752 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
21753 these units Preelaborate.
21755 * s-exctab.adb: Update use of Except.Id.Full_Name.
21757 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
21758 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
21759 Set_Exc_Stack_Addr): Removed, no longer used.
21760 Remove reference to *Machine_State_Addr*, no longer needed.
21762 * s-stalib.ads: Mark this unit as Preelaborate[_05].
21763 (Exception_Data): Full_Name is now a System.Address so that this unit
21764 can be made Preelaborate.
21765 Clean up/simplify code thanks to Full_Name being a System.Address.
21766 Remove obsolete pragma Suppress (All_Checks), no longer needed.
21768 * s-taskin.ads, s-taskin.adb:
21769 Move with clauses outside Warnings Off now that dependent units are
21771 Make this unit Preelaborate.
21772 (Initialize): New proceduure, replace elaboration code and makes the
21773 set up of the tasking run-time cleaner.
21774 (Detect_Blocking): Now a function instead of a deferred boolean, to
21775 obey Preelaborate rules.
21777 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
21778 soft links, no longer used.
21780 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
21781 packages are suitable for this categorization.
21783 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
21784 since we compile run-time sources in Ada 2005 mode.
21785 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
21786 avoid having s-taprop*.adb depend on s-soflin and to avoid code
21788 Remove reference to *Machine_State_Addr*, no longer needed.
21790 2005-09-01 Arnaud Charlet <charlet@adacore.com>
21792 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
21793 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
21794 Remove reference to System.Exceptions.
21796 * s-mastop-x86.adb: Removed, no longer used.
21798 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
21800 * a-excach.adb: Minor reformatting.
21802 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
21803 instead fix new warnings that were hidden by this change.
21804 (AAA, ZZZ): Removed, replaced by...
21805 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
21806 are used instead of constants, to help make Ada.Exception truly
21808 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
21809 Raise_Storage_Error): File is now a System.Address, to simplify code.
21810 (Elab code): Removed, no longer used.
21811 (Null_Occurrence): Remove Warnings Off and make this construct
21813 Remove code related to front-end zero cost exception handling, since
21814 it is no longer used.
21815 Remove -gnatL/-gnatZ switches.
21817 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
21818 Update use of Except.Msg.
21820 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
21821 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
21822 to front-end zero cost exception handling, since it is no longer used.
21823 Remove -gnatL/-gnatZ switches.
21825 * lib-writ.ads: Minor reformatting
21828 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
21830 * Make-lang.in: Remove references to s-except.ads
21832 * s-except.ads: Removed, no longer used.
21834 * s-mastop.ads, s-mastop.adb:
21835 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
21836 Remove reference to System.Exceptions.
21838 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
21839 switch-b.adb: Remove code related to front-end zero cost exception
21840 handling, since it is no longer used.
21841 Remove -gnatL/-gnatZ switches.
21843 2005-09-01 Robert Dewar <dewar@adacore.com>
21844 Gary Dismukes <dismukes@adacore.com>
21845 Javier Miranda <miranda@adacore.com>
21847 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
21848 type by valid test and generate warning.
21849 (Tagged_Membership): Generate call to the run-time
21850 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
21851 Change formal name Subtype_Mark to Result_Definition in several calls to
21852 Make_Function_Specification.
21853 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
21854 check for proper accessibility of the operand of a class-wide allocator.
21855 The check can be left out if checks are suppressed or if the expression
21856 has a specific tagged type whose level is known to be safe.
21858 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
21859 generates the run-time check associated with null-excluding entities.
21860 (Expand_N_Return_Statement): Add tests to determine if the accessibility
21861 check on the level of the return expression of a class-wide function
21862 can be elided. The check usually isn't needed if the expression has a
21863 specific type (unless it's a conversion or a formal parameter). Also
21864 add a test for whether accessibility checks are suppressed. Augment
21865 the comments to describe the conditions for performing the check.
21867 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
21868 Javier Miranda <miranda@adacore.com>
21869 Gary Dismukes <dismukes@adacore.com>
21870 Ed Schonberg <schonberg@adacore.com>
21872 * a-tags.adb (IW_Membership): Give support to
21873 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
21874 subprogram has been extended to look for the tag in the ancestors tag
21876 Update the structure of the GNAT Dispatch Table to reflect the
21877 additional two tables used in dispatching selects.
21878 Introduce appropriate array types and record components in
21879 Type_Specific_Data to reflect the two tables.
21880 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
21881 the TSD of a tag, indexed by position.
21882 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
21883 operation kind in the TSD of a tag, indexed by position.
21885 * a-tags.ads: Introduce an enumeration type to capture different
21886 primitive operation kinds. Define a constant reflecting the number of
21887 predefined primitive operations.
21888 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
21889 of an entry wrapper.
21890 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
21891 callable entity of a primitive operation.
21893 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
21894 primitive operations used in dispatching selects for limited
21895 interfaces, limited tagged, task and protected types what implement a
21897 (Freeze_Type): Generate the bodies of the primitive operations used in
21898 dispatching selects for limited tagged, task and protected types that
21899 implement a limited interface. Generate statements to populate the two
21900 auxiliary tables used for dispatching in select statements.
21901 (Freeze_Record_Type): Add call to initialize the dispatch table entries
21902 associated with predefined interface primitive operations.
21903 (Build_Dcheck_Function): Change Set_Subtype_Mark to
21904 Set_Result_Definition.
21905 (Build_Variant_Record_Equality): Change Subtype_Mark to
21907 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
21908 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
21909 (Build_Assignment): Simplify the code that adds the run-time-check.
21910 (Expand_N_Object_Declaration): Code cleanup.
21912 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
21913 entries when there is a protected type that implements a limited
21916 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
21917 common routines used in expansion of dispatching selects.
21918 (Add_Private_Declarations): Select the appropriate protection type when
21919 there is a protected type that implements a limited interface.
21920 (Build_Parameter_Block): Generate a wrapped parameter block.
21921 (Build_Protected_Subprogram_Body): Select the appropriate type for
21922 locking entries when there is a protected type that implements a
21924 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
21925 classified as entry wrappers.
21926 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
21927 asynchronous selects.
21928 (Expand_N_Conditional_Entry_Call): Add support for expansion of
21929 dispatching conditional selects.
21930 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
21931 protection when there is a protected type that implements limited
21933 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
21935 (Extract_Dispatching_Call): Extract the entity of the name of a
21936 dispatching call, the object parameter, actual parameters and
21937 corresponding formals.
21938 (Make_Initialize_Protection): Correct logic of protection initialization
21939 when there is a protected type that implements a limited interface.
21940 (Parameter_Block_Pack): Populate a wrapped parameter block with the
21941 values of actual parameters.
21942 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
21943 block and assign them to the original actual parameters.
21945 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
21946 (Build_Protected_Sub_Specification): Change the type and name of the
21947 last formal to account for the increased variety of protection modes.
21949 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
21950 entities. Used to save the value of the Is_Hidden attribute when the
21951 limited-view is installed.
21952 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
21953 the attribute of procedures classified as entry wrappers.
21954 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
21955 entity of a primitive wrapper.
21956 (Write_Entity_Flags): Output the name and value of the
21957 Is_Primitive_Wrapper attribute.
21958 (Write_Field27_Name): Output the name and entity of the field Wrapped_
21960 (Underlying_Type): If we have an incomplete entity that comes from
21961 the limited view then we return the Underlying_Type of its non-limited
21962 view if it is already available.
21963 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
21964 including operators.
21965 (Write_Field26_Name): Add entry for Overridden_Operation
21966 (Overridden_Operation): New attribute of functions and procedures.
21968 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
21969 predefined position in the dispatch table for the primitive operations
21970 used in dispatching selects.
21971 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
21972 predefined primitive operations and replace it with
21973 Default_Prim_Op_Count.
21974 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
21975 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
21976 the names of the generated primitive operations used in dispatching
21978 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
21979 case of abstract interface types. They will be inherit by the objects
21980 implementing the interface.
21981 (Make_DT): There is no need to inherit the dispatch table of the
21982 ancestor interface for the elaboration of abstract interface types.
21983 The dispatch table will be inherited by the object implementing the
21985 (Copy_Secondary_DTs): Add documentation.
21986 (Validate_Position): Improve this static check in case of
21987 aliased subprograms because aliased subprograms must have
21989 (Init_Predefined_Interface_Primitives): New subprogram that initializes
21990 the entries associated with predefined primitives of all the secondary
21992 (Build_Anonymous_Access_Type): Removed.
21993 (Expand_Interface_Actuals): With the previous cleanup there is no need
21994 to build an anonymous access type. This allows further cleanup in the
21995 code generated by the expander.
21996 (Expand_Interface_Conversion): If the actual is an access type then
21997 build an internal function to handle the displacement. If the actual
21998 is null this function returns null because no displacement is
21999 required; otherwise performs a type conversion that will be
22000 expanded in the code that returns the value of the displaced actual.
22001 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
22002 conversions that have no effect in the generated code because no
22003 displacement is required. Code cleanup; use local variables to
22004 avoid repeated calls to the subprogram directly_designated_type().
22006 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
22007 Classify the primitive operations used in dispatching selects as
22009 (Implements_Limited_Interface): Determine whether some type either
22010 directly implements a limited interface or extends a type that
22011 implements a limited interface.
22012 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
22013 (Expand_Subtype_From_Expr): Do not build actual subtype if the
22014 expression is limited.
22015 (Find_Interface_Tag): Add code to handle class-wide types and
22016 entities from the limited-view.
22018 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
22019 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
22020 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
22021 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
22024 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
22025 of procedure name or prefix that appears as a trigger in a triggering
22028 * uintp.ads: Introduce constants Uint_11 and Uint_13.
22030 2005-09-01 Arnaud Charlet <charlet@adacore.com>
22032 * s-tataat.adb, a-tasatt.adb:
22033 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
22035 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
22036 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
22037 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
22040 2005-09-01 Arnaud Charlet <charlet@adacore.com>
22041 Jose Ruiz <ruiz@adacore.com>
22043 * s-taprop-vxworks.adb:
22044 Move with clauses outside Warnings Off now that dependent units are
22046 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
22047 initialization of this unit.
22048 (Specific): Add new procedures Initialize and Delete so that this
22049 package can be used for VxWorks 5.x and 6.x
22050 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
22051 differences between VxWorks 5.x and 6.x
22052 Minor reformatting.
22053 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
22055 Use only Preelaborate-compatible constructs.
22057 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
22058 Primitives.Operations.
22059 (Delete, Initialize): New procedures.
22061 * s-osinte-vxworks.adb: Body used to handle differences between
22062 VxWorks 5.x and 6.x
22063 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
22065 * s-osinte-vxworks.ads: Minor reformatting.
22066 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
22067 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
22069 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
22070 between Vxworks 5 and 6.
22071 (taskLock, taskUnlock): Removeed, no longer used.
22073 * adaint.c: The wait.h header is not located in the sys directory on
22074 VxWorks when using RTPs.
22075 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
22077 (__gnat_dup): dup is available on Vxworks when using RTPs.
22078 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
22080 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
22082 * expect.c: The wait.h header is not located in the sys directory on
22083 VxWorks when using RTPs.
22085 2005-09-01 Thomas Quinot <quinot@adacore.com>
22087 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
22089 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
22091 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
22092 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
22093 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
22094 g-soccon-freebsd.ads: Add new constants:
22096 SO_RCVTIMEO/SO_SNDTIMEO
22100 Move all target-specific file inclusions and macro definitions to
22101 gsocket.h, in order to ensure that any C code in socket.c will see a
22102 set of constants that is consistent with the contents of g-soccon.ads.
22104 * gsocket.h: Code imported from gen-soccon.c:
22105 Move all target-specific file inclusions and macro definitions to
22106 gsocket.h, in order to ensure that any C code in socket.c will see a set
22107 of constants that is consistent with the contents of g-soccon.ads.
22108 This change also makes gen-soccon self-contained (removing dependencies
22109 upon GCC internal headers).
22111 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
22113 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
22115 * socket.c: Minor reformatting.
22117 2005-09-01 Ed Schonberg <schonberg@adacore.com>
22118 Thomas Quinot <quinot@adacore.com>
22120 * fname-sf.adb, mlib-tgt.ads,
22121 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
22122 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
22123 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
22124 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
22125 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
22126 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
22127 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
22128 makegpr.adb: Remove redundant use_clauses.
22130 2005-09-01 Arnaud Charlet <charlet@adacore.com>
22132 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
22133 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
22134 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
22135 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
22136 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
22137 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
22138 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
22139 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
22140 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
22141 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
22142 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
22143 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
22144 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
22145 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
22146 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
22147 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
22148 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
22149 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
22150 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
22151 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
22152 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
22153 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
22154 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
22155 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
22156 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
22157 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
22158 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
22159 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
22160 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
22161 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
22162 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
22163 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
22164 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
22165 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
22166 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
22167 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
22168 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
22169 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
22170 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
22171 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
22172 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
22173 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
22174 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
22175 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
22176 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
22177 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
22178 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
22179 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
22180 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
22181 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
22182 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
22183 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
22184 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
22185 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
22186 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
22187 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
22188 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
22189 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
22190 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
22191 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
22192 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
22193 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
22194 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
22195 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
22196 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
22197 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
22198 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
22199 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
22200 and always use the no parameter form for consistency.
22202 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
22204 2005-09-01 Robert Dewar <dewar@adacore.com>
22206 * binde.adb: Minor reformatting
22207 (Find_Elab_Order): Output warning if -p used with static elab order
22209 2005-09-01 Robert Dewar <dewar@adacore.com>
22211 * checks.adb (Check_Needed): New procedure, deals with removing checks
22212 based on analysis of short-circuited forms. Also generates warnings for
22213 improper use of non-short-circuited forms.
22216 2005-09-01 Robert Dewar <dewar@adacore.com>
22218 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
22221 2005-09-01 Robert Dewar <dewar@adacore.com>
22223 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
22225 Implement new insertion char < (conditional warning)
22226 * errutil.adb, erroutc.adb: Implement new insertion char <
22227 (conditional warning).
22228 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
22229 (Error_Msg_Warn): New variable for < insertion char.
22230 * prj-nmsc.adb: Implement new errout insertion char < (conditional
22232 (Check_For_Source): Change value of Source_Id only after the current
22233 source has been dealt with.
22235 2005-09-01 Robert Dewar <dewar@adacore.com>
22236 Doug Rupp <rupp@adacore.com>
22238 * exp_attr.adb: Handle vax fpt for 'Valid attribute
22239 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
22240 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
22241 (Valid_D, Valid_F, Valid_G): New functions
22243 2005-09-01 Ed Schonberg <schonberg@adacore.com>
22244 Hristian Kirtchev <kirtchev@adacore.com>
22245 Javier Miranda <miranda@adacore.com>
22247 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
22248 from object notation, the original node is unanalyzed and carries no
22249 semantic information, so that accessiblity checks must be performed on
22250 the type of the actual itself.
22251 (Expand_N_Subprogram_Declaration): Change last actual parameter for
22252 compatibility with Build_Protected_Sub_Specification.
22253 (Check_Overriding_Inherited_Interfaces): Add suport to handle
22254 overloaded primitives.
22255 (Register_Interface_DT_Entry): Use the new name of the formal
22256 the the calls to Expand_Interface_Thunk
22258 * exp_dbug.ads: Augment comments on encoding of protected types to
22259 include the generation of dispatching subprograms when the type
22260 implements at least one interface.
22262 * lib.ads: Extend information in Load_Stack to include whether a given
22263 load comes from a Limited_With_Clause.
22265 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
22266 whether a potential circularity is harmless, because it includes units
22267 loaded through a limited_with clause. Extends previous treatment which
22268 did not handle properly arbitrary combinations of limited and
22269 non-limited clauses.
22271 2005-09-01 Nicolas Setton <setton@adacore.com>
22273 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
22274 to be encoded as typ___XBLU_lowerbound__upperbound instead of
22275 typ___XB_lowerbound__upperbound.
22277 2005-09-01 Thomas Quinot <quinot@adacore.com>
22279 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
22280 dummy access formal for RACW/RAS TypeCode TSS.
22281 (Build_TypeCode_Call): Do not generate dummy null access actual for
22282 calls to the TypeCode TSS.
22284 2005-09-01 Ed Schonberg <schonberg@adacore.com>
22286 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
22287 fully qualified name, to distinguish instances with the same local name.
22289 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
22292 2005-09-01 Robert Dewar <dewar@adacore.com>
22294 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
22297 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
22299 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
22300 (Free): New deallocation procedure for filter elements
22301 (Close): Deallocate any existing filter for the concerned connection
22303 2005-09-01 Laurent Pautet <pautet@adacore.com>
22305 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
22306 position set is provided, we compute one in order to reduce the maximum
22307 length of the keys. This computation first selects a character
22308 position between 1 and the minimum length of the keys in order to
22309 avoid reducing one of the keys to an empty string.
22310 (Initialize, Compute): When the ratio V to K is too low, the algorithm
22311 does not converge. The initialization procedure now comes with a
22312 maximum number of iterations such that when exceeded, an exception is
22313 raised in Compute. The user can initialize this ratio to another value
22315 Reformating and updated headers.
22317 2005-09-01 Javier Miranda <miranda@adacore.com>
22319 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
22320 that given an entity T creates and returns an Itype that duplicates the
22321 contents of T. The returned Itype has the null-exclusion
22322 attribute set to True, and its Etype attribute references T
22323 to keep the association between the two entities.
22324 Update copyright notice
22326 * sem_aggr.adb (Check_Can_Never_Be_Null,
22327 Aggregate_Constraint_Checks, Resolve_Aggregate,
22328 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
22330 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
22332 2005-09-01 Gary Dismukes <dismukes@adacore.com>
22333 Robert Dewar <dewar@adacore.com>
22334 Hristian Kirtchev <kirtchev@adacore.com>
22336 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
22339 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
22341 Call Set_Result_Definition instead of Set_Subtype_Mark.
22342 (P_Subprogram_Specification): Add parsing of anonymous access result
22343 plus null exclusions. Call Set_Result_Definition instead of
22346 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
22347 (P_Access_Type_Definition): Add parsing for an anonymous access result
22348 subtype, plus parsing for null exclusions. Call Set_Result_Definition
22349 instead of Set_Subtype_Mark.
22351 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
22352 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
22353 (Result_Definition): New function for N_Function_Specifications.
22354 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
22355 N_Function_Specification.
22356 (Set_Null_Exclusion_Present): Allow this flag for
22357 N_Function_Specification.
22358 (Set_Result_Definition): New procedure for N_Function_Specifications.
22359 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
22360 and N_Function_Specification.
22362 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
22363 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
22364 Add support for LIMITED NEW for Ada 2005 AI-419
22365 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
22366 syntax for anonymous access results.
22367 Replace Subtype_Mark field by Result_Definition in
22368 N_Function_Specification and N_Access_Definition specs.
22369 Add Null_Exclusion_Present to spec of N_Function_Specification.
22370 (Result_Definition): New function for N_Function_Specification and
22371 N_Access_Function_Definition.
22372 (Set_Result_Definition): New procedure for N_Function_Specification and
22373 N_Access_Function_Definition.
22375 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
22376 Result_Definition for cases of N_Access_Function_Definition and
22377 N_Function_Specification.
22378 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
22380 2005-09-01 Vincent Celier <celier@adacore.com>
22382 * lib-writ.adb: Update Copyright notice
22383 (Write_With_Lines): On platforms where file names are case-insensitive,
22384 record the file names in lower case.
22385 (Write_ALI): For D lines, on platforms where file names are
22386 case-insensitive, record the file names in lower case.
22388 2005-09-01 Ed Schonberg <schonberg@adacore.com>
22389 Emmanuel Briot <briot@adacore.com>
22391 * lib-xref.adb (Output_Overridden_Op): Display information on
22392 overridden operation.
22394 * lib-xref.ads: Add documentation on overridden operations.
22396 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
22399 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
22400 overriding entity information.
22402 2005-09-01 Vincent Celier <celier@adacore.com>
22404 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
22405 including those that are inherited.
22407 2005-09-01 Robert Dewar <dewar@adacore.com>
22409 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
22411 * par-prag.adb: Implement new pragma Debug_Policy
22413 * sem_prag.adb Implement new pragma Debug_Policy
22414 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
22415 Component_Size attribute specification. Give warning for ignored pragma
22418 * snames.h, snames.ads, snames.adb: Introduce entries in
22419 Preset_Names for Name_Disp_Asynchronous_Select,
22420 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
22421 Name_Disp_Timed_Select.
22422 New pragma Debug_Policy
22424 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
22426 Switch -gnata also sets Debug_Pragmas_Enabled
22428 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
22429 handle an explicit -gnata when compiling predefined files.
22431 2005-09-01 Vincent Celier <celier@adacore.com>
22433 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
22434 directories of projects that have no Ada sources.
22436 2005-09-01 Robert Dewar <dewar@adacore.com>
22438 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
22439 (makes a difference for wide characters)
22441 * widechar.adb, widechar.ads:
22442 Add Wide_Char_Byte_Count feature to count chars vs bytes
22444 2005-09-01 Thomas Quinot <quinot@adacore.com>
22445 Ed Schonberg <schonberg@adacore.com>
22446 Robert Dewar <dewar@adacore.com>
22448 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
22449 'Address attribute reference with an overloaded prefix, use the
22450 location of the prefix (not the location of the attribute reference) as
22451 the error location.
22452 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
22453 a function renaming thereof, is a valid prefix for 'Size (where it is
22454 intepreted as a function call).
22455 (Statically_Denotes_Entity): New predicate to determine whether the
22456 prefix of an array attribute can be considered static.
22459 (Eval_Attr): Fix failure to evaluate Component_Size for
22460 unconstrained arrays (resulted in wrong value in packed case, since
22461 back end cannot handle this case)
22463 2005-09-01 Robert Dewar <dewar@adacore.com>
22465 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
22466 error msgs for most common cases.
22467 Use new errout insertion char < (conditional warning)
22469 2005-09-01 Javier Miranda <miranda@adacore.com>
22470 Ed Schonberg <schonberg@adacore.com>
22472 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
22473 become local to the whole package.
22474 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
22475 the package was already analyzed the new algorithm "replaces" the
22476 real entities by the shadow ones. This is required to ensure that
22477 the order of these entities in the homonym chains does not change;
22478 otherwise we can have undefined references at linking time because
22479 in case of conflicts the external name of the entities will have
22480 a suffix that depends on the order of the entities in the chain.
22481 (Remove_Limited_With_Clause): Complementary code that completes the
22482 new algorithm and replaces the shadow entities by the real ones.
22483 (Install_Limited_Withed_Unit): When unchaining entities before the
22484 installation of the shadow entities, only regular entities of the
22485 public part must be taken into account. This is required to
22486 keep this routine in synch with the work done by Remove_Limited_
22488 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
22489 even if unit is analyzed, because the analysis of the unit is
22490 idempotent in any case, and the limited view of the unit may have to
22491 be installed for proper visibility.
22492 (Expand_Limited_With_Clause): Even if the unit in the implicit
22493 with_clause has been analyzed already, a limited view of the package
22494 must be built for the current context, if it does not exist yet.
22496 2005-09-01 Ed Schonberg <schonberg@adacore.com>
22497 Javier Miranda <miranda@adacore.com>
22498 Gary Dismukes <dismukes@adacore.com>
22500 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
22501 defining entity for the instance body, make a new defining identifier
22502 rather than copying the entity of the spec, to prevent accidental
22503 sharing of the entity list.
22504 (Check_Private_View): When exchanging views of private types, build the
22505 list of exchanged views as a stack, to ensure that on exit the exchanges
22506 are undone in the proper order.
22507 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
22508 Restore the compilation environment in case of instantiation_error.
22509 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
22510 for an anonymous access result.
22511 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
22512 (Formal_Entity): Handle properly the case of a formal package that
22513 denotes a generic package renaming.
22515 2005-09-01 Thomas Quinot <quinot@adacore.com>
22517 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
22518 clause if the array aggregate is surrounded by parentheses.
22520 2005-09-01 Cyrille Comar <comar@adacore.com>
22521 Gary Dismukes <dismukes@adacore.com>
22522 Ed Schonberg <schonberg@adacore.com>
22523 Javier Miranda <miranda@adacore.com>
22525 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
22527 to check if a type is Constrained in cases related to code generation
22528 (rather than semantic checking) since otherwise we do not generate
22529 similar code for mutable private types depending if their
22530 discriminants are visible or not.
22531 (Check_Abstract_Overriding): Do not complain about failure to override
22532 the primitive operations used in dispatching selects since they will
22533 always be overriden at the freeze point of the type.
22534 (Access_Definition): Separate out handling for resetting the scope
22535 of an anonymous access function result type. Retrieve the scope
22536 of the associated function rather than using Current_Scope, which
22537 does not have a consistent value (depends on whether we're in the
22538 middle of analyzing formal parameters). Add ??? comment about
22539 finding a cleaner way to handle the special cases of scope setting.
22540 (Process_Incomplete_Dependents): A protected operation is never a
22541 dispatching operation (only its wrapper may be).
22542 (Build_Derived_Record_Type): In case of tagged private types that
22543 implement interfaces add derivation of predefined primitive
22545 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
22546 by two parameters that are used in case of derivation from abstract
22547 interface types: No_Predefined_Prims is used to avoid the derivation
22548 of predefined primitives from the interface, and Predefined
22549 Prims_Only is used to complete the derivation predefined primitives
22550 in case of private tagged types implementing interfaces.
22551 Fix typo in comments
22552 (Find_Interface_In_Descendant): Protect the frontend against
22553 wrong code with large circularity chains.
22554 (Is_Private_Overriding): Add support for entities overriding interface
22555 subprograms. The test failed because Entities associated with overriden
22556 interface subprograms are always marked as hidden (and used to build
22557 the secondary dispatch table); in this case the overriden entity is
22558 available through the field abstract_interface_alias (cf. override_
22559 dispatching_operation)
22560 (Access_Definition): Set the scope of the type to Current_Scope for the
22561 case of a function with an anonymous access result type.
22562 (Access_Subprogram_Declaration): Handle creation of the type entity for
22563 an access-to-function type with an anonymous access result.
22564 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
22565 in handling for N_Access_Function_Definition.
22566 (Analyze_Subtype_Declaration): Modify the text of error message.
22567 (Derived_Type_Declaration): Modify the text of error message.
22568 (Process_Subtype): Modify the text of error message plus cleanup
22569 of one redundant error message.
22570 (Analyze_Component_Declaration): Code cleanup.
22571 (Analyze_Object_Declaration): Code cleanup.
22572 (Analyze_Subtype_Declaration): Propagate the null-exclusion
22573 attribute in case of access types. Code cleanup.
22574 (Array_Type_Declaration): Code cleanup.
22575 (Process_Discriminants): Create the new null-excluding itype
22576 if required. Code cleanup.
22577 (Process_Subtype): Create the new null-excluding itype if
22578 required. Code cleanup.
22579 (Build_Derived_Record_Type): Code cleanup to avoid calling
22580 twice the subprogram derive_subprograms in case of private
22581 types that implement interfaces. In this particular case the
22582 subprogram Complete_Subprograms_Derivation already does the
22583 job associated with the second call.
22585 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
22586 conversion to the full view when generating an operation for a
22587 discriminant whose type may currently be private.
22589 2005-09-01 Ed Schonberg <schonberg@adacore.com>
22590 Javier Miranda <miranda@adacore.com>
22592 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
22593 V (Obj.F), the rewriting does not involve the indexed component, but
22594 only the selected component itself.
22595 Do not apply the transformation if the analyzed node is an actual of a
22596 call to another subprogram.
22597 (Complete_Object_Operation): Retain the entity of the
22598 dispatching operation in the selector of the rewritten node. The
22599 entity will be used in the expansion of dispatching selects.
22600 (Analyze_One_Call): Improve location of the error message associated
22602 (Analyze_Selected_Component): No need to resolve prefix when it is a
22603 function call, resolution is done when parent node is resolved, as
22605 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
22606 when attempting to resolve a call transformed from its object notation.
22607 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
22608 of the argument list for each interpretation of the operation.
22609 (Try_Object_Operation): The designated type of an access parameter may
22610 be an incomplete type obtained through a limited_with clause, in which
22611 case the primitive operations of the type are retrieved from its full
22613 (Analyze_Call): If this is an indirect call, and the return type of the
22614 access_to_subprogram is incomplete, use its full view if available.
22616 2005-09-01 Javier Miranda <miranda@adacore.com>
22617 Gary Dismukes <dismukes@adacore.com>
22619 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
22620 access types the null-exclusion and access-to-constant attributes must
22622 (Analyze_Return_Statement): When the result type is an anonymous access
22623 type, apply a conversion of the return expression to the access type
22624 to ensure that appropriate accessibility checks are performed.
22625 (Analyze_Return_Type): For the case of an anonymous access result type,
22626 generate the Itype and set Is_Local_Anonymous_Access on the type.
22627 Add ??? placeholder for check to disallow returning a limited object
22628 in Ada 2005 unless it's an aggregate or a result of a function call.
22629 Change calls from Subtype_Mark to Result_Definition.
22630 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
22631 Result_Definition in call to Make_Function_Specification.
22632 (Build_Body_To_Inline): Change Set_Subtype_Mark to
22633 Set_Result_Definition.
22634 (Make_Inequality_Operator): Change formal Subtype_Mark to
22635 Result_Definition in call to Make_Function_Specification.
22636 (Process_Formals): Create the new null-excluding itype if required.
22637 (New_Overloaded_Entity): For an entity overriding an interface primitive
22638 check if the entity also covers other abstract subprograms in the same
22639 scope. This is required to handle the general case, that is, overriding
22640 other interface primitives and overriding abstract subprograms inherited
22641 from some abstract ancestor type.
22642 (New_Overloaded_Entity): For an overriding entity that comes from
22643 source, note the operation that it overrides.
22644 (Check_Conformance, Type_Conformant): Addition of one new formal
22645 to skip controlling formals in the analysis. This is used to
22646 handle overloading of abstract interfaces.
22647 (Base_Types_Match): Add missing case for types imported from
22648 limited-with clauses
22649 (New_Overloaded_Entity): Add barrier to protect the use of
22650 the "alias" attribute.
22652 2005-09-01 Ed Schonberg <schonberg@adacore.com>
22654 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
22655 verify that the procedure and the entry are mode conformant.
22656 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
22657 as a different operator, which is often a cut-and-paste error.
22659 2005-09-01 Javier Miranda <miranda@adacore.com>
22660 Ed Schonberg <schonberg@adacore.com>
22662 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
22663 used in controlling parameters exclude null because it is necessary to
22664 read the tag to dispatch, and null has no tag.
22665 (Override_Dispatching_Operation): If the previous operation is inherited
22666 from an interface, it becomes hidden and does not participate in later
22669 2005-09-01 Javier Miranda <miranda@adacore.com>
22670 Ed Schonberg <schonberg@adacore.com>
22671 Gary Dismukes <dismukes@adacore.com>
22673 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
22674 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
22675 the expander will generate the corresponding run-time check to evaluate
22677 (Resolve_Call): Check for legal type of procedure name or prefix that
22678 appears as a trigger in a triggering alternative.
22679 (Valid_Conversion): If expression is ambiguous and the context involves
22680 an extension of System, remove System.Address interpretations.
22681 (Resolve_Qualified_Expression): Reject the case of a specific-type
22682 qualification applied to a class-wide argument. Enhance comment
22683 to explain checking of Original_Node.
22684 (Resolve_Type_Conversion): The location of the error message was not
22685 general enough to handle the general case and hence it has been removed.
22686 In addition, this patch improves the text of the message.
22687 (Resolve_Type_Conversion): Add missing support for access to interface
22689 (Resolve_Type_Conversion): If the target is a class-wide interface type,
22690 do not expand if the expression is the actual in a call, because proper
22691 expansion will take place when the call itself is expanded.
22692 (Resolve_Allocator): If the context is an unchecked conversion, the
22693 allocator inherits its storage pool, if any, from the target type of
22696 2005-09-01 Ed Schonberg <schonberg@adacore.com>
22697 Javier Miranda <miranda@adacore.com>
22699 * sem_type.adb (Add_One_Interp): If a candidate operation is an
22700 inherited interface operation that has an implementation, use the
22701 implementation to avoid spurious ambiguities.
22702 (Interface_Present_In_Ancestor): In case of concurrent types we can't
22703 use the Corresponding_Record_Typ attribute to look for the interface
22704 because it is set by the expander (and hence it is not always
22705 available). For this reason we traverse the list of interfaces
22706 (available in the parent of the concurrent type).
22707 (Interface_Present_In_Ancestor): Handle entities from the limited view
22709 2005-09-01 Ed Schonberg <schonberg@adacore.com>
22711 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
22712 from the list of required components.
22713 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
22714 primitive procedure of a limited interface with a controlling first
22716 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
22718 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
22719 capture if it is generated in the second operand of a short-circuit
22721 Do not capture values for variables with address clauses.
22722 (Is_Object_Reference): Treat a function call as an object reference only
22723 if its type is not Standard_Void_Type.
22725 2005-09-01 Ed Schonberg <schonberg@adacore.com>
22727 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
22728 to a variable that is statically known to be constant.
22730 2005-09-01 Geert Bosch <bosch@adacore.com>
22731 Robert Dewar <dewar@adacore.com>
22733 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
22734 (VAXGF_Safe_First): Idem.
22736 2005-09-01 Robert Dewar <dewar@adacore.com>
22737 Arnaud Charlet <charlet@adacore.com>
22739 * g-dirope.ads: Minor reformatting
22740 Document that bounds of result of Base_Name match the input index
22742 Add documentation on environment variable syntax for Expand_Path
22744 * gnat_ugn.texi: Update documentation to include mention of -m switches
22745 Document new treatment of wide characters in max line length
22747 Remove -gnatL/-gnatZ switches, no longer used.
22748 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
22751 * gnat_rm.texi: Add doc for two argument form of pragma
22752 Float_Representation.
22753 Add documentation for pragma No_Strict_Aliasing
22754 Add note that explicit component clause overrides pragma Pack.
22755 Add documentation of pragma Debug_Policy
22757 2005-09-01 Matthew Heaney <heaney@adacore.com>
22759 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
22760 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
22761 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
22762 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
22763 draft (Draft 13, August 2005) of Ada Amendment 1.
22765 2005-09-01 Arnaud Charlet <charlet@adacore.com>
22767 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
22768 Note that the platform-specific version of g-soccon.ads for VMS is now
22769 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
22770 really is a package spec).
22771 Replace s-taspri-linux.ads by s-taspri-posix.ads
22772 Remove references to s-mastop-x86.adb
22774 * system-vxworks-xscale.ads: Removed, no longer used.
22775 * s-vxwork-xscale.ads: Removed, no longer used.
22777 2005-09-01 Robert Dewar <dewar@adacore.com>
22779 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
22780 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
22781 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
22782 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
22783 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
22784 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
22785 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
22786 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
22787 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
22788 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
22789 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
22790 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
22791 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
22792 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
22793 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
22794 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
22795 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
22796 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
22797 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
22798 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
22799 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
22801 2005-08-29 Arnaud Charlet <charlet@adacore.com>
22805 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
22807 2005-08-29 Arnaud Charlet <charlet@adacore.com>
22808 Doug Rupp <rupp@adacore.com>
22810 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
22812 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
22813 this code in the GNAT run-time.
22815 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
22818 * init.c (__gnat_error_handler [many]): Mark "msg" as const
22819 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
22821 (__gnat_inside_elab_final_code): Moved here from
22822 Standard_Library and only defined for the compiler.
22823 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
22824 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
22825 using RTPs because directly vectored Interrupt routines are not
22826 supported on this configuration.
22827 (getpid): Do not redefine this function on VxWorks when using RTPs
22828 because this primitive is well supported by the RTP libraries.
22829 (copy_msg): Correct the code that checks for buffer overflow.
22830 Discovered during code reading.
22832 2005-08-29 Olivier Hainque <hainque@adacore.com>
22834 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
22835 a library level mutable variable with an initializer, tell
22836 build_allocator to ignore the initializer's size. It may not be large
22837 enough for all the values that might be assigned to the variable later
22840 2005-08-29 Arnaud Charlet <charlet@adacore.com>
22841 Eric Botcazou <ebotcazou@adacore.com>
22843 * trans.c: Protect < in error msg with quote
22844 Replace GCC_ZCX by Back_End_Exceptions.
22845 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
22846 has been sufficiently aligned in the record.
22848 2005-08-15 James E. Wilson <wilson@specifix.com>
22850 * system-linux-alpha.ads: Change ia64 to alpha.
22852 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
22854 * decl.c, utils.c: Fix comment typos.
22856 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
22858 * decl.c, init.c, initialize.c: Fix comment typos.
22860 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
22862 Make CONSTRUCTOR use VEC to store initializers.
22863 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
22865 * trans.c (extract_values): Likewise.
22866 * utils.c (convert, remove_conversions): Likewise.
22867 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
22868 gnat_build_constructor): Likewise.
22870 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
22872 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
22874 (compare_field_bitpos): Likewise.
22876 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
22878 * utils.c (create_var_decl): Only set DECL_COMMON on
22879 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
22880 VAR_OR_FUNCTION_DECL_P.
22882 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
22884 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
22887 2005-07-07 Pascal Obry <obry@adacore.com>
22889 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
22890 returned type on Windows.
22892 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
22895 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
22896 exception in this case.
22897 Simplify the code as "Image (Image'Range)" = "Image".
22899 2005-07-07 Vincent Celier <celier@adacore.com>
22901 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
22902 the destructor/constructor attributes for <lib>final/<lib>init.
22904 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
22906 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
22908 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
22909 type if the parameter is not passed by copy but reference by default.
22911 2005-07-07 Javier Miranda <miranda@adacore.com>
22913 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
22914 Reimplementation of the support for abstract interface types in order
22915 to leave the code more clear and easy to maintain.
22917 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
22918 abstract interface types in order to leave the code clearer and easier
22921 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
22922 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
22923 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
22924 appropriate entry of the secondary dispatch table.
22925 (Make_DT): Add code to inherit the secondary dispatch tables of
22928 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
22929 implementing both functionalities by means of a common routine, each
22930 routine has its own code.
22932 2005-07-07 Javier Miranda <miranda@adacore.com>
22934 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
22936 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
22939 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
22942 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
22943 use of tag incomplete types.
22945 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
22946 give support to tagged incomplete types.
22948 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
22949 expression is a discriminant reference and its type is private, as can
22950 happen within a stream operation for a mutable record, use the full
22951 view of the type to resolve the case alternatives.
22952 (Analyze_Assignment): Check wrong dereference of incomplete types.
22954 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
22957 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
22960 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
22961 N_Incomplete_Type_Declaration nodes.
22963 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
22964 Tag_Present to give support to tagged incomplete types:
22966 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
22969 2005-07-07 Olivier Hainque <hainque@adacore.com>
22972 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
22973 definitions for the Unwind wrappers in the compiler case.
22975 2005-07-07 Ed Schonberg <schonberg@adacore.com>
22976 Javier Miranda <miranda@adacore.com>
22978 * par-load.adb (Load): If a child unit is loaded through a limited_with
22979 clause, each parent must be loaded as a limited unit as well.
22981 * sem_ch10.adb (Previous_Withed_Unit): Better name for
22982 Check_Withed_Unit. Return true if there is a previous with_clause for
22983 this unit, whether limited or not.
22984 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
22986 (Is_Visible_Through_Renamings): New local subprogram of install_limited
22987 _withed_unit that checks if some package installed through normal with
22988 clauses has a renaming declaration of package whose limited-view is
22989 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
22990 of the current Draft document for Ada 2005.
22991 (Analyze_Context): Complete the list of compilation units that
22992 are allowed to contain limited-with clauses. It also contains
22993 checks that were previously done by Install_Limited_Context_Clauses.
22994 This makes the code more clear and easy to maintain.
22995 (Expand_Limited_With_Clause) It is now a local subprogram of
22996 Install_Limited_Context_Clauses, and contains the code that adds
22997 the implicit limited-with clauses for parents of child units.
22998 This functionality was prevously done by Analyze_Context.
23000 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
23003 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
23004 been erroneously named in a limited-with clause of its own context.
23005 In this case the error has been previously notified by Analyze_Context.
23007 2005-07-07 Ed Schonberg <schonberg@adacore.com>
23009 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
23010 generic package that contains local declarations with the same name.
23011 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
23013 2005-07-07 Bernard Banner <banner@adacore.com>
23015 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
23016 ia64 platform only on platforms that you the GCC unwind library
23017 rather than the system unwind library.
23019 2005-07-07 Thomas Quinot <quinot@adacore.com>
23021 * expect.c: Minor reformatting
23023 2005-07-07 Sergey Rybin <rybin@adacore.com>
23025 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
23028 * gnat_ugn.texi: Add description for new gnatpp option
23031 2005-07-04 Thomas Quinot <quinot@adacore.com>
23033 * g-expect-vms.adb, g-expect.ads, g-expect.adb
23034 (Get_Command_Output): New subprogram to launch a process and get its
23035 standard output as a string.
23037 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
23038 Olivier Hainque <hainque@adacore.com>
23040 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
23041 fetch a code-range descriptor associated with the machine state. On
23042 failure set the machine state's PC to 0; on success, pass the
23043 descriptor to exc_virtual_unwind.
23045 * init.c (Tru64 section): New function __gnat_set_code_loc.
23047 2005-07-04 Vincent Celier <celier@adacore.com>
23049 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
23050 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
23051 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
23052 Remove all auto-initialization code, as this is now done through the
23053 constructor mechanism.
23055 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
23056 __gnat_sals_init_using_constructors): New functions.
23058 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
23059 Linker_Constructor and Linker_Destructor when switch -a is used.
23061 * bindusg.adb: Add line for new switch -a
23063 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
23064 (Gnatbind): When switch -a is used, check if it is allowed
23066 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
23068 2005-07-04 Joel Brobecker <brobecker@adacore.com>
23070 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
23071 This prevents us from hitting a limitation during the debug info
23072 generation when using stabs.
23073 (Prims_Ptr): Likewise.
23075 2005-07-04 Gary Dismukes <dismukes@adacore.com>
23076 Ed Schonberg <schonberg@adacore.com>
23077 Javier Miranda <miranda@adacore.com>
23079 * checks.adb (Null_Exclusion_Static_Checks): In the case of
23080 N_Object_Declaration, only perform the checks if the Object_Definition
23081 is not an Access_Definition.
23083 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
23084 where the parent of an the access definition is an N_Object_Declaration
23085 when determining the Associated_Node_For_Itype and scope of an
23086 anonymous access-to-subprogram type.
23088 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
23089 Corresponding_Spec on the body created for a null procedure. Add ???
23090 comment. Remove New_Copy_Tree call on body argument to
23091 Set_Body_To_Inline.
23093 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
23094 discriminants, use the type of the actual as well, because the
23095 discriminants may be read by the called subprogram.
23097 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
23098 access type we do not need to handle non-limited views.
23099 (Build_Derived_Record_Type): Additional check to check that in case of
23100 private types, interfaces are only allowed in private extensions.
23102 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
23104 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
23105 <Pragma_Linker_Destructor>: Likewise.
23107 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
23108 Pragma_Linker_Destructor.
23110 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
23111 ATTR_LINK_DESTRUCTOR.
23112 (static_ctors, static_dtors): New variables.
23114 * misc.c (gnat_expand_body): Output current function as constructor
23115 and destructor if requested.
23117 * par-prag.adb: Add processing for pragma Linker_Constructor and
23120 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
23121 extracted from Check_Interrupt_Or_Attach_Handler.
23122 (Check_Interrupt_Or_Attach_Handler): Invoke it.
23123 Implement pragma Linker_Constructor and Linker_Destructor with the
23124 help of Find_Unique_Parameterless_Procedure.
23125 Replace Name_Alias with Name_Target for pragma Linker_Alias.
23127 * snames.h, snames.ads, snames.adb:
23128 Add Name_Linker_Constructor and Name_Linker_Destructor.
23129 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
23130 * snames.adb: Remove Name_Alias.
23132 * trans.c: Include cgraph.h.
23133 (build_global_cdtor): New function.
23134 (Compilation_Unit_to_gnu): Build global constructor and destructor if
23136 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
23138 (addressable_p) <COMPONENT_REF>: Unconditionally test
23139 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
23141 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
23142 variable if it is external.
23144 (static_ctors, static_dtors): New global variables.
23145 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
23146 <ATTR_LINK_DESTRUCTOR>: Likewise.
23147 (end_subprog_body): Chain function as constructor and destructor
23150 * exp_util.adb (Force_Evaluation): Unconditionally invoke
23151 Remove_Side_Effects with Variable_Ref set to true.
23152 (Remove_Side_Effects): Handle scalar types first. Use a renaming
23153 for non-scalar types even if Variable_Ref is true and for class-wide
23156 2005-07-04 Ed Schonberg <schonberg@adacore.com>
23158 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
23159 to prevent spurious warnings.
23161 2005-07-04 Thomas Quinot <quinot@adacore.com>
23163 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
23164 Itypes. Itypes are really unexpected there.
23165 (Build_TypeCode_Function): Generalise special processing for Itypes to
23166 handle the case of numeric implicit base types as well as enumerated
23169 2005-07-04 Ed Schonberg <schonberg@adacore.com>
23171 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
23172 controlled, indicate the expected type of the dereference that is
23173 created for the call to Deep_Finalize, to prevent spurious errors when
23174 the designated type is private and completed with a derivation from
23175 another private type.
23177 2005-07-04 Vincent Celier <celier@adacore.com>
23179 * make.adb (Change_To_Object_Directory): When unable to change the
23180 current dir to the object directory, output the full path of the
23183 2005-07-04 Matthew Gingell <gingell@adacore.com>
23185 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
23187 * indepsw-linux.adb: Replace by...
23189 * indepsw-gnu.adb: ...this new file
23191 2005-07-04 Vincent Celier <celier@adacore.com>
23193 * mlib-prj.adb (Auto_Initialize): New constant String
23194 (SALs_Use_Constructors): New Boolean function
23195 (Build_Library): Call gnatbind with Auto_Initialize switch when
23196 SALs_Use_Constructors returns True.
23198 * mlib-tgt.ads: Minor reformatting
23200 * mlib-utl.ads: Minor reformatting
23202 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
23204 2005-07-04 Ed Schonberg <schonberg@adacore.com>
23206 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
23207 single protected declarations can have an interface list.
23208 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
23209 with seriously malformed entry declarations, and lead to compilation
23210 abandoned messages.
23212 2005-07-04 Javier Miranda <miranda@adacore.com>
23214 * par-load.adb: Load the context items in two rounds.
23216 2005-07-04 Robert Dewar <dewar@adacore.com>
23218 * scng.adb: Do not consider Mod used as an attribute to be a keyword
23220 2005-07-04 Ed Schonberg <schonberg@adacore.com>
23221 Javier Miranda <miranda@adacore.com>
23223 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
23224 type extension needs a limited view.
23225 Remove previous restriction on private types available through the
23226 limited-view (only tagged private types were previously allowed).
23227 (Install_Withed_Unit): In the code that implements the
23228 legality rule given in AI-377, exclude a child unit with the name
23229 Standard, because it is a homonym of the Standard environment package.
23231 2005-07-04 Thomas Quinot <quinot@adacore.com>
23233 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
23234 overloaded function call, carry interpretations from the original tree
23237 2005-07-04 Ed Schonberg <schonberg@adacore.com>
23239 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
23240 types check whether some designated type is a limited view, and use
23241 the non-limited view if available.
23243 2005-07-04 Gary Dismukes <dismukes@adacore.com>
23245 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
23246 constraint of full view of a private view T1 if present, when T2 is a
23247 discriminated full view.
23249 2005-07-04 Thomas Quinot <quinot@adacore.com>
23251 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
23252 actual that is a view conversion of a bit packed array reference.
23254 2005-07-04 Ed Schonberg <schonberg@adacore.com>
23256 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
23257 present before checking whether an interface type covers a synchronized
23260 2005-07-04 Ed Schonberg <schonberg@adacore.com>
23262 * sem_util.adb (Is_Object_Reference): An indexed or selected component
23263 whose prefix is an implicit dereference is an object reference. Removes
23264 spurious errors when compiling with -gnatc.
23266 2005-07-04 Robert Dewar <dewar@adacore.com>
23269 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
23271 2005-07-04 Matthew Gingell <gingell@adacore.com>
23273 * tracebak.c: Enable tracebacks on ia64 platforms
23275 2005-07-04 Vincent Celier <celier@adacore.com>
23277 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
23278 the GNAT BIND command, as gnatbind accepts multiples ALI files with
23279 the -L or -n switches.
23281 2005-07-04 Vincent Celier <celier@adacore.com>
23283 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
23284 correctly computed and the main project data is not modified while
23286 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
23287 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
23288 c++linker as this does not work on some platforms.
23290 2005-07-04 Matthew Heaney <heaney@adacore.com>
23292 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
23294 * a-coinve.adb: Perform constraint checks explicitly.
23296 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23297 Thomas Quinot <quinot@adacore.com>
23299 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
23300 new target gen-soccon.
23302 2005-07-04 Robert Dewar <dewar@adacore.com>
23304 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
23306 2005-07-04 Thomas Quinot <quinot@adacore.com>
23308 * g-socket.ads (Check_Selector): Minor rewording of comment.
23310 2005-07-04 Vincent Celier <celier@adacore.com>
23312 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
23314 2005-07-04 Thomas Quinot <quinot@adacore.com>
23316 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
23318 2005-07-04 Sergey Rybin <rybin@adacore.com>
23320 * gnat_ugn.texi: Add description of --eol gnatpp option
23322 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
23323 Thomas Quinot <quinot@adacore.com>
23325 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
23326 if the user wants all calls of a subprogram to be flagged,
23327 independently of whether they are made from within the same unit or
23329 Mention restriction for pragma Linker_Alias on some platforms.
23330 Document pragma Linker_Constructor and Linker_Destructor.
23331 Rewrite documentation of Weak_External, Linker_Section and
23332 Linker_Alias pragmas.
23334 2005-07-04 Arnaud Charlet <charlet@adacore.com>
23336 * s-stausa.ads, s-stausa.adb: New files.
23338 2005-06-30 Kelley Cook
23340 * all files: Update FSF address in copyright headers.
23341 * gen-soccon.co (main): Output new FSF address in generated files.
23343 2005-06-28 Paul Brook <paul@codesourcery.com>
23345 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
23347 2005-06-14 Olivier Hainque <hainque@adacore.com>
23348 Eric Botcazou <ebotcazou@adacore.com>
23350 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
23351 exc_unwind, now that we are generating proper .debug_frame output for
23354 * tracebak.c: Remove the mips-irix section, as we are now using the
23355 s-mastop based unwinder again.
23356 Under SPARC/Solaris, take into account the stack bias to compute the
23357 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
23360 2005-06-14 Doug Rupp <rupp@adacore.com>
23362 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
23364 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
23366 2005-06-14 Pascal Obry <obry@adacore.com>
23368 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
23369 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
23370 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
23373 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
23374 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
23375 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
23376 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
23377 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
23378 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
23379 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
23380 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
23381 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
23382 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
23383 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
23384 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
23385 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
23386 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
23387 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
23388 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
23389 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
23390 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
23391 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
23392 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
23393 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
23394 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
23395 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
23396 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
23397 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
23398 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
23399 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
23400 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
23401 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
23402 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
23403 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
23404 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
23405 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
23406 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
23407 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
23408 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
23409 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
23410 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
23411 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
23412 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
23413 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
23414 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
23415 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
23416 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
23417 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
23418 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
23419 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
23420 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
23421 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
23422 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
23423 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
23424 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
23425 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
23426 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
23427 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
23428 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
23429 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
23430 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
23431 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
23432 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
23433 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
23434 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
23435 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
23436 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
23437 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
23438 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
23439 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
23440 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
23441 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
23442 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
23443 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
23444 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
23445 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
23446 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
23447 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
23448 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
23449 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
23450 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
23451 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
23452 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
23453 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
23454 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
23455 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
23456 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
23457 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
23458 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
23459 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
23460 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
23461 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
23462 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
23463 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
23464 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
23465 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
23466 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
23467 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
23468 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
23469 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
23470 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
23471 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
23472 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
23473 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
23474 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
23475 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
23476 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
23477 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
23478 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
23479 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
23480 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
23481 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
23482 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
23483 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
23484 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
23485 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
23486 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
23487 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
23488 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
23489 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
23490 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
23491 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
23492 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
23493 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
23494 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
23495 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
23496 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
23497 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
23498 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
23499 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
23500 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
23501 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
23502 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
23503 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
23504 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
23505 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
23507 2005-06-14 Jose Ruiz <ruiz@adacore.com>
23508 Arnaud Charlet <charlet@adacore.com>
23510 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
23511 longer protected objects. They have been replaced by lower-level
23512 suspension objects made up by a mutex and a condition variable (or
23513 their equivalent given a particular OS) plus some internal data to
23514 reflect the state of the suspension object.
23515 (Initialize, Finalize): Add this initialization procedure for
23516 Suspension_Object, which is a controlled type.
23517 (Finalize): Add the finalization procedure for Suspension_Object,
23518 which is a controlled type.
23520 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
23521 Ada.Synchronous_Task_Control because there is no longer a need for a
23522 VxWorks specific version of this package. Target dependencies
23523 has been moved to System.Task_Primitives.Operations.
23525 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
23527 (InitializeCriticalSection, EnterCriticalSection,
23528 LeaveCriticalSection, DeleteCriticalSection): Replace the type
23529 pCriticalSection by an anonymous access type so that we avoid problems
23530 of accessibility to local objects.
23532 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
23533 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
23534 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
23535 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
23536 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
23537 set the environment task mask here.
23538 (Current_State): Add this function that returns the state of the
23540 (Set_False): Add this procedure that sets the state of the suspension
23542 (Set_True): Add this procedure that sets the state of the suspension
23543 object to True, releasing the task that was suspended, if any.
23544 (Suspend_Until_True): Add this procedure that blocks the calling task
23545 until the state of the object is True. Program_Error is raised if
23546 another task is already waiting on that suspension object.
23547 (Initialize): Add this procedure for initializing the suspension
23548 object. It initializes the mutex and the condition variable which are
23549 used for synchronization and queuing, and it sets the internal state
23551 (Finalize): Add this procedure for finalizing the suspension object,
23552 destroying the mutex and the condition variable.
23554 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
23555 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
23556 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
23557 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
23558 which provides a low-level abstraction (using operating system
23559 primitives) for Ada.Synchronous_Task_Control.
23560 This object is made up by a mutex (for ensuring mutual exclusion), a
23561 condition variable (for queuing threads until the condition is
23562 signaled), a Boolean (State) indicating whether the object is open,
23563 and a Boolean (Waiting) reflecting whether there is a task already
23564 suspended on this object.
23566 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
23567 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
23568 s-intman-vms.ads, s-intman-mingw.adb,
23569 (Initialize_Interrupts): Removed, no longer used.
23571 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
23572 (Setup_Interrupt_Mask): New procedure.
23574 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
23576 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
23578 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
23579 this is no longer done in the body of s-taprop
23580 (Server_Task): Explicitely test for Pending_Action in case
23581 System.Parameters.No_Abort is True.
23583 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
23584 is no longer done in the body of s-taprop
23586 2005-06-14 Robert Dewar <dewar@adacore.com>
23588 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
23589 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
23590 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
23591 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
23592 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
23593 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
23594 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
23595 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
23596 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
23597 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
23598 system-linux-hppa.ads, system-vms_64.ads,
23599 system-vxworks-alpha.ads: Minor comment update for
23600 AI-362 (unit is Pure).
23602 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
23603 Add pragma Pure_05 for AI-362
23604 Make remaining conversion functions obsolescent in Ada 95
23606 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
23607 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
23608 Add entries for a-wichun and a-zchuni
23609 Add a-widcha a-zchara for AI-395
23610 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
23612 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
23613 Add entries for a-wichun.o and a-zchuni.o
23614 Entries for a-widcha.o and a-zchara.o
23615 Add entry for a-chacon.o
23617 * a-ztenau.adb: Add with of Ada.Characters.Conversions
23619 * a-chacon.ads, a-chacon.adb: New files.
23621 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
23622 categorization violations.
23624 * a-strmap.ads: Add pragma Pure_05 for AI-362
23625 * a-strmap.ads: Add note on implicit categorization for AI-362
23627 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
23629 * par-prag.adb: Dummy entry for pragma Persistent_BSS
23630 Set Ada_Version_Explicit, for implementation of AI-362
23631 Add processing for pragma Pure_05 and Preelaborate_05
23632 Add entry for Assertion_Policy pragma
23634 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
23635 when needed for proper processing of categorization stuff
23638 For several cases, make errors in preealborate units warnings,
23639 instead of errors, if GNAT_Mode is set. For AI-362.
23641 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
23642 preelaborate unit is now warning if in GNAT mode
23644 * s-stoele.ads: Document AI-362 for pragma preelaborate
23646 2005-06-14 Doug Rupp <rupp@adacore.com>
23648 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
23649 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
23650 Default_Exception_Msg_Max_Length: new parameter.
23652 * a-except.ads: (Exception_Msg_Max_Length): Set to
23653 System.Parameters.Default_Exception_Msg_Max_Length
23654 Add pragma Preelaborate_05 for AI-362
23655 Add warnings off to allow categorization violations for AI-362
23657 2005-06-14 Vincent Celier <celier@adacore.com>
23659 * gnatsym.adb: Adapt to modification of package Symbols: procedure
23660 Process is now in package Processing.
23662 * symbols.ads, symbols.adb:
23663 (Processing): New package, containing procedure Process
23665 * symbols-vms-alpha.adb:
23666 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
23668 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
23669 symbols-processing-vms-ia64.adb: New files.
23671 2005-06-14 Pascal Obry <obry@adacore.com>
23673 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
23674 implementation. This new version generates the proper DllMain routine
23675 to initialize the SAL. The DllMain is generated in Ada and compiled
23676 before being added as option to the library build command.
23678 2005-06-14 Doug Rupp <rupp@adacore.com>
23679 Pascal Obry <obry@adacore.com>
23681 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
23682 call to decc$translate_vms.
23683 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
23684 need to remove those quotes before catenating the filename.
23685 (__gnat_locate_exec_on_path): improvements to the Win32 section:
23686 * avoid allocating the memory twice for better efficiency;
23687 * allocate 32K buffer for environment expansion as suggested by MSDN;
23688 * prepend ".;" to the path so that current directory is searched too.
23690 2005-06-14 Robert Dewar <dewar@adacore.com>
23692 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
23693 instead of raising CE (AI-241)
23694 Add warnings off to allow categorization violations for AI-362
23696 2005-06-14 Robert Dewar <dewar@adacore.com>
23698 * ali-util.adb, gnatbind.adb: Remove references to
23699 Force_RM_Elaboration_Order.
23701 * switch-b.adb: Remove recognition of -f switch
23703 2005-06-14 Pascal Obry <obry@adacore.com>
23705 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
23706 implementation which is slightly more efficient.
23708 2005-06-14 Gary Dismukes <dismukes@adacore.com>
23709 Javier Miranda <miranda@adacore.com>
23710 Ed Schonberg <schonberg@adacore.com>
23711 Hristian Kirtchev <kirtchev@adacore.com>
23713 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
23714 allocator's designated type is a class-wide type, and compiling for
23715 Ada 2005, emit a run-time check that the accessibility level of the
23716 type given in the allocator's expression is not deeper than the level
23717 of the allocator's access type.
23719 (Tagged_Membership): Modified to gives support to abstract interface
23722 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
23724 (Descendant_Tag): New predefined function
23725 (Is_Descendant_At_Same_Level): New predefined function
23726 (Get_Access_Level): New private function
23727 (Set_Access_Level): New private procedure
23728 (IW_Membership): New function. Given the tag of an object and the tag
23729 associated with an interface, evaluate if the object implements the
23731 (Register_Interface_Tag): New procedure used to initialize the table of
23732 interfaces used by the IW_Membership function.
23733 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
23734 of the dispatch table.
23735 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
23736 table of interfaces of the parent.
23737 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
23738 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
23739 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
23740 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
23741 Ada 2005 semantics for the new predefined function.
23743 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
23744 call to Descendant_Tag rather than Internal_Tag.
23745 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
23746 the accessibility level of the attribute's Item parameter is not deeper
23747 than the level of the attribute's prefix type. Tag_Error is raised if
23748 the check fails. The check is only emitted for Ada_05.
23749 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
23750 requested stream attribute, use it.
23751 (Expand_N_Attribute_Reference): If the designated type is an interface
23752 then rewrite the referenced object as a conversion to force the
23753 displacement of the pointer to the secondary dispatch table.
23754 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
23755 is a dereference of an object with a constrained partial view.
23757 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
23758 type is a class-wide type, emit a run-time check that the accessibility
23759 level of the returned object is not deeper than the level of the
23760 function's master (only when compiling for Ada 2005).
23762 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
23763 Action_Nb_Arg): Add entries for new Get_Access_Level and
23764 Set_Access_Level routines in these tables.
23765 (Make_DT): Generate a call to set the accessibility level of the
23766 tagged type in its TSD.
23767 (Make_DT): Code cleanup. The functionality of generating all the
23768 secondary dispatch tables has been moved to freeze_record_type.
23769 (Make_Abstract_Interface_DT): Minor code cleanup.
23770 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
23771 this subprogram implements a new algorithm that provides the
23772 same functionality and it is more clear in case of primitives
23773 associated with abstract interfaces.
23774 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
23775 clean up, the functionality of this subprogram is now provided
23776 by Set_All_DT_Position.
23777 (Write_DT): New subprogram: a debugging procedure designed to be called
23778 within gdb to display the dispatch tables associated with a tagged
23780 (Collect_All_Interfaces): New subprogram that collects the whole list
23781 of interfaces that are directly or indirectly implemented by a tagged
23783 (Default_Prim_Op_Position): New subprogram that returns the fixed
23784 position in the dispatch table of the default primitive operations.
23785 (Expand_Interface_Actuals): New subprogram to generate code that
23786 displaces all the actuals corresponding to class-wide interfaces to
23787 reference the interface tag of the actual object.
23788 (Expand_Interface_Conversion): New subprogram. Reference the base of
23789 the object to give access to the interface tag associated with the
23790 secondary dispatch table.
23791 (Expand_Interface_Thunk): New subprogram that generates the code of the
23792 thunk. This is required for compatibility with the C+ ABI.
23793 (Make_Abstract_Interface_DT): New subprogram that generate the
23794 declarations for the secondary dispatch tables associated with an
23795 abstract interface.
23796 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
23797 attribute for each primitive operation covering interface subprograms
23798 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
23799 These subprograms were upgraded to give support to abstract interfaces
23801 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
23802 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
23803 RE_Set_Access_Level.
23804 (RE_Unit_Table): Add entries for new Ada.Tags operations.
23805 Add support to call the followig new run-time subprograms:
23806 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
23808 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
23809 match its full declaration when both have an access definition with
23810 statically matching designated subtypes.
23811 (Analyze_Component_Declaration): Delete commented out code that was
23812 incorrectly setting the scope of an anonymous access component's type.
23813 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
23814 an access discriminant when the containing type is nonlimited.
23815 (Make_Incomplete_Type_Declaration): Create an incomplete type
23816 declaration for a record type that includes self-referential access
23818 (Check_Anonymous_Access_Types): Before full analysis of a record type
23819 declaration, create anonymous access types for each self-referential
23821 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
23822 an access component in this context is a Local_Anonymous_Access, for
23823 proper accessibility checks.
23824 (Access_Definition): Set properly the scope of the anonymous access type
23825 created for a stand-alone access object.
23826 (Find_Type_Of_Object): An object declaration may be given with an access
23828 (Complete_Subprograms_Derivation): New subprogram used to complete
23829 type derivation of private tagged types implementing interfaces.
23830 In this case some interface primitives may have been overriden
23831 with the partial-view and, instead of re-calculating them, they
23832 are included in the list of primitive operations of the full-view.
23833 (Build_Derived_Record_Type): Modified to give support to private
23834 types implemening interfaces.
23835 (Access_Definition): Reject ALL on anonymous access types.
23836 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
23837 type derivation to occur at a deeper accessibility level than the
23839 For the case of derivation within a generic body however, disallow the
23840 derivation if the derived type has an ancestor that is a formal type
23841 declared in the formal part of an enclosing generic.
23842 (Analyze_Object_Declaration): For protected objects, remove the check
23843 that they cannot contain interrupt handlers if not declared at library
23845 (Add_Interface_Tag_Components): New subprogram to add the tag components
23846 corresponding to all the abstract interface types implemented by a
23847 record type or a derived record type.
23848 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
23849 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
23850 Process_Full_View, Record_Type_Declaration): Modified to give
23851 support to abstract interface types
23852 (Collect_Interfaces): New subprogram that collects the list of
23853 interfaces that are not already implemented by the ancestors
23854 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
23855 when partial view has no discriminants and full view has defaults.
23856 (Constrain_Access): Reject a constraint on a general access type
23857 if the discriminants of the designated type have defaults.
23858 (Access_Subprogram_Declaration): Associate the Itype node with the inner
23859 full-type declaration or subprogram spec. This is required to handle
23860 nested anonymous declarations.
23861 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
23862 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
23863 Process_Full_View, Record_Type_Declaration): Modified to give
23864 support to abstract interface types
23865 (Derive_Subprograms): Addition of a new formal to indicate if
23866 we are in the case of an abstact-interface derivation
23867 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
23868 to the specification because it is requied to analyze all the
23869 identifiers found in a list of interfaces
23871 * debug.adb: Complete documentation of flag "-gnatdZ"
23873 * exp_ch3.adb: Implement config version of persistent_bss pragma
23874 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
23875 testing for TSS presence to properly enforce visibility rules.
23876 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
23877 Make_Abstract_Interfaces_DT to generate the secondary tables
23878 associated with abstract interfaces.
23879 (Build_Init_Procedure): Modified to initialize all the tags
23881 (Component_Needs_Simple_Initialization): Similar to other tags,
23882 interface tags do not need initialization.
23883 (Freeze_Record_Type): Modified to give support to abstract interface
23885 (Expand_N_Object_Declaration): Do not generate an initialization for
23886 a scalar temporary marked as internal.
23888 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
23889 in-out parameter that is a component in an initialization procedure,
23890 whose constraint might depend on discriminants, and that may be
23891 misaligned because of packing or representation clauses.
23892 (Is_Legal_Copy): New predicate to determine whether a possibly
23893 misaligned in-out actual can actually be passed by copy/return. This
23894 is an error in case the type is by_reference, and a warning if this is
23895 the consequence of a DEC import pragma on the subprogram.
23896 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
23898 (Expand_Inlined_Call): Mark temporary generated for the return value as
23899 internal, so that no useless scalar normalization is generated for it.
23900 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
23901 null procedure can always be inlined.
23902 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
23903 procedure, generate an explicit empty body for it.
23905 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
23906 Given a type implementing an interface, returns the corresponding
23907 access_disp_table value.
23908 (Find_Interface_Tag): New subprogram. Given a type implementing an
23909 interface, returns the record component containing the tag of the
23911 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
23912 previous ones that return the corresponding tag and access_disp_table
23914 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
23915 is a predefined primitive operation.
23916 (Expand_Subtype_From_Expr): If the expression is a selected component
23917 within an initialization procedure, compute its actual subtype, because
23918 the component may depend on the discriminants of the enclosing record.
23920 * i-cpp.ads, i-cpp.adb:
23921 This package has been left available for compatibility with previous
23922 versions of the frontend. As part of the new layout this is now a
23923 dummy package that uses declarations available at a-tags.ads
23925 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
23926 "constant access" and "aliased [constant] access" when not compiling
23928 Suppress Ada 2005 keyword warning if -gnatwY used
23929 (P_Identifier_Declarations): Add support for object declarations with
23930 access definitions.
23931 (Private_Extension_Declaration): Complete the documentation
23932 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
23933 attribute in case of private extension declaration
23934 (P_Type_Declaration): Mark as "abstract" the type declarations
23935 corresponding with protected, synchronized and task interfaces
23936 (P_Declarative_Items): "not" and "overriding" are overriding indicators
23937 for a subprogram or instance declaration.
23939 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
23940 instantiation that is a dispatching operation has controlling access
23941 parameters that are null excluding.
23942 Save and restore Ada_Version_Explicit, for implementation of AI-362
23943 (Validate_Derived_Type_Instance): Add check for abstract interface
23945 (Analyze_Formal_Package): Establish Instantiation source for the copy of
23946 the generic that is created to represent the formal package.
23947 (Analyze_Package_Instantiation): Instantiate body immediately if the
23948 package is a predefined unit that contains inlined subprograms, and
23949 we are compiling for a Configurable_Run_Time.
23950 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
23951 If the program has a null default, generate an empty body for it.
23953 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
23954 error message condition, null procedures are correctly detected now.
23955 (New_Overloaded_Entity): Bypass trivial overriding indicator check
23956 for subprograms in the context of protected types. Instead, the
23957 indicator is examined in Sem_Ch9 while analysing the subprogram
23959 (Check_Overriding_Indicator): Check consistency of overriding indicator
23960 on subprogram stubs as well.
23961 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
23963 (Analize_Subprogram_Specification): When analyzing a subprogram in which
23964 the type of the first formal is a concurrent type, replace this type
23965 by the corresponding record type.
23966 (Analyze_Subprogram_Body): Undo the previous work.
23967 (Analyze_Procedure_Call): If the call has the form Object.Op, the
23968 analysis of the prefix ends up analyzing the call itself, after which
23970 (Has_Interface_Formals): New subprogram subsidiary to analyze
23971 subprogram_specification that returns true if some non
23972 class-wide interface subprogram is found
23973 (New_Overloaded_Entity): Modified to give support to abstract
23975 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
23976 access to subprograms must be recursive.
23977 (Is_Unchecked_Conversion): Improve the test that recognizes
23978 instantiations of Unchecked_Conversion, and allows them in bodies that
23979 are to be inlined by the front-end. When the body comes from an
23980 instantiation, a reference to Unchecked_Conversion will be an
23981 Expanded_Name, even though the body has not been analyzed yet.
23982 Replace Is_Overriding and Not_Overriding in subprogram_indication with
23983 Must_Override and Must_Not_Override, to better express intent of AI.
23984 (Analyze_Subprogram_Body): If an overriding indicator is given, check
23985 that it is consistent with the overrinding status of the subprogram
23987 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
23989 If the subprogram is a null procedure, indicate that it does not need
23992 * sem_disp.adb (Check_Controlling_Type): Give support to entities
23993 available through limited-with clauses.
23994 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
23995 allowed as the last primitive of a tagged type if it has no previous
23997 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
23998 to give support to abstract interface types
24000 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
24001 in the case where the target type is an anonymous access type of an
24002 object or component (that is, when Is_Local_Anonymous_Access is true).
24003 Prevent the special checks for conversions of access discriminants in
24004 the case where the discriminant belongs to a nonlimited type, since
24005 such discriminants have their accessibility level defined in the same
24006 way as a normal component of an anonymous access type.
24007 (Resolve_Allocator): When an allocator's designated type is a class-wide
24008 type, check that the accessibility level of type given in the
24009 allocator's expression or subtype indication is not statically deeper
24010 than the level of the allocator's access type.
24011 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
24012 name in a discriminant constraint of a record component.
24013 (Resolve_Explicit_Dereference): Do not check whether the type is
24014 incomplete when the dereference is a use of an access discriminant in
24015 an initialization procedure.
24016 (Resolve_Type_Conversion): Handle conversions to abstract interface
24018 (Valid_Tagged_Conversion): The conversion of a tagged type to an
24019 abstract interface type is always valid.
24020 (Valid_Conversion): Modified to give support to abstract interface types
24021 (Resolve_Actuals): Enable full error reporting on view conversions
24022 between unrelated by_reference array types.
24023 The rule for view conversions of arrays with aliased components is
24024 weakened in Ada 2005.
24025 Call to obsolescent subprogram is now considered to be a violation of
24026 pragma Restrictions (No_Obsolescent_Features).
24027 (Check_Direct_Boolean_Operator): If the boolean operation has been
24028 constant-folded, there is nothing to check.
24029 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
24030 check on possible violation of restriction No_Direct_Boolean_Operators
24031 until after expansion of operands, to prevent spurious errors when
24032 operation is constant-folded.
24034 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
24035 Has_Compatible_Type): Modified to give support to abstract interface
24037 (Interface_Present_In_Ancestor): New function to theck if some ancestor
24038 of a given type implements a given interface
24040 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
24041 prefix is a parameterless function that returns an access_to_procedure.
24042 (Transform_Object_Operation): Handle properly function calls of the
24043 form Obj.Op (X), which prior to analysis appear as indexed components.
24044 (Analyze_One_Call): Complete the error notification to help new Ada
24046 (Analyze_Allocator): For an allocator without an initial value, where
24047 the designated type has a constrained partial view, a discriminant
24048 constraint is illegal.
24050 2005-06-14 Robert Dewar <dewar@adacore.com>
24052 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
24053 do with treatment of Set_Col when positioned at end of line character.
24055 2005-06-14 Robert Dewar <dewar@adacore.com>
24057 * atree.adb: (Elist*): Protect against uninitialized field
24059 2005-06-14 Ed Schonberg <schonberg@adacore.com>
24061 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
24062 for an attribute reference that returns an access type.
24063 (Apply_Discriminant_Check): No need for check if (designated) type has
24064 constrained partial view.
24066 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
24067 both bound checks, rather than a conjunction.
24068 (Insert_Valid_Check): If the expression is an actual that is an indexed
24069 component of a bit-packed array, force expansion of the packed element
24070 reference, because it is specifically inhibited elsewhere.
24072 2005-06-14 Vincent Celier <celier@adacore.com>
24074 * clean.adb (Clean_Project): Correctly delete executable specified as
24075 absolute path names.
24077 * make.adb (Gnatmake): Allow relative executable path names with
24078 directory information even when project files are used.
24079 (Change_To_Object_Directory): Fail gracefully when unable to change
24080 current working directory to object directory of a project.
24081 (Gnatmake): Remove exception handler that could no longer be exercized
24082 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
24083 may be deallocated by Normalize_Arguments.
24084 (Collect_Arguments): Eliminate empty arguments
24086 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
24087 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
24088 (Check_Project): Return False when Project is No_Project. Return True
24089 when All_Projects is True.
24090 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
24091 All_Projects to True.
24094 2005-06-14 Ed Schonberg <schonberg@adacore.com>
24095 Javier Miranda <miranda@adacore.com>
24096 Thomas Quinot <quinot@adacore.com>
24097 Robert Dewar <dewar@adacore.com>
24098 Hristian Kirtchev <kirtchev@adacore.com>
24099 Gary Dismukes <dismukes@adacore.com>
24101 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
24102 anonymous access types, to indicate that the accessibility level of
24103 the type is determined by that of the enclosing declaration.
24104 (Has_Persistent_BSS): New flag
24105 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
24106 of this attribute with functions.
24107 (Is_Primitive_Wrapper): Remove the barrier.
24108 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
24109 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
24111 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
24112 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
24114 (Is_Pure_Unit_Access_Type): New flag
24115 (Abstract_Interfaces): Complete the assertion to cover all usages.
24116 (Set_Is_Interface): Complete the assertion to cover all usages.
24117 (Is_Primitive_Wrapper): New attribute.
24118 (Is_Obsolescent): Now applies to all entities (though it is only set
24119 for subprograms currently)
24120 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
24121 which solves various problems concerning access subtypes.
24122 (Has_Persistent_BSS): New flag
24123 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
24124 Remove these subprograms because this attribute is currently
24127 Has_Specified_Stream_Input (Flag190)
24128 Has_Specified_Stream_Output (Flag191)
24129 Has_Specified_Stream_Read (Flag192)
24130 Has_Specified_Stream_Write (Flag193)
24131 Present in all type and subtype entities. Set for a given view if the
24132 corresponding stream-oriented attribute has been defined by an
24133 attribute definition clause. When such a clause occurs, a TSS is set
24134 on the underlying full view; the flags are used to track visibility of
24135 the attribute definition clause for partial or incomplete views.
24136 (Is_Pure_Unit_Access_Type): New flag
24137 Clarify use of Is_Internal.
24138 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
24139 internally generated to wrap the invocation of tasks and protected
24140 types that implement interfaces.
24141 (Implementation_Base_Type): Documentation correction
24142 (Is_Obsolescent): Now applies to all entities (though it is only set
24143 for subprograms currently)
24144 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
24145 which solves various problems concerning access subtypes.
24147 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
24148 for examined parameters. Identify unequal parameter list lengths as
24149 non-conformant parameters.
24150 (Overriding_Possible): Do not check for "All" qualifier in declaration
24151 of controlling access parameter, following prescription of AI-404.
24152 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
24153 that build the procedure body that wraps an entry invocation
24154 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
24155 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
24156 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
24157 give support to abstract interface types
24159 * freeze.adb (Freeze_Entity): Issue error message if
24160 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
24161 type has no storage pool (Ada 2005) AI-366.
24162 Also modified to give support to abstract interface types
24163 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
24164 Inline_Always pragma.
24166 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
24167 now begin an entry declaration.
24168 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
24169 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
24170 a subprogram declaration preceded by an overriding indicator.
24171 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
24172 declarations or subprogram declarations preceded by reserved words
24173 "not" or "overriding".
24174 (P_Entry_Declaration): Update comment. Parse and check overriding
24175 indicator, set semantic flags of entry declarations.
24176 (P_Task): New error message in case of private applied
24177 to a task type declaration.
24178 (P_Protected): New error message in case of private applied
24179 to a task type declaration.
24181 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
24182 in which the full view of a type implementing an interface is a
24184 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
24185 Declare_Inherited_Private_Subprograms): If an explicit operation
24186 overrides an operation that is inherited in the private part, mark the
24187 explicit one as overriding, to enable overriding indicator checks.
24188 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
24189 full view to partial view, to simplify handling in back-end.
24191 * sprint.adb: Print interface lists where needed: derived types,
24192 protected types, task types.
24193 output "is null" for null procedures. Part of implementation of
24195 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
24196 relaxation of rules for access types in pure, shared passive partitions.
24198 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
24199 first read discriminants into temporary objects, performing checks on
24200 the read values, then possibly performing discriminant checks on the
24201 actual (if it is constrained), and only finally reading the components
24202 into a constrained temporary object.
24203 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
24204 case of reading discriminants of a mutable record type to recognize
24205 the new form of the code generated by
24206 Build_Mutable_Record_Read_Procedure.
24208 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
24209 of a simple call to Make_TSS_Name.
24210 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
24211 buffer, in order for Is_TSS to work correctly on local TSS names.
24213 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
24214 Is_Local_Anonymous_Access to check legaliy of attributes in the
24215 context of access components and stand-alone access objects.
24216 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
24217 treated as available for a limited private type if there is an
24218 attribute_definition_clause that applies to its full view, but not in
24219 other cases where the attribute is available for the full view
24220 (specifically, the sole fact that the full view is non-limited does not
24221 make the attribute available for the partial view).
24222 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
24223 non-overloaded intrinsic subprogram.
24224 (Check_Stream_Attribute): Reject an attribute reference for an
24225 unavailable stream attribute even if the prefix is not a limited type
24226 (case of a 'Input attribute reference for an abstract, non-classwide
24228 (Stream_Attribute_Available): New function to determine whether a stream
24229 attribute is available at a place.
24230 (Check_Attribute): Use Stream_Attribute_Available instead of just
24231 testing for TSS presence on the implementation base type.
24232 (Analyze_Attribute): Modified to give support to task interfaces.
24233 (Analyze_Access_Attribute): Add error check for use of an Access (or
24234 Unrestricted_Access) attribute with a subprogram marked as
24236 (Analyze_Attribute, case Attribute_Address): Add error check for use of
24237 an Address attribute with a subprogram marked as Inline_Always.
24238 Update Eval_Attribute to handle new value of Width from AI-395
24240 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
24241 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
24242 Factor common code across the stream-oriented attribute circcuits into
24243 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
24244 processing is functionally identical to the previous duplicated one,
24245 except that an expression that denotes an abstract subprogram will now
24246 be rejected, as mandated by AI-195 item 5.
24248 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
24249 Is_Local_Anonymous_Access to apply accessibility checks to access
24250 components and stand-alone access objects.
24251 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
24253 (Is_Potentially_Persistent_Type): New function
24254 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
24255 a heap-object whose type has a constrained partial view, the object is
24256 unconstrained and the component may depend on a discriminant, making its
24259 * sinfo.ads, sinfo.adb
24260 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
24261 (Must_Override): Flag applicable to N_Entry_Declaration.
24262 Indicate that interface_list can appear in single task and single
24263 protected declarations.
24264 Replace Is_Overriding and Not_Overriding with Must_Override and
24265 Must_Not_Override, to better express intent of AI.
24266 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
24267 of an overriding indicator in a subprogram or instance.
24268 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
24269 Add the overriding indicator [[not] overriding] construct to the
24270 following grammar productions:
24272 GENERIC_INSTANTIATION
24273 SUBPROGRAM_SPECIFICATION
24275 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
24276 can start with an overriding indicator.
24278 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
24279 flags accordingly on subrogram specifications or instances.
24282 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
24283 overriding_indicator, if present, is consistent with status of spec.
24284 Improve error message for null-excluding checks on controlling access
24286 (Check_In_Previous_With_Clause): Protect the frontend against
24287 previously reported critical errors in the context clauses.
24288 Save and restore Ada_Version_Explicit, for implementation of AI-362
24289 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
24290 operation verify that controlling formals of the renamed entity that
24291 are access parameters are explicitly non-null.
24292 (Find_Expanded_Name): Improve error message when prefix is an illegal
24293 reference to a private child unit.
24295 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
24296 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
24297 Rewrite to correspond to new wide character names in AI-395
24299 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
24300 default procedures.
24302 2005-06-14 Ed Schonberg <schonberg@adacore.com>
24303 Robert Dewar <dewar@adacore.com>
24305 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
24306 code, not on the bodies of predefined operations, to cut down on
24309 2005-06-14 Ed Schonberg <schonberg@adacore.com>
24311 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
24312 be expanded in place. The size computation does not require a
24313 subtraction, which would raise an exception on a compiler built with
24314 assertions when the upper bound is Integer'first.
24315 (Flatten): For an array of composite components, take into account the
24316 size of the components to determine whether it is safe to expand the
24317 array into a purely positional representation.
24319 2005-06-14 Thomas Quinot <quinot@adacore.com>
24321 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
24322 denoting a formal parameter into account.
24324 2005-06-14 Ed Schonberg <schonberg@adacore.com>
24326 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
24327 the entry_call alternative of a conditional entry call, wrap the
24328 conditional entry call itself.
24330 2005-06-14 Nicolas Setton <setton@adacore.com>
24331 Ed Schonberg <schonberg@adacore.com>
24333 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
24334 the "simple_choice" member in a variant record, in accordance with the
24335 description in the package spec: the information output for a constant
24336 should be "S number", not "SS number".
24337 (Get_Encoded_Name): Return at once if not generating code. Avoids name
24338 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
24340 2005-06-14 Thomas Quinot <quinot@adacore.com>
24342 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
24343 RACW without any primitives, do not generate the if statement for
24344 dispatching by name in the PolyORB/DSA case, as it would be malformed
24345 (it would have an Elsif_Parts list that is not No_List, but with a
24348 2005-06-14 Robert Dewar <dewar@adacore.com>
24350 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
24352 2005-06-14 Jose Ruiz <ruiz@adacore.com>
24354 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
24355 can determine whether pragma Suppress_Exception_Locations is in effect.
24357 * utils2.c (build_call_raise): Do not pass the file name to the
24358 exception handler if pragma Suppress_Exception_Locations is in effect.
24359 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
24361 2005-06-14 Emmanuel Briot <briot@adacore.com>
24363 * g-debpoo.adb (Deallocate, Dereference): Improve output.
24365 2005-06-14 Nicolas Roche <roche@adacore.com>
24367 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
24369 (Next_Level): Fix minor bug in handling of ../dir case
24370 (Read): Add dir separator to Directory name so that "" is understood as
24373 2005-06-14 Pascal Obry <obry@adacore.com>
24375 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
24376 releasing the items.
24378 2005-06-14 Vincent Celier <celier@adacore.com>
24379 Cyrille Comar <comar@adacore.com>
24381 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
24382 with output file descriptor and with output file name.
24383 (Dup, Dup2): Now global procedures as they are used by two subprograms
24384 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
24386 2005-06-14 Thomas Quinot <quinot@adacore.com>
24389 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
24391 (Create_Selector): Bind listening socket used to create the signalling
24392 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
24393 Set listen backlog to 1 to ensure that we detect socket theft by a
24394 failure of our own connect(2) call.
24395 (Check_Selector): Improve documentation of the selector mechanism.
24396 (Broadcast_Inet_Addr): New constant.
24398 2005-06-14 Gary Dismukes <dismukes@adacore.com>
24400 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
24401 type which turns out to be an incomplete and incorrect fix.
24402 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
24403 of the type is declared in a record (for determination of insertion
24405 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
24406 a private type and ensure that the primary entity is used for the type
24407 of the newly created function's V formal by taking the Etype of the
24410 2005-06-14 Javier Miranda <miranda@adacore.com>
24411 Jose Ruiz <ruiz@adacore.com>
24412 Robert Dewar <dewar@adacore.com>
24413 Ed Schonberg <schonberg@adacore.com>
24415 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
24416 that indicates if we are parsing a compilation unit found in a
24417 limited-with clause.
24418 It is use to avoid the circularity check.
24420 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
24421 we are parsing a compilation unit found in a limited-with clause. This
24422 is use to avoid the circularity check.
24424 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
24425 unit as a consequence of parsing a limited-with clause. This is used
24426 to avoid the circularity check.
24428 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
24429 (Analyze_Context): Limited-with clauses are now allowed
24430 in more compilation units.
24431 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
24432 againts previously reported critical errors in context clauses
24433 (Install_Limited_Withed_Unit): Code cleanup plus static detection
24434 of two further errors: renamed subprograms and renamed packages
24435 are not allowed in limited with clauses.
24436 (Install_Siblings): Do not install private_with_clauses on the package
24437 declaration for a non-private child unit.
24438 (Re_Install_Parents): When a parent of the subunit is reinstalled,
24439 reset visibility of child units properly.
24440 (Install_Withed_Unit): When a child unit appears in a with_clause of its
24441 parent, it is immediately visible.
24443 2005-06-14 Ed Schonberg <schonberg@adacore.com>
24444 Emmanuel Briot <briot@adacore.com>
24446 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
24447 declared within an inlined body as referenced, to prevent spurious
24449 (Output_One_Ref): If an entity renames an array component, indicate in
24450 the ALI file that this aliases (renames) the array. Capture as well
24451 function renamings that rename predefined operations.
24452 Add information about generic parent for package and subprogram
24454 (Get_Type_Reference): For a subtype that is the renaming of an actual in
24455 an instantiation, use the first_subtype to ensure that we don't generate
24456 cross-reference information for internal types.
24457 For objects and parameters of a generic private type, retain the '*'
24458 indicator to distinguish such an entity from its type.
24460 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
24461 to store information about instantiated entities.
24463 * ali.adb (Scan_ALI): Add support for parsing the reference to the
24466 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
24467 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
24470 2005-06-10 Doug Rupp <rupp@adacore.com>
24471 Arnaud Charlet <charlet@adacore.com>
24472 Olivier Hainque <hainque@adacore.com>
24473 Jose Ruiz <ruiz@adacore.com>
24475 * Make-lang.in: Add initialize.o when needed.
24476 Remove obsolete references to RT_FLAGS.
24477 Add missing dependencies for sdefault.o
24479 * initialize.c: New file.
24481 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
24482 [VMS] cond_signal_table: Fix problem in declaration.
24483 [VMS] __gnat_error_handler: rewrite.
24484 Move all __gnat_initialize() routines to initialize.c
24485 Specialize the former "hpux" section to "hppa hpux", as this is what the
24486 section really is here for and we now have other hpux ports that need
24487 different contents.
24488 (__gnat_adjust_context_for_raise) i386-linux: First version of this
24489 function for this target. Adjust PC by one in the machine context. This
24490 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
24491 it is more reliable to do that in the signal handler itself.
24492 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
24493 flags, so that the handler is passed the context structure to adjust
24494 prior to the raise.
24495 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
24496 SA_SIGINFO sigaction should look like. Call
24497 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
24498 Machine_State_Operations stuff.
24499 Add conditional code so that the x86_64 is also supported.
24501 2005-06-14 Pascal Obry <obry@adacore.com>
24503 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
24506 2005-06-14 Robert Dewar <dewar@adacore.com>
24508 * opt.ads, opt.adb: New flags for persistent_bss mode
24509 Add Ada_Version_Explicit, for implementation of AI-362
24510 Add Assertions_Enabled_Config and associated handling
24511 Needed since setting can be changed with Assertion_Policy pragma
24512 Add new flag Warn_On_Ada_2005_Compatibility
24514 * switch-c.adb: Recognize -gnatwy/Y
24515 Set Ada_Version_Explicit, for implementation of AI-362
24516 The -gnatg switch now includes -gnatyu
24518 * usage.adb: Add -gnatwy/Y
24519 Remove wrong asterisk on -gnatwX line
24520 Add line for -gnatyu switch
24522 2005-06-14 Vincent Celier <celier@adacore.com>
24524 * osint.adb (Add_Default_Search_Dirs): Put source and object
24525 directories of project files before directories coming from
24526 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
24528 2005-06-14 Robert Dewar <dewar@adacore.com>
24531 * par-ch2.adb (Scan_Pragma_Argument): New procedure
24532 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
24534 2005-06-14 Vincent Celier <celier@adacore.com>
24536 * prep.adb (Preprocess): Ignore error when scanning the first token of
24539 2005-06-14 Vincent Celier <celier@adacore.com>
24541 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
24542 (Check_Stand_Alone_Library): If the specified reference symbol file does
24543 not exist, only issue a warning when the symbol policy is not
24544 Controlled. And, when symbol policy is Compliant, set the symbol
24545 policy to Autonomous.
24547 2005-06-14 Vincent Celier <celier@adacore.com>
24549 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
24550 when the project file in a with clause is not the last one, that is the
24551 project file name is followed by a comma.
24552 * prj-pp.adb: (First_With_In_List): New Boolean global variable
24553 (Print): Issue list of project files separated by commas in with clauses
24554 according to the values returned by Is_Not_Last_In_List.
24555 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
24556 (Set_Is_Not_Last_In_List): New procedure
24558 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
24560 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
24562 2005-06-14 Robert Dewar <dewar@adacore.com>
24564 * scng.adb: Add call to new Check_EOF routine
24565 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
24566 Add some comments regarding wide character handling
24568 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
24570 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
24572 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
24573 characters are now considered graphic characters and hence yield false
24576 * nmake.adt: Modify header so that xnmake does not generate output
24577 files with multiple blank lines.
24579 * treeprs.adt: Remove a blank line so that output from xtreeprs does
24580 not have an extra blank line
24582 2005-06-14 Gary Dismukes <dismukes@adacore.com>
24584 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
24585 expression when the component type is an anonymous access type to
24586 ensure that appropriate accessibility checks are done.
24588 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
24589 expression of an assignment when the target object is of an anonymous
24590 access type. This ensures that required accessibility checks are done.
24591 (One_Bound): Move the check for type Universal_Integer to
24593 (Process_Bounds): Check whether the type of the preanalyzed range is
24594 Universal_Integer, and in that case set Typ to Integer_Type prior
24595 to setting the type of the original range and the calls to One_Bound.
24597 2005-06-14 Ed Schonberg <schonberg@adacore.com>
24599 * sem_case.adb (Expand_Others_Choice): Improve warning.
24601 2005-06-14 Ed Schonberg <schonberg@adacore.com>
24603 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
24604 constraint of full view if present, when other type is discriminated.
24605 (Eval_Relational_Op): Recognize tests of pointer values against Null,
24606 when the pointer is known to be non-null, and emit appropriate warning.
24608 2005-06-14 Robert Dewar <dewar@adacore.com>
24609 Ed Schonberg <schonberg@adacore.com>
24612 * sem_prag.adb: Implement pragma Persistent_BSS
24613 Remove obsolete pragma Persistent_Data, Persistent_Object
24614 Set Ada_Version_Explicit, for implementation of AI-362
24615 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
24616 Add processing for pragma Pure_05 and Preelaborate_05
24617 Add processing for Assertion_Policy pragma
24618 Add pragma identifiers for Assert
24619 (Analyze_Pragma, case Assert): Check number of arguments
24620 (Process_Inline): Additional guard against an illegal program, where the
24621 argument of the pragma is undefined, and warnings on redundant
24622 constructs are enabled.
24623 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
24624 Ada_05 to this pragma, specifying that the pragma is only active in
24626 (Check_Arg_Order): New procedure
24627 Add appropriate calls to this procedure throughout
24628 Also throughout, check entity name before doing any other checks
24630 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
24631 Remove obsolete pragma Persistent_Data, Persistent_Object
24632 Add entries for pragma Pure_05 and Preelaborate_05
24633 Add entries for Assertion_Policy pragma and associated names
24634 Add some names for pragma argument processing
24636 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
24638 2005-06-14 Ed Schonberg <schonberg@adacore.com>
24640 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
24641 appears within a negation (either from source or as a rewriting of
24642 inequality) adjust text of warning accordingly.
24644 2005-06-14 Thomas Quinot <quinot@adacore.com>
24646 * s-strxdr.adb: Follow AI95-00132
24648 2005-06-14 Arnaud Charlet <charlet@adacore.com>
24650 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
24652 2005-06-14 Arnaud Charlet <charlet@adacore.com>
24653 Jose Ruiz <ruiz@adacore.com>
24655 * s-tposen.adb, s-tpobop.adb
24656 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
24658 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
24659 there is no violation of the Max_Entry_Queue_Length restriction (if it
24660 has been set); Program_Error is raised otherwise.
24661 (Requeue_Call): Before requeuing the task on the target entry queue we
24662 check that there is no violation of the Max_Entry_Queue_Length
24663 restriction (if it has been set); Program_Error is raised otherwise.
24665 2005-06-14 Robert Dewar <dewar@adacore.com>
24667 * styleg.adb: Fix several remaining problems in -gnatyu switch
24668 Blank line count not reset at start
24669 Scanning outside source buffer in some cases
24670 Confusing message for blanks at end of file
24671 Non-empty blank lines not recognized
24673 * nmake.adt: Modify header so that xnmake does not generate output
24674 files with multiple blank lines.
24676 * treeprs.adt: Remove a blank line so that output from xtreeprs does
24677 not have an extra blank line
24679 2005-06-14 Sergey Rybin <rybin@adacore.com>
24681 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
24683 2005-06-14 Doug Rupp <rupp@adacore.com>
24684 Vincent Celier <celier@adacore.com>
24686 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
24689 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
24690 Remove "Library" command.
24691 Change keyword for style check -gnatyd from NOCRLF to
24693 Remove useless second style check keyword NONE
24694 Remove help documentation for inexistent style check keyword
24696 Add help documentation for style check keywords DOS_LINE_ENDINGS,
24697 UNNECESSARY_BLANK_LINES and XTRA_PARENS
24698 Add UNNECESSARY_BLANK_LINES for -gnatyu
24699 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
24701 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
24703 2005-06-14 Vincent Celier <celier@adacore.com>
24705 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
24706 gprmake was invoked with -d.
24707 (Compile_Sources): If -d was used, output the "completed ..." message
24708 for each compilation.
24709 (Scan_Arg): Recognize new switch -d
24710 When -c and at least one main is specified, set
24711 Unique_Compile to True to guarantee that no other sources will be
24714 2005-06-14 Matthew Heaney <heaney@adacore.com>
24716 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
24717 * a-swuwha.ads, a-swuwha.adb: New files
24719 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
24720 * a-szuzha.ads, a-szuzha.adb: New files.
24722 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
24723 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
24724 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
24725 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
24726 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
24727 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
24728 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
24729 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
24730 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
24731 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
24734 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
24735 Olivier Hainque <hainque@adacore.com>
24736 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24737 Pascal Obry <obry@adacore.com>
24739 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
24741 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
24742 making a temporary around a procedure call because of non-addressable
24744 (process_freeze_entity): If entity is a private type, capture size
24745 information that may have been computed for the full view.
24746 (tree_transform, case N_Allocator): If have initializing expression,
24747 check type for Has_Constrained_Partial_View and pass that to
24749 (tree_transform, case N_Return_Statement): Pass extra arg to
24752 * decl.c (annotate_value): Remove early return if -gnatR is not
24754 (gnat_to_gnu_field): Don't make a packable type for a component clause
24755 if the position is byte aligned, the field is aliased, and the clause
24756 size isn't a multiple of the packable alignment. It serves no useful
24757 purpose packing-wise and would be rejected later on.
24758 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
24761 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
24762 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
24764 (create_concat_name): Idem.
24766 2005-06-10 Robert Dewar <dewar@adacore.com>
24767 Eric Botcazou <ebotcazou@adacore.com>
24768 Ben Brosgol <brosgol@adacore.com>
24769 Cyrille Comar <comar@adacore.com>
24770 Sergey Rybin <rybin@adacore.com>
24771 Pascal Obry <obry@adacore.com>
24773 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
24774 Document second argument (Ada_05) of pragma Obsolescent
24775 Add note that call to subprogram marked with pragma Obsolescent
24776 is now considered to be a violation of program Restrictions
24777 (No_Obsolescent_Features).
24778 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
24779 that only machine-dependent attributes are supported.
24782 Commented out menu lines and empty section for gnatclean examples
24784 Fix some over long lines
24785 Clarify and enhance documentation of ADA_PROJECT_PATH.
24786 Rework section 2.11.2(3) about linking with a non-GNU compiler.
24787 Mention new switch -fcallgraph-info.
24788 Mention new switch -fstack-usage.
24789 For gnatpp, replace '-notab' with '-N' and add this option to Index
24790 Corrected VMS example.
24791 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
24793 Add documentation for -gnatyu switch (unnecessary blank lines)
24794 Document new switch -U for GNAT PRETTY and GNAT METRIC
24795 Add note about Stdcall being handled as C convention on non Windows OS.
24796 Remove some junk typo in description of gnatbind -S switch
24797 Remove reference to Extensions_Allowed pragma
24798 Document the new order of the directories to be searched (source and
24799 object directories of project files before directories in ADA_*_PATH
24800 environment variables.
24802 * g-trasym.ads: Document that IRIX is supported
24804 2005-06-10 Arnaud Charlet <charlet@adacore.com>
24806 * Makefile.in: Add initialize.o when needed.
24807 Adapt to new VMS package body Symbols and subunits
24808 No specialized version of a-sytaco is needed for VxWorks.
24810 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
24811 * a-zchara.ads, a-widcha.ads: New files.
24813 * system-hpux-ia64.ads: New file.
24815 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
24816 is imported from the VxWorks kernel.
24818 2005-06-14 Robert Dewar <dewar@adacore.com>
24820 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
24821 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
24822 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
24823 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
24824 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
24825 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
24826 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
24827 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
24828 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
24829 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
24830 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
24831 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
24833 2005-06-14 Thomas Quinot <quinot@adacore.com>
24835 * xeinfo.adb: Fix typo in comment
24837 2005-06-14 Javier Miranda <miranda@adacore.com>
24839 * repinfo.ads: Fix typo in comment
24841 2005-06-14 Gary Dismukes <dismukes@adacore.com>
24843 * s-finimp.adb (Parent_Tag): Delete this imported function (function
24844 Parent_Tag is now in the visible part of Ada.Tags).
24845 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
24846 using imported function.
24848 2005-06-14 Bernard Banner <banner@adacore.com>
24850 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
24851 also apply for handling support for VxSim 653.
24853 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
24855 * xsnames.adb: Add automatic generation of snames.h.
24857 2005-06-14 Thomas Quinot <quinot@adacore.com>
24859 * gen-soccon.c: Add IP_MULTICAST_IF constant
24860 Minor reformatting and adjustments to prevent warnings.
24862 2005-06-14 Pascal Obry <obry@adacore.com>
24864 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
24866 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
24868 * trans.c (gnat_gimplify_expr): Call
24869 recompute_tree_invarant_for_addr_expr when we change
24870 the operand of the ADDR_EXPR.
24872 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24874 * misc.c: Don't include errors.h.
24876 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24878 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
24880 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
24882 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
24884 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
24886 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
24889 * Makefile.in: Make TGT_LIB behave correctly.
24891 2005-04-23 DJ Delorie <dj@redhat.com>
24893 * misc.c: Adjust warning() callers.
24895 2005-04-16 Laurent Guerby <laurent@guerby.net>
24898 * a-nudira.adb (Value): Check for valid string.
24899 * a-nuflra.adb (Value): Likewise.
24901 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
24903 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
24905 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
24907 * adaint.c, init.c, tracebak.c: Fix comment typos.
24908 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
24910 2005-04-07 Laurent Guerby <laurent@guerby.net>
24911 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24913 * Makefile.in: Add make ifeq define for hppa linux tasking support.
24914 * system-hpux.ads: Define Signed_Zeros to be True.
24915 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
24917 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
24919 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
24920 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
24923 2005-03-30 Tom Tromey <tromey@redhat.com>
24925 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
24927 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
24929 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
24931 2005-03-29 Robert Dewar <dewar@adacore.com>
24933 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
24934 fixed-point expression has value that is not a multiple of the Small
24937 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
24939 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
24942 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
24944 2005-03-29 Vincent Celier <celier@adacore.com>
24946 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
24947 (Build_Dynamic_Library.Version_String): Return the empty string when
24948 Lib_Version is empty or when the symbol policy is not Autonomous.
24950 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
24951 a symbol is not in the reference symbol file, increase the Major ID
24952 and set the Minor ID to 0.
24953 Use gsmatch=lequal instead of gsmatch=equal
24955 2005-03-29 Doug Rupp <rupp@adacore.com>
24957 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
24958 name and translate.
24960 2005-03-29 Javier Miranda <miranda@adacore.com>
24962 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
24963 (Inherit_DT): The first formal has been redefined as a Tag.
24964 This allows us the removal of the subprogram Get_TSD.
24965 (TSD): Replace the call to Get_TSD by the actual code.
24967 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
24968 (Make_DT): Upgrade the call to Inherit_TSD according to the
24969 new interface: the first formal is now a Tag.
24971 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
24972 redefined as a Tag.
24973 This change allows us to remove the subprogram Get_TSD.
24974 (CPP_Get_TSD): Subprogram removed.
24975 (TSD): Replace the call to CPP_Get_TSD by the actual code.
24977 * rtsfind.ads: Remove support to call the run-time
24980 2005-03-29 Robert Dewar <dewar@adacore.com>
24982 * errutil.adb, errout.adb:
24983 Minor comment updates on Line_Terminator references
24985 * par-ch10.adb: Add ??? comment about line terminator
24987 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
24988 (check dos line terminator).
24989 (Check_Line_Max_Length): New procedure, split off from the existing
24990 Check_Line_Terminator routine. Separating this out allows -gnatyf to
24991 be properly recognized.
24993 * styleg.adb: Add ??? comment for line terminator reference
24995 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
24996 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
24998 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
24999 (check dos line terminator).
25000 (Check_Line_Max_Length): New procedure, split off from the existing
25001 Check_Line_Terminator routine. Separating this out allows -gnatyf to
25002 be properly recognized.
25004 * stylesw.ads, stylesw.adb:
25005 Add handling for new -gnatyd switch (check dos line terminator)
25007 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
25008 Recognize -gnatwb/-gnatwB switches
25009 Include Warn_On_Bad_Fixed_Value for -gnatg
25012 Add line for new -gnatyd switch (check dos line terminator)
25014 * usage.adb: Add lines for -gnatwb/-gnatwB
25016 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
25018 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
25020 * gnat_ugn.texi: Fix overlong lines
25021 Document new -gnatyd switch
25022 Document new -gnatwb/-gnatwB switches
25024 2005-03-29 Ed Schonberg <schonberg@adacore.com>
25026 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
25027 order to retrieve the component list of the type, before examining
25028 individual components.
25030 * sem_type.adb (Covers): Types are compatible if one is the base type
25031 of the other, even though their base types might differ when private
25032 views are involved.
25034 2005-03-29 Thomas Quinot <quinot@adacore.com>
25036 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
25037 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
25038 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
25039 analyzed if expansion is disabled (which could otherwise cause spurious
25040 error messages if expansion has been disabled due to previous
25041 (unrelated) errors).
25043 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
25044 is disabled, the entity denoted by the argument is the access type
25045 itself, not an underlying record type, so there is no need to go back
25046 to the Corresponding_Remote_Type.
25048 2005-03-29 Gary Dismukes <dismukes@adacore.com>
25049 Robert Dewar <dewar@adacore.com>
25051 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
25052 expand a call to an instance of
25053 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
25054 Constructor actual of the instance. A class-wide membership
25055 check is also generated, to ensure that the tag passed to the instance
25056 denotes a type in the class.
25057 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
25058 of Name_Generic_Dispatching_Constructor.
25060 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
25061 05 unit for AI-260-02).
25063 * a-tgdico.ads: New file.
25065 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
25066 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
25068 * snames.ads, snames.adb (Preset_Names): Add entry for
25069 Generic_Dispatching_Constructor.
25072 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
25073 character type cases.
25074 (Analyze_Subprogram_Renaming): Add special handling for
25075 the case of renaming of stream attributes when the renaming denotes a
25076 generic formal subprogram association for an abstract formal subprogram.
25077 Check that the attribute is a primitive stream attribute (and not
25078 a class-wide stream attribute) and then rewrite the attribute name
25079 as the name of the appropriate compiler-generated stream primitive.
25081 2005-03-29 Robert Dewar <dewar@adacore.com>
25083 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
25085 (Is_Possibly_Unaligned_Object): Correct typo that
25086 resulted in inaccurate result for unaligned scalars within records.
25088 2005-03-29 Ed Schonberg <schonberg@adacore.com>
25090 * freeze.adb (Freeze_Record_Type): If the type of the component is an
25091 itype whose parent is controlled and not yet frozen, do not create a
25092 freeze node for the itype if expansion is disabled.
25094 2005-03-29 Vincent Celier <celier@adacore.com>
25096 * make.adb (Gnatmake): Don't fail if the main project file is declared
25097 as having no Ada sources. Do not display message "no sources to
25098 compile" in quiet output.
25100 2005-03-29 Doug Rupp <rupp@adacore.com>
25102 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
25105 2005-03-29 Robert Dewar <dewar@adacore.com>
25107 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
25110 2005-03-29 Robert Dewar <dewar@adacore.com>
25112 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
25113 missing TYPE Improve the error message generated when compiling a
25114 limited interface in Ada83 or Ada95 mode.
25116 2005-03-29 Robert Dewar <dewar@adacore.com>
25118 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
25119 rather than proceed ahead using a junk attribute name.
25121 2005-03-29 Vincent Celier <celier@adacore.com>
25123 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
25125 * prj-part.adb (Parse_Single_Project): Set the location of a project
25126 on its defining identifier, rather than on the reserved word "project".
25128 * prj-proc.adb (Expression): Adapt to the fact that default of external
25129 references may be string expressions, not always literal strings.
25130 (Recursive_Process): Set Display_Name equal to Name
25131 when Location is No_Location, that is when there is no actual file.
25132 Get the Display_Name of the project from the source, when it is not a
25134 (Process): Use the Display_Name in error messages
25136 * prj-strt.adb (External_Reference): Allow default to be string
25137 expressions, not only literal strings.
25139 2005-03-29 Vincent Celier <celier@adacore.com>
25141 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
25142 file and the reference symbol file to be the same file.
25144 2005-03-29 Thomas Quinot <quinot@adacore.com>
25146 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
25147 forbid conversion of a local access-to-subprogram type to a remote one.
25149 * sem_util.adb (Wrong_Type): For a record type that is the expanded
25150 equivalent type for a remote access-to-subprogram type, go back to the
25151 original RAS entity when displaying an error message, so the casing is
25152 the original source casing.
25154 2005-03-29 Robert Dewar <dewar@adacore.com>
25156 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
25159 2005-03-29 Ed Schonberg <schonberg@adacore.com>
25161 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
25162 subtype if code is being pre-analyzed, to prevent un-expanded
25163 references to protected formals, among others.
25164 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
25165 interpretation that can be a call, include the result of the call as a
25166 possible interpretation of the dereference.
25168 * sem_ch5.adb (Process_Bounds): Determine type of range by
25169 pre-analyzing a copy of the original range, and then analyze the range
25170 with the expected type.
25172 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
25173 with an overloaded prefix where not all interpretations yield an
25174 access to subprogram, do not rewrite node as a call.
25175 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
25176 the node as a call once the context identifies the interpretation of
25177 the prefix whose call yields the context type.
25178 (Valid_Conversion): For the case of a conversion between
25179 local access-to-subprogram types, check subtype conformance using
25180 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
25181 detailed error message.
25183 2005-03-29 Ed Schonberg <schonberg@adacore.com>
25185 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
25186 indicator, indicate that the formal can never be null.
25187 (Process_Formals): If a formal has a non_null indicator, insert the
25188 resulting subtype immediately before the enclosing subprogram decl,
25189 and not at the beginning of the corresponding declarative part, to
25190 prevent access before elaboration (Ada2005).
25192 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25195 * utils.c (finish_record_type): Use variable_size when setting sizes.
25197 2005-03-29 Robert Dewar <dewar@adacore.com>
25199 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
25200 guarantee Unix style line terminators for the output files, even when
25201 running on windows.
25203 2005-03-29 Robert Dewar <dewar@adacore.com>
25205 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
25206 buffer if an exception is raised.
25208 2005-03-29 Ed Falis <falis@adacore.com>
25210 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
25213 2005-03-29 Robert Dewar <dewar@adacore.com>
25215 * sem_util.ads: Minor reformatting
25216 * gnat_rm.texi: Minor editing.
25218 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
25220 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
25221 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
25223 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
25225 * adaint.c (__gnat_portable_spawn): Adjust cast.
25227 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
25229 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
25231 2005-03-17 Pascal Obry <obry@adacore.com>
25233 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
25236 * expect.c (__gnat_waitpid): Moved here from adaint.c.
25237 Reimplement under Win32 using Win32 API.
25239 (__gnat_kill) [Win32]: Properly close the process handle before leaving
25242 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
25244 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
25245 (DECL_RENAMED_OBJECT): New accessor macro.
25246 (SET_DECL_RENAMED_OBJECT): New setter macro.
25248 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
25249 object in all cases. Attach the renamed object to the VAR_DECL.
25250 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
25251 field is not prescribed.
25253 * misc.c (gnat_handle_option): Handle -gnatO separately.
25254 (gnat_print_decl) <VAR_DECL>: New case.
25255 Print the DECL_RENAMED_OBJECT node.
25257 * lang.opt: Declare separate -gnatO option.
25259 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
25260 pointer, replace it with the renamed object.
25261 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
25262 pointer type if the source is not a fat pointer type whose underlying
25263 array has the same non-zero alias set as that of the destination array.
25265 2005-03-17 Javier Miranda <miranda@adacore.com>
25267 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
25268 (Get_Inheritance_Depth): Removed.
25269 (Set_Inheritance_Depth): Removed.
25271 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
25272 subprogram Get_Expanded_Name because it is not referenced by the
25275 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
25276 (CPP_Get_Inheritance_Depth): Removed.
25277 (CPP_Set_Inheritance_Depth): Removed.
25279 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
25281 2005-03-17 Robert Dewar <dewar@adacore.com>
25283 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
25284 3, since we now expect GCC 3 to do all the work.
25286 2005-03-17 Javier Miranda <miranda@adacore.com>
25288 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
25289 of one barrier to avoid wrong usage of this attribute.
25291 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
25292 First_Private_Entity.
25294 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
25295 the subprogram against wrong usage.
25296 Adapt the code to traverse the entities in the
25297 scope of a record_type because in addition to its usage regarding
25298 packages, this subprogram is also called by Expand_N_Freeze_Entity
25299 to install the visible declarations of the enclosing scope of a
25300 record_type_with_private to establish the proper visibility before
25301 freezing the entity and related subprograms.
25303 2005-03-17 Ed Schonberg <schonberg@adacore.com>
25305 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
25308 2005-03-17 Thomas Quinot <quinot@adacore.com>
25310 * exp_ch3.adb (Check_Attr): New subprogram.
25311 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
25312 into a new Check_Attr subprogram, in order to provide a more
25313 explanatory error message (including the name of the missing attribute).
25314 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
25315 subprogram determines whether a default implementation exists for a
25316 given stream attribute.
25317 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
25318 Determine whether to generate a default implementation for each stream
25319 attribute separately, as this depends on the specific attribute.
25321 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
25322 limited extension where a stream attribute is missing for a limited
25323 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
25324 generate a bogus reference to the missing attribute to prevent
25325 cascaded errors. Instead, generate a null statement.
25327 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
25328 available for a limited type if it has been specified for an ancestor
25331 2005-03-17 Ed Schonberg <schonberg@adacore.com>
25333 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
25334 entity is an operator.
25336 2005-03-17 Thomas Quinot <quinot@adacore.com>
25338 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
25339 spec, to make this predicate available to other units.
25341 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
25344 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
25345 when no distribution runtime library is available.
25347 * sem_res.adb, sem_dist.adb: Disable expansion of remote
25348 access-to-subprogram types when no distribution runtime library is
25350 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
25351 predicate available to other units.
25353 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
25354 spec, to make this predicate available to other units.
25356 2005-03-17 Vincent Celier <celier@adacore.com>
25358 * make.adb (Insert_Project_Sources): Make sure the Q is always
25361 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
25362 the default for the tree, not the global default naming.
25364 * prj-proc.adb (Recursive_Process): No need to put the default naming
25365 in the project data, it's already there.
25367 2005-03-17 Doug Rupp <rupp@adacore.com>
25369 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
25371 * 5xcrtl.ads: Renamed to...
25372 * s-crtl-vms64.ads: ...this new file
25374 2005-03-17 Robert Dewar <dewar@adacore.com>
25377 * namet.adb (Copy_One_Character): Set proper wide character encoding
25378 for upper half character if we have upper half encoding.
25380 2005-03-17 Robert Dewar <dewar@adacore.com>
25382 * par.adb (Par): Improved msg for attempt to recompile predefined unit
25384 2005-03-17 Thomas Quinot <quinot@adacore.com>
25386 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
25387 tagged limited type, the TSS is a newly built renaming declaration:
25388 insert it using Set_TSS, not Copy_TSS.
25390 2005-03-17 Javier Miranda <miranda@adacore.com>
25392 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
25393 Try_Object_Operation): Analyze the object that is accessible
25394 through the prefix of the subprogram call before we apply
25395 the transformation of the object-operation notation.
25397 2005-03-17 Jose Ruiz <ruiz@adacore.com>
25399 * s-taprob.adb (Initialize_Protection): Initialize the protected
25400 object's owner to Null_Task.
25401 (Lock): If pragma Detect_Blocking is in effect and the caller of this
25402 procedure is already the protected object's owner then Program_Error
25403 is raised. In addition the protected object's owner is updated.
25404 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
25405 of this procedure is already the protected object's owner then
25406 Program_Error is raised.
25407 In addition the protected object's owner is updated.
25408 (Unlock): Remove the ownership of the protected object.
25410 * s-taprob.ads (Protection): Add the field Owner, used to store the
25411 protected object's owner.
25412 This component is needed for detecting one type of potentially blocking
25413 operations (external calls on a protected subprogram with the same
25414 target object as that of the protected action). Document the rest of
25417 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
25418 Initialize the protected object's owner to Null_Task.
25419 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
25420 caller of this procedure is already the protected object's owner then
25421 Program_Error is raised.
25422 Do not raise Program_Error when this procedure is called from a
25424 (Unlock_Entries): Remove the ownership of the protected object.
25425 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
25426 of this procedure is already the protected object's owner then
25427 Program_Error is raised.
25428 Do not raise Program_Error when this procedure is called from
25429 a protected action.
25431 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
25432 used to store the protected object's owner.
25434 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
25435 effect and this procedure (a potentially blocking operation) is called
25436 from whithin a protected action, Program_Error is raised.
25437 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
25438 and this procedure (a potentially blocking operation) is called from
25439 whithin a protected action, Program_Error is raised.
25441 2005-03-17 Vincent Celier <celier@adacore.com>
25442 Nicolas Setton <setton@adacore.com>
25444 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
25445 switch, not supported by the linker on Darwin. Add '_' before
25446 <library>init, as this character is added unconditionally by the
25448 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
25449 correct one ".dylib". This fixes detection of the archive files when
25450 building library projects.
25452 2005-03-17 Vincent Celier <celier@adacore.com>
25454 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
25455 -gnat83, -gnat95 and -gnat05.
25457 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
25459 * gnat_ugn.texi: Document gnatmem restriction
25461 2005-03-17 Thomas Quinot <quinot@adacore.com>
25463 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
25466 2005-03-17 Robert Dewar <dewar@adacore.com>
25468 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
25469 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
25470 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
25472 * casing.adb: Comment improvements
25474 2005-03-17 Pascal Obry <obry@adacore.com>
25476 * g-expect.adb: Minor reformatting.
25478 2005-03-15 Zack Weinberg <zack@codesourcery.com>
25480 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
25481 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
25484 2005-03-15 Vincent Celier <celier@adacore.com>
25486 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
25487 Add new parameter In_Tree to specify the project tree: needed
25488 by the project manager. Adapt to changes in project manager
25489 using new parameter In_Tree.
25491 2005-03-15 Jakub Jelinek <jakub@redhat.com>
25493 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
25494 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
25495 ada/bldtools to avoid make -jN failures.
25497 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
25499 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
25500 to NULL_TREE on entry.
25502 2005-03-15 Robert Dewar <dewar@adacore.com>
25504 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
25505 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
25506 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
25507 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
25508 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
25509 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
25510 system-interix.ads, system-solaris-sparc.ads,
25511 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
25512 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
25513 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
25514 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
25515 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
25516 Compiler_System_Version to be False.
25518 * opt.ads: Add new flag Opt.Address_Is_Private
25520 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
25521 Add new parameter Compiler_System_Version to avoid checking for
25522 completeness of parameters when compiler is compiling itself.
25523 Allows old versions of GNAT to be compiled with new compiler.
25525 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
25527 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
25528 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
25530 (Stack_Base_Available): New flag.
25531 (Get_Page_Size): New overloaded functions imported from C.
25532 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
25533 PROT_ON, PROT_OFF): New constants.
25534 (mprotect): New function imported from C.
25535 (pthread_teb_t): New record type.
25537 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
25538 (Create_Task): Account for the Yellow Zone and the guard page.
25540 2005-03-15 Vincent Celier <celier@adacore.com>
25542 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
25543 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
25544 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
25545 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
25546 Library_File_Name_For): Add new parameter In_Tree
25547 to specify the project tree: needed by the project manager.
25548 Adapt to changes in project manager using new parameter In_Tree.
25549 Remove local imports, use functions in System.CRTL.
25551 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
25552 to use the project manager.
25554 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
25555 In_Tree to designate the project tree. Adapt to changes in the project
25556 manager, using In_Tree.
25558 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
25559 Copy_Interface_Sources): Add new parameter In_Tree to specify the
25560 project tree: needed by the project manager.
25561 (Build_Library): Check that Arg'Length >= 6 before checking if it
25562 contains "--RTS=...".
25564 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
25565 Library_File_Name_For): Add new parameter In_Tree to specify the
25566 project tree: needed by the project manager.
25568 * prj.ads, prj.adb: Major modifications to allow several project trees
25569 in memory at the same time.
25570 Change tables to dynamic tables and hash tables to dynamic hash
25571 tables. Move tables and hash tables from Prj.Com (in the visible part)
25572 and Prj.Env (in the private part). Move some constants from the visible
25573 part to the private part. Make other constants deferred.
25574 (Project_Empty): Make it a variable, not a function
25575 (Empty_Project): Add parameter Tree. Returns the data with the default
25576 naming data of the project tree Tree.
25577 (Initialize): After updating Std_Naming_Data, copy its value to the
25578 component Naming of Project Empty.
25579 (Register_Default_Naming_Scheme): Use and update the default naming
25580 component of the project tree, instead of the global variable
25582 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
25583 Tree is not defaulted, return the default naming data of the Tree.
25584 (Initial_Buffer_Size): Constant moved from private part
25585 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
25586 variables initialized in procedure Initialize.
25587 (Add_To_Buffer): Add two in out parameters to replace global variables
25588 Buffer and Buffer_Last.
25589 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
25591 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
25593 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
25594 for the project tree.
25595 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
25596 constant at the beginning of the package spec, so that they cane be used
25597 in subprograms before their full declarations.
25598 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
25599 (Empty_Project): Add parameter of type Project_Node_Ref
25600 (Private_Project_Tree_Data): Add component Default_Naming of type
25602 (Buffer, Buffer_Last): remove global variables
25603 (Add_To_Buffer): Add two in out parameters to replace global variables
25604 Buffer and Buffer_Last.
25605 (Current_Packages_To_Check): Remove global variable
25606 (Empty_Name): Move to private part
25607 (No-Symbols): Make it a constant
25608 (Private_Project_Tree_Data): New type for the private part of the
25610 (Project_Tree_Data): New type for the data of a project tree
25611 (Project_Tree_Ref): New type to designate a project tree
25612 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
25613 for the project tree.
25615 * prj-attr.ads: Add with Table; needed, as package Prj no longer
25616 imports package Table.
25618 * prj-com.adb: Remove empty, no longer needed body
25620 * prj-com.ads: Move most of the content of this package to package Prj.
25622 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
25623 designate the project node tree and Packages_To_Check to replace
25624 global variable Current_Packages_To_Check.
25625 Add new parameters In_Tree and Packages_To_Check to local subprograms,
25626 when needed. Adapt to changes in project manager with project node tree
25629 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
25630 project tree to most subprograms. Move tables and hash tables to
25631 private part of package Prj.
25632 Adapt to changes in project manager using project tree In_Tree.
25634 * prj-makr.adb (Tree): New constant to designate the project node tree
25635 Adapt to change in project manager using project node tree Tree
25637 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
25638 display the Library_Src_Dir and the Library_Dir.
25639 Add new parameter In_Tree to designate the project node tree to most
25640 subprograms. Adapt to changes in the project manager, using project tree
25642 (Check_Naming_Scheme): Do not alter the casing on platforms where
25643 the casing of file names is not significant.
25644 (Check): Add new parameter In_Tree to designate the
25646 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
25647 designate the project tree.
25648 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
25650 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
25651 to replace those that were in the private part of package Prj.
25652 Add new parameter In__Tree to designate the project node tree to most
25653 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
25654 (Post_Parse_Context_Clause): When specifying the project node of a with
25655 clause, indicate that it is a limited with only if there is "limited"
25656 in the with clause, not necessarily when In_Limited is True.
25657 (Parse): Add new parameter In_Tree to designate the project node tree
25659 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
25660 designate the project node tree. Adapt to change in Prj.Tree with
25661 project node tree In_Tree.
25663 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
25664 tree In_Tree in the call to function Empty_Process to give its initial
25665 value to the project data Processed_Data.
25666 Add new parameters In_Tree to designate the project tree and
25667 From_Project_Node_Tree to designate the project node tree to several
25668 subprograms. Adapt to change in project manager with project tree
25669 In_Tree and project node tree From_Project_Node_Tree.
25671 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
25672 to replace those that were in the private part of package Prj.
25673 Add new parameter In_Tree to designate the project node tree to most
25674 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
25676 * prj-tree.ads, prj-tree.adb: Add new parameter of type
25677 Project_Node_Tree_Ref to most subprograms.
25678 Use this new parameter to store project nodes in the designated project
25680 (Project_Node_Tree_Ref): New type to designate a project node tree
25681 (Tree_Private_Part): Change table to dynamic table and hash tables to
25682 dynamic hash tables.
25684 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
25685 the project tree to most subprograms. Adapt to changes in project
25686 manager using project tree In_Tree.
25688 * makegpr.adb (Project_Tree): New constant needed to use project
25691 2005-03-15 Olivier Hainque <hainque@adacore.com>
25693 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
25694 for sigactions with SA_SIGINFO set. Call
25695 __gnat_adjust_context_for_raise before raising, to perform the
25696 potentially required adjustments to the machine context for the GCC
25699 * raise.h (__gnat_adjust_context_for_raise): New prototype.
25701 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
25702 Adjust PC by one in the provided machine context.
25703 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
25704 so that the handler is passed the context structure to adjust prior to
25706 (__gnat_error_handler) HPUX: Adjust the signature to match what an
25707 SA_SIGINFO sigaction should look like. Call
25708 __gnat_adjust_context_for_raise before actually raising.
25709 (__gnat_adjust_context_for_raise): Default noop to help PC
25710 adjustments before raise from signal handlers.
25711 (__gnat_error_handler): Indirectly call a predicate function to
25712 determine if a condition should be resignaled or not.
25713 (__gnat_set_resignal_predicate): User interface to modify the predicate.
25714 (__gnat_default_resignal_p): Default GNAT predicate.
25716 2005-03-15 Doug Rupp <rupp@adacore.com>
25718 * adaint.c: Prefix #include of VMS system header files with vms/
25719 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
25720 Do not define a dummy function "convert_addresses" under Darwin,
25723 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
25726 2005-03-15 Nicolas Setton <setton@adacore.com>
25728 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
25731 2005-03-15 Robert Dewar <dewar@adacore.com>
25733 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
25736 * a-retide.ads: Minor comment changes
25738 2005-03-15 Robert Dewar <dewar@adacore.com>
25740 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
25741 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
25742 Realloc_For_Chunk to private part of package.
25743 New subprograms for AI-301
25745 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
25746 Get_Line procedure.
25747 Avoid unnecessary use of Get/Set_Wide_String
25749 2005-03-15 Robert Dewar <dewar@adacore.com>
25752 * a-stunau.ads, a-stunau.adb:
25753 Change interface to allow efficient (and correct) implementation
25754 The previous changes to allow extra space in unbounded strings had
25755 left this interface a bit broken.
25757 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
25759 * g-spipat.ads, g-spipat.adb: New interface for Get_String
25760 Minor reformatting (function specs)
25762 * g-spitbo.adb: New interface for Get_String
25764 * g-spitbo.ads: Minor reformatting
25766 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
25768 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
25770 2005-03-15 Javier Miranda <miranda@adacore.com>
25771 Robert Dewar <dewar@adacore.com>
25772 Thomas Quinot <quinot@adacore.com>
25773 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25775 * atree.ads, atree.adb: Add support for Elist24 field
25777 * atree.h: Fix wrong definition of Field27
25778 Add support for Elist16 field
25779 Add support for Elist24 field
25781 * einfo.ads, einfo.adb (Abstract_Interfaces,
25782 Set_Abstract_Interfaces): New subprograms.
25783 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
25785 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
25786 entities rather than a single node.
25787 (Is_Interface, Set_Is_Interface): New subprogram
25788 (First_Tag_Component): New syntesized attribute
25789 (Next_Tag_Component): New synthesized attribute
25790 (Write_Entity_Flags): Upgraded to write Is_Interface
25791 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
25792 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
25793 (Task_Body_Procedure): New subprogram to read this attribute.
25794 (Set_Task_Body_Procedure): New subprogram to set this attribute.
25795 (Has_Controlled_Component): Now applies to all entities.
25796 This is only a documentation change, since it always worked to apply
25797 this to other than composite types (yielding false), but now this is
25799 Update documentation on Must_Be_Byte_Aligned for new spec
25801 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
25802 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
25803 uses of the Access_Disp_Table attribute to reference the first dispatch
25804 table associated with a tagged type. As
25805 part of the implementation of abstract interface types,
25806 Access_Disp_Table has been redefined to contain a list of dispatch
25807 tables (rather than a single dispatch table).
25808 Similarly, upgrade all the references to Tag_Component by the
25809 new attribute First_Tag_Component.
25810 (Find_Inherited_TSS): Moved to exp_tss.
25811 Clean up test in Expand_N_Object_Declaration for cases
25812 where we need to do a separate assignment of the initial value.
25813 (Expand_N_Object_Declaration): If the expression in the
25814 declaration of a tagged type is an aggregate, no need to generate an
25815 additional tag assignment.
25816 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
25818 Bit packed array ops are only called if operands are known to be
25820 (Component_Equality): When returning an N_Raise_Program_Error statement,
25821 ensure that its Etype is set to Empty to avoid confusing GIGI (which
25822 expects that only expressions have a bona fide type).
25823 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
25824 determine the amount of data to be copied.
25826 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
25827 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
25828 INTERFACE_TYPE_DEFINITION ::=
25829 [limited | task | protected | synchronized] interface
25830 [AND interface_list]
25832 * par-ch3.adb (P_Type_Declaration): Modified to give support to
25834 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
25836 (P_Interface_Type_Definition): New subprogram that parses the new
25837 syntax rule of Ada 2005 interfaces
25838 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
25839 messages by the correct RENAMES (quotes removed).
25841 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
25842 attribute First_Tag_Component.
25844 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
25845 (Interface_List, Set_Interface_List): New subprograms.
25846 (Interface_Present, Set_Interface_Present): New subprograms.
25847 (Limited_Present, Set_Limited_Present): Available also in derived
25848 type definition nodes.
25849 (Protected_Present, Set_Protected_Present): Available also in
25850 record type definition and
25851 derived type definition nodes.
25852 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
25853 (Task_Present, Set_Task_Present): New subprogram.
25854 (Task_Body_Procedure): Removed.
25855 (Set_Task_Body_Procedure): Removed.
25856 These subprogram have been removed because the attribute
25857 Task_Body_Procedure has been moved to the corresponding task type
25858 or task subtype entity to leave a field free to store the list
25859 of interfaces implemented by a task (for AI-345)
25860 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
25861 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
25862 expression flag Do_Range_Check
25863 (Exception_Junk): Change to Flag7 to accomodate above change
25864 (Box_Present, Default_Name, Specification, Set_Box_Present,
25865 Set_Default_Name, Set_Specification): Expand the expression
25866 "X in N_Formal_Subprogram_Declaration" into the corresponding
25867 two comparisons. Required to use the csinfo tool.
25869 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
25870 "with string" given.
25872 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
25875 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
25878 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
25879 attribute Task_Body_Procedure rather than the old semantic field that
25880 was available in the task_type_declaration node.
25882 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
25883 interface type definitions.
25884 (P_Formal_Derived_Type_Definition): Modified to handle the list of
25887 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
25888 task type declaration.
25889 (P_Protected): Modified to handle the list of interfaces in a
25890 protected type declaration.
25892 2005-03-15 Doug Rupp <rupp@adacore.com>
25893 Vincent Celier <celier@adacore.com>
25895 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
25896 (Gen_Output_File_C): Likewise.
25897 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
25899 2005-03-15 Thomas Quinot <quinot@adacore.com>
25901 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
25902 is an N_Raise_Constraint_Error node, create a new copy of it without
25903 going through a call to Duplicate_Subexpr.
25905 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
25906 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25907 Nicolas Setton <setton@adacore.com>
25908 Ed Schonberg <schonberg@adacore.com>
25914 * decl.c (gnat_to_gnu_field): Reject aliased components with a
25915 representation clause that prescribes a size not equal to the rounded
25916 size of their types.
25917 (gnat_to_gnu_entity, case E_Component): Always look at
25918 Original_Record_Component if Present and not the entity.
25919 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
25920 of tagged extension types by not making field for components that are
25922 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
25923 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
25924 expression to the type of the object when the object is constant.
25925 Reverse defer_debug_incomplete_list before traversing it, so that trees
25926 are processed in the order at which they were added to the list. This
25927 order is important when using the stabs debug format.
25928 If we are deferring the output of debug information, also defer this
25929 output for a function return type.
25930 When adding fields to a record, prevent emitting debug information
25931 for incomplete records, emit the information only when the record is
25933 (components_to_record): New parameter defer_debug.
25934 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
25935 (gnat_to_gnu_field_decl): New function.
25936 (substitution_list, annotate_rep): Call it.
25937 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
25938 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
25939 No longer update discriminants to not be a COMPONENT_REF.
25940 (copy_alias_set): Strip padding from input type; also handle
25941 unconstrained arrays properly.
25943 * gigi.h (write_record_type_debug_info): New function.
25944 Convert to use ANSI-style prototypes. Remove unused
25945 declarations for emit_stack_check, elab_all_gnat and
25946 set_second_error_entity.
25947 (gnat_to_gnu_field_decl): New decl.
25949 * utils.c (write_record_type_debug_info): New function.
25950 (finish_record_type): Delegate generation of debug information to
25951 write_record_type_debug_info.
25952 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
25953 (update_pointer_to): Fix pasto.
25954 (convert) <UNION_TYPE>: Accept slight type variations when
25955 converting to an unchecked union type.
25957 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
25958 replace the N_Freeze_Entity with a null statement.
25960 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
25961 within a constrained subcomponent of an enclosing record, place the
25962 freeze nodes in the scope stack entry for the enclosing record.
25963 (Undelay_Type): New Subprogram.
25964 (Set_Small_Size): Pass T, the type to modify; all callers changed.
25965 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
25966 within records; allow them to have freeze nodes if their base types
25969 * exp_util.adb (Remove_Side_Effects): Properly test for
25970 Expansion_Delayed and handle case when it's inside an
25971 N_Qualified_Expression.
25973 * sem_ch3.adb (Derived_Type_Declaration): New predicate
25974 Comes_From_Generic, to recognize accurately that the parent type in a
25975 derived type declaration can be traced back to a formal type, because
25976 it is one or is derived from one, or because its completion is derived
25978 (Constrain_Component_Type): If component comes from source and has no
25979 explicit constraint, no need to constrain in in a subtype of the
25981 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
25982 Minor change to propagate Is_Ada_2005 flag
25984 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
25985 Expansion_Delayed is False.
25986 (assoc_to_constructor): Ignore fields that have a
25987 Corresponding_Discriminant.
25988 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
25989 function returns "by target", dereference the target pointer using the
25990 type of the actual return value.
25991 <all>: Be prepared for a null gnu_result.
25992 (processed_inline_subprograms): Check flag_really_no_inline
25993 instead of flag_no_inline.
25994 (set_second_error_entity): Remove unused function.
25995 (gnat_to_gnu, case N_Selected_Component): Call
25996 gnat_to_gnu_field_decl.
25997 (assoc_to_constructor): Likewise.
25999 2005-03-15 Robert Dewar <dewar@adacore.com>
26000 Ed Schonberg <schonberg@adacore.com>
26001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26003 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
26004 Must_Be_Byte_Aligned for cases where we do not need to use a
26005 System.Pack_nn unit.
26007 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
26009 Needed now that we do some processing for IN parameters as well. This
26010 may well fix some unrelated errors.
26011 (Expand_Call): Handle case of unaligned objects (in particular those
26012 that come from packed arrays).
26013 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
26014 renamed entity is an inherited operation, re-expand the call using the
26015 original operation, which is the one to call.
26016 Detect attempt to inline parameterless recursive subprogram.
26017 (Represented_As_Scalar): Fix to work properly with private types
26018 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
26019 accurate estimate. Yields True in far fewer cases than before,
26020 improving the quality of code that depends on this test.
26022 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
26023 over both visible and private declarations to remove them from tree,
26024 and mark subprograms declared in package as eliminated, to prevent
26025 spurious use in subsequent compilation of generic units in the context.
26027 * exp_util.ads: Minor cleanup in variable names
26029 * sem_eval.ads, sem_eval.adb: Minor reformatting
26030 (Compile_Time_Known_Bounds): New function
26032 2005-03-15 Ed Schonberg <schonberg@adacore.com>
26034 * exp_ch7.adb (Convert_View): Use base types of underlying types when
26035 determining whether an unchecked conversion is needed for the argument
26036 of an initialization call.
26038 2005-03-15 Ed Schonberg <schonberg@adacore.com>
26040 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
26041 that appears in the instantiation rather than the internal subtype
26042 generated in the wrapper package, to avoid anomalies in gigi when the
26043 target is derived from a private type whose full view is an access type.
26045 2005-03-15 Robert Dewar <dewar@adacore.com>
26047 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
26049 Add documentation to replace the use of this flag
26050 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
26053 2005-03-15 Thomas Quinot <quinot@adacore.com>
26055 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
26056 here from exp_attr so it can be shared between exp_attr and exp_dist.
26057 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
26058 all TSS names, not a subset thereof, and the previous name introduced
26059 an unnecessarily confusion that a distinction might exist between
26060 "OK" TSS names and some "not OK" TSS names.
26062 2005-03-15 Doug Rupp <rupp@adacore.com>
26064 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
26067 2005-03-15 Pascal Obry <obry@adacore.com>
26068 Eric Botcazou <ebotcazou@adacore.com>
26072 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
26073 when IN_RTS. This is to work around a bootstrap path problem.
26075 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
26076 table and pass it to __gnat_install_SEH_handler().
26077 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
26079 * lang.opt: Fix specification of -fRTS=.
26081 2005-03-15 Doug Rupp <rupp@adacore.com>
26082 Bernard Banner <banner@adacore.com>
26083 Vincent Celier <celier@adacore.com>
26084 Arnaud Charlet <charlet@adacore.com>
26087 This change works fine when gnatlib is built from the gcc directory,
26088 but does not work when using the libada Makefile, since GCC_FOR_TARGET
26089 is not passed to ada/Makefile.in, so more work is needed by a
26090 Makefile/configure expert.
26092 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
26093 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
26094 Setup gnatlink switch -M for x86_64 linux, as it is already setup
26096 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
26097 Run ranlib on libgccprefix.a
26098 Define PREFIX_OBJS for Darwin, to build libgccprefix.
26099 (ADA_INCLUDE_SRCS): Split Ada packages.
26101 2005-03-15 Robert Dewar <dewar@adacore.com>
26103 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
26105 * impunit.adb: Add GNAT.UTF_32
26107 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
26109 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
26110 now uses GNAT.UTF_32).
26112 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
26113 capabilities for categorizing characters using Unicode categories
26115 2005-03-15 Ed Schonberg <schonberg@adacore.com>
26117 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
26118 instantiation that has been rewritten as a package body, retrieve spec
26119 to generate proper name for implicit_with_clause.
26120 (Install_Parents): Recognize a parent that is an instantiation but has
26121 been rewritten as a package declaration during analysis.
26123 2005-03-15 Javier Miranda <miranda@adacore.com>
26124 Ed Schonberg <schonberg@adacore.com>
26126 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
26127 parameter reported some error we immediately return. This improves the
26128 behaviour of the frontend in case of errors.
26129 (Install_Parent, Remove_Parent): Introduce new flag
26130 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
26131 ancestor of a generic child unit, when the child is being instantiated.
26132 (Inline_Instance_Body): If we are compiling the private
26133 part or the body of a child unit, restore the proper visibility of the
26134 parents after compiling the instance body.
26136 2005-03-15 Ed Schonberg <schonberg@adacore.com>
26137 Javier Miranda <miranda@adacore.com>
26140 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
26141 of a private type, in which case it is underlying_type that denotes
26142 the proper task. Also modified to use the new entity attribute
26143 that is directly available in the task type and task subtype entities
26144 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
26145 arrays when other dimensions than the first are constrained by
26146 discriminants of an enclosing record.
26147 (Insert_Explicit_Dereference): If the prefix is an indexed component or
26148 a combination of indexed and selected components, find ultimate entity
26149 and generate the appropriate reference for it, to suppress spurious
26151 (Note_Possible_Modification): If an entity name has no entity, return.
26152 (Is_Variable): A function call never denotes a variable.
26153 (Requires_Transient_Scope): For record types, recurse only on
26154 components, not on internal subtypes that may have been generated for
26155 constrained components.
26157 2005-03-15 Ed Schonberg <schonberg@adacore.com>
26159 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
26160 Eliminated as candidates for resolution. Both efficient, and avoids
26161 anomalies with operators declared in deleted code.
26162 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
26163 expansion is disabled (as when compiling a generic) to prevent spurious
26164 warnings on prefixes of selected components.
26166 2005-03-15 Ed Schonberg <schonberg@adacore.com>
26168 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
26169 attached to a list before checking whether it appears in the private
26170 declarations of the current package.
26171 (Make_Inequality_Operator): Insert declaration in proper declarative
26172 list rather than just setting the Parent field, so that
26173 Is_Private_Declaration can handle it properly.
26175 2005-03-15 Ed Schonberg <schonberg@adacore.com>
26177 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
26178 a renaming a body, check that the renamed subprogram in not intrinsic.
26179 (Find_Direct_Name): If several use_visible entities hide
26180 each other, and the context is a predefined file compiled through
26181 rtsfind, keep only the entity that comes from a predefined file.
26183 2005-03-15 Geert Bosch <bosch@adacore.com>
26185 * s-fatgen.adb (Valid): Extend special exceptions to account for long
26186 long float padding to also cover AMD64 and IA64.
26188 2005-03-15 Gary Dismukes <dismukes@adacore.com>
26190 * s-imgwch.adb: Add with and use of Interfaces.
26191 (Img_Wide_Character): Change type of Val to Unsigned_16.
26192 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
26194 2005-03-15 Matthew Gingell <gingell@adacore.com>
26196 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
26198 2005-03-15 Robert Dewar <dewar@adacore.com>
26200 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
26202 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
26204 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
26206 2005-03-15 Robert Dewar <dewar@adacore.com>
26208 * s-bitops.adb, s-bitops.ads,
26209 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
26210 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
26211 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
26212 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
26213 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
26214 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
26215 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
26216 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
26219 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
26221 * utils2.c (build_binary_op): Fix typo.
26223 2005-03-15 Doug Rupp <rupp@adacore.com>
26225 * s-crtl.ads (popen,pclose): New imports.
26227 2005-03-15 Cyrille Comar <comar@adacore.com>
26229 * comperr.adb (Compiler_Abort): remove references to obsolete
26230 procedures in the bug boxes for various GNAT builds.
26232 2005-03-15 Vincent Celier <celier@adacore.com>
26234 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
26236 2005-03-15 Geert Bosch <bosch@adacore.com>
26237 Arnaud Charlet <charlet@adacore.com>
26238 Robert Dewar <dewar@adacore.com>
26239 Cyrille Comar <comar@adacore.com>
26240 Sergey Rybin <rybin@adacore.com>
26242 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
26243 too specific and long-winded to be appropriate for the GNAT User's
26245 Warn about use of GCC switches not documented in the GNAT User's Guide,
26246 as these may cause generated code to not conform to Ada semantics.
26247 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
26248 Add documentation for -gnat95 and -gnat05 switches
26249 Remove paragraph documenting obsolete way to refer to third party
26251 Add a few references to Ada_05 that were missing.
26252 Update documentation on -gnatZ/-gnatL.
26253 Document limitation when using -m64 under Solaris.
26254 Change the "Name Casing" subsection of the pretty-printer section
26255 according to the changes in the dictionary processing.
26257 * gnat_rm.texi: Document the Ada_05 pragma.
26258 Section on record representation clauses describes the new more
26259 relaxed rules about placement of large packed bit array components.
26260 Add documentation of GNAT.UTF_32
26262 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
26264 * misc.c (gnat_post_options): Turn off structural
26267 2005-03-08 Laurent Guerby <laurent@guerby.net>
26269 * system-linux-sparc.ads: Fix typo in previous commit.
26271 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
26272 Laurent Guerby <laurent@guerby.net>
26275 * system-linux-sparc.ads: New.
26276 * Makefile.in: Add sparc linux entry.
26278 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
26280 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
26281 parameters as unused.
26283 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
26284 Partial merge from libada-gnattools-branch:
26286 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
26287 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
26288 into code in gnattools/Makefile.in. Remove direct dependencies on
26289 stamp-tools by tools clauses.
26290 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
26291 * config-lang.in: Add gnattools to $lang_dirs.
26293 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
26296 * utils.c (gnat_type_for_mode): Return null instead of ICE because
26297 we asked for an unknown mode.
26299 2005-02-12 Richard Henderson <rth@redhat.com>
26301 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
26302 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
26304 2005-02-10 Andreas Jaeger <aj@suse.de>
26306 * init.c (__gnat_initialize): Mark parameter as unused.
26308 2005-02-09 Doug Rupp <rupp@adacore.com>
26310 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
26311 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
26313 2005-02-09 Doug Rupp <rupp@adacore.com>
26315 * gnatchop.adb (dup, dup2),
26316 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
26318 * gnatlbr.adb (mkdir),
26319 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
26321 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
26323 2005-02-09 Doug Rupp <rupp@adacore.com>
26325 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
26327 2005-02-09 Robert Dewar <dewar@adacore.com>
26328 Thomas Quinot <quinot@adacore.com>
26329 Javier Miranda <miranda@adacore.com>
26330 Pascal Obry <obry@adacore.com>
26331 Ed Schonberg <schonberg@adacore.com>
26332 Doug Rupp <rupp@adacore.com>
26333 Gary Dismukes <dismukes@adacore.com>
26334 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26336 * g-zstspl.ads: New file.
26338 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
26340 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
26342 Add definition of Wide_Wide_Space for AI-285
26344 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
26345 interface (to support Ada 95 and Ada 2005 units).
26346 Add Unbounded_IO files
26347 Add entries for Wide_Wide packages for AI-285
26348 Add list of containers packages to Ada 2005 unit list
26350 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
26351 support new Unbounded_IO package cleanly.
26353 * g-utf_32.ads, g-utf_32.adb: New files.
26355 * Makefile.rtl: Add entry for g-utf_32
26356 Add new files for Unbounded_IO
26357 Adjust make file for new AI-285 wide wide packages
26358 Add AI-302 containers to the run time.
26360 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
26361 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
26362 subprograms for AI-301.
26364 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
26366 * a-stunau.ads: Minor comment correction
26368 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
26370 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
26371 (Check_RPC): Update to match changes in expanded code.
26372 Clean up unused entity.
26374 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
26375 was not taken into account.
26376 This includes proper initialization with Normalize_Scalars.
26377 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
26378 normalize scalars cases (particularly the latter) to do a better job
26379 of finding invalid representations.
26381 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
26383 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
26386 * exp_dist.adb: Add support for wide wide character type
26387 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
26388 private part, generate stub bodies at the end of the private part,
26389 not the visible part.
26390 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
26392 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
26393 generic wrapper to execute final processing after completing the
26394 expansion of the RPC receiver for an RACW.
26396 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
26397 packages and attributes.
26398 (Preset_Names): Addition of the new reserved words of Ada 2005,
26399 that is interface, overriding and synchronized.
26400 (Get_Pragma_Id): Give support to the use of the new reserved word
26401 "interface" as a pragma name.
26402 (Is_Pragma_Name): Give support to the use of the new reserved word
26403 "interface" as a pragma name.
26404 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
26405 attribute implementation.
26407 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
26408 checks to entities that are output parameters of Asm operations.
26409 Handle the Stream_Size attribute.
26410 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
26412 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
26414 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
26415 for second parameter being 0.0.
26416 Add support for wide wide character type.
26417 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
26419 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
26420 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
26421 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
26422 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
26423 for wide wide character cases.
26425 * cstand.adb: Create entities for Wide_Wide_Character and
26428 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
26429 accordance with AI-258.
26430 Add new declarations for 16/32 bit C character types (Part of AI285)
26432 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
26433 (Obsolescent_Warning): New field
26434 (Rep_Clause): New local subprogram used to share code. Returns the rep
26435 clause for which the name is given in parameter.
26436 (Has_Stream_Size_Clause): New routine.
26437 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
26438 (Address_Clause): Implementation is now using Rep_Clause.
26439 (Alignment_Clause): Idem.
26440 (Size_Clause): Idem.
26442 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
26443 entity in non-Ada 2005 mode and generate warning.
26445 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
26446 (Prag): Code cleanup. Remove old gnat pragma "overriding"
26448 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
26449 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
26450 on the named unit if the pragma is not in the current compilation unit,
26451 so that elaboration calls in the current unit can set up an elaboration
26452 dependency on the named unit, as needed.
26453 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
26454 subprogram as well as for subprograms declared within a package.
26455 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
26458 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
26459 to z) to avoid some instances of duplication for Wide_Wide packages.
26461 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
26464 * scn.adb: Char_Literal_Value field is now a Uint
26466 * scng.adb: Significant rewrite to handle new Ada 2005 features
26467 allowing wide and wide wide characters in program text, e.g. for
26468 identifiers, as described in AI-285.
26469 (Set_Reserved): New procedure, makes setting up keywords cleaner.
26470 (Initialize_Scanner): Register the new reserved words of Ada 2005.
26471 (Scan): Give support to the new reserved words.
26473 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
26474 warning notifying that interface, overriding, and synchronized are
26475 new reserved words.
26476 (P_Pragma): Allow the use of the new reserved word "interface" as
26479 * gnatls.adb, gnatbind.adb,
26480 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
26481 identifiers named "interface" to "SAL_Interface".
26483 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
26484 (Structured Exception handling).
26485 (Gen_Main_C): Idem.
26488 (Gen_Main_Ada): Set the default exit code if specified.
26489 (Gen_Main_C): Likewise.
26491 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
26492 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
26494 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
26497 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
26498 has a collision with the new Ada 2005 "interface" reserved word.
26500 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
26501 generate a warning notifying that interface, overriding, and
26502 synchronized are new reserved words.
26504 * scans.ads (Token_Type): Addition of the tokens corresponding to the
26505 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
26506 and Tok_Synchronized.
26508 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
26509 "dispatching" rather than "primitive" operations, since dispatching
26510 calls are now allowed to abstract formal subprograms (which are not
26512 Char_Literal_Value field is now a Uint
26513 (Resolve_Slice): If the prefix is an access to an unconstrained array,
26514 compute the actual subtype of the designated object to impose the proper
26516 (Resolve_Selected_Component): Do not insert an access check if the
26517 prefix is an access type: such a node is expanded into an explicit
26518 dereference, on which the access check is performed anyway. Removes
26519 expensive duplicate checks.
26520 (Resolve_Call): Use new flag Is_Obsolescent and field
26521 Obsolescent_Warning so that pragma Obsolescent works on library
26523 Add support for wide wide character type
26524 (Resolve_Allocator): Replace the error message on wrong null-exclusion
26525 value by a warning message.
26526 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
26527 as fixed-point, and one of the operands is non-static and universal, it
26528 can only be an illegal exponentiation operation, in which case there is
26529 no real value to retrieve.
26531 * exp_strm.adb: Add support for wide wide character type
26532 (Build_Elementary_Input_Call): Compute the size of the stream element by
26533 querying the rep chain to find the Stream_Attribute attribute value.
26534 (Build_Elementary_Write_Call): Ditto.
26536 * sem_aggr.adb: Char_Literal_Value field is now a Uint
26537 Add support for wide wide character type
26538 Replace the error messages on wrong null-exclusion value by warnings
26539 as described in Ada 2005.
26540 (Resolve_Extension_Aggregate): Document the fact that the error
26541 message on class-wide expressions in extensions aggregates.
26543 * sem_case.adb: Add support for wide wide character type
26545 * sem_ch13.adb: Add support for wide wide character type
26546 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
26548 * sem_ch3.adb: Add support for wide wide character type
26549 (Process_Subtype): If constraint is illegal for the type, set Ekind of
26550 now-useless Itype, to prevent cascaded errors on a compiler built
26553 * sem_ch8.adb: Add with and use of Sem_Disp.
26554 (Analyze_Subprogram_Renaming): Replace unclean uses of
26555 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
26556 of Corresponding_Spec to Empty).
26557 (Attribute_Renaming): Replace use of Corresponding_Spec with
26558 Corresponding_ Formal_Spec and simplify condition.
26559 (Use_One_Package): Check that scope of homonym of identifier is defined,
26560 before checking whether it is a wrapper package.
26561 Add support for wide wide character type
26563 * sem_eval.adb: Add support for wide wide character type.
26564 (Eval_Arithmetic_Op): Check for compile time known signed integer
26565 overflow in the non-static case.
26566 (Subtypes_Statically_Match): A formal scalar type and its base type do
26567 not statically match.
26569 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
26570 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
26572 (Unit_Declaration_Node): Ditto.
26573 (Is_Variable_Prefix): For the case of an indexed component whose prefix
26574 has a packed array type, the prefix has been rewritten into a type
26575 conversion. Determine variable-ness from the converted expression.
26576 Handle wide wide character cases.
26578 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
26580 * stringt.ads, stringt.adb: Handle full UTF-32 range.
26581 Remove ["0A"] from comment, since it can look like a line terminator.
26582 Currently we don't permit this, but this is under discussion by the
26583 ARG, and it is easy enough to use a different example.
26585 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
26586 handling UTF-32 encoding for wide wide character.
26587 Implement new brackets coding ["hhhhhhhh"]
26588 Add UTF-8 encodings for full UTF-32 range
26590 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
26592 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
26593 bit range Add full UTF-32 support.
26594 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
26595 notify that constraint error will be raised at run-time
26596 because a null value is assigned to a null-excluding object.
26597 Remove some obsolete declarations and make Char_Code
26600 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
26601 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
26602 Rcheck subprograms.
26604 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
26605 wrong null-exclusion value by a warning message.
26606 (Enable_Range_Check): Do range check if the prefix is an
26607 explicit dereference whose designated object is an unconstrained array.
26608 Current algorithm for removing duplicate checks is over-eager in this
26611 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
26612 null-exclusion value by a warning message
26614 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
26615 completely. Add support for Uint2 field
26617 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
26618 exp_prag.adb: Char_Literal_Value field is now a Uint.
26620 * exp_util.adb (Insert_Actions): Replace
26621 N_Formal_Subprogram_Declaration by
26622 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
26623 Char_Literal_Value field is now a Uint.
26625 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
26626 defined for subprogram renaming declarations. When set, the field
26627 indicates the defining entity of a corresponding formal subprogram
26628 when the renaming corresponds to a formal subprogram association in an
26630 (Set_Corresponding_Formal_Spec): New procedure to return
26631 Corresponding_Formal_Spec field.
26632 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
26633 (which is now a subtype).
26634 Char_Literal_Value field is now a Uint
26636 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
26637 pointer to the base of the dispatch table.
26638 Minor changes to comments.
26639 (Controlling_Type): New function for determining the tagged type
26640 associated with a tagged primitive subprogram.
26641 (Expand_Dispatching_Call): Add support for a controlling actual that is
26642 directly a value of type Ada.Tag rather than a tagged object.
26644 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
26645 describing the new layout.
26646 (Dispatch_Table): The expander computes the actual array size, allocates
26647 the Dispatch_Table record accordingly, and generates code that displaces
26648 the base of the record after the Typeinfo_Ptr component. The access to
26649 these components is done by means of local functions.
26650 (Offset_To_Top): New function.
26651 (Typeinfo_Ptr): New function.
26652 (Get_TSD): Modified to access the new position of the TSD.
26653 (Set_TSD): Modified to save the TSD in its new position.
26655 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
26656 case of formal abstract subprograms. Add check and message for -gnat05.
26659 * sem_ch12.adb: Add with and use for Sem_Disp.
26660 (Analyze_Associations): Minor change from "=" to "in" for use of
26661 N_Formal_Subtype_Declaration (which is now a subtype).
26662 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
26663 N_Formal_Subtype_Declaration (which is now a subtype).
26664 (Analyze_Formal_Subprogram): Add handling for
26665 N_Formal_Abstract_Subprogram, marking the formal as abstract and
26666 dispatching, setting the controlling status of the formal parameters
26667 and result, and issuing an error if there is no controlling type for
26668 the formal subprogram.
26669 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
26670 which is an unclean use of that field, we set the new field
26671 Corresponding_Formal_Spec to make the formal subprogram available to
26672 processing in Analyze_Subprogram_Declaration.
26673 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
26674 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
26675 Constrained, so that it is is does not statically match its anonymous
26678 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
26679 abstract formal subprograms in error check for functions returning
26680 abstract types. Set scope of new designator for
26681 a parameterless subprogram, so that it is available when checking the
26682 body for nested subprograms, before full analysis of said body.
26683 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
26684 subprogram only if inner one comes from source.
26685 (Analyze_Function_Call): If the call is given in object notation, the
26686 analysis of the name rewrites the node and analyzes it with the proper
26687 argument list. After analyzing the name, if the call has been rewritten
26688 and the result type is set, no further analysis is needed.
26689 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
26690 mark in function specification, in a context where the formals are
26691 visible and hide outer homographs.
26693 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
26694 as the tagged type for the cases of abstract formal subprograms and
26695 renamings of those. Clean up spec comments.
26696 (Check_Dispatching_Context): Add error message to indicate "abstract
26697 procedure", covering the case of a call to a formal abstract procedure
26698 that has statically tagged operands.
26699 (Check_Dispatching_Call): Check for the case of an actual given by
26700 a tag-indeterminate function call whose type is an ancestor of the
26701 containing call's associated tagged type. This situation can occur
26702 for inherited primitives with function defaults. In this case we
26703 use the tagged type's tag directly as the controlling argument for
26705 (Expand_Call): Name change on call to Expand_Dispatch_Call.
26707 * sprint.adb (Sprint_Node_Actual): Split
26708 N_Formal_Subprogram_Declaration into two alternatives for the new
26709 cases N_Formal_Abstract_Subprogram_Declaration and
26710 N_Formal_Concrete_Subprogram_Declaration.
26711 Char_Literal_Value field is now a Uint.
26713 * trans.c: Get rid of junk Uint2 reference.
26714 Char_Literal_Value field is now a Uint.
26715 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
26716 (gigi): Correct third arg to gimplify_body.
26718 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
26719 (TYPE_LANG_FLAG_0): Check for record or union.
26721 * treepr.adb: Char_Literal_Value field is now a Uint
26723 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
26726 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
26727 Add full UTF-32 support
26728 Char_Code is now 32 bits
26730 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
26731 wide character UTF_32 line terminators.
26732 Initialize Main_Source_File to avoid error when no main
26735 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
26736 (Main_Source_File) when no main source has been loaded, to avoid
26739 2005-02-09 Robert Dewar <dewar@adacore.com>
26741 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
26742 Fix name of Set routine
26744 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
26747 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
26748 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
26751 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
26752 forms of Get_Line subprograms for AI-301.
26754 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
26755 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
26756 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
26757 a-stwima.ads: Minor reformatting.
26759 2005-02-09 Doug Rupp <rupp@adacore.com>
26760 Thomas Quinot <quinot@adacore.com>
26762 * adaint.c, adaint.h
26763 [VMS] (to_ptr32): New function.
26764 (MAYBE_TO_PTR32): New macro.
26765 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
26767 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
26768 [VMS] (#define fork()): Remove since unneccessary.
26769 (__gnat_set_close_on_exec): New routine to support
26770 GNAT.OS_Lib.Set_Close_On_Exec.
26772 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
26773 the parent side as close-on-exec so that they are not inherited by the
26776 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
26777 set or clear the FD_CLOEXEC flag on a file descriptor.
26779 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
26780 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26784 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
26785 on the field if Pragma Component_Alignment (Storage_Unit).
26786 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
26787 side-effects as if it were a constant; also make SAVE_EXPR to protect
26789 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
26791 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
26792 (components_to_record): Test it.
26793 Fix improper usage of REFERENCE_CLASS_P.
26795 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
26798 * utils2.c: Minor reformatting.
26800 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
26801 handle other cases like RECORD_TYPE.
26803 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
26805 2005-02-09 Ed Schonberg <schonberg@adacore.com>
26807 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
26808 component of an array of arrays in an assignment context, and the
26809 aggregate has component associations that require sliding on
26810 assignment, force reanalysis of the aggregate to generate a temporary
26811 before the assignment.
26812 (Must_Slide): Make global to the package, for use in Gen_Assign.
26814 2005-02-09 Ed Schonberg <schonberg@adacore.com>
26816 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
26817 unchecked union with no inferable discriminants, return a
26818 Raise_Program_Error node, rather than inserting it at the point the
26820 (Expand_Record_Equality, Component_Equality): Handle properly the case
26821 where some subcomponent is an unchecked union whose generated equality
26822 code raises program error.
26824 2005-02-09 Doug Rupp <rupp@adacore.com>
26826 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
26827 [VMS] (#define exit hack): Remove.
26829 2005-02-09 Pascal Obry <obry@adacore.com>
26830 Arnaud Charlet <charlet@adacore.com>
26832 * init.c (__gnat_initialize): Add a new parameter eh which contains the
26833 address of the exception registration. The Win32 version of this
26834 routine calls __gnat_install_SEH_handler() to initialize the SEH
26835 (Structured Exception Handling) handler.
26836 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
26837 SEH (Structured Exception Handling) now.
26838 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
26839 (__gnat_initialize for ppc-vxworks): Adjust comments and the
26840 preprocessor condition protecting the call to the extra eh setup
26841 subprogram, which is only available for the ppc target.
26842 (__gnat_clear_exception_count): replaced reference to
26843 variable taskIdCurrent by call to taskIdSelf(), cleaner.
26845 * seh_init.c: New file.
26847 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
26848 (GNATBIND_OBJS): Idem.
26850 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
26851 routine takes a new parameter (a pointer to the exception registration
26852 for the SEH (Structured Exception Handling) support.
26854 * raise.h: (__gnat_install_SEH_handler): New prototype.
26855 Update copyright notice.
26857 * s-tassta.adb (Task_Wrapper): Declare the exception registration
26858 record and initialize it by calling __gnat_install_SEH_handler.
26860 2005-02-09 Vincent Celier <celier@adacore.com>
26862 * make.adb (Gnatmake): Do not fail when the main project has no object
26865 2005-02-09 Doug Rupp <rupp@adacore.com>
26867 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
26868 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
26869 [VMS]: Add translations for g-enblsp.adb.
26871 * s-asthan-vms.adb: Removed.
26872 * s-asthan-vms-alpha.adb: Added.
26874 2005-02-09 Pascal Obry <obry@adacore.com>
26876 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
26877 (LIBGNAT_OBJS): Add seh_init.o.
26879 2005-02-09 Arnaud Charlet <charlet@adacore.com>
26882 * Makefile.in: Link all gnat tools with -static-libgcc, since
26883 -shared-libgcc is now used by default on some systems (e.g. linux with
26885 Remove references to Makefile.prolog/generic, no longer used.
26887 2005-02-09 Vincent Celier <celier@adacore.com>
26889 * prj-makr.adb (Process_Directory): Put file name in canonical case
26890 before matching against the patterns.
26891 If gnatname has been invoked as <prefix>-gnatname
26892 then invoke the compiler as <prefix>-gcc, not just "gcc".
26894 2005-02-09 Ed Schonberg <schonberg@adacore.com>
26896 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
26897 with expansion disabled. The actual subtype is needed among other
26898 places when the selected component appears in the context of a loop
26899 bound, and denotes a packed array.
26900 (Operator_Check): Always use the first subtype in the
26901 error message, to avoid the appearance of internal base types.
26902 (Transform_Object_Operation): Copy each actual in full
26903 to the parameter associations of the constructed call, rather than
26904 using the shallow copy mechanism of New_Copy_List. This ensures that
26905 the chaining of named associations is done properly.
26906 (Complete_Object_Operation): Rewrite node, rather than
26907 replacing it, so that we can trace back to the original selected
26910 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
26911 and calls that use object notation, if the called function is not
26912 declared in a withed unit, place the elaboration constraint on the
26913 unit in the context that makes the function accessible.
26914 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
26915 imposes an elaboration constraint between two packages.
26917 2005-02-09 Ed Schonberg <schonberg@adacore.com>
26919 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
26920 views of a private type after handling its private dependents, to
26921 maintain proper stack discipline between entry and exit from the
26924 2005-02-09 Cyrille Comar <comar@adacore.com>
26926 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
26927 Minor reformatting.
26929 2005-02-09 Arnaud Charlet <charlet@adacore.com>
26931 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
26932 fields for foreign threads.
26934 2005-02-09 Doug Rupp <rupp@adacore.com>
26936 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
26937 recursion warnings when compiled with -gnatdm.
26939 2005-02-09 Robert Dewar <dewar@adacore.com>
26941 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
26942 Slight fix to documentation of -gnaty with no parameters
26944 * xr_tabls.ads: Add ??? comment for missing overall comment
26946 * xsinfo.adb: Make default file name be sinfo.h, since this is what
26947 we now use by default.
26949 * xsnames.adb: Adjust end of file test to look for five space followed
26950 by '#' instead of six spaces. The format of xsnames.adb was modified
26951 in the last update.
26953 * a-numeri.ads: Add reference to AI-388 for greek letter pi
26956 * clean.adb: Minor reformatting.
26958 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
26959 gnatname.adb: Minor reformatting
26960 Add 2005 to copyright output when utility is run
26962 * csets.adb: Eliminate obsolete comment
26964 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
26967 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
26969 2005-02-09 Sergey Rybin <rybin@adacore.com>
26971 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
26972 the difference between compact and incompact layout and add the record
26973 representation clause to the example illustrating different layouts.
26974 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
26975 component clauses").
26977 2005-02-09 Florian Villoing <villoing@adacore.com>
26979 * gnat_ugn.texi: Fix typos.
26980 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
26982 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
26983 in the generated documentation.
26985 2005-02-09 Arnaud Charlet <charlet@adacore.com>
26987 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
26989 Update linker wrapper when linking with non GNU C++.
26991 2005-02-09 Pascal Obry <obry@adacore.com>
26994 Document the procedure to debug the DllMain routine on Windows.
26995 Add note about -funwind-tables and mixed Ada and C/C++ programming in
26997 Document new BIND qualifer /RETURN_CODES=VMS.
26999 2005-02-09 Ben Brosgol <brosgol@adacore.com>
27001 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
27002 Edited gnatmetric chapter
27004 2005-02-09 Robert Dewar <dewar@adacore.com>
27007 Changes to document new wide wide character support
27009 Update documentation on Normalize_Scalars and Initialize_Scalars
27011 2005-02-09 Pascal Obry <obry@adacore.com>
27013 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
27015 2005-02-09 Jose Ruiz <ruiz@adacore.com>
27017 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
27018 from the VxWorks kernel) that is needed for getting the active
27019 priority of the different tasks.
27021 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
27022 Use a pragma Elaborate_Body in the spec file instead.
27023 Noticed by code reading.
27025 2005-02-09 Thomas Quinot <quinot@adacore.com>
27027 * exp_util.ads: Minor correction in comment.
27029 2005-02-09 Arnaud Charlet <charlet@adacore.com>
27031 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
27032 since this procedure is now too complex to be worth inlining.
27034 2005-02-09 Richard Henderson <rth@redhat.com>
27036 * utils.c (gnat_define_builtin): Remove.
27037 (gnat_install_builtins): Use build_common_builtin_nodes.
27039 2005-02-09 Arnaud Charlet <charlet@adacore.com>
27041 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
27042 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
27043 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
27044 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
27045 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
27046 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
27047 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
27048 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
27049 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
27050 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
27051 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
27052 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
27053 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
27054 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
27055 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
27056 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
27057 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
27058 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
27059 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
27060 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
27061 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
27062 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
27063 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
27064 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
27065 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
27066 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
27067 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
27068 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
27069 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
27070 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
27071 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
27072 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
27073 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
27074 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
27077 2005-01-27 Laurent Guerby <laurent@guerby.net>
27079 * Makefile.in: Fix a-intnam.ads from previous commit,
27080 add 2005 to copyright.
27081 * a-intman-rtems.ads: Renamed to...
27082 * a-intnam-rtems.ads:
27084 2005-01-27 Laurent Guerby <laurent@guerby.net>
27086 * Makefile.in: Rename GNAT RTEMS specific files.
27087 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
27088 5rosinte.ads, 5rparame.adb: Replaced by files below.
27089 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
27090 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
27092 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
27093 Laurent Guerby <laurent@guerby.net>
27096 * 5rosinte.ads: Add No_Key constant.
27097 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
27098 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
27100 2005-01-26 Laurent Guerby <laurent@guerby.net>
27103 * i-cobol.adb (Valid_Numeric): Handle zero length case.
27105 2005-01-20 Richard Henderson <rth@redhat.com>
27107 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
27108 a-intnam-linux.ads and system-linux-alpha.ads.
27109 * a-intnam-linux-alpha.ads: Remove file.
27110 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
27111 * system-linux-alpha.ads: New file.
27113 2005-01-18 Jakub Jelinek <jakub@redhat.com>
27116 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
27117 set to the new string.
27119 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
27121 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
27124 2005-01-18 Richard Henderson <rth@redhat.com>
27126 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
27127 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
27129 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
27131 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
27133 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
27134 (GCC_ZCX_Support): Likewise.
27136 2005-01-11 Bastian Blank <waldi@debian.org>
27138 * system-linux-s390.ads: Define Preallocated_Stacks.
27139 * system-linux-s390x.ads: Likewise.
27141 2005-01-04 Arnaud Charlet <charlet@adacore.com>
27143 * gnat_ugn.texi: Fix texi errors with null variables.
27145 2005-01-03 Thomas Quinot <quinot@adacore.com>
27147 * gen-soccon.c: New utility program to generate g-soccon.ads
27150 * socket.c, gsocket.h: Split inclusion of system header files into a
27151 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
27153 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
27154 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
27155 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
27156 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
27157 should not be edited by hand anymore, but should be regenerated using
27160 2005-01-03 Robert Dewar <dewar@adacore.com>
27161 Ed Schonberg <schonberg@adacore.com>
27162 Vincent Celier <celier@adacore.com>
27164 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
27165 on/off, since this is an obsolescent feature, for which we now generate
27168 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
27169 warning mode is set and obsolescent usage of this attribute occurs.
27170 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
27171 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
27172 predates, and partly motivates, the adoption of the AI.
27173 Implement new Ada 2005 attribute Mod
27175 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
27178 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
27180 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
27181 pragma restrictions.
27182 New entry for Ada 2005 attribute Mod.
27185 Add recognition of new pragma Restrictions No_Dependence
27186 Recognize restriction No_Obsolescent_Features at parse time
27188 * bcheck.adb: Add circuitry for checking for consistency of
27189 No_Dependence restrictions.
27191 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
27194 * restrict.ads, restrict.adb: Add subprograms to deal with
27195 No_Dependence restrictions.
27197 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
27200 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
27201 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
27203 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
27204 dummy parameter to scng instantiation.
27205 Needed for new restriction No_Obsolescent_Features
27207 * scn.adb: (Obsolescent_Check): New procedure
27208 Needed for new restriction No_Obsolescent_Features
27210 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
27211 specified by AI-285, needed for implementation of AI-388 (adding greek
27212 pi to Ada.Numerics).
27213 Add new generic formal to scng, needed for new restriction
27214 No_Obsolescent_Features.
27216 * s-rident.ads: Add new restriction No_Obsolescent_Features.
27218 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
27219 restrictions lines.
27220 (Scan_ALI): When finding an unexpected character on an R line, raise
27221 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
27222 Ignore_Errors is True, default restrictions are set and scanning of the
27223 ALI file continues with the next line. Also, when Bad_R_Line is raised
27224 and Ignore_Errors is True, skip to the end of le line.
27226 * sem_ch10.adb: Check that explicit with's do not violate
27227 No_Dependence restrictions.
27228 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
27229 illegal context clauses containing child units of instance.
27231 * sem_prag.adb: Processing and checking for new No_Dependence
27233 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
27234 analyze and check the External argument.
27236 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
27238 2005-01-03 Robert Dewar <dewar@adacore.com>
27240 * atree.adb: Add a fifth component to entities
27241 This allows us to add 32 flags and four new fields
27243 * atree.ads: Add a fifth component to entities
27244 This allows us to add 32 flags and four new fields
27246 * einfo.ads, einfo.adb: Document new fields and new flags now available
27247 Add routines for printing new fields
27249 * treepr.adb: Call routines to print out additional fields if present
27251 2005-01-03 Arnaud Charlet <charlet@adacore.com>
27253 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
27254 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
27256 * Makefile.in: Add support to build shared Ada libraries on solaris x86
27257 Remove gpr2make, replaced by gprmake.
27258 Remove references to gnatmem and libaddr2line.
27259 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
27260 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
27261 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
27262 a-numaux-darwin.ads and a-numaux-darwin.adb
27263 Enable mlib-tgt-lynxos.adb on lynxos.
27265 * Make-lang.in: Remove rules for gpr2make.
27266 When generating sdefault.adb, do not call Relocate_Path
27267 on S3 for function Target_Name, as it is not a path.
27268 Remove references to gnatmem and libaddr2line.
27270 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
27273 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
27275 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
27276 address is incompatible with its base type alignment constraints when
27277 this can be decided statically.
27279 2005-01-03 Olivier Hainque <hainque@adacore.com>
27281 * decl.c (compatible_signatures_p): New function. The intended purpose
27282 is to check if two function signatures for a call-site and a callee are
27283 compatible enough for the call to be valid. The underlying purpose is
27284 to check if a call to a mapped builtin is using the right interface.
27285 The current code actually does not check antyhing - this a placeholder
27286 for future refinements.
27287 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
27288 builtin calls for convention Intrinsic.
27290 * gigi.h (builtin_decl_for): Declare (new function).
27292 * utils.c (gnat_install_builtins): Install the target specific builtins.
27293 (builtin_decl_for): New function, provide a dummy body for now.
27295 2005-01-03 Geert Bosch <bosch@adacore.com>
27297 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
27298 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
27299 (Pred): Implement in terms of Succ.
27301 * trans.c (convert_with_check): Reimplement conversion of float to
27304 2005-01-03 Ed Schonberg <schonberg@adacore.com>
27305 Vincent Celier <celier@adacore.com>
27307 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
27308 bounds can be negative, and must be declared Int, not Nat.
27310 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
27311 array is checked after using the index in the array.
27313 * makegpr.adb (Add_Switches): Check if there is a package for the
27314 processor. If there is no package, do not look for switches.
27316 2005-01-03 Ed Schonberg <schonberg@adacore.com>
27318 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
27319 generation of predefined stream operations (specs and bodies) should
27320 proceed. Under various restrictions these subprograms must not be
27323 2005-01-03 Thomas Quinot <quinot@adacore.com>
27326 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
27327 amount of PCS-specific code in RACW stubs generation.
27328 (Copy_Specification): Set Etype on copied formal parameter entities, as
27329 this information is needed for PolyORB stubs generation.
27330 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
27331 variable Dynamic_Async.
27332 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
27333 (Build_RPC_Receiver_Specification): Make generic again, as recent
27334 changes have allowed RPC receivers to have the same profile for both
27335 variants of the PCS.
27336 Reorganise RPC receiver generation to reduce differences between the
27337 structure of GARLIC and PolyORB RPC receivers.
27338 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
27340 Simplify elaboration code for RCI packages.
27342 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
27343 generation to reduce differences between the structure of GARLIC and
27344 PolyORB RPC receivers.
27346 * s-stratt.adb: Fix typo in comment.
27348 2005-01-03 Thomas Quinot <quinot@adacore.com>
27350 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
27351 copied from Make_Init_Call).
27353 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
27354 reads and assignments on a temporary variable declared with appropriate
27357 2005-01-03 Robert Dewar <dewar@adacore.com>
27359 * i-c.adb (To_C): Raise CE if string is null and Append_Null
27361 2005-01-03 Robert Dewar <dewar@adacore.com>
27363 * i-cstrin.adb (Update): Do not append a null in form called with a
27364 String. This avoids unintended behavior.
27366 2005-01-03 Arnaud Charlet <charlet@adacore.com>
27369 * init.c: Fix warnings on Free BSD section.
27371 2005-01-03 Arnaud Charlet <charlet@adacore.com>
27374 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
27377 2005-01-03 Vincent Celier <celier@adacore.com>
27379 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
27380 libraries when Unique_Compile is True (-u switch).
27383 2005-01-03 Robert Dewar <dewar@adacore.com>
27385 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
27386 upper case letter or underscore after W, as allowed by spec.
27388 2005-01-03 Arnaud Charlet <charlet@adacore.com>
27390 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
27391 darwin port by using proper type definitions from header files.
27392 Use SIGTERM instead of SIGABRT for SIGADAABORT.
27394 2005-01-03 Robert Dewar <dewar@adacore.com>
27396 * par.adb: Enhance error message handling for configuration file
27399 2005-01-03 Robert Dewar <dewar@adacore.com>
27401 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
27402 removed during the previous update (test properly for case of dividing
27403 largest negative number by -1, which generates overflow).
27405 2005-01-03 Ed Schonberg <schonberg@adacore.com>
27406 Sergey Rybin <rybin@adacore.com>
27408 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
27409 to use as the defining identifier for a formal package.
27410 (Remove_Parent): If the instance takes place within (an instance of)
27411 a sibling, preserve private declarations of common parent.
27413 2005-01-03 Ed Schonberg <schonberg@adacore.com>
27415 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
27416 to determine whether one of the operands is a fixed-point type for
27417 which a user-defined multiplication or division operation might be
27420 * sem_res.adb (Valid_Conversion): The legality rules for conversions
27421 of access types are symmetric in Ada 2005: either designated type can
27424 2005-01-03 Vincent Celier <celier@adacore.com>
27426 * s-fileio.adb (Temp_File_Record): Change length of string component
27427 Name from L_tmpnam + 1 to max_path_len + 1.
27429 2005-01-03 Arnaud Charlet <charlet@adacore.com>
27431 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
27432 Self_Id.Deferral_Level = 0.
27433 (Do_Pending_Action): Move this function to the spec.
27435 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
27436 Do_Pending_Action explicitely when needed, in case we're using
27437 No_Abort restrictions.
27439 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
27440 deferral level since it will not get changed by the generated code.
27441 Keeping a default value of 1 would prevent some operations (e.g.
27442 select or delay) to proceed successfully.
27444 2005-01-03 Ben Brosgol <brosgol@adacore.com>
27445 Robert Dewar <dewar@adacore.com>
27446 Cyrille Comar <comar@adacore.com>
27448 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
27449 porting guide chapter (vms version).
27450 Revised doc title (removed "for native platforms") and subtitle.
27451 Add discussion on warning flag for obsolescent features. First we
27452 note that it applies to obsolete GNAT features, which was previously
27453 omitted. Second we contrast the behavior with that of the new
27454 Ada 2005 AI-368 restriction No_Obsolescent_Features.
27455 Preliminary rewriting of GNAT & libraries chapter in order to take
27456 into account default project locations & new project manager
27459 2005-01-03 Robert Dewar <dewar@adacore.com>
27461 * cstand.adb (Create_Operators): Clean up format and documentation of
27462 unary and binary operator result tables. No change in code, just
27463 reformatting and addition of comments.
27465 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
27466 sem_ch2.adb: Minor reformatting
27468 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
27469 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
27470 comments for Tree_Read and Tree_Write.
27472 2005-01-03 Pascal Obry <obry@adacore.com>
27474 * exp_attr.ads: Minor reformatting.
27476 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
27478 * comperr.adb (Compiler_Abort): Add specialized message for GAP
27481 2005-01-03 Ed Schonberg <schonberg@adacore.com>
27483 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
27484 whether the ancestor type is private, as may be the case with nested
27487 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
27490 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
27492 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
27494 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
27495 * utils2.c (build_unary_op): Likewise.
27497 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27499 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
27501 2004-12-19 Richard Henderson <rth@redhat.com>
27503 * trans.c (gigi): Update gimplify_body call.
27505 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
27507 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
27509 2004-12-07 Ed Falis <falis@adacore.com>
27511 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
27512 current task being suspended.
27514 * init.c (__gnat_clear_exception): added to reset VxWorks exception
27516 (__gnat_map_signal): removed test for current task being suspended.
27518 2004-12-07 Gary Dismukes <dismukes@adacore.com>
27520 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
27521 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
27522 targets (such as AAMP).
27524 2004-12-07 Ed Schonberg <schonberg@adacore.com>
27526 * atree.adb (Visit_Itype): Create a new name for the generated itype,
27527 because the back-end may otherwise treat it as a redefinition of the
27530 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
27532 * back_end.adb (Scan_Back_End_Switches): Accept --param.
27534 * lang-specs.h: Accept --param.
27536 2004-12-07 Vincent Celier <celier@adacore.com>
27538 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
27539 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
27540 Current_Body_Suffix => Ada_Body_Suffix).
27541 Take into account Externally_Built attribute.
27543 * clean.adb (In_Extension_Chain): Always return False when one of the
27544 parameter is No_Project.
27545 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
27546 Ada_Language_Index).
27547 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
27548 Process_Languages for procedure Parse).
27550 * gnatcmd.adb (Carg_Switches): New table.
27551 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
27552 Adapt to name changes in package Prj (Current_Spec_Suffix =>
27553 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
27555 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
27556 Header_Num and function Hash are now declared in package Prj,
27559 * prj.adb (Suffix_Of): New function.
27560 (Set (Suffix)): New procedure.
27561 (Hash): One function moved from Prj.Com
27562 (Is_Present, Language_Processing_Data_Of): New functions
27563 (Set): Two new procedures
27564 (Add_Language_Name, Display_Language_Name): New procedures
27566 * prj.ads: (Suffix_Of): New function
27567 (Set (Suffix)): New procedure
27568 Add several types and tables for multi-language support.
27569 (Header_Num): Type moved from Prj.Com
27570 (Hash): Two functions moved from Prj.Com
27571 (Is_Present, Language_Processing_Data_Of): New functions
27572 (Set): Two new procedures
27573 (Add_Language_Name, Display_Language_Name): New procedures
27574 (Naming): Component name changes:
27575 Current_Spec_Suffix => Ada_Spec_Suffix,
27576 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
27577 Impl_Suffixes, Supp_Suffixes.
27578 (Project_Data): New components: Externally_Built, Supp_Languages,
27579 First_Language_Processing, Supp_Language_Processing, Default_Linker,
27580 Default_Linker_Path.
27582 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
27583 new package Language_Processing with its attributes (Compiler_Driver,
27584 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
27585 Binder_Driver, Default_Linker).
27587 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
27588 (Header_Num): Type moved to package Prj
27590 * prj-env.adb: Adapt to name changes in package Prj
27591 (Current_Spec_Suffix => Ada_Spec_Suffix,
27592 Current_Body_Suffix => Ada_Body_Suffix).
27594 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
27595 default to the project path, except the "-" is one of the directories
27596 in env var ADA_PROJECT_PATH.
27597 (Current_Project_Path): Global variable, replacing Project_Path
27598 that was in the body of Prj.Part.
27599 (Project_Path): New function
27600 (Set_Project_Path): New procedure
27601 Initialize Current_Project_Path during elaboration of the package
27602 Remove dependency on Prj.Com, no longer needed
27604 * prj-ext.ads (Project_Path): New function
27605 (Set_Project_Path): New procedure
27607 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
27608 suffix is defined for language <lang>.
27609 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
27610 accessing directly the components of Naming.
27611 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
27612 Reorganise of this package.
27613 Break procedure Check in several procedures.
27615 * prj-nmsc.ads: Replace all procedures (Ada_Check,
27616 Other_Languages_Check and Language_Independent_Check) with a single
27619 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
27620 Process_Languages, no longer needed.
27622 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
27623 Current_Project_Path.
27624 Remove elaboration code, moved to the body of Prj.Ext
27625 Use new function Prj.Ext.Project_Path instead of old variable
27627 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
27628 When comparing with project paths on the stack, first put the resolved
27629 path in canonical case.
27630 (Parse_Single_Project): Set the path name of the project file in the
27631 tree to the normalized path.
27633 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
27634 parameter Process_Languages, no longer needed.
27635 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
27636 Other_Languages_Check.
27638 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
27639 to store the resolved canonical path of the project file.
27640 Remove dependency to Prj.Com, no longer needed
27642 * prj-util.adb: Adapt to name changes in package Prj
27643 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
27646 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
27647 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
27648 Externally_Built, Include_Option, Language_Processing.
27650 * makegpr.adb: Numerous changes due to changes in packages
27653 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
27654 default to the project path, except whe "-" is one of the directories
27655 in env var ADA_PROJECT_PATH.
27656 (Gnatls): In verbose mode, add the new section "Project Search Path:"
27658 2004-12-07 Robert Dewar <dewar@adacore.com>
27660 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
27662 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
27665 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
27666 flag. No longer needed now that we handle this in gnat1drv.adb.
27668 * repinfo.ads: Minor reformatting
27670 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27671 Olivier Hainque <hainque@adacore.com>
27672 Eric Botcazou <ebotcazou@adacore.com>
27674 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
27675 TYPE_SIZE_UNIT of result type if SIZE is not specified.
27676 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
27677 of a bitfield, which we know is useless and causes trouble because of
27678 alignment implications.
27680 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
27682 (process_attributes): Clear DECL_COMMON again when a section attribute
27684 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
27685 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
27686 (create_field_decl): Special case ADDRESSABLE negative to mean
27687 "no bitfield creation", to be used by make_aligning_type. Don't
27688 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
27689 fields claimed addressable still have to be bitfields. Use
27690 value_factor_p instead of a raw binop construction to check for the
27691 position's alignment.
27693 2004-12-07 Geert Bosch <bosch@adacore.com>
27695 * eval_fat.adb: Revert previous change.
27697 2004-12-07 Thomas Quinot <quinot@adacore.com>
27698 Ed Schonberg <schonberg@adacore.com>
27700 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
27701 with an implicit dereference as its prefix, use
27702 Insert_Explicit_Dereference instead of merely rewriting the prefix into
27703 an explicit dereference. This ensures that a reference to the original
27704 prefix is generated, if appropriate.
27706 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
27707 dereference is rewritten to an explicit one, generate a reference to
27708 the entity denoted by its prefix using the original prefix node, so
27709 the dereference can be properly recorded as a read of the denoted
27710 access value, if appropriate.
27712 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
27713 emitting 'assigned but never read' warning on a variable on the basis
27714 that it has an access type.
27715 (Check_References): Emit unreferenced warning when the scope is a
27718 2004-12-07 Robert Dewar <dewar@adacore.com>
27719 Ed Schonberg <schonberg@adacore.com>
27721 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
27724 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
27725 leaving call unchanged.
27726 This deals with the case where the pragma Import specified
27727 an external name, to be handled by the back end.
27729 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
27730 subprogram which is Imported with convention Intrinsic if an
27731 External_Name argument is specified.
27732 (Process_Import_Or_Interface): Properly diagnose link name argument.
27733 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
27734 with Sem_Ch6.Cannot_Inline.
27735 (Process_Inline): Provide separate warning for inapplicable inline
27737 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
27738 treatment is uniform on different targets.
27740 2004-12-07 Ed Schonberg <schonberg@adacore.com>
27742 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
27743 construct is rewritten, preserve end label to permit source navigation.
27745 2004-12-07 Thomas Quinot <quinot@adacore.com>
27747 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
27748 Specific_Build_Stub_Target): New subprograms.
27749 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
27750 the PCS implementation used, using the above PCS-customized subprograms.
27751 Minor reformatting.
27752 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
27753 for generation of DSA code targeted to the PolyORB PCS.
27754 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
27755 implementation of the partition communication subsystem in ancillary
27757 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
27758 PolyORB_Support.Build_Stub_Type): New subrograms containing the
27759 PCS-specific part of Add_Stub_Type.
27760 (Insert_Partition_Check): Use runtime library function to perform
27763 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
27764 (RE_Same_Partition): New entity, from s-parint.
27766 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
27768 2004-12-07 Gary Dismukes <dismukes@adacore.com>
27770 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
27771 Output the copyright message on a separate line from the version
27774 2004-12-07 Joel Brobecker <brobecker@adacore.com>
27776 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
27777 compile-time warning.
27779 2004-12-07 Robert Dewar <dewar@adacore.com>
27781 * g-regpat.adb: (Match): Change a misuse of or to or else
27783 2004-12-07 Ed Schonberg <schonberg@adacore.com>
27786 (Generate_Reference): Handle properly a reference to an entry formal,
27787 when an accept statement has a pragma Unreferenced for it.
27789 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
27790 and the Has_Pragma_Unreferenced flag for each formal before analyzing
27791 the body, to ensure that warnings are properly emitted for each accept
27792 statement of a given task entry.
27794 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
27796 * Makefile.in: Add support for foreign threads on VMS.
27798 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27800 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
27802 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
27804 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
27806 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
27808 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
27810 2004-12-07 Robert Dewar <dewar@adacore.com>
27812 * nlists.adb (Prepend_Debug): Remove parameters and nest within
27814 (Remove_Next_Debug): Same fix
27816 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
27817 maintain back pointers now, though we did not used to, and comments
27819 (Prepend): Remove pragma Inline.
27820 (Remove_Next): Same cleanup
27822 2004-12-07 Thomas Quinot <quinot@adacore.com>
27824 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
27825 used to record an implicit dereference as a read operation on its
27826 prefix when operating under -gnatc. Necessary to avoid spurious
27827 'variable assigned but never read' warnings in that mode.
27828 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
27829 is a non-overloaded implicit dereference, call the above subprogram to
27830 ensure proper recording of references.
27832 2004-12-07 Gary Dismukes <dismukes@adacore.com>
27834 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
27835 to be resolved later as part of Analyze_Iteration_Scheme's call to
27838 2004-12-07 Ed Schonberg <schonberg@adacore.com>
27840 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
27841 prefix is not a scalar type, place error message on prefix, not on
27844 2004-12-07 Bernard Banner <banner@adacore.com>
27846 * vxaddr2line.adb: Add support for x86 vxworks
27848 2004-12-07 Thomas Quinot <quinot@adacore.com>
27850 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
27851 documentation of the behaviour of these functions when passed an IP
27852 address that has no record in the system hosts database and no reverse
27855 * cstand.adb, a-tags.ads: Fix typos in comment.
27857 2004-12-07 Robert Dewar <dewar@adacore.com>
27859 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
27860 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
27861 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
27862 s-poosiz.ads: Minor reformatting
27864 * make.adb: Minor reformatting
27865 Add some ??? comments asking for more comments
27867 * s-poosiz.adb: Minor reformatting
27868 Add comments on alignment requirement
27870 * sinfo.ads: Remove obsolete comment and fix typo.
27872 2004-12-07 Vincent Celier <celier@adacore.com>
27873 Sergey Rybin <rybin@adacore.com>
27875 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
27876 Files" with the new tool and package names.
27877 Reformatting to suppress most of the warnings for line too long
27878 Document the new section "Project Search Path:" in the output of
27880 Add gnatmetric section
27882 2004-12-07 Vincent Celier <celier@adacore.com>
27884 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
27885 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
27886 and -eit to -ept. Added qualifier
27887 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
27889 2004-11-27 Andreas Schwab <schwab@suse.de>
27891 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
27893 2004-11-25 Arnaud Charlet <charlet@adacore.com>
27895 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
27896 internal implementation unit GNAT.Sockets.Thin,
27897 as their usage for sockets is non-portable (using the read and write
27898 functions from the system runtime library is fine on UNIX but won't
27899 work under Windows).
27901 * mingw32.h: Update copyright notice.
27903 2004-11-25 Arnaud Charlet <charlet@adacore.com>
27905 * ada-tree.h: Minor reformatting of previous change to avoid lines
27906 longer than 79 characters.
27908 2004-11-25 Olivier Hainque <hainque@adacore.com>
27910 * tb-gcc.c: GCC infrastructure based implementation of
27913 2004-11-24 Steven Bosscher <stevenb@suse.de>
27915 * misc.c (gnat_post_options): Don't clear
27916 flag_inline_functions.
27918 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
27921 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
27924 2004-11-21 Andreas Jaeger <aj@suse.de>
27926 * stylesw.adb: Change Style_Check_Subprogram_Order to
27927 Style_Check_Order_Subprograms.
27929 2004-11-18 Arnaud Charlet <charlet@adacore.com>
27931 * adaint.h, adaint.c
27932 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
27934 Add also a cast to kill another warning.
27935 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
27936 parameter with the priority class of the parent process instead of
27937 always using the NORMAL_PRIORITY_CLASS.
27938 (__gnat_dup): New function.
27939 (__gnat_dup2): New function.
27940 (__gnat_is_symbolic_link): Enable the effective body of this
27941 function when __APPLE__ is defined.
27943 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
27946 2004-11-18 Olivier Hainque <hainque@adacore.com>
27948 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
27949 address of which may be used to represent "others" and "all others"
27950 choices in exception tables, instead of the current harcoded
27951 (void *)0 and (void *)1.
27952 (Setup_Exception): Do nothing in the GNAT SJLJ case.
27954 * gigi.h (others_decl, all_others_decl): New decls representing the
27955 new Others_Value and All_Others_Value objects.
27956 (struct attrib): Rename "arg" component as "args", since GCC expects a
27957 list of arguments in there.
27959 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
27960 corresponding objects exported by a-exexpr, instead of hardcoded dummy
27963 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
27964 others_decl and all_others_decl instead of hardcoded dummy addresses
27965 to represent "others" and "all others" choices, which is cleaner and
27966 more flexible with respect to the possible eh pointer encoding policies.
27968 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
27969 (process_attributes): Account for the naming change of the "args"
27970 attribute list entry component.
27972 * decl.c (build_attr_list): Rename into prepend_attributes to allow
27973 cumulating attributes for different entities into a single list.
27974 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
27975 attributes for the current entity and propagate first subtype
27976 attributes to other subtypes.
27977 <E_Procedure>: Attribute arguments are attr->args and not
27978 attr->arg any more.
27979 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
27980 argument provided, as this is what GCC expects. Use NULL_TREE instead
27983 2004-11-18 Robert Dewar <dewar@adacore.com>
27985 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
27986 Minor reformatting througout (including new function specs)
27987 Add ??? comments asking for clarification.
27989 2004-11-18 Thomas Quinot <quinot@adacore.com>
27991 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
27992 incomplete duplicate implementation of this subprogram from butil.
27994 2004-11-18 Thomas Quinot <quinot@adacore.com>
27996 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
27997 procedures factors the common processing for building an RPC receiver
27998 for an RCI package or an RACW type.
27999 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
28000 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
28001 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
28003 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
28005 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
28007 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
28008 distribution subprogram identifiers that are either subprogram numbers
28010 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
28011 string distribution identifiers assigned to a given subprogram.
28012 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
28013 (Add_RAS_Dereference_TSS): Add comments.
28014 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
28015 is not referenced yet because it will be used by the PolyORB DSA
28017 (Insert_Partition_Check): Remove fossile code.
28018 (First_RCI_Subprogram_Id): Document this constant.
28019 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
28021 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
28022 replaced with calls to Get_Library_Unit_Name_String. Previously there
28023 were several instances of the same code in different locations in the
28024 compiler; this checkin completes the replacement of all of these
28025 instances with calls to a common subprogram.
28026 Minor reformatting.
28028 * sem_dist.adb: Remove comment noting that RPC receiver generation
28029 should be disabled for RACWs that implement RASs.
28030 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
28032 * sem_util.ads, sem_util.adb (Has_Stream): New function
28033 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
28034 qualified name of a library unit into the name buffer.
28035 (Note_Possible_Modification): Generate a reference only
28036 if the context comes from source.
28038 * snames.ads (PCS_Names): New subtype corresponding to names of
28039 supported implementations of the Partition Communication Subsystem
28040 (PCS) (i.e. the runtime library support modules for the distributed
28043 2004-11-18 Robert Dewar <dewar@adacore.com>
28044 Ed Schonberg <schonberg@adacore.com>
28046 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
28047 (Has_Rep_Pragma): New function
28048 (Has_Attribute_Definition_Clause): New function
28049 (Record_Rep_Pragma): Moved here from sem_ch13.adb
28050 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
28052 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
28054 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
28055 (Expand_Pragma_Psect_Object): New procedure
28056 These procedures contain the revised and cleaned up processing for
28057 these two pragmas. This processing was formerly in Sem_Prag, but
28058 is more appropriately moved here. The cleanup involves making sure
28059 that the pragmas are properly attached to the tree, and that no
28060 nodes are improperly shared.
28062 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
28063 pragmas to Exp_Prag, which is more appropriate.
28064 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
28065 check for duplicates Remove use of Is_Psected flag, no longer needed.
28066 Use new Make_String_Literal function with string.
28068 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
28069 that are functions return universal values, that have to be converted
28070 to the context type.
28071 Use new Make_String_Literal function with string.
28072 (Get_Stream_Convert_Pragma): New function, replaces the use of
28073 Get_Rep_Pragma, which had to be kludged to work in this case.
28075 * freeze.adb: Use new Has_Rep_Pragma function
28077 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
28078 function with string.
28079 Use new Has_Rep_Pragma function.
28081 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
28084 2004-11-18 Robert Dewar <dewar@adacore.com>
28086 * errout.ads, errout.adb: (First_Sloc): New function
28088 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
28089 check (-gnatyx) instead of being included as a redundant construct
28092 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
28093 Style_Check_Order_Subprograms.
28095 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
28096 stylesw.adb: Add Style_Check_Xtra_Parens
28098 * usage.adb: Add line for -gnatyx (check extra parens)
28100 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
28102 2004-11-18 Ed Schonberg <schonberg@adacore.com>
28103 Robert Dewar <dewar@adacore.com>
28105 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
28106 discriminant of a constrained subtype, analyze the copy of the
28107 corresponding constraint, because in some cases it may be only
28108 partially analyzed.
28109 Removes long-lived ??? comments.
28111 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
28112 handled controlled or secondary-stack expressions within the
28113 iteration_scheme of a loop.
28115 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
28116 bounds that may contain functions calls, to prevent memory leaks when
28117 the bound contains a call to a function that uses the secondary stack.
28118 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
28119 generate temporaries for loop bounds that might contain function calls
28120 that require secondary stack and/or finalization actions.
28122 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
28123 selected component and the selector is overloadable (not just a
28124 function) treat as function call, Analyze_Call will disambiguate if
28126 (Analyze_Selected_Component): Do not generate an actual subtype for the
28127 selected component if expansion is disabled. The actual subtype is only
28128 needed for constraint checks.
28129 (Analyze_Allocator): If restriction No_Streams is set, then do
28130 not permit objects to be declared of a stream type, or of a
28131 composite type containing a stream.
28133 * restrict.ads: Remove the a-stream entry from Unit_Array, since
28134 No_Streams no longer prohibits with'ing this package.
28136 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
28137 discriminants, but the parent base has unknown discriminants, there is
28138 no discriminant constraint to inherit. Such a discrepancy can arise
28139 when the actual for a formal type with unknown discriminants is a
28140 similar private type whose full view has discriminants.
28141 (Analyze_Object_Declaration): If restriction No_Streams is set, then
28142 do not permit objects to be declared of a stream type, or of a
28143 composite type containing a stream.
28145 2004-11-18 Ed Schonberg <schonberg@adacore.com>
28147 * exp_dbug.ads: Update documentation to reflect simpler encoding for
28148 protected operations.
28150 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
28151 generated name, it complicates decoding in gdb and hinders debugging
28152 of protected operations.
28153 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
28154 flag for the protected entry barrier function.
28155 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
28156 flag for the protected entry function.
28158 2004-11-18 Nicolas Setton <setton@adacore.com>
28160 * expect.c: Define __unix__ when __APPLE__ is defined.
28162 * Makefile.in: Inform the value of the variable GMEM_LIB in the
28163 Darwin-specific section.
28165 * lang-specs.h: Change the placement of the %1 marker.
28166 Works around the fact that gcc adds -fPIC by default under Darwin.
28168 2004-11-18 Ed Schonberg <schonberg@adacore.com>
28170 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
28171 type of the object with the packed array type, set the Analyzed flag
28172 on the object if it is an entity or simple indexed component, to avoid
28173 spurious type errors.
28175 2004-11-18 Gary Dismukes <dismukes@adacore.com>
28177 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
28178 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
28179 separate line from the version message.
28181 2004-11-18 Ed Falis <falis@adacore.com>
28183 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
28185 (init_float): Eliminate initialization of floating point status for
28186 AE653. The instructions have no effect for vThreads.
28188 2004-11-18 Vincent Celier <celier@adacore.com>
28190 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
28191 gnatbind is invoked with -shared.
28193 2004-11-18 Jose Ruiz <ruiz@adacore.com>
28195 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
28196 for Detect_Blocking which is redundant with the check done within the
28197 procedure Protected_Single_Entry_Call.
28198 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
28199 Detect_Blocking which is redundant with the check done within the
28200 procedure Protected_Single_Entry_Call.
28202 2004-11-18 Vincent Celier <celier@adacore.com>
28204 * makegpr.adb (Compile): Put the compiling switches (in package
28205 Compiler and on the command line) immediately after "-c", instead of
28206 at the end of the command line invocation of the compiler, when
28207 compiling a non-Ada file.
28208 (Build_Global_Archive): When there is no need to rebuild the archive,
28209 set Global_Archive_Exists, so that the archive is passed to the linker
28212 2004-11-18 Robert Dewar <dewar@adacore.com>
28213 Sergey Rybin <rybin@adacore.com>
28216 Remove extra paren check from list of checks for redundant constructs
28217 Add documentation of new -gnatyx style check (check extra parens)
28218 Remove paragraph about gnatelim debug options.
28220 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
28221 objects rather than forbidding dependencies on the package Ada.Streams.
28223 * sinfo.ads: Add ??? note that we should document pragmas passed to
28226 * g-expect.ads: Fix a few typos in the comments.
28228 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
28230 * misc.c (gnat_handle_option): Use %< and %> for quoting in
28233 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
28235 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
28237 2004-11-07 Andreas Schwab <schwab@suse.de>
28239 * Makefile.in (install-gnatlib): Remove spurious hyphen.
28241 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
28244 * Makefile.in (darwin): Set soext to .dylib.
28246 2004-10-26 Vincent Celier <celier@gnat.com>
28247 Thomas Quinot <quinot@act-europe.fr>
28249 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
28250 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
28251 there is no use of GNAT.Sockets.Constants.
28252 Remove remaining pragma Import for C_Write
28253 Remove C_Read and C_Write from internal implementation unit
28254 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
28255 the read and write functions from the system runtime library is fine
28256 on UNIX but won't work under Windows).
28258 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
28259 (Check_Selector): Use C_Recv instead of C_Read.
28260 Selectors are the GNAT.Sockets abstraction to perform a select()
28261 call on a set of descriptors. To allow abortion of an ongoing
28262 select operation, some data is written to a dedicated socket that
28263 is always monitored.
28264 Under Windows, the write and read library functions cannot operate
28265 on sockets, so we need to use send and recv instead, which is portable
28266 across all supported platforms.
28268 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
28269 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
28270 (using the read and write functions from the system runtime library is
28271 fine on UNIX but won't work under Windows).
28273 2004-10-26 Nicolas Setton <setton@act-europe.fr>
28275 * mlib-tgt-darwin.adb: New file.
28277 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
28278 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
28279 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
28280 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
28283 * Makefile.in: Add support for building shared libraries under Darwin.
28284 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
28285 the low level EH init subprogram to be called from __gnat_initialize.
28287 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
28288 indicates which options to pass to the archive indexer.
28290 * mlib-utl.adb: Add support for calling ranlib with additional
28291 options. This is needed for instance under Mac OS X.
28292 (Ranlib_Options): New global variable, used to store the potential
28293 options to pass to ranlib.
28294 (Ar): Use Ranlib_Options when spawning ranlib.
28295 (Initialize): Set the value of ranlib option.
28297 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
28299 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
28300 instead of 8K, to reflect the real potential needs for stack-checking
28303 2004-10-26 Pascal Obry <obry@gnat.com>
28305 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
28307 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
28308 Windows only the initial thread stack size can be set so it is good to
28309 start we a low stack size.
28310 The OS will adjust the size as needed.
28312 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
28313 Nicolas Setton <setton@act-europe.fr>
28315 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
28316 "__unix__" instead of "unix".
28317 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
28318 sections were just mistakenly ignored. The former is
28319 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
28320 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
28321 of hpux. This prevents an unwanted definition of the symbol
28322 convert_addresses in adaint.o.
28324 2004-10-26 Gary Dismukes <dismukes@gnat.com>
28326 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
28327 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
28329 2004-10-26 Cyrille Comar <comar@act-europe.fr>
28331 * a-filico.ads, a-filico.adb: fix incorrect header.
28333 2004-10-26 Javier Miranda <miranda@gnat.com>
28335 * a-ststio.ads: Fix typo in identifier
28337 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
28339 * sem_ch4.adb: Minor reformatting.
28341 2004-10-26 Ed Schonberg <schonberg@gnat.com>
28343 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
28344 enabled, check the result of unary and binary operations when the
28345 expression is the right-hand side of an assignment.
28347 2004-10-26 Vincent Celier <celier@gnat.com>
28349 * clean.adb (Delete): Do not output warnings when in quiet output and
28350 not in verbose mode.
28351 (Force_Deletions): New Boolean flag, defaulted to False
28352 (Delete): Only delete a file if it is writable, and when
28353 Force_Deletions is True.
28354 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
28355 (Usage): Line for new switch -f
28356 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
28359 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
28361 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
28362 JM type only if its size matches that of the wrapper. When a size is
28363 prescribed and the field is not aliased, remove the wrapper of a JM
28364 type only if the size is not greater than that of the packed array.
28365 (gnat_to_gnu_entity): Change the extension of packed array wrappers
28368 2004-10-26 Geert Bosch <bosch@gnat.com>
28370 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
28371 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
28372 (Pred): Implement in terms of Succ.
28374 2004-10-26 Ed Schonberg <schonberg@gnat.com>
28376 * exp_aggr.adb (Safe_Component): An aggregate component that is an
28377 unchecked conversion is safe for in-place use if the expression of the
28378 conversion is safe.
28379 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
28380 be expandable in place even if the aggregate does not come from source.
28381 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
28382 designated object of an allocator in place, rather than building it
28383 first on the stack. The previous scheme forces a full copy of the array,
28384 and may be altogether unsusable if the size of the array is too large
28385 for stack allocation.
28387 2004-10-26 Robert Dewar <dewar@gnat.com>
28389 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
28390 compares if the component is atomic.
28392 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
28393 array assignment if the component type is atomic.
28395 2004-10-26 Ed Schonberg <schonberg@gnat.com>
28396 Eric Botcazou <ebotcazou@act-europe.fr>
28398 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
28399 is aliased and is a by_reference type, do not pass by copy.
28400 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
28401 detect whether the call is in the right side of an assignment or
28402 the expression of an object declaration. Recurse on component
28403 association within aggregates.
28404 Call it in the condition that determines whether the temporary is
28405 necessary for correct stack-checking.
28407 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
28409 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
28410 RACW_Type, used in the PolyORB version.
28411 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
28412 version and the GARLIC version.
28414 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
28415 Rename RCI_Info to RCI_Locator for better consistency between the
28416 GARLIC and PolyORB versions of the distributed systems annex.
28417 (DSA_Implementation_Name): This enumeration lists the possible
28418 implementations of the Partition Communication Subsystem for the
28419 Distributed Systems Annex (DSA). The three available implementations
28420 are the dummy stub implementation (No_DSA), and two versions based on
28421 two different distribution runtime libraries: GARLIC and PolyORB. Both
28422 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
28424 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
28427 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
28428 between the GARLIC and PolyORB versions of the distributed systems
28430 Remove RE_Unbounded_Reclaim_Pool since it is unused.
28432 2004-10-26 Gary Dismukes <dismukes@gnat.com>
28434 * gnat1drv.adb: Suppress calling the back end when
28435 Frontend_Layout_On_Target is true.
28437 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
28439 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
28440 Set_Read_Only): New subprograms.
28441 These new routines allow the user to set or unset the Owner execute
28442 and Owner write permission flags on a file.
28444 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
28445 GNAT.OS_Lib.Set_Executable instead of rolling our own.
28447 2004-10-26 Matthew Gingell <gingell@gnat.com>
28449 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
28451 2004-10-26 Pascal Obry <obry@gnat.com>
28453 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
28454 memory before the faulting page we properly test the process read
28455 access for this address using appropriate Win32 routine.
28456 (HPUX sections): guard with "__hpux__" instead of "hpux".
28458 2004-10-26 Robert Dewar <dewar@gnat.com>
28460 * lib-xref.adb (Generate_Reference): Don't complain about reference to
28461 entry parameter if pragma Unreferenced set, since we do not properly
28462 handle the case of multiple parameters.
28464 2004-10-26 Vincent Celier <celier@gnat.com>
28466 * prj-env.adb: (Contains_ALI_Files): New Boolean function
28467 (Ada_Objects_Path.Add): For a library project, add to the object path
28468 the library directory only if there is no object directory or if the
28469 library directory contains ALI files.
28470 (Set_Ada_Paths.Add.Recursive_Add): Ditto
28472 2004-10-26 Vincent Celier <celier@gnat.com>
28474 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
28475 extension of library projects.
28477 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
28478 path defaults to ".:<prefix>/lib/gnat".
28479 (Parse): For an extending all project, allow direct import of a project
28480 that is virtually extended.
28482 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
28483 the specified name is directly imported, return its ID. Otherwise, if
28484 an extension of this project is imported, return the ID of the
28487 2004-10-26 Robert Dewar <dewar@gnat.com>
28489 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
28490 (Sub3): New procedure, used by Scaled_Divide
28491 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
28492 correct more than one instance of failure to propagate carries
28494 (Double_Divide): Handle overflow case of largest negative number
28495 divided by minus one.
28497 * s-arit64.ads (Double_Divide): Document that overflow can occur in
28498 the case of a quotient value out of range.
28501 2004-10-26 Robert Dewar <dewar@gnat.com>
28503 * s-bitops.adb (Bit_Eq): Remove redundant check.
28505 * s-bitops.ads: Minor comment updates
28506 Change some occurrences of Address to System.Address
28508 * s-carsi8.ads: Fix minor cut-and-paste error in comments
28510 2004-10-26 Ed Schonberg <schonberg@gnat.com>
28512 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
28513 accessibility check to prefix that is a protected operation.
28515 2004-10-26 Ed Schonberg <schonberg@gnat.com>
28517 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
28518 empty, post message on stub.
28520 2004-10-26 Ed Schonberg <schonberg@gnat.com>
28521 Javier Miranda <miranda@gnat.com>
28523 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
28524 current instance appears within a unit that is directly in the context
28526 Used to determine whether the body of the instance should be analyzed
28527 immediately after its spec, to make its subprogram bodies available
28528 for front-end inlining.
28529 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
28530 constraint is not allowed on the component type (AARM 12.5.3(3))
28532 2004-10-26 Cyrille Comar <comar@act-europe.fr>
28534 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
28535 'Storage_Pool): enhance, document & limit detection of non-sharable
28538 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
28540 * s-pooglo.ads: Add more documentation now that this pool is properly
28543 2004-10-26 Ed Schonberg <schonberg@gnat.com>
28545 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
28546 or protected type with discriminants, do not constrain the
28547 corresponding record type if the subtype declaration has no
28548 discriminant constraints. This can be the case in source code, or in
28549 the subtype declaration created to rename an actual type within an
28552 2004-10-26 Ed Schonberg <schonberg@gnat.com>
28554 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
28555 different kind of stub (possibly wrong name for file), do not check
28557 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
28558 includes call to some function that returns an unconstrained type, do
28561 2004-10-26 Ed Schonberg <schonberg@gnat.com>
28563 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
28564 appear in the code for the main unit. Dependencies among units in the
28565 context of the main unit are established when those other units are
28566 compiled. Otherwise spurious elaboration constraints can generate
28567 incorrect elaboration circularities.
28569 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
28570 Ed Schonberg <schonberg@gnat.com>
28572 * sem_util.adb (Is_Aliased_View): Defend against the case where this
28573 subprogram is called with a parameter that is not an object name. This
28574 situation arises for some cases of illegal code, which is diagnosed
28575 later, and in this case it is wrong to call Is_Aliased, as that might
28576 cause a compiler crash.
28577 (Explain_Limited_Type): Refine previous fix to include
28578 inherited components of derived types, to provide complete information.
28580 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
28581 is the prival for a protected object.
28582 It is necessary to mark this entity as a variable, in addition to
28583 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
28584 modified to avoid checking the Aliased flag on entities that are not
28585 objects. (Checking that flag for non-objects is erroneous and could
28586 lead to a compiler crash).
28588 2004-10-26 Robert Dewar <dewar@gnat.com>
28590 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
28591 X_Frac = 0.5, then we know that the number X must be positive.
28592 (Succ): Remove the same redundant test, and also fix the primary test
28593 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
28595 (Decompose): Add fuller comments to spec
28597 2004-10-26 Pascal Obry <obry@gnat.com>
28599 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
28600 validity (process must have read access). Set to 0 in all other cases.
28601 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
28602 violation on Win32.
28603 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
28604 segmentation violation.
28606 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
28608 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
28609 whose type is a constructed subtype of an aliased object with an
28610 unconstrained nominal subtype, convert the actual to the constructed
28611 subtype before taking its address.
28613 2004-10-26 Vincent Celier <celier@gnat.com>
28615 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
28616 (Is_Path_Name_Case_Sensitive): New function
28618 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
28619 (Base_Name, Simple_Name, Current_Directory, Compose,
28620 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
28623 2004-10-26 Cyrille Comar <comar@act-europe.fr>
28624 Vasiliy Fofanov <fofanov@act-europe.fr>
28625 Vincent Celier <celier@gnat.com>
28627 * gnat_ugn.texi: Generalize "finding memory problems" section into a
28628 "memory management issues" section and document some of the useful
28629 memory pools provided as part of the GNAT library.
28630 Remove "virtual" from declaration of A::method2 in
28631 the simple example of Ada/C++ mixed system.
28632 Library Projects may be virtually extended: their virtual extensions
28633 are not Library Projects.
28634 Added section on extending project hierarchies.
28636 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
28638 * adaint.c (__gnat_get_libraries_from_registry): Cast value
28640 (__gnat_portable_spawn): Remove const.
28642 * mingw32.h (MAXPATHLEN): Check for previous definition.
28644 2004-10-17 Matthias Klose <doko@debian.org>
28646 * gnatvsn.ads: Set gnat library version to 4.0.
28648 2004-10-05 Vincent Celier <celier@gnat.com>
28650 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
28652 2004-10-04 Laurent Guerby <laurent@guerby.net>
28655 * Makefile.in: Define and use RANLIB_FLAGS.
28657 2004-10-04 Pascal Obry <obry@gnat.com>
28659 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
28660 other x86 platforms).
28662 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
28664 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
28665 in general and triggers stack alignment adjustment for thread entry
28666 points on targets where this is necessary.
28668 2004-10-04 Bernard Banner <banner@gnat.com>
28671 * Makefile.in: Add section for powerpc linux
28672 Add variant i-vxwork-x86.ads
28674 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
28676 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
28678 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
28679 table registration calls when need be. Ensures no reference to the crt
28680 ctors symbol are issued in the SJLJ case, which avoids possible
28681 undefined symbol errors in the case of modules to be statically linked
28684 2004-10-04 Javier Miranda <miranda@gnat.com>
28686 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
28687 in-line the code corresponding to subprogram Analyze_Actuals. In
28688 addition, analyze the actuals only in case of subprogram call.
28690 2004-10-04 Ed Falis <falis@gnat.com>
28692 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
28694 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
28696 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
28697 in the documentation.
28699 2004-10-04 Robert Dewar <dewar@gnat.com>
28701 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
28703 (Analyze_Block_Statement): Add circuitry to detect following dead code
28704 (Check_Unreachable_Code): Handle case of block exit
28706 2004-10-04 Robert Dewar <dewar@gnat.com>
28708 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
28709 (XMatchD): Avoid warning for Logic_Error call
28711 2004-10-04 Robert Dewar <dewar@gnat.com>
28713 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
28714 consider expressions buried within a procedure actual to be an actual.
28715 This caused some blowups with uses of packed slices within a procedure
28718 2004-10-04 Robert Dewar <dewar@gnat.com>
28720 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
28721 longer need to be initialized to zero.
28722 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
28723 initialized to zero.
28725 * checks.adb (Expr_Known_Valid): Packed arrays are now always
28726 considered valid, even if the representation is modular. That's correct
28727 now that we no longer initialize packed modular arrays to zero.
28729 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
28730 suffixes. These are now documented as the only cases in which the
28731 debugger ignores outer records.
28732 Previously, the spec allowed arbitrary suffixes for this purpose.
28733 Change name of LJM to JM for packed array pad records
28734 Create separate section on packed array handling, and add a whole new
28735 set of comments to this section describing the situation with packed
28736 modular types and justification requirements depending on endianness.
28738 2004-10-04 Robert Dewar <dewar@gnat.com>
28740 * a-except.adb: Add a comment for last change
28742 * einfo.ads: Minor spelling correction in comment
28744 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
28746 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
28749 * sem_util.ads: Minor comment update
28751 2004-10-04 Ed Schonberg <schonberg@gnat.com>
28753 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
28754 Inline_Always when in Configurable_Run_Time mode.
28756 * sem_prag.adb (Process_Convention): If entity is an inherited
28757 subprogram, apply convention to parent subprogram if in same scope.
28758 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
28759 when in Configurable_Run_Time mode.
28761 2004-10-04 Ed Schonberg <schonberg@gnat.com>
28763 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
28764 class_wide type after component list has been inherited.
28766 2004-10-04 Ed Schonberg <schonberg@gnat.com>
28768 * sem_ch12.adb (Check_Generic_Actuals): New predicate
28769 Denotes_Previous_Actual, to handle properly the case of a private
28770 actual that is also the component type of a subsequent array actual.
28771 The visibility status of the first actual is not affected when the
28772 second is installed.
28773 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
28774 make fully recursive the treatment of formals of packages declared
28776 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
28777 the above on exit from an instantiation.
28778 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
28779 current instantiation which is now complete.
28780 (Analyze_Package_Instantiation): No instantiated body is needed if the
28781 main unit is generic. Efficient, and avoid anomalies when a instance
28782 appears in a package accessed through rtsfind.
28784 2004-10-04 Ed Schonberg <schonberg@gnat.com>
28786 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
28787 do not generate a declaration for a temporary if the call is part of a
28788 library-level instantiation.
28790 2004-10-04 Ed Schonberg <schonberg@gnat.com>
28792 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
28793 searching for a limited component to flag.
28795 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
28796 expansion of Input, to account for the fact that the implicit call
28797 generated by the attribute reference must freeze the user-defined
28798 stream subprogram. This is only relevant to 'Input, because it can
28799 appear in an object declaration, prior to the body of the subprogram.
28801 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
28802 expansion can proceed and further errors uncovered.
28803 (Minor clean up): Fix cases of using | instead of \ for continuation
28806 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28808 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
28810 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
28811 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
28812 Use gcc_assert and gcc_unreachable.
28814 * decl.c (gnat_to_gnu_entity, case object): Check and process a
28815 specified alignment before validating size.
28816 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
28817 stripped-down declaration for the type of the inner field when making
28820 * utils.c (finish_record_type): Do not compute the size in units
28821 incrementally. Instead compute it once for the rep clause case.
28822 Use gcc_assert and gcc_unreachable.
28824 2004-10-04 Vincent Celier <celier@gnat.com>
28826 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
28828 (Is_Valid_Path_Name): Take '/' as a directory separator.
28830 2004-10-04 Vincent Celier <celier@gnat.com>
28832 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
28833 (Extended_Project) only if Extended_Project is defined, to avoid
28835 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
28837 (Parse_Single_Project): Ditto.
28839 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
28840 Add_To_Project_Path for virtual projects.
28842 2004-10-04 Vincent Celier <celier@gnat.com>
28844 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
28845 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
28846 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
28847 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
28848 parameter Options_2.
28850 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
28851 Build_Dynamic_Library with an empty Options_2.
28853 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
28856 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
28857 directory separator, if any.
28858 (Gprmake): Do not allow mains on the command line for library projects.
28859 Do not attempt to link when the project is a library project.
28860 (Library_Opts): New table to store Library_Options.
28861 (Build_Library): If Library_Options is specified, pass these options
28862 when building a shared library.
28864 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
28866 * s-tposen.adb (Service_Entry): The object must be always unlocked at
28867 the end of this procedure now that the unlock operation was inserted
28870 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
28872 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
28873 corresponding to the Preallocated_Stacks flags in System.
28874 (Get_Target_Parameters): Including the processing for
28875 Preallocated_Stacks.
28877 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
28878 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
28879 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
28880 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
28881 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
28882 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
28883 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
28884 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
28885 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
28886 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
28887 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
28888 used to signal whether the compiler creates the required stacks and
28889 descriptors for the different tasks (when True) or it is done by the
28890 underlying operating system at run time (when False).
28891 It is initially set to False in all targets.
28893 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
28894 if it is supported by the target.
28895 (Make_Task_Create_Call): Pass the stack address if it has been
28896 previously created. Otherwise pass a Null_Address.
28898 * snames.adb: Add _stack.
28900 * snames.ads: Add Name_uStack. Required to allow the expander to
28901 statically allocated task stacks.
28903 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
28904 Stack_Address argument.
28905 Check that its value is equal to Null_Address because this target does
28906 not support the static stack allocation.
28908 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
28910 * usage.adb: Change "pragma inline" to "pragma Inline" in information
28913 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
28915 * exp_dist.adb: Split declaration of asynchronous flag out of
28916 Add_RACW_Read_Attribute.
28917 Minor reformatting for better alignment with PolyORB version.
28918 Store the entity for the asynchronous flag of an RACW, rather than the
28919 expression, in the asynchronous flags table. This will allow this flag
28920 to be used in other subprograms beside Add_RACW_Read_Attribute.
28922 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
28924 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
28925 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
28926 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
28927 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
28928 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
28929 sockets constant MSG_NOSIGNAL (Linux-specific).
28930 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
28931 all Send operations.
28932 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
28933 from trigerring SIGPIPE.
28934 Rename components to avoid clash with Ada 2005 possible reserved
28936 (Check_Selector): When the select system call returns with an error
28937 condition, propagate Socket_Error to the caller.
28939 2004-10-01 Jan Hubicka <jh@suse.cz>
28941 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
28943 2004-09-23 Robert Dewar <dewar@gnat.com>
28946 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
28947 instead do this at freeze time (we won't do it if there is an address
28949 Change "pragma inline" to "pragma Inline" in information and error
28951 Minor reformatting.
28953 * freeze.adb (Check_Address_Clause): Remove previous change, not the
28954 right way of doing things after all.
28955 (Freeze_Entity): For object, set Is_Public for imported entities
28956 unless there is an address clause present.
28958 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
28960 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
28961 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
28962 ensures proper handling of types with rep clauses, which might have
28963 their TYPE_SIZE set already.
28965 2004-09-21 Robert Dewar <dewar@gnat.com>
28967 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
28968 packed array types in both little- and big-endian cases. This change
28969 ensures that we no longer count on the unused bits being initialized
28970 for such types (and in particular ensures that equality testing will
28971 only read the relevant bits).
28972 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
28973 These changes mean that we no longer need to initialize small packed
28975 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
28976 optimization to an LJM field as to its parent field.
28978 * ada-tree.h, trans.c, utils.c, utils2.c:
28979 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
28981 2004-09-20 Jan Hubicka <jh@suse.cz>
28983 * utils.c (gnat_finalize): Remove.
28984 (end_subprog_body): Directly call cgraph_finalize_function;
28985 do not lower the nested functions.
28987 2004-09-20 Robert Dewar <dewar@gnat.com>
28990 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
28991 if an address clause is present, since that means that the Import
28994 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
28996 * 5tsystem.ads: Removed, no longer used.
28998 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
28999 Zack Weinberg <zack@codesourcery.com>
29001 * ada-tree.def: Use tree_code_class enumeration constants
29002 instead of code letters.
29003 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
29004 Update for new tree-class enumeration constants.
29006 2004-09-17 Vincent Celier <celier@gnat.com>
29008 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
29009 capabilities of the general project manager.
29011 2004-09-09 Vincent Celier <celier@gnat.com>
29013 * a-direct.ads: Add pragma Ada_05
29014 (Directory_Entry_Type): Give default value to component Kind to avoid
29015 not initialized warnings.
29017 * a-direct.adb (Current_Directory): Remove directory separator at the
29019 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
29020 an existing directory.
29021 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
29022 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
29023 Convert the result to File_Size.
29025 * prj.ads: (Project_Error): New exception
29027 * prj-attr.adb: Except in procedure Initialize, Fail comes from
29028 Prj.Com, not from Osint.
29029 (Attrs, Package_Attributes): Tables moved to private part of spec
29030 (Add_Attribute, Add_Unknown_Package): Moved to new child package
29032 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
29033 Prj.Project_Error after call to Fail.
29034 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
29035 Fail. Check that package name is not already in use.
29037 * prj-attr.ads: Comment updates to indicate that all subprograms may be
29038 used by tools, not only by the project manager, and to indicate that
29039 exception Prj.Prj_Error may be raised in case of problem.
29040 (Add_Unknown_Package, Add_Attribute): Moved to new child package
29042 (Attrs, Package_Attributes): Table instantiations moved from the body to
29043 the private part to be accessible from Prj.Attr.PM body.
29045 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
29046 from new package Prj.Attr.PM.
29047 (Parse_Attribute_Declaration): Call Add_Attribute from new package
29050 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
29052 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
29053 instead of Elaboration_Checks).
29055 * a-calend.adb: Minor reformatting
29057 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29059 * gigi.h (maybe_pad_type): New declaration.
29060 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
29062 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
29064 * cuintp.c: Convert to use buildN.
29066 * decl.c (maybe_pad_type): No longer static.
29067 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
29069 Convert to use buildN.
29071 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
29072 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
29073 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
29075 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
29076 (gnat_gimplify_expr, case ADDR_EXPR): New case.
29077 Convert to use buildN.
29079 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
29080 TREE_READONLY for const.
29081 Convert to use buildN.
29083 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
29084 (create_var_decl): Refine when TREE_STATIC is set.
29085 Convert to use buildN.
29087 2004-09-09 Gary Dismukes <dismukes@gnat.com>
29089 * gnat_ugn.texi: Delete text relating to checking of ali and object
29092 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
29095 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
29097 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
29098 pragmas recognized by GNAT.
29100 * gnat_rm.texi: Document pragma Detect_Blocking.
29102 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
29103 raise Program_Error if called from a protected operation.
29105 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
29106 the protected action nesting level.
29107 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
29108 protected action nesting level.
29109 (Unlock): When pragma Detect_Blocking is active decrease the protected
29110 action nesting level.
29112 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
29113 Protected_Action_Nesting.
29115 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
29116 Common_ATCB record. It contains the dynamic level of protected action
29117 nesting for each task. It is needed for checking whether potentially
29118 blocking operations are called from protected operations.
29119 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
29120 Detect_Blocking is active or not in the partition.
29122 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
29123 raise Program_Error if called from a protected operation.
29124 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
29125 Program_Error if called from a protected operation.
29126 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
29127 Program_Error if called from a protected operation.
29129 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
29130 raise Program_Error if called from a protected operation.
29132 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
29133 raise Program_Error if called from a protected operation, and increase
29134 the protected action nesting level.
29135 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
29136 Program_Error if called from a protected operation, and increase the
29137 protected action nesting level.
29138 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
29139 protected action nesting level.
29141 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
29142 raise Program_Error if called from a protected operation, and increase
29143 the protected action nesting level.
29144 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
29145 Program_Error if called from a protected operation, and increase the
29146 protected action nesting level.
29147 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
29148 raise Program_Error if called from a protected operation.
29149 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
29150 active, raise Program_Error if called from a protected operation.
29151 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
29152 protected action nesting level.
29154 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
29155 insertion of the statement raising Program_Error. The run time
29156 contains the required machinery for handling that.
29158 * sem_util.ads: Change comment associated to procedure
29159 Check_Potentially_Blocking_Operation.
29160 This procedure does not insert a call for raising the exception because
29161 that is currently done by the run time.
29163 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
29165 * init.c: Add the global variable __gl_detect_blocking that indicates
29166 whether pragma Detect_Blocking is active (1) or not (0). Needed for
29167 making the pragma available at run time.
29168 (__gnat_set_globals): Pass and update the detect_blocking parameter.
29170 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
29171 pragma Detect_Blocking is active.
29173 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
29175 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
29176 DB is found in the ali file. Any unit compiled with pragma
29177 Detect_Blocking active forces its effect in the whole partition.
29179 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
29180 Detect_Blocking is active and delay is called from a protected
29183 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
29184 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
29185 Detect_Blocking is active (0 otherwise).
29186 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
29187 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
29190 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
29192 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
29193 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
29196 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
29197 (Register_Receiving_Stub): Add Subp_Info formal parameter.
29198 Update API in placeholder implemetation of s-parint to reflect changes
29199 in distribution runtime library.
29201 * sem_ch3.adb (Expand_Derived_Record): Rename to
29202 Expand_Record_Extension.
29204 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
29205 primitive operations of potentially distributed object types that have
29206 non-controlling anonymous access formals.
29208 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
29210 New implementation of expansion for remote access-to-subprogram types,
29211 based on the RACW infrastructure.
29212 This version of sem_dist is compatible with PolyORB/DSA as well as
29215 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
29216 Asynchrronous that applies to a remote access-to-subprogram type, mark
29217 the underlying RACW type as asynchronous.
29219 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
29220 __gnat_using_gnu_linker to 1.
29222 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
29223 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
29224 GNAT.Perfect_Hash_Generators, and remove the empty
29225 GNAT.Perfect_Hash package.
29227 * atree.adb: Minor reformatting
29229 * exp_ch3.adb (Expand_Derived_Record): Rename to
29230 Expand_Record_Extension.
29231 (Build_Record_Init_Proc.Build_Assignment): The default expression in
29232 a component declaration must remain attached at that point in the
29233 tree so New_Copy_Tree copies it if the enclosing record type is derived.
29234 It is therefore necessary to take a copy of the expression when building
29235 the corresponding assignment statement in the init proc.
29236 As a side effect, in the case of a derived record type, we now see the
29237 original expression, without any rewriting that could have occurred
29238 during expansion of the ancestor type's init proc, and we do not need
29239 to go back to Original_Node.
29241 * exp_ch3.ads (Expand_Derived_Record): Rename to
29242 Expand_Record_Extension.
29244 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
29245 Returns the RACW type used to implement a remote access-to-subprogram
29247 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
29248 New subprograms. Used to create a proxy tagged object for a remote
29249 subprogram. The proxy object is used as the designated object
29250 for RAS values on the same partition (unless All_Calls_Remote applies).
29251 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
29252 System.Partition_Interface.Get_Unique_Remote_Pointer.
29253 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
29254 Renamed from Add_RAS_*_Attribute.
29255 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
29257 New implementation of expansion for remote access-to-subprogram types,
29258 based on the RACW infrastructure.
29260 * exp_dist.ads (Copy_Specification): Update comment to note that this
29261 function can copy the specification from either a subprogram
29262 specification or an access-to-subprogram type definition.
29264 2004-09-09 Ed Schonberg <schonberg@gnat.com>
29266 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
29267 in an instance, between an explicit subprogram an one inherited from a
29268 type derived from an actual.
29270 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
29271 add a polling call if the subprogram is to be inlined by the back-end,
29272 to avoid repeated calls with multiple inlinings.
29274 * checks.adb (Apply_Alignment_Check): If the expression in the address
29275 clause is a call whose name is not a static entity (e.g. a dispatching
29276 call), treat as dynamic.
29278 2004-09-09 Robert Dewar <dewar@gnat.com>
29280 * g-trasym.ads: Minor reformatting
29282 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
29283 packed arrays, since unused bits are expected to be zero for a
29286 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
29288 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
29291 2004-09-09 Pascal Obry <obry@gnat.com>
29293 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
29294 enable map file generation. Add the right option to generate the map
29295 file if Map_File is set to True.
29297 * gnatdll.adb (Gen_Map_File): New variable.
29298 (Syntax): Add info about new -m (Map_File) option.
29299 (Parse_Command_Line): Add support for -m option.
29300 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
29301 Minor reformatting.
29303 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
29305 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
29306 new gnatdist implementation.
29307 Define a subpackage isolating the output routines specific to this
29310 2004-09-09 Joel Brobecker <brobecker@gnat.com>
29312 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
29314 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
29316 2004-09-09 Cyrille Comar <comar@act-europe.fr>
29318 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
29321 * opt.ads: Add Ada_Version_Runtime constant used to decide which
29322 version of the language is used to compile the run time.
29324 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
29326 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
29327 of variable length temporaries for function return now that the
29328 back-end and gigi support it.
29330 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29332 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
29334 * trans.c (struct stmt_group): Delete field GLOBAL.
29335 (gnat_init_stmt_group): Do not initialize it.
29336 (call_to_gnu): Use save_expr, not protect_multiple_eval.
29337 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
29338 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
29339 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
29340 (start_stmt_group): Likewise.
29341 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
29343 * utils2.c (ggc.h): Include.
29344 (build_call_raise): Call build_int_cst, not build_int_2.
29346 * utils.c (gnat_init_decl_processing): Fix arg to
29347 build_common_tree_nodes.
29348 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
29349 (gnat_define_builtin): Set built_in_decls.
29350 (init_gigi_decls): Call build_int_cst, not build_int_2.
29352 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
29353 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
29354 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
29355 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
29356 SET_TYPE_MODULE): Use them.
29357 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
29358 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
29359 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
29360 SET_TYPE_ADA_SIZE): Likewise.
29361 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
29362 (DECL_CONST_CORRESPONDING_VAR,
29363 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
29364 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
29365 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
29366 (TYPE_RM_SIZE_NUM): New macro.
29367 (TYPE_RM_SIZE): Modified to use above.
29369 * cuintp.c: (build_cst_from_int): New function.
29370 (UI_To_gnu): Use it.
29372 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
29373 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
29374 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
29375 MIN_EXPR for the size, copy it into new.
29377 2004-09-01 Robert Dewar <dewar@gnat.com>
29379 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
29380 packed indexed component where array is an IN OUT formal. This
29381 generated garbage code previously.
29383 * gnat_ugn.texi: Document -fverbose-asm
29385 * gnat-style.texi: Minor updates (note that boolean constants and
29386 variables are joined with AND/OR rather than short circuit forms).
29388 2004-09-01 Ed Schonberg <schonberg@gnat.com>
29390 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
29391 it is an upward conversion of an untagged type with no representation
29394 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
29396 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
29397 System.Partition_Interface.
29399 * checks.adb (Apply_Access_Checks): Do not generate checks when
29400 expander is not active (but check for unset reference to prefix of
29403 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
29404 pragma Debug as an if statement with a constant condition, for
29405 consistent treatment of entity references contained within the
29406 enclosed procedure call.
29408 2004-09-01 Vincent Celier <celier@gnat.com>
29410 * bindgen.adb: (Set_EA_Last): New procedure
29411 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
29413 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
29414 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
29415 linked without errors.
29416 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
29418 (Gen_Exception_Table_C): Correct same bugs
29420 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
29422 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
29423 on Windows, make sure that the drive letter is in upper case.
29425 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
29426 Windows, when the drive letter is added and Case_Sensitive is True, the
29427 drive letter is forced to upper case.
29429 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
29430 to Options_2 for the call to MLib.Utl.Gcc.
29432 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
29433 directory separator when defining BASE_DIR.
29435 2004-09-01 Pascal Obry <obry@gnat.com>
29437 * gprcmd.adb (Extend): Do not output trailing directory separator. This
29438 is not needed and it confuses Windows GNU/make which does not report
29439 directory terminated by a slash as a directory.
29440 (gprcmd): Idem for "pwd" internal command.
29442 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
29443 target names rewrite to fix regressions with recent version of
29444 GNU/make. Starting with GNU/make 3.80 the pipe character was not
29445 handled properly anymore.
29447 2004-09-01 Andreas Schwab <schwab@suse.de>
29449 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
29450 * raise.c [!IN_RTS]: Undef abort.
29452 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
29454 * utils2.c (build_allocator): Use ssize_int.
29456 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
29458 2004-08-27 Andreas Schwab <schwab@suse.de>
29460 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
29462 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
29463 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29465 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
29467 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
29469 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
29470 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
29471 * utils.c (init_gigi_decls): Likewise.
29472 * utils2.c (build_call_raise, build_allocator): Likewise.
29474 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
29476 * utils.c (gnat_init_decl_processing): Adjust
29477 build_common_tree_nodes call.
29479 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
29481 * utils2.c (build_allocator): Use build_int_cst for negative
29484 2004-08-18 Richard Henderson <rth@redhat.com>
29486 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
29488 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
29490 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
29492 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
29493 (gnat_to_gnu): Likewise.
29495 2004-08-16 Pascal Obry <obry@gnat.com>
29497 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
29498 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
29499 option and not mdll anymore. Update comment.
29501 2004-08-16 Pascal Obry <obry@gnat.com>
29503 * bld.adb (Put_Include_Project): Properly handle directory separators
29506 2004-08-16 Ed Schonberg <schonberg@gnat.com>
29508 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
29509 decreasing the number of allocated junk nodes while searching for the
29510 appropriate subprogram.
29512 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
29514 * cuintp.c (UI_To_gnu): Use build_int_cst..
29515 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
29516 * utils.c (init_gigi_decls): Likewise.
29517 * utils2.c (build_call_raise): Likewise.
29519 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
29521 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
29522 for a global aliased object with a variable size and an unconstrained
29523 nominal subtype, pretend there is no initializer if the one we have is
29524 incomplete, and avoid referencing an inexistant component in there. The
29525 part we have will be rebuilt anyway and the reference may confuse
29526 further operations.
29528 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
29530 * einfo.ads: Minor reformatting
29532 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
29533 restrictions in the ALI if we only want to warn about violations.
29535 2004-08-13 Vincent Celier <celier@gnat.com>
29537 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
29538 when creating a new Unit_Record in table Units.
29540 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
29541 that are violated, if any.
29543 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
29544 add directory separator if path already ends with a directory separator.
29546 2004-08-13 Ed Schonberg <schonberg@gnat.com>
29548 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
29549 unit, this is an attempt to inline a construct that is not available in
29550 the current restricted mode, so abort rather than trying to continue.
29552 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
29553 discriminants that rename those of the parent, recover names of
29554 original discriminants for the constraint on the full view of the
29556 (Complete_Private_Subtype): Do not create a subtype declaration if the
29557 subtype is an itype.
29559 * gnat_rm.texi: Added section on implementation of discriminated
29560 records with default values for discriminants.
29562 2004-08-13 Ed Schonberg <schonberg@gnat.com>
29565 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
29566 the second operand is overloaded.
29568 2004-08-10 Richard Henderson <rth@redhat.com>
29570 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
29571 add __builtin_alloca.
29573 2004-08-10 Richard Henderson <rth@redhat.com>
29575 * config-lang.in (boot_language): Yes.
29577 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
29579 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
29580 from complaining on potential uninitialized reference.
29581 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
29582 new specification and test explicitly for non-zero return value.
29584 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
29585 returning C.int, to avoid using a derived boolean type.
29587 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
29588 Duplicate_Subexpr_No_Checks in preference to direct use of
29589 Remove_Side_Effects and New_Copy_Tree.
29590 Clear Comes_From_Source on prefix of 'Size attribute reference.
29592 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
29593 g-socthi-vxworks.adb: Change calls to
29594 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
29595 and test explicitly for non-zero return value.
29597 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
29598 (Is_Socket_In_Set): Declare imported function as returning C.int, to
29599 avoid using a derived boolean type.
29601 2004-08-09 Albert Lee <lee@gnat.com>
29603 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
29605 2004-08-09 Pascal Obry <obry@gnat.com>
29607 * gnat_ugn.texi: Document new way to build DLLs on Windows using
29608 GCC's -shared option.
29610 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
29611 Options_2 parameter (options put after object files).
29613 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
29615 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
29616 ignore overflows on low and high bounds of an index to also account for
29617 differences in signedness between sizetype and gnu_index_subtype.
29618 These are as legitimate as the ones caused by a lower TYPE_PRECISION
29621 2004-08-09 Robert Dewar <dewar@gnat.com>
29623 * s-solita.ads, s-solita.adb: Minor reformatting
29625 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
29626 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
29627 obsolescent section
29628 Add note that No_Implicit_Conditionals does not suppress
29629 run time constraint checks.
29631 * vms_conv.ads: Minor reformatting
29633 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
29634 and necessary for following change).
29635 (Mark): Return new format Mark_Id containing sec stack address
29636 (Release): Use sec stack address from Mark_Id avoiding Self call
29638 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
29639 pointer (cleanup and necessary for following change).
29640 Define Mark_Id as record containing address of secondary stack, that way
29641 Release does not need to find the stack again, decreasing the number of
29642 calls to Self and improving efficiency.
29644 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
29646 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
29647 case variable into the individual case branches when possible.
29649 * sem_ch11.adb: Minor reformatting
29651 * prj.ads: Correct spelling of suffixs
29653 * prj-nmsc.adb: Minor reformatting
29654 Correct spelling suffixs throughout (also in identifiers)
29656 * freeze.adb: Minor spelling correction
29658 * exp_ch2.adb: Cleanups to handling of Current_Value
29659 (no functional effect).
29661 * bld.adb: Correct spelling of suffixs
29663 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
29665 2004-08-09 Ed Schonberg <schonberg@gnat.com>
29668 * sem_ch7.adb (Install_Private_Declarations): In the body of the
29669 package or of a child, private entities are both immediately_visible
29672 2004-08-09 Ed Schonberg <schonberg@gnat.com>
29674 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
29675 there are no range checks on the value of the literal.
29677 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
29678 wrapped is the triggering alternative of an asynchronous select, action
29679 statements mustbe inserted before the select itself.
29681 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
29682 case where the prefix is a protected function call.
29683 (Resolve_Attribute, case 'Access): The attribute reference on a
29684 subprogram is legal in a generic body if the subprogram is declared
29687 2004-08-09 Vincent Celier <celier@gnat.com>
29689 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
29690 languages, otherwise building the library may fail with unresolved
29692 (Compile_Sources): Do not build libraries if -c switch is used
29694 * gnatlink.adb (Process_Args): New switches -M and -Mmap
29695 (Write_Usage): If map file creation is supported, output new switches
29697 (Gnatlink): When -M is specified, add the necessary switch(es) to the
29698 gcc call, when supported.
29700 * Makefile.in: Added indepsw.o to the object list for gnatlink
29701 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
29703 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
29704 indepsw.adb, indepsw.ads: New files.
29706 2004-08-09 Bernard Banner <banner@gnat.com>
29708 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
29710 * Makefile.in: add section for vxworks x86
29712 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
29714 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
29715 per-object constrained components where the discriminant is of an
29717 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
29718 the parent initialization procedure for derived Unchecked_Unions.
29719 Instead, derived Unchecked_Unions build their own initialization
29721 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
29722 Check the body of the subprogram for details.
29723 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
29724 functions for derived Unchecked_Union types by introducing a condition.
29725 Allow the creation of TSS equality functions for Unchecked_Unions.
29726 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
29727 Add formal parameter Discr to function signature. Discr is used to
29728 control the generated case statement for Unchecked_Union types.
29729 (Make_Eq_If): Rename formal parameter Node to E in function signature.
29731 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
29733 Check the body of the subprogram for details.
29734 (Expand_Composite_Equality): Augment composite type equality to include
29735 correct handling of Unchecked_Union components.
29736 (Expand_N_In): Add condition to detect illegal membership tests when the
29737 subtype mark is a constrained Unchecked_Union and the expression lacks
29738 inferable discriminants, and build a Raise_Program_Error node.
29739 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
29740 to detect types that contain components of unconstrained Unchecked_Union
29741 subtype. Add condition to detect equality between types that have an
29742 unconstrained Unchecked_Union component, and build a Raise_Program_Error
29743 node. Add condition to detect equality between Unchecked_Union types
29744 that lack inferable discriminants, and build a Raise_Program_Error node.
29745 Otherwise build a TSS equality function call.
29746 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
29747 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
29748 with the operand lacking inferable discriminants, and build a Raise_
29749 Program_Error node.
29750 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
29751 composite equality.
29752 (Has_Inferable_Discriminants): Implement new predicate for objects and
29753 expressions of Unchecked_Union type. Check the body of subprogram for
29755 (Has_Unconstrained_UU_Components): Add function
29756 Component_Is_Unconstrained_UU. It is used to detect whether a single
29757 component is of an unconstrained Unchecked_Union subtype. Add function
29758 Variant_Is_Unconstrained_UU. It is used to detect whether a single
29759 component inside a variant is of an unconstrained Unchecked_Union type.
29761 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
29762 inferred discriminant values. Add condition to generate a case
29763 statement with an inferred discriminant as the switch.
29764 (Make_Component_List_Assign): Introduce a Boolean flag that determines
29765 the behaviour of the subprogram in the presence of an Unchecked_Union.
29766 Add condition to trigger the usage of the inferred discriminant value
29767 as the generated case statement switch.
29768 (Make_Field_Assign): Introduce a Boolean flag that determines the
29769 behaviour of the subprogram in the presence of an Unchecked_Union. Add
29770 condition to trigger the usage of the inferred discriminant value as
29771 the right-hand side of the generated assignment.
29773 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
29774 parameter generation when dealing with Unchecked_Unions.
29776 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
29777 checks for Unchecked_Unions.
29779 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
29781 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
29782 Raise_Program_Error nodes for the execution of Read and Write
29783 attributes of Unchecked_Union types and the execution of Input and
29784 Output attributes of Unchecked_Union types that lack default
29785 discriminant values.
29787 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
29788 Unchecked_Union. Add procedure Check_Component. It is used to inspect
29789 per-object constrained components of Unchecked_Unions for being
29790 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
29791 check individual components withing a variant.
29793 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
29794 comparison of Unchecked_Unions.
29795 (Resolve_Equality_OP): Remove guard that prevents equality between
29798 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
29799 of component subtypes for Unchecked_Union components.
29800 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
29801 since it is the actual subtype.
29803 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
29804 pass of Unchecked_Union subtypes as generic actuals to formal types
29805 that lack known_discriminant_parts or that are derived Unchecked_Union
29806 types, and do nothing. In any other case, produce an error message.
29808 * sem_ch3.adb (Analyze_Component_Declaration): Add function
29809 Contains_POC. It determines whether a constraint uses the discriminant
29810 of an enclosing record type.
29811 Add condition to detect per-object constrained component and set the
29813 (Derived_Type_Declaration): Remove guard that prevents derivation from
29814 Unchecked_Union types.
29815 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
29818 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
29819 references to Unchecked_Union discriminants.
29821 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
29822 formal generation when dealing with Unchecked_Unions.
29823 (Set_Actual_Subtypes): Add condition to prevent generation of actual
29824 subtypes for Unchecked_Unions.
29826 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
29827 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
29828 completions of discriminated partial views by Unchecked_Unions and
29829 produce an error message.
29831 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29833 * trans.c (struct stmt_group): New field, GLOBAL.
29834 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
29835 (struct elab_info): New struct.
29836 (elab_info_list, gnu_elab_proc_stack): New variables.
29837 (Compilation_Unit_to_gnu): New procedure.
29838 (gigi): Call it and also handle elaboration procs we've saved.
29839 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
29840 global field from parent.
29841 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
29842 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
29843 (start_stmt_group): Initialize global field from parent.
29844 (add_decl_expr): Set to global for current statement group.
29845 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
29848 * utils.c (global_bindings_p): True when no current_function_decl; no
29849 longer check current_binding_level.
29851 2004-08-09 Ben Brosgol <brosgol@gnat.com>
29853 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
29856 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
29858 2004-08-06 Andreas Schwab <schwab@suse.de>
29860 * utils.c (gnat_define_builtin): Remove second parameter of
29862 (begin_subprog_body): Likewise.
29864 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
29866 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
29867 optimization, not supported by the tree-ssa back-end.
29869 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
29871 * s-mastop-irix.adb: Update comments.
29873 * a-except.adb (Exception_Information): Raise Constraint_Error if
29874 exception Id is Null_Id.
29875 This is required behavior, which is more reliably and clearly checked
29876 at the top level interface level.
29878 2004-07-26 Javier Miranda <miranda@gnat.com>
29880 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
29881 call if a component has no default_expression and the box is used.
29883 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
29884 default_expression and you use box, it behaves as if you had declared a
29885 stand-alone object.
29886 (Resolve_Record_Aggregate): If a component has no default_expression and
29887 you use box, it behaves as if you had declared a stand-alone object.
29889 * sem_ch10.adb (Install_Siblings): Do not make visible the private
29890 entities of private-with siblings.
29892 2004-07-26 Ed Schonberg <schonberg@gnat.com>
29894 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
29895 for a component of an itype, set the parent pointer for analysis,
29896 there is no list in which to insert it.
29898 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
29899 bona-fide renamings, not for inherited operations.
29901 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
29902 actual for a formal that is an access parameter, create local
29903 finalization list even if the expression is not an aggregate.
29905 2004-07-26 Ed Schonberg <schonberg@gnat.com>
29908 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
29909 Diagnose properly illegal subprogram renamings that are library units.
29911 2004-07-26 Ed Schonberg <schonberg@gnat.com>
29914 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
29915 conversion rewritten as an unchecked conversion, check that original
29916 expression is a variable.
29918 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
29919 unchecked_conversion, create new node rather than rewriting in place,
29920 to preserve original construct.
29922 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29924 * gigi.h (gnat_expand_body): Deleted.
29926 * Make-lang.in: (trans.o): Depends on function.h.
29928 * misc.c: (gnat_expand_body): Moved to here.
29930 * trans.c (gnat_expand_body_1): Deleted.
29931 (gnat_expand_body): Moved from here.
29932 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
29933 (add_stmt): Check for marked visited with global_bindings_p.
29934 (gnat_gimplify_expr, case COMPONENT_REF): New case.
29935 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
29937 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
29938 VIEW_CONVERT_EXPR if not operation type.
29940 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
29943 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
29944 changes: reformatting of negation operators, removing unneeded
29945 inequality comparison with zero, converting equality comparisons with
29946 zero to negations, changing int/0/1 to bool/false/true, replace calls
29947 to gigi_abort with abort, and various other similar changes.
29949 2004-07-26 Vincent Celier <celier@gnat.com>
29951 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
29954 * make.adb (Gnatmake): Fail when a library is not present and there is
29955 no object directory.
29957 * mlib-prj.adb (Check_Library): No need to check if the library needs
29958 to be rebuilt if there is no object directory, hence no object files
29959 to build the library.
29961 * opt.ads (Setup_Projects): New Boolean flag.
29963 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
29965 Create directory when Kind /= "" and in "gnat setup". Report error if
29966 directory cannot be created.
29967 (Ada_Check): Create library interface copy dir if it does not exist
29968 and we are in "gnat setup".
29969 (Find_Sources): No error if in "gnat setup" and no Ada sources were
29971 (Language_Independent_Check): Create object directory, exec directory
29972 and/or library directory if they do not exist and we are in
29975 * vms_conv.ads: (Command_Type): New command Setup.
29977 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
29979 * vms_data.ads: Add qualifiers/switches for new built-in command
29982 2004-07-25 Richard Henderson <rth@redhat.com>
29984 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
29985 DECL_IGNORED_P on RESULT_DECL.
29987 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
29989 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
29990 allocation and potentially overflowing update with
29991 Tailored_Exception_Information. Use the sec-stack free procedural
29992 interface to output Exception_Information instead.
29994 * a-except.adb (To_Stderr): New subprogram for character, and string
29995 version moved from a-exextr to be visible from other separate units.
29996 (Tailored_Exception_Information): Remove the procedural version,
29997 previously used by the default Last_Chance_Handler and not any more.
29998 Adjust various comments.
30000 * a-exexda.adb: Generalize the exception information procedural
30001 interface, to minimize the use of secondary stack and the need for
30002 local buffers when the info is to be output to stderr:
30003 (Address_Image): Removed.
30004 (Append_Info_Character): New subprogram, checking for overflows and
30005 outputing to stderr if buffer to fill is of length 0.
30006 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
30007 (Append_Info_Address, Append_Info_Exception_Name,
30008 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
30009 Append_Info_Basic_Exception_Traceback,
30010 Append_Info_Exception_Information): New subprograms.
30011 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
30012 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
30013 Exception_Info_Maxlength, Exception_Name_Length,
30014 Exception_Message_Length): New subprograms.
30015 (Exception_Information): Use Append_Info_Exception_Information.
30016 (Tailored_Exception_Information): Use
30017 Append_Info_Basic_Exception_Information.
30018 Export services for the default Last_Chance_Handler.
30020 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
30021 other separate units.
30023 2004-07-20 Vincent Celier <celier@gnat.com>
30025 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
30027 2004-07-20 Ed Schonberg <schonberg@gnat.com>
30029 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
30030 emit itype references for the designated types of component types that
30031 are declared outside of the full record declaration, and that may
30032 denote a partial view of that record type.
30034 2004-07-20 Ed Schonberg <schonberg@gnat.com>
30037 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
30038 which is the designated type in an access component declaration, to the
30039 list of incomplete dependents of the parent type, to avoid elaboration
30040 issues with out-of-scope subtypes.
30041 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
30042 full view of the parent.
30044 2004-07-20 Ed Schonberg <schonberg@gnat.com>
30047 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
30048 entities that are hidden, such as references to generic actuals
30049 outside an instance.
30051 2004-07-20 Javier Miranda <miranda@gnat.com>
30053 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
30054 support to the new notation.
30055 (Analyze_Selected_Component): Add call to Try_Object_Operation.
30057 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
30059 * s-taprob.adb: Adding the elaboration code required for initializing
30060 the tasking soft links that are common to the full and the restricted
30063 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
30064 restricted run time has been moved to the package
30065 System.Soft_Links.Tasking.
30067 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
30068 restricted run time has been moved to the package
30069 System.Soft_Links.Tasking.
30071 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
30073 * s-solita.ads, s-solita.adb: New files.
30075 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30077 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
30078 Case_Statement_to_gnu): Split off from gnat_to_gnu.
30079 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
30080 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
30081 Exception_Handler_to_gnu_zcx): Likewise.
30083 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
30085 * gigi.h (builtin_function): Declare.
30087 2004-07-15 Robert Dewar <dewar@gnat.com>
30089 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
30092 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
30093 access values as an example of a warning.
30095 * gnat_rm.texi: Document new attribute Has_Access_Values
30097 * gnat-style.texi: Document that box comments belong on nested
30100 * sem_util.ads (Has_Access_Values): Improved documentation
30102 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
30104 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
30105 (Process_Interface_Name): Call to this new procedure
30106 (Set_Extended_Import_Export_External_Name): Call to this new procedure
30108 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
30110 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
30112 * einfo.ads: Minor comment typo fixed
30114 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
30116 * snames.adb: Add _atcb.
30118 * snames.ads: Add Name_uATCB.
30120 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
30121 (in the expanded code) when using the restricted run time.
30123 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
30124 a in parameter in order to allow ATCBs to be preallocated (in the
30127 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
30128 order to allow ATCBs to be preallocated. In case of error, the ATCB is
30129 deallocated in System.Tasking.Stages.
30131 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
30132 order to allow ATCBs to be preallocated.
30134 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
30135 here. It was previously done in Initialize_ATCB.
30137 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
30139 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
30140 Restricted run time.
30142 * exp_ch3.adb: When using the Restricted run time, pass the
30143 preallocated Ada_Task_Control_Block when creating a task.
30145 2004-07-15 Ed Schonberg <schonberg@gnat.com>
30147 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
30148 function call that is itself an actual in an enclosing call, diagnose
30149 problem here rather than assuming that resolution will catch it.
30151 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
30152 the local copy of a generic unit for a formal package, and the generic
30153 is a child unit, install private part of ancestors before compiling
30154 private part of spec.
30156 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
30157 use scope entities rather than tree structures, to handle properly
30158 parent units that are instances rewritten as bodies for inlining
30161 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
30162 Remove_Parents): Handle properly a parent unit that is an
30163 instantiation, when the unit has been rewritten as a body for inlining
30166 * par.adb (Goto_List): Global variable to collect goto statements in a
30167 given unit, for use in detecting natural loops.
30169 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
30170 use in detecting natural loops.
30172 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
30173 backwards goto's, and rewrite as a infinite loop, to improve locality
30176 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
30177 subcomponent that includes an indexed reference, to prevent the
30178 generation of copies that would miscompile the desired assignment
30180 (Build_Task_Image_Decls): Add a numeric suffix to
30181 generated name for string variable, to avoid spurious conflicts with
30182 the name of the type of a single protected object.
30184 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
30185 loop with an explicit exit statement, to avoid generating an
30186 out-of-range value with 'Succ leading to spurious constraint_errors
30187 when compiling with -gnatVo.
30189 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
30191 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
30192 might not be analyzed yet, even if its Etype is already set (case of an
30193 unchecked conversion built using Unchecked_Convert_To, for example).
30194 If the prefix has already been analyzed, this will be a nop anyway.
30196 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
30197 controller type, or an assignment of a record type with controlled
30198 components, copy only user data, and leave the finalization chain
30199 pointers untouched.
30201 2004-07-15 Vincent Celier <celier@gnat.com>
30203 * make.adb (Collect_Arguments): Improve error message when attempting
30204 to compile a source not part of any project, when -x is not used.
30206 * prj.ads: (Defined_Variable_Kind): New subtype
30208 * prj-attr.adb (Register_New_Package): Two new procedures to register
30209 a package with or without its attributes.
30210 (Register_New_Attribute): Mew procedure to register a new attribute in a
30212 New attribute oriented subprograms: Attribute_Node_Id_Of,
30213 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
30214 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
30216 New package oriented subprograms: Package_Node_Id_Of,
30217 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
30219 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
30221 (Package_Node_Id): Now a private, self initialized type
30222 (Register_New_Package): New procedure to register a package with its
30224 New attribute oriented subprograms: Attribute_Node_Id_Of,
30225 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
30226 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
30228 New package oriented subprograms: Package_Node_Id_Of,
30229 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
30231 * prj-dect.adb (Parse_Attribute_Declaration,
30232 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
30234 * prj-makr.adb (Make): Parse existing project file before creating
30235 other files. Fail if there was an error during parsing.
30237 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
30238 new spec of Prj.Attr.
30240 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
30241 to new spec of Prj.Attr.
30243 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30245 * utils2.c: Fix typo in comment.
30247 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30249 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
30250 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
30252 2004-07-14 Andreas Schwab <schwab@suse.de>
30254 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
30256 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30258 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
30260 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
30263 * misc.c (gnat_types_compatible_p): New function.
30264 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
30265 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
30267 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
30268 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
30269 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
30270 (mark_visited): Don't mark dummy type.
30271 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
30272 parameter, we must remove any LJM building from GNU_NAME.
30273 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
30274 (pos_to_constructor): Use int_const_binop.
30275 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
30278 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
30279 (gnat_pushlevel): Set TREE_USE on BLOCK node.
30280 (gnat_install_builtins): Add __builtin_memset.
30282 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
30284 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
30285 for a renaming, stabilize the initialization expression if we are at a
30286 local level. At the local level, uses of the renaming may be performed
30287 by a direct dereference of the initializing expression, and we don't
30288 want possible variables there to be evaluated for every use.
30290 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
30291 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
30292 them on the way. Account for the fact that we may introduce side
30293 effects in the process.
30295 2004-07-13 Richard Henderson <rth@redhat.com>
30297 * misc.c (default_pass_by_ref): Use pass_by_reference.
30299 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
30301 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
30302 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
30304 2004-07-08 Richard Henderson <rth@redhat.com>
30306 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
30309 2004-07-06 Vincent Celier <celier@gnat.com>
30311 * vms_conv.ads: Minor reformatting.
30312 Alphabetical order for enumerated values of type Command_Type, to have
30313 the command in alphabetical order for the usage.
30315 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
30316 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
30318 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
30320 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
30321 (Add_Archive_Path): Only add the global archive if there is one.
30322 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
30323 or not any object file to put in the global archive, and don't build
30324 a global archive if there is none.
30325 (X_Switches): New table
30326 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
30327 in the X_Switches table, if any.
30328 (Initialize): Make sure the X_Switches table is empty
30329 (Scan_Arg): Record -X switches in table X_Switches
30331 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
30333 * make.adb: Minor comment fix
30335 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
30336 invoked with directory information, add the directory in front of the
30339 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
30340 invoked with directory information, add the directory in front of the
30343 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
30344 when Keep_Temporary_Files is False.
30345 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
30346 directory information, add the directory in front of the path.
30347 When not on VMS, handle new switch -dn before the command to set
30348 Keep_Temporary_Files to True.
30349 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
30352 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
30353 invoked with directory information, add the directory in front of the
30356 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
30358 * snames.ads, snames.adb (Name_Stub): New name for the distributed
30361 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
30362 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
30364 * g-socket.adb (To_Timeval): Fix incorrect conversion of
30365 Selector_Duration to Timeval for the case of 0.0.
30367 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
30368 documentation from Evolve_And_Then.
30370 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
30372 * s-taprop-tru64.adb, s-taprop-os2.adb,
30373 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
30375 2004-07-06 Robert Dewar <dewar@gnat.com>
30377 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
30378 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
30379 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
30380 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
30381 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
30382 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
30383 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
30384 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
30385 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
30386 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
30387 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
30388 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
30389 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
30390 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
30391 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
30392 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
30393 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
30394 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
30395 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
30396 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
30397 vms_data.ads: Minor reformatting,
30398 Fix bad box comment format.
30400 * gnat_rm.texi: Fix minor grammatical error
30402 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
30404 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
30405 more cases of discriminated records to be recognized as not needing a
30407 (Has_Access_Values): New function.
30409 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
30411 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
30412 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
30413 with LRM terminology).
30414 Change terminology in comments primitive type => elementary type.
30416 2004-07-06 Ed Schonberg <schonberg@gnat.com>
30419 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
30420 parameters do not impose any requirements on the presence of a body.
30422 2004-07-06 Ed Schonberg <schonberg@gnat.com>
30425 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
30426 compilation unit and is in an open scope at the point of instantiation,
30427 assume that a body may be present later.
30429 2004-07-06 Ed Schonberg <schonberg@gnat.com>
30431 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
30432 Improve error message when specified size is not supported.
30434 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
30435 is never a primitive operation.
30437 2004-07-05 Andreas Schwab <schwab@suse.de>
30439 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
30440 RECORD_OR_UNION_CHECK.
30441 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
30443 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
30445 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
30446 dependency on xgnatugn, instead build it via a submake.
30447 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
30449 2004-07-04 Richard Henderson <rth@redhat.com>
30451 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
30453 2004-07-01 Richard Henderson <rth@redhat.com>
30455 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
30456 * utils.c (max_size): Likewise.
30458 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30460 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
30461 and rest_of_type_compilation; add arg to create_*_decl.
30462 (annotate_decl_with_node): Deleted.
30463 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
30464 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
30465 (get_current_block_context, gnat_pushdecl): New declarations.
30466 (gnat_init_stmt_group): Likewise.
30467 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
30468 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
30469 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
30470 (gnat_init): Call gnat_init_stmt_group.
30471 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
30472 (gnu_pending_elaboration_list): Deleted.
30473 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
30474 (gigi): Rearrange initialization calls and move some to last above.
30475 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
30476 Delete calls to add_decl_expr; add arg to create_*_decl.
30477 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
30478 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
30479 begin_subprog_body and call it.
30480 Don't push and pop ggc context.
30481 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
30482 (add_stmt): Remove handling of DECL_EXPR from here.
30483 If not in function, mark visited.
30484 (add_decl_expr): Put global at top level.
30485 Check for cases of DECL_INITIAL we have to handle here.
30486 (process_type): Add extra arg to create_type_decl.
30487 (build_unit_elab): Rework to just gimplify.
30488 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
30489 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
30490 (get_pending_elaborations, pending_elaborations_p): Likewise.
30491 (push_pending_elaborations, pop_pending_elaborations): Likewise.
30492 (get_elaboration_location, insert_elaboration_list): Likewise.
30493 (gnat_binding_level): Renamed from ada_binding_level.
30494 (init_gnat_to_gnu): Don't clear pending_elaborations.
30495 (global_bindings_p): Treat as global if no current_binding_level.
30496 (set_current_block_context): New function.
30497 (gnat_pushdecl): Renamed from pushdecl; major rework.
30498 All callers changed.
30499 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
30500 (finish_record_type): Call call pushdecl for stub decl.
30501 (function_nesting_depth): Deleted.
30502 (begin_subprog_body): Delete obsolete code.
30503 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
30505 2004-06-28 Robert Dewar <dewar@gnat.com>
30507 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
30508 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
30509 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
30510 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
30511 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
30513 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
30514 deal with problem of inefficient slices on machines with strict
30515 alignment, when the slice is a component of a composite.
30517 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
30518 machines, we need the check there as well.
30520 2004-06-28 Ed Schonberg <schonberg@gnat.com>
30522 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
30523 determine safe copying direction for overlapping slice assignments
30524 when component is controlled.
30526 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
30527 formal derived type in the actual for a formal package are visible in
30528 the enclosing instance.
30530 2004-06-28 Ed Schonberg <schonberg@gnat.com>
30533 * sem_util.adb (Trace_Components): Diagnose properly an illegal
30534 circularity involving a private type whose completion includes a
30535 self-referential component.
30536 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
30537 renaming or an instantiation from an implicit derived operation.
30539 2004-06-28 Pascal Obry <obry@gnat.com>
30541 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
30543 (Library_File_Name_For): Idem.
30545 2004-06-28 Matthew Gingell <gingell@gnat.com>
30547 * g-traceb.ads: Add explanatory note on the format of addresses
30548 expected by addr2line.
30550 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
30552 * Makefile.in: Force debugging information on s-tasdeb.adb,
30553 a-except.adb and s-assert.adb needed by the debugger.
30555 2004-06-28 Vincent Celier <celier@gnat.com>
30557 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
30561 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
30563 * prj.adb: Minor reformatting
30564 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
30566 * prj.ads: Comment updates
30568 (Project_Data): Change Flag1 to Need_To_Build_Lib.
30569 Remove Flag2: not used.
30571 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
30574 * gnat_ugn.texi: Put a "null;" declaration in one project file example
30576 * gnat_rm.texi: Document Empty declarations "null;".
30578 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
30579 front of the linker options.
30580 (Link_Foreign): Put the global archives and the libraries in front of
30581 the linker options.
30583 2004-06-28 Javier Miranda <miranda@gnat.com>
30585 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
30586 (RTU_Loaded): Code cleanup
30587 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
30588 withed predefined units.
30590 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
30591 explicitly withed predefined units.
30592 Fix typo in comment
30594 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
30595 explicitly withed predefined units.
30597 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30599 * ada-tree.def (DECL_STMT): Deleted.
30600 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
30601 (DECL_STMT_VAR): Deleted.
30602 * decl.c: add_decl_stmt now add_decl_expr.
30603 * gigi.h: Likewise.
30604 * trans.c: Likewise.
30605 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
30606 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
30607 (add_stmt): Only handle padded type here.
30608 (add_stmt_with_node): Allow gnat_node to not be present.
30609 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
30610 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
30611 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
30612 make a SAVE_EXPR for the entire fat pointer.
30613 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
30614 (create_index_type): Make a DECL_EXPR.
30615 (end_subprog_body): Don't call allocate_struct_function here but
30618 2004-06-25 Pascal Obry <obry@gnat.com>
30620 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
30621 Relocatable from Build_Dynamic_Library call.
30623 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
30624 Relocatable are now synonym.
30626 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
30628 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
30629 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
30632 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
30633 Lib_Address and Relocatable.
30634 (Default_DLL_Address): Removed.
30636 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
30637 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
30638 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
30639 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
30640 (Default_DLL_Address): Removed.
30642 * mlib-tgt-mingw.adb: Ditto.
30643 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
30645 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
30646 the initial thread stack size.
30648 * a-strmap.ads: Move package L to private part as it is not used in
30649 the spec. Found while reading code.
30651 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
30653 * tracebak.c: Introduce support for a GCC infrastructure based
30654 implementation of __gnat_backtrace.
30656 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
30657 any more. Use accessors instead. This eases maintenance and relaxes
30658 some alignment constraints.
30659 (_GNAT_Exception structure): Remove the Ada specific fields
30660 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
30662 (is_handled_by, __gnat_eh_personality): Replace component references to
30663 exception structure by use of the new accessors.
30665 * init.c (__gnat_initialize): Adjust comments to match the just
30666 reverted meaning of the -static link-time option.
30668 * adaint.c (convert_addresses): Arrange not to define a stub for
30669 mips-irix any more, as we now want to rely on a real version from a
30670 recent libaddr2line.
30672 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
30673 the personality routine can use them and not have to rely on a C
30674 counterpart of the record anymore. This simplifies maintenance and
30675 relaxes the constraint of having Standard'Maximum_Alignment match
30677 Update comments, and add a section on the common header alignment issue.
30679 2004-06-25 Geert Bosch <bosch@gnat.com>
30681 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
30682 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
30684 2004-06-25 Robert Dewar <dewar@gnat.com>
30686 * gnat_rm.texi: Fix section on component clauses to indicate that the
30687 restriction on byte boundary placement still applies for bit packed
30689 Add comment on stack usage from Initialize_Scalars
30691 * gnat_ugn.texi: Add documentation for -gnatyLnnn
30693 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
30694 limiting nesting level.
30696 * usage.adb: Add line for -gnatyLnnn switch
30698 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
30699 sem_ch13.adb, exp_aggr.adb: Minor reformatting
30701 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
30702 type as well as on the subtype. This corrects a problem in freeze in
30703 setting alignments of atomic types.
30705 * sem_eval.ads: Minor comment typo fixed
30707 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
30708 level. Minor reformatting.
30710 * fname.adb (Is_Predefined_File_Name): Require a letter after the
30711 minus sign. This means that file names like a--b.adb will not be
30712 considered predefined.
30714 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
30715 record Test new flag and give diagnostic for bad component clause.
30716 (Freeze_Entity): Set alignment of array from component alignment in
30717 cases where this is safe to do.
30719 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
30722 * cstand.adb: (Create_Standard): Set alignment of String to 1
30724 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
30726 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
30727 code in the common constrained array cases.
30729 * a-storio.adb: Change implementation to avoid possible alignment
30730 problems on machines requiring strict alignment (data should be moved
30731 as type Buffer, not type Elmt).
30733 * checks.adb (Apply_Array_Size_Check): Improve these checks by
30734 killing the overflow checks which we really do not need (64-bits is
30737 2004-06-25 Vincent Celier <celier@gnat.com>
30739 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
30740 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
30741 inconditionally for the main project.
30742 (Recursive_Add_Archives.Add_Archive_Path): New procedure
30743 (Link_Executables.Check_Time_Stamps): New procedure
30744 (Link_Executables.Link_Foreign): New procedure
30745 Changes made to reduce nesting level of this package
30746 (Check): New procedure
30747 (Add_Switches): When not in quiet output, check that a switch is not
30748 the concatenation of several valid switches. If it is, issue a warning.
30749 (Build_Global_Archive): If the global archive is rebuilt, linking need
30751 (Compile_Sources): Rebuilding a library archive does not imply
30752 rebuilding the global archive.
30753 (Build_Global_Archive): New procedure
30754 (Build_Library): New name for Build_Archive, now only for library
30756 (Check_Archive_Builder): New procedure
30757 (Create_Global_Archive_Dependency_File): New procedure
30758 (Gprmake): Call Build_Global_Archive before linking
30759 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
30761 (Scan_Arg): Display the Copyright notice when -v is used
30763 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
30766 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
30768 Add new GNAT LIST qualifier /FILES=
30769 Added qualifier /DIRECTORY= to GNAT METRIC
30770 Added qualifier /FILES= to GNAT METRIC
30771 Added qualifier /FILES to GNAT PRETTY
30773 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
30774 to take into account both versions of the switch.
30776 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
30777 always be the last switch to the gcc driver. Disable switch storing so
30778 that switches automatically added by the gcc driver are not put in the
30781 * prj.adb (Project_Empty): Take into account changes in components of
30784 * prj.ads (Languages_Processed): New enumaration value All_Languages.
30786 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
30787 used. Split Boolean component Ada_Sources_Present in two Boolean
30788 components Ada_Sources_Present and Other_Sources_Present.
30791 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
30792 instead of Sources_Present.
30793 (Set_Ada_Paths.Add.Recursive_Add): Ditto
30795 * prj-nmsc.adb: Minor reformatting
30796 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
30797 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
30798 Check_Ada_Naming_Scheme.
30799 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
30802 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
30804 Make sure that all cycles where there is at least one "limited with"
30806 (Parse_Single_Project): New Boolean parameter In_Limited
30808 * prj-proc.adb (Recursive_Check): When Process_Languages is
30809 All_Languages, call first Prj.Nmsc.Ada_Check, then
30810 Prj.Nmsc.Other_Languages_Check.
30812 * prj-proc.adb (Process): Use Ada_Sources_Present or
30813 Other_Sources_Present (instead of Sources_Present) depending on
30816 * lang-specs.h: Keep -g and -m switches in the same order, and as the
30819 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
30820 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
30822 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
30825 * lib.ads (Disable_Switch_Storing): New procedure.
30827 * make.adb: Modifications to reduce nesting level of this package.
30828 (Check_Standard_Library): New procedure
30829 (Gnatmake.Check_Mains): New procedure
30830 (Gnatmake.Create_Binder_Mapping_File): New procedure
30831 (Compile_Sources.Compile): Add switch -gnatez as the last option
30832 (Display): Never display -gnatez
30834 * Makefile.generic:
30835 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
30837 * gnatcmd.adb (Check_Project): New function
30838 (Process_Link): New procedure to reduce nesting depth
30839 (Check_Files): New procedure to reduce the nesting depth.
30840 For GNAT METRIC, include the inherited sources in extending projects.
30841 (GNATCmd): When GNAT LS is invoked with a project file and no files,
30842 add the list of files from the sources of the project file. If this list
30843 is too long, put it in a temp text files and use switch -files=
30844 (Delete_Temp_Config_Files): Delete the temp text file that contains
30845 a list of source for gnatpp or gnatmetric, if one has been created.
30846 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
30847 in the project file is too large, create a temporary text file that
30848 list them and pass it to the tool with "-files=<temp text file>".
30849 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
30851 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
30852 generated file is in not in Ada.
30854 * gnatls.adb: Remove all parameters And_Save that are no longer used.
30855 (Scan_Ls_Arg): Add processing for -files=
30856 (Usage): Add line for -files=
30858 * g-os_lib.adb (On_Windows): New global constant Boolean flag
30859 (Normalize_Pathname): When on Windows and the path starts with a
30860 directory separator, make sure that the resulting path will start with
30863 * clean.adb (Clean_Archive): New procedure
30864 (Clean_Project): When there is non-Ada code, delete the global archive,
30865 the archive dependency files, the object files and their dependency
30866 files, if they exist.
30867 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
30869 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
30871 * sinfo.ads: Fix typo in comment.
30873 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
30874 the TSS for remote access-to-subprogram types, since these TSS are
30875 always present once the type has been analyzed.
30876 (RAS_E_Dereference): Same.
30878 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
30879 reference raises Bad_Attribute, mark the reference as analyzed so the
30880 node (and any children resulting from rewrites that could have occurred
30881 during the analysis that ultimately failed) is not analyzed again.
30883 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
30885 * exp_dist.adb: Minor comment fix.
30887 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
30888 type is an anonymous access type, no unchecked deallocation of the
30889 allocated object can occur. If the object is controlled, attach it with
30890 a count of 1. This allows attachment to the Global_Final_List, if
30891 no other relevant list is available.
30892 (Get_Allocator_Final_List): For an anonymous access type that is
30893 the type of a discriminant or record component, the corresponding
30894 finalisation list is the one of the scope of the type.
30896 2004-06-25 Ed Schonberg <schonberg@gnat.com>
30898 * sem_ch3.adb (Replace_Type): When computing the signature of an
30899 inherited subprogram, use the first subtype if the derived type
30900 declaration has no constraint.
30902 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
30903 before applying previous optimization. Minor code cleanup.
30905 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
30906 placed at the beginning of an unpacked record without explicit
30907 alignment, a slice of it will be aligned and does not need a copy when
30910 2004-06-25 Ed Schonberg <schonberg@gnat.com>
30914 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
30915 reference is written with expressions mimicking parameters.
30917 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
30920 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
30921 STEP 2a. The constraints of a full type declaration of a derived record
30922 type are checked for conformance with those declared in the
30923 corresponding private extension declaration. The message
30924 "not conformant with previous declaration" is emitted if an error is
30927 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
30929 * g-traceb.ads: Document the need for -E binder switch in the spec.
30931 * g-trasym.ads: Document the need for -E binder switch in the spec.
30933 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
30935 * sem_prag.adb: Add handling of pragma Detect_Blocking.
30937 * snames.h, snames.ads, snames.adb: Add entry for pragma
30940 * s-rident.ads: Change reference to pragma Detect_Blocking.
30942 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
30945 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
30946 to indicate whether pragma Detect_Blocking is active.
30948 * par-prag.adb: Add entry for pragma Detect_Blocking.
30950 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
30951 of not handling WITH.
30952 Note that this replaces the previous update which was incorrect.
30954 2004-06-25 Javier Miranda <miranda@gnat.com>
30956 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
30957 use-clauses to have a clean environment.
30959 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
30960 the installation of the use-clauses to stablish a clean environment in
30961 case of compilation of a separate unit; otherwise the call to
30962 use_one_package is protected by the barrier Applicable_Use.
30964 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
30965 the installation of the use-clauses to stablish a clean environment in
30966 case of compilation of a separate unit.
30967 (End_Use_Clauses): Minor comment cleanup.
30969 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
30971 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
30973 2004-06-23 Richard Henderson <rth@redhat.com>
30975 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
30977 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30979 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
30980 now bool instead of int.
30981 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
30982 * trans.c (gnu_switch_label_stack): New function.
30983 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
30984 elaboration of renamed entity returns.
30985 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
30986 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
30987 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
30988 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
30989 DECL_SIZE_UNIT and simplify variable-sized case.
30990 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
30991 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
30992 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
30993 (build_unit_elab): Disable for now.
30994 * utils.c (mark_visited): New function.
30995 (pushdecl): Walk tree to call it for global decl.
30996 (update_pointer_to): Update all variants of pointer and ref types.
30997 Add arg to COMPONENT_REF.
30998 (convert): Likewise.
30999 Move check for converting between variants lower down.
31000 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
31001 (build_allocator): Don't force type of MODIFY_EXPR.
31002 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
31003 put_var_into_stack.
31005 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31007 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
31008 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
31009 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
31011 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
31012 all callers changed.
31013 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
31014 the way that EXIT_STMT finds the loop label.
31015 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
31016 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
31017 (add_stmt): Use annotate_with_locus insted of setting directly.
31018 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
31019 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
31020 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
31021 (build_vms_descriptor): Add extra args to ARRAY_REF.
31022 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
31023 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
31025 (build_binary_op): Don't make explicit CONVERT_EXPR.
31026 Add extra rgs to ARRAY_REF.
31028 2004-06-14 Pascal Obry <obry@gnat.com>
31030 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
31031 Windows. Fix minor typo.
31033 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
31034 which is now supported on Windows. With this implementation using the
31035 Library Project feature is no different on Windows than on UNIX.
31037 2004-06-14 Vincent Celier <celier@gnat.com>
31039 * makegpr.adb (Compile_Sources): Nothing to do when there are no
31042 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
31044 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
31045 found, show the project name and the path of the previously parsed
31048 2004-06-14 Ed Schonberg <schonberg@gnat.com>
31050 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
31051 array, avoid copying the actual before the call.
31053 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
31055 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
31056 Instead, allocate memory on worst-case alignment assumptions, and then
31057 return an aligned address within the allocated zone.
31059 2004-06-14 Robert Dewar <dewar@gnat.com>
31061 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
31062 elab entities in predefined units in No_Run_Time_Mode.
31063 (Gen_Adainit_C): Same fix
31064 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
31065 units in No_Run_Time_Mode
31066 (Gen_Elab_Calls_C): Same fix
31068 * symbols-vms-alpha.adb: Minor reformatting
31070 * g-debpoo.ads: Minor reformatting
31072 * lib.adb (In_Same_Extended_Unit): Version working on node id's
31074 * lib.ads (In_Same_Extended_Unit): Version working on node id's
31076 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
31079 * make.adb: Minor reformatting
31081 * par-ch12.adb: Minor reformatting
31083 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
31085 * prj-strt.adb: Minor reformatting
31087 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
31090 * sem_attr.adb: Minor reformatting
31092 * sem_ch7.adb: Minor reformatting
31094 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
31095 for type in the same unit as the object declaration.
31097 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
31098 static string expressions and not just string literals.
31100 (Set_Warning): Reset restriction warning flag for restriction pragma
31101 Implement pragma Profile_Warnings
31102 Implement pragma Profile (Restricted)
31103 Give obolescent messages for old restrictions and pragmas
31105 * snames.h, snames.ads, snames.adb: Add new entry for pragma
31108 * s-rident.ads: Add declarations for restrictions required by profile
31109 Restricted and profile Ravenscar.
31111 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
31113 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
31114 configuration pragmas.
31116 2004-06-11 Vincent Celier <celier@gnat.com>
31118 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
31119 gnatsym, when symbol policy is Restricted.
31121 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
31122 gnatsym, when symbol policy is Restricted.
31124 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
31125 read the symbol file.
31126 (Finalize): Fail in symbol policy Restricted if a symbol in the original
31127 symbol file is not in the object files. Do not create a new symbol file
31128 when symbol policy is Restricted.
31130 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
31133 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
31135 (Usage): Line for new switch -R
31137 * make.adb (Initialize): When the platform is not VMS, add the
31138 directory where gnatmake is invoked in the front of the path, if
31139 gnatmake is invoked with directory information. Change the Scan_Args
31140 while loop to a for loop.
31141 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
31142 if Depth is equal or greater than the proposed depth, there is nothing
31144 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
31147 * prj.ads: Add new symbol policy Restricted.
31149 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
31150 with the new parameters Check_All_Labels and Case_Location.
31152 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
31153 (Library_Symbol_File needs to be defined).
31155 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
31156 and Case_Location If Check_All_Labels is True, check that all values of
31157 the string type are used, and output warning(s) if they are not.
31159 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
31162 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
31164 * gnat_ugn.texi: Update documentation about the library directory in
31167 * makegpr.adb (Display_Command): In verbose mode, also display the
31168 value of the CPATH env var, when the compiler is gcc.
31169 (Initialize): Change the Scan_Args while loop to a for loop
31170 (Compile_Individual_Sources): Change directory to object directory
31171 before compilations.
31173 * symbols.ads: New symbol policy Restricted.
31175 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
31177 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
31178 is now taken care of internally in the Exception_Propagation package
31179 and does not require clients assistance any more.
31181 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
31182 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
31183 functions. Helpers to maintain a predicate required in the handling of
31184 occurrence transfer between tasks.
31185 This is now handled internally and does not require clients assistance
31186 for the setup/propagate separation anymore.
31187 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
31188 allocation strategy, handle the Setup_And_Not_Propagated predicate and
31191 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
31192 raise_after_setup, now that everything is handled internally within the
31193 setup/propagation engine.
31195 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
31197 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
31198 Add additional conditions for the case of an actual being a simple
31199 name or literal. Improve inlining by preventing the generation
31200 of temporaries with a short lifetime (one use).
31202 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
31205 * einfo.ads: Minor comment updates for Has_Completion and
31206 E_Constant list of flags.
31208 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
31209 and constant redeclarations now set the Has_Completion flag of their
31210 defining identifiers.
31212 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
31213 Inspect_Deferred_Constant_Completion.
31214 Used to detect private deferred constants that have not been completed
31215 either by a constant redeclaration or pragma Import. Emits error message
31216 "constant declaration requires initialization expression".
31218 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
31219 completes a deferred constant.
31221 2004-06-11 Geert Bosch <bosch@gnat.com>
31223 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
31225 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
31226 calculating exponent for scaling denormal numbers.
31227 (Leading_Part): Properly raise Constraint_Error for zero or negative
31229 (Remainder): Properly raise Constraint_Error for zero divisor.
31231 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
31233 * sem_util.adb: Minor reformatting.
31235 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
31236 dereference when accessing the entry parameter record.
31237 (Check_Array_Type): Always check for possible implicit dereference.
31238 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
31239 Abort if a pointer is still present (denoting that an implicit
31240 dereference was left in the tree by the front-end).
31242 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
31243 dereference when accessing the entry parameter record.
31244 (Check_Array_Type): Always check for possible implicit dereference.
31245 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
31246 Abort if a pointer is still present (denoting that an implicit
31247 dereference was left in the tree by the front-end).
31249 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
31251 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
31252 message, like the compiler itself does. Easier to parse the output.
31254 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
31256 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
31257 be base names, and not includes directories.
31259 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
31261 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
31262 so that dependencies are properly taken into account by make.
31264 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
31267 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
31268 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
31270 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
31272 * Makefile.in (install-gnatlib): install target-specific run-time files.
31274 * Make-lang.in: Remove obsolete targets.
31276 2004-06-11 Ed Schonberg <schonberg@gnat.com>
31278 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
31279 specification, to catch misuses of program unit names.
31281 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
31282 superfluous conversions in an instance.
31284 2004-06-11 Ed Schonberg <schonberg@gnat.com>
31287 * sem_ch12.adb (Save_References): If operator node has been folded to
31288 enumeration literal, associated_node must be discarded.
31290 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
31292 * s-stchop-vxworks.adb: Add required pragma Convention to
31293 Task_Descriptor because it is updated by a C function.
31295 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
31298 * Makefile.in: Remove target specific SO_OPT on IRIX
31300 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31302 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
31303 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
31304 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
31305 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
31306 (STMT_STMT, USE_STMT): New statement codes.
31307 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
31308 * ada-tree.h: Reflect above changes.
31309 (struct tree_loop_id): Deleted.
31310 (union lang_tree_node, struct lang_decl, struct lang_type):
31311 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
31312 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
31313 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
31314 (IS_ADA_STMT): New macro.
31315 * decl.c (annotate_decl_with_node): New function.
31316 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
31317 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
31318 Call add_stmt_with_node to do needed assignments.
31319 Add call to update setjmp buffer directly, not via EXPR_STMT.
31320 (maybe_variable): Argment GNAT_NODE deleted.
31321 * gigi.h (maybe_variable): Likewise.
31322 (make_transform, add_stmt_with_node, set_block_for_group): New.
31323 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
31324 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
31325 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
31326 (set_lineno, set_lineno_from_sloc): Likewise.
31327 (record_code_position, insert_code_for): Likewise.
31328 (gnat_poplevel): Now returns void.
31329 (end_subprog_body): Now takes argument.
31330 * misc.c (cgraph.h, tree-inline.h): New includes.
31331 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
31332 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
31333 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
31334 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
31335 (gnat_parse_file): Don't set immediate_size_expand.
31336 Call cgraph functions.
31337 (gnat_expand_expr): Remove most cases.
31338 (record_code_position, insert_code_for): Remove from here.
31339 * trans.c (toplev.h, tree-gimple.h): Now included.
31340 (discard_file_names): Deleted.
31341 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
31342 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
31343 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
31344 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
31345 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
31346 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
31347 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
31348 (set_block_for_group, add_stmt_list): Likewise.
31349 (start_stmt_group): Renamed from start_block_stmt.
31350 (end_stmt_group): Likewise, from end_block_stmt.
31351 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
31352 (gigi): Don't set discard_file_names or call set_lineno.
31353 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
31354 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
31355 Numerous changes throughout to reflect new names and complete
31356 function-at-a-time implementation.
31357 (gnat_expand_stmt): Delete or comment out all cases.
31358 (process_inlined_subprograms): Use add_stmt.
31359 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
31360 call set_lineno; also remove unneeded block handling.
31361 (process_type): Remove unneeded block handling.
31362 (build_unit_elab): Remove calls to deleted functions.
31363 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
31364 (tree-dump.h): Likewise.
31365 (struct ada_binding_level): Add field jmpbuf_decl.
31366 (gnat_define_builtin, gnat_install_builtins): New.
31367 (gnat_gimplify_function, gnat_finalize): Likewise.
31368 (gnat_poplevel): No longer return BLOCK, set it instead.
31369 Remove code dealing with nested functions.
31370 (gnat_init_decl_processing): Also set size_type_node.
31371 Call gnat_install_builtins.
31372 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
31373 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
31374 Remove special-case for "main".
31375 (end_subprog_body): Add arg and rework for tree-ssa.
31376 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
31377 Add case for BOOLEAN_TYPE.
31378 * utils2.c (rtl.h): Now include.
31379 (build_call_raise): Test Debug_Flag_NN directly.
31380 (build_call_alloc_dealloc): Don't use local stack allocation for now.
31381 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
31382 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
31384 2004-06-07 Robert Dewar <dewar@gnat.com>
31386 * a-direct.ads, einfo.ads: Minor comment updates
31388 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
31389 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
31390 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
31391 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
31392 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
31394 * s-interr-sigaction.adb: Remove unreferenced variable
31395 (Attached_Interrupts). Minor reformatting.
31396 Avoid use of variable I (replace by J).
31398 * par-ch10.adb: Fix text of one error message
31400 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
31401 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
31402 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
31403 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
31404 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
31405 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
31406 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
31407 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
31408 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
31409 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
31410 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
31413 2004-06-07 Doug Rupp <rupp@gnat.com>
31415 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
31417 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
31419 * mlib-tgt-vms-ia64.adb: New file.
31421 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
31422 Add mlib-tgt-vms-ia64.adb
31423 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
31424 Move to alpha specific ifeq section.
31425 Add VMS specific versions of symbols.adb
31426 Renaming of 5q vms files.
31428 * 5qsystem.ads renamed to system-vms_64.ads.
31430 2004-06-07 Vincent Celier <celier@gnat.com>
31432 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
31433 explain that when a time of day corresponding to the non existing hour
31434 on the day switching to DST is specified, Split may return a different
31437 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
31440 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
31441 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
31443 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
31445 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
31446 the linking options.
31447 (Build_Library.Check_Libs): On VMS, if there is a dependency on
31448 g-trasym.ads, set Gtrasymobj_Needed to True.
31450 * prj-attr.adb: Add new package Metrics for gnatmetric
31452 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
31453 canonical case to take into account files with upper case characters on
31455 (Ada_Check): Load the reference symbol file name in the name buffer to
31456 check it, not the symbol file name.
31458 * snames.ads, snames.adb: Add standard name Metrics (name of project
31459 file package for gnatmetric).
31461 * vms_conv.ads: Add Metric to Comment_Type
31463 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
31465 * vms_data.ads: Add qualifiers for GNAT METRIC
31467 * makegpr.adb (Link_Executables): Take into account the switches
31468 specified in package Linker of the main project.
31470 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
31472 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
31473 the index of the last element is Units.Last, not Units.Table'Last
31474 (which is usually not a valid index within the actually allocated
31475 storage for the table).
31477 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
31478 determines whether to generate a call to a checked storage pool
31479 Dereference action.
31480 Generate such a call only for a dereference that either comes from
31481 source, or is the result of rewriting a dereference that comes from
31484 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
31486 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
31488 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
31490 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
31491 file level, elaborate the stride for inner dimensions in alignment
31494 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
31497 2004-06-07 Javier Miranda <miranda@gnat.com>
31499 * exp_ch6.adb: Correct wrong modification in previous patch
31501 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
31503 * g-trasym.ads: Corrected comment to properly reflect level of support
31506 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
31508 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
31509 includes case of a variable referenced on the left hand side of an
31510 assignment, therefore remove redundant code. Variables and prefixes of
31511 indexed or selected components are now marked as referenced on left
31512 hand side. Warnings are now properly emitted when variables or prefixes
31513 are assigned but not read.
31515 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
31516 left hand side referenced variables. Private access types do not
31517 produce the warning "variable ... is assigned but never read".
31518 Add also additional checks to left hand side referenced variables.
31519 Aliased, renamed objects and access types do not produce the warning
31520 "variable ... is assigned but never read" since other entities may read
31521 the memory location.
31523 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
31525 * Makefile.in: In the powerpc/vxworks-specific section, restore
31526 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
31529 2004-06-07 Ed Schonberg <schonberg@gnat.com>
31531 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
31532 predefined operators.
31533 Removes spurious type errors from g-trasym-vms.adb.
31535 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
31536 distinct from the operator appearing in the source, call appropriate
31537 routine to insert conversions when needed, and complete resolution of
31539 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
31540 interpretations for rewritten right operand.
31541 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
31542 the other operand is overloaded and the context is a type conversion.
31544 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31546 * ada-tree.def (BLOCK_STMT): Now has two operands.
31549 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
31551 * gigi.h: (gnat_poplevel): Now returns a tree.
31553 * trans.c (end_block_stmt): Add arg; all callers changed.
31554 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
31555 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
31556 (add_stmt): Set TREE_TYPE.
31557 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
31558 (gnat_expand_stmt, case BREAK_STMT): New case.
31560 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
31562 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
31564 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
31565 procedure Set_Stack_Size that is not needed.
31567 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
31569 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
31570 used for gnatpp input file and for the files upon which it depends
31572 2004-06-07 Ben Brosgol <brosgol@gnat.com>
31574 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
31576 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
31578 * gnatvsn.ads: Bump version numbers appropriately.
31579 Add new build type.
31581 2004-06-07 Pascal Obry <obry@gnat.com>
31583 * gnat_ugn.texi: Improve comments about imported names and link names
31584 on Windows. Add a note about the requirement to use -k gnatdll's option
31585 when working with a DLL which has stripped stdcall symbols (no @nn
31588 2004-05-27 Vincent Celier <celier@gnat.com>
31590 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
31591 COMMENTS_LAYOUT=UNTOUCHED
31593 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
31594 symbols-vms-alpha.adb
31596 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
31598 * sem.ads: Clarify documentation on checks suppression.
31600 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
31602 2004-05-27 Ed Schonberg <schonberg@gnat.com>
31604 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
31605 the case of multiple derivations.
31606 (Is_Object_Reference): For a selected component, verify that the prefix
31607 is itself an object and not a value.
31609 * sem_ch12.adb (Same_Instantiated_Constant): New name for
31610 Same_Instantiated_Entity.
31611 (Same_Instantiated_Variable): Subsidiary to
31612 Check_Formal_Package_Instance, to recognize actuals for in-out generic
31613 formals that are obtained from a previous formal package.
31614 (Instantiate_Subprogram_Body): Emit proper error when
31615 generating code and the proper body of a stub is missing.
31617 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
31618 has a universal interpretation, do the disambiguation here.
31620 * exp_ch4.adb (Expand_N_Type_Conversion,
31621 Expand_N_Unchecked_Type_Conversion): Special handling when target type
31622 is Address, to avoid typing anomalies when Address is a visible integer
31625 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
31626 to determine whether a subprogram should not be marked Pure, even when
31627 declared in a pure package.
31629 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
31631 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
31633 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
31634 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
31635 Update the documentation about the Ravenscar profile, following the
31636 definition found in AI-249.
31638 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
31639 setting the Profile (Ravenscar). This must be done in addition to
31640 setting the required restrictions.
31642 * rtsfind.ads: Add the set of operations defined in package
31645 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
31648 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
31650 lang-specs.h: Always require -c or -S and always redirect to /dev/null
31651 if -gnatc or -gnats is passed.
31653 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
31655 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
31656 a significant reference. Warnings are now properly emitted when a
31657 discriminated type is not referenced.
31659 * lib-xref.adb (Generate_Reference): A deferred constant completion,
31660 record representation clause or record type discriminant does not
31661 produce a reference to its corresponding entity. Warnings are now
31662 properly emitted when deferred constants and record types are not
31665 2004-05-27 Geert Bosch <bosch@gnat.com>
31667 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
31668 Fixes ACATS Annex G tests.
31670 2004-05-27 Robert Dewar <dewar@gnat.com>
31672 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
31675 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
31677 * s-interr.adb (Server_Task): Take into account case of early return
31678 from sigwait under e.g. linux.
31680 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
31682 * gnat_ugn.texi: Add description for the new gnatpp options:
31683 -rnb - replace the original source without creating its backup copy
31684 -c0 - do not format comments
31686 2004-05-24 Geert Bosch <bosch@gnat.com>
31688 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
31689 with 192 bits of precision, sufficient to reduce a double-extended
31690 arguments X with a maximum relative error of T'Machine_Epsilon, for X
31691 in -2.0**32 .. 2.0**32.
31692 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
31693 reduction by the processor, which only uses a 68-bit approximation of
31695 (Tan): Always reduce arguments and compute function either using
31696 the processor's fptan instruction, or by dividing sin and cos as needed.
31698 2004-05-24 Doug Rupp <rupp@gnat.com>
31700 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
31701 gcc error on 32/64 bit VMS.
31703 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
31705 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
31706 since this is what we get for stack overflows although not documented
31708 Document the issues which may require adjustments to our signal
31711 2004-05-24 Ed Schonberg <schonberg@gnat.com>
31713 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
31714 enclosing dynamic scope if the instantiation is within a generic unit.
31716 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
31718 * exp_dbug.ads: Fix typo.
31720 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
31721 Rename it to its proper name: system-linux-ia64.ads
31722 (stamp-gnatlib1): Remove extra target specific run time files when
31723 setting up the rts directory.
31725 2004-05-24 Javier Miranda <miranda@gnat.com>
31727 * einfo.ads, einfo.adb (Limited_Views): Removed.
31728 (Limited_View): New attribute that replaces the previous one. It is
31729 now a bona fide package with the limited-view list through the
31730 first_entity and first_private attributes.
31732 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
31733 limited-private-with clause.
31734 (Install_Limited_Withed_Unit): Install the private declarations of a
31735 limited-private-withed package. Update the installation of the shadow
31736 entities according to the new structure (see Build_Limited_Views)
31737 (Build_Limited_Views): Replace the previous implementation of the
31738 limited view by a package entity that references the first shadow
31739 entity plus the first shadow private entity (required for limited-
31740 private-with clause)
31741 (New_Internal_Shadow_Entity): Code cleanup.
31742 (Remove_Limited_With_Clause): Update the implementation to undo the
31743 new work carried out by Build_Limited_Views.
31744 (Build_Chain): Complete documentation.
31745 Replace Ada0Y by Ada 0Y in comments
31748 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
31749 types the level of accessibility depends on the enclosing type
31752 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
31753 entities. Complete documentation of previous change.
31755 2004-05-24 Robert Dewar <dewar@gnat.com>
31757 * namet.adb: Minor reformatting
31758 Avoid use of name I (replace by J)
31759 Minor code restructuring
31761 * sem_ch6.adb: Minor reformatting
31763 * lib-writ.adb: Do not set restriction as active if this is a
31764 Restriction_Warning case.
31766 * sem_prag.adb: Reset restriction warning flag if real pragma
31767 restriction encountered.
31769 * s-htable.adb: Minor reformatting
31770 Change rotate count to 3 in Hash (improves hash for small strings)
31772 * 5qsystem.ads: Add comments for type Address (no literals allowed).
31774 * gnat_ugn.texi: Add new section of documentation "Code Generation
31775 Control", which describes the use of -m switches.
31777 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
31779 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
31780 through the DECL_INITIAL for renamed variables.
31782 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
31784 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
31786 2004-05-19 Joel Brobecker <brobecker@gnat.com>
31788 * exp_dbug.ads: Correct comments concerning handling of overloading,
31789 since we no longer use $ anymore.
31791 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
31793 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
31794 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
31795 with illegal subunits.
31797 2004-05-19 Ed Schonberg <schonberg@gnat.com>
31799 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
31800 body with front-end inlining enabled, check whether an inline pragma
31801 appears immediately after the body and applies to it.
31803 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
31804 enabled and the pragma appears after the body of the subprogram.
31806 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31808 Part of function-at-a-time conversion
31810 * misc.c (adjust_decl_rtl): Deleted.
31811 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
31814 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
31815 (add_decl_stmt, add_stmt, block_has_vars): New functions.
31816 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
31818 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
31819 when making a decl.
31820 (gnat_to_gnu_entity): Likewise.
31821 Use add_stmt to update setjmp buffer.
31822 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
31824 No longer call adjust_decl_rtl.
31825 (DECL_INIT_BY_ASSIGN_P): New macro.
31826 (DECL_STMT_VAR): Likewise.
31828 * trans.c (gigi): Call start_block_stmt to make the outermost
31830 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
31831 Call start_block_stmt and end_block_stmt temporarily.
31832 Use gnat_expand_stmt instead of expand_expr_stmt.
31833 (add_decl_stmt): New function.
31834 (tree_transform): Call it.
31835 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
31836 (end_block_stmt): Set type and NULL_STMT.
31837 (gnat_expand_stmt): Make recursize call instead of calling
31839 (gnat_expand_stmt, case DECL_STMT): New case.
31840 (set_lineno_from_sloc): Do nothing if global.
31841 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
31842 (start_block_stmt, add_stmt, end_block_stmt): New functions.
31843 (build_block_stmt): Call them.
31844 (gnat_to_code): Don't expand NULL_STMT.
31845 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
31847 (tree_transform): Likewise.
31848 (tree_transform, case N_Null_Statement): Return NULL_STMT.
31849 (gnat_expand_stmt, case NULL_STMT): New case.
31850 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
31853 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
31856 * utils.c (create_var_decl): Do not call expand_decl or
31858 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
31859 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
31861 (struct e_stack): Add chain_next to GTY.
31862 (struct binding_level): Deleted.
31863 (struct ada_binding_level): New struct.
31864 (free_block_chain): New.
31865 (global_binding_level, clear_binding_level): Deleted.
31866 (global_bindings_p): Rework to see if no chain.
31867 (kept_level_p, set_block): Deleted.
31868 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
31869 new data structure and work directly on BLOCK node.
31870 (gnat_poplevel): Similarly.
31871 (get_decls): Look at BLOCK_VARS.
31872 (insert_block): Work directly on BLOCK node.
31873 (block_has_var): New function.
31874 (pushdecl): Rework for new binding structures.
31875 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
31877 (build_subprog_body): Likewise.
31878 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
31880 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
31882 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
31883 (DECL_STMT_VAR): Likewise.
31885 2004-05-17 Robert Dewar <dewar@gnat.com>
31887 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
31890 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
31891 of restriction synonyums by using
31892 Restrict.Process_Restriction_Synonyms.
31894 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
31896 * s-restri.ads (Tasking_Allowed): Correct missing comment
31898 * s-rident.ads: Add entries for restriction synonyms
31900 * ali.adb: Fix some problems with badly formatted ALI files that can
31901 result in infinite loops.
31903 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
31904 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
31905 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
31906 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
31907 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
31908 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
31909 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
31910 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
31911 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
31912 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
31913 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
31914 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
31915 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
31916 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
31917 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
31918 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
31919 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
31920 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
31921 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
31922 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
31923 to Task_Id (minor cleanup).
31925 2004-05-17 Vincent Celier <celier@gnat.com>
31927 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
31928 directory separator.
31930 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
31931 project being extended, if Languages is not declared in extending
31934 2004-05-17 Javier Miranda <miranda@gnat.com>
31936 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
31937 limited view of a visible sibling.
31939 2004-05-14 Robert Dewar <dewar@gnat.com>
31941 * gnat_ugn.texi: Minor change to -gnatS documentation
31943 * sprint.adb: Remove some instances of Assert (False) and for this
31944 purpose replace them by output of a ??? string.
31946 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
31949 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
31950 flag processing. This was suppressing required dependencies in
31951 No_Run_Time mode and is not needed since the binder does not generate
31952 references for things in libgnat anyway.
31954 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
31957 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
31959 * gnat_ugn.texi: Document AIX-specific issue with initialization of
31962 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
31963 action for the case of an actual parameter in an init proc call.
31965 2004-05-14 Ed Schonberg <schonberg@gnat.com>
31967 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
31968 subtype, check visible entities in base type.
31970 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
31971 actions if the object is a renaming.
31973 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
31974 Check_Formal_Package_Instance, to determine more precisely when the
31975 formal and the actual denote the same entity.
31977 2004-05-14 Javier Miranda <miranda@gnat.com>
31979 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
31981 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
31982 corresponding to a private_with must be removed from visibility; it
31983 will be made visible later, just before we analyze the private part of
31985 (Check_Private_Child_Unit): Allow private_with clauses in public
31987 (Install_Siblings): Make visible the private entities of private-withed
31989 (Install_Withed_Unit): Do not install the private withed unit if we
31990 are compiling a package declaration and the Private_With_OK flag was
31991 not set by the caller. These declarations will be installed later,
31992 just before we analyze the private part of the package.
31994 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
31995 during the evaluation of the expression that initializes the object,
31996 decorate it with the expected type to avoid cascade errors.
31999 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
32000 subprogram we have to install the private_with clauses after its
32001 specification has been analyzed (as documented in AI-262.TXT).
32003 * sem_ch8.adb (Has_Private_With): New function. Determines if the
32004 current compilation unit has a private with on a given entity.
32005 (Find_Direct_Name): Detect the Beaujolais problem described in
32008 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
32009 provides the functionality of the function Is_Ancestor that was
32010 previously available in sem_ch10. It has been renamed to avoid
32013 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
32015 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32017 * utils.c (build_vms_descriptor): Use SImode pointers.
32019 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
32021 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
32023 2004-05-14 GNAT Script <nobody@gnat.com>
32025 * Make-lang.in: Makefile automatically updated
32027 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
32029 Renaming of target specific files for clarity
32031 * Makefile.in: Rename GNAT target specific files.
32033 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
32034 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
32035 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
32036 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
32037 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
32038 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
32039 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
32040 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
32041 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
32042 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
32043 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
32044 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
32045 51osinte.adb, 51osinte.ads, 51system.ads,
32046 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
32047 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
32048 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
32049 56tpopsp.adb, 57system.ads, 58system.ads,
32050 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
32051 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
32052 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
32053 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
32054 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
32055 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
32056 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
32057 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
32058 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
32059 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
32060 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
32061 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
32062 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
32063 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
32064 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
32065 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
32066 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
32067 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
32068 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
32069 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
32070 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
32071 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
32072 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
32073 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
32074 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
32075 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
32076 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
32077 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
32078 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
32079 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
32080 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
32081 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
32082 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
32083 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
32084 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
32085 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
32086 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
32087 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
32088 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
32089 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
32091 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
32092 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
32093 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
32094 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
32095 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
32096 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
32097 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
32098 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
32099 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
32100 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
32101 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
32102 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
32103 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
32104 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
32105 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
32106 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
32107 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
32108 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
32109 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
32110 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
32111 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
32112 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
32113 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
32114 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
32115 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
32116 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
32117 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
32118 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
32119 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
32120 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
32121 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
32122 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
32123 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
32124 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
32125 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
32126 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
32127 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
32128 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
32129 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
32130 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
32131 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
32132 s-osinte-vms.ads, s-osinte-vxworks.adb,
32133 s-osinte-vxworks.ads, s-osprim-mingw.adb,
32134 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
32135 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
32136 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
32137 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
32138 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
32139 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
32140 s-stchop-vxworks.adb, s-taprop-dummy.adb,
32141 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
32142 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
32143 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
32144 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
32145 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
32146 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
32147 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
32148 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
32149 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
32150 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
32151 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
32152 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
32153 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
32154 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
32155 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
32156 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
32157 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
32158 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
32159 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
32160 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
32161 system-irix-o32.ads, system-linux-x86_64.ads,
32162 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
32163 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
32164 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
32165 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
32166 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
32167 system-vxworks-mips.ads, system-vxworks-ppc.ads,
32168 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
32171 2004-05-13 Zack Weinberg <zack@codesourcery.com>
32173 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
32175 2004-05-13 Diego Novillo <dnovillo@redhat.com>
32177 Merge from tree-ssa-20020619-branch.
32179 * config-lang.in (boot_language, build_by_default): Set
32181 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
32182 (max_size): Add static chain op for call_expr.
32184 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
32187 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
32189 2004-05-11 Roger Sayle <roger@eyesopen.com>
32191 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
32194 2004-05-10 Doug Rupp <rupp@gnat.com>
32196 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
32199 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
32201 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
32203 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
32204 Fixes undefined symbols in IA64 gnatlib.
32206 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
32208 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
32209 Short_Address). This will be moved to system.auxdec.
32211 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
32213 * sem_util.adb: Replace test for presence of a node that is always
32214 present with a call to Discard_Node.
32216 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
32217 Analyze on the library unit node after generation of distribution stub
32218 constructs. The call was a no-op because Unit_Node has already been
32219 Analyzed, and the tree fragments for the distribution stubs are
32220 analyzed as they are inserted in Exp_Dist.
32221 Update comment regarding to distribution stubs to reflect that we
32222 do not generate stub in separate files anymore.
32224 * einfo.ads: Clarify the fact that a tagged private type has the
32225 E_Record_Type_With_Private Ekind.
32227 * erroutc.adb: Minor reformatting
32229 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
32230 values if line length is increased using -gnatyM (noticed during code
32233 * eval_fat.adb: Minor reformatting
32234 Put spaces around exponentiation operator
32236 2004-05-10 Ed Schonberg <schonberg@gnat.com>
32239 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
32240 has been rewritten as an explicit dereference, retrieve type of
32241 original node to check for possibly unconstrained record type.
32243 2004-05-10 Ed Schonberg <schonberg@gnat.com>
32245 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
32246 overriding, use the operation of the parent unconditionally.
32248 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
32249 operation when either operand is a literal, to avoid further
32252 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
32253 overridden by a previous explicit declaration, mark the previous entity
32256 * sem_disp.adb (Check_Dispatching_Operation): New predicate
32257 Is_Visibly_Controlled, to determine whether a declaration of a
32258 primitive control operation for a derived type overrides an inherited
32259 one. Add warning if the explicit declaration does not override.
32261 2004-05-10 Vincent Celier <celier@gnat.com>
32263 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
32264 some cases when the sources are no longer present.
32266 * make.adb (Collect_Arguments): Fail if an external source, not part
32267 of any project need to be compiled, when switch -x has not been
32270 * makeusg.adb: Document new switch -x
32272 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
32273 defaulted to False.
32275 * switch-m.adb (Scan_Make_Switches): New switch -x
32277 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
32278 gnatmake switch -x.
32280 * gnat_ugn.texi: Document new gnatmake switch -x
32282 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
32284 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
32286 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
32287 (process_attributes): Likewise.
32289 2004-05-10 Joel Brobecker <brobecker@gnat.com>
32291 * s-inmaop.ads: Fix spelling mistake in one of the comments.
32293 2004-05-10 Robert Dewar <dewar@gnat.com>
32295 * gnat_ugn.texi: Document that for config pragma files, the maximum
32296 line length is always 32767.
32298 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
32299 literals is now allowed.
32301 * gnat-style.texi: Remove statement about splitting long lines before
32302 an operator rather than after, since we do not follow this rule at all.
32303 Clarify rule (really lack of rule) for spaces around exponentiation
32305 * sem_elim.adb: Allow concatenation of string literals as well as a
32306 single string literal for pragma arguments.
32308 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
32310 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
32311 written for append case.
32313 * frontend.adb: Changes to avoid checking max line length in config
32316 * g-os_lib.ads: Minor reformatting
32318 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
32319 wrong in any case. Instead use standard value. Noticed during code
32322 * opt.ads (Max_Line_Length): New field, used to implement removal of
32323 limitation on length of lines when scanning config pragma files.
32325 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
32326 makeutl.ads, makeutl.adb: Minor reformatting
32328 * scn.adb: Do not check line length while scanning config pragma files
32329 Do not check line length while scanning out license information
32331 * scng.adb: Changes to avoid line length checks while parsing config
32334 2004-05-10 GNAT Script <nobody@gnat.com>
32336 * Make-lang.in: Makefile automatically updated
32338 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
32340 * osint.adb (Find_Program_Name): Fix handling of VMS version
32343 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
32345 * g-os_lib.ads (Invalid_Time): New constant
32347 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
32348 return OS_Time instead of time_t to match what is imported by Ada.
32349 Now return -1 if the file doesn't exist, instead of a random value
32351 2004-05-05 Robert Dewar <dewar@gnat.com>
32353 * usage.adb: Add line for -gnatR?s switch
32355 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
32357 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
32358 and for Match (Data_First, Data_last)
32360 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
32361 written when we are dealing with multi-unit files.
32363 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
32365 * Makefile.in: Remove unused targets and variables.
32367 2004-05-05 Vincent Celier <celier@gnat.com>
32369 * switch-m.adb: New gnatmake switch -eI
32371 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
32372 of new gnatmake switch -eInnn.
32374 * makegpr.adb: Take into account new parameters Index and Src_Index in
32377 * clean.adb: Implement support for multi-unit sources, including new
32380 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
32383 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
32384 (Extract_From_Q): New out parameter Index
32385 (Mark, Is_Marked): Subprograms moved to Makeutl
32386 (Switches_Of): New parameter Source_Index
32387 (Add_Switch): New parameter Index
32388 (Check): New parameter Source_Index
32389 (Collect_Arguments): New parameter Source_Index
32390 (Collect_Arguments_And_Compile): New parameter Source_Index
32391 (Compile): New parameter Source_Index
32392 Put subprograms in alphabetical order
32393 Add support for multi-source sources, including in project files.
32395 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
32396 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
32399 * makeusg.adb: New gnatmake switch -eInnn
32401 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
32404 * opt.ads (Main_Index): New variable, defaulted to 0.
32406 * osint.ads, osinte.adb (Add_File): New parameter Index
32407 (Current_Source_Index): New function
32409 * prj.adb: Take into account new components Index and Src_Index
32411 * prj.ads (String_Element): New component Index
32412 (Variable_Value): New component Index
32413 (Array_Element): New component Src_Index
32415 * prj-attr.adb: Indicate that optional index may be specified for
32416 attributes Main, Executable, Spec, Body and some of Switches.
32418 * prj-attr.ads (Attribute_Kind): New values for optional indexes
32419 (Attribute_Record): New component Optional_Index
32421 * prj-com.ads (File_Name_Data): New component Index
32423 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
32425 * prj-env.adb (Put): Output optional index
32427 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
32428 attributes Spec and Body.
32430 * prj-nmsc.adb: Process optional indexes
32432 * prj-pp.adb: Ouput "at" for optional indexes
32434 * prj-proc.adb: Take into account optional indexes
32436 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
32437 Optional_Index. For string literal,
32438 process optional index when Optional_Index is True.
32439 (Parse_Expresion): New Boolean parameter Optional_Index
32441 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
32442 (Set_Source_Index_Of): New procedure
32444 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
32447 * prj-util.ads (Executable_Of): New parameter Index
32448 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
32449 New parameter Src_Index, defaulted to 0.
32451 2004-05-05 Ed Schonberg <schonberg@gnat.com>
32454 * sem_ch3.adb (Access_Definition): If this is an access parameter
32455 whose designated type is imported through a limited_with clause, do
32456 not add the enclosing subprogram to the list of private dependents of
32459 2004-05-05 Ed Schonberg <schonberg@gnat.com>
32462 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
32463 a limited_with clause, and the other is its non-limited view.
32465 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
32467 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
32469 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
32470 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
32471 Stand.Boolean_Literals to produce references to entities
32472 Standard_False and Standard_True from compile-time computed boolean
32475 * stand.ads (Boolean_Literals): New variable, provides the entity
32476 values for False and True, for use by the expander.
32478 2004-05-05 Doug Rupp <rupp@gnat.com>
32480 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
32481 5vinmaop.adb: Unchecked convert Short_Address vice Address
32483 * adaint.c, raise.c: Caste CRTL function return value
32484 to avoid gcc error on 32/64 bit IVMS.
32486 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
32489 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
32491 * 5qsystem.ads (Address): Declare as Long_Integer
32492 (Short_Address): Declare as 32 bit subtype of Address
32493 Declare abstract address operations to avoid gratuitous ambiguities.
32495 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
32497 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
32498 instead of the old Boolean_Entry_Barriers.
32499 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
32501 2004-05-05 GNAT Script <nobody@gnat.com>
32503 * Make-lang.in: Makefile automatically updated
32505 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
32507 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
32509 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
32512 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
32513 alone. Replacing object references by literals is inappropriate in a
32514 so low level context.
32516 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
32518 * a-exexpr.adb: Add comments
32520 2004-05-03 Joel Brobecker <brobecker@gnat.com>
32522 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
32523 declare the Ancestor_Tags array in Type_Specific_Data with a small size
32524 without risking a bounds check error when accessing one of its
32526 (Type_Specific_Data): Define Ancestor_Tags as a small array.
32527 This prevents us from hitting a limitation during the debug info
32528 generation when using stabs.
32530 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
32532 This prevents us from hitting a limitation during the debug info
32533 generation when using stabs.
32535 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
32537 lang-specs.h: Remove -gnatz* from specs.
32539 2004-05-03 Vincent Celier <celier@gnat.com>
32541 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
32543 * Make-lang.in, Makefile.in: Add gprmake
32545 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
32547 * sem_aggr.adb: Fix typo in comment.
32549 2004-05-03 Robert Dewar <dewar@gnat.com>
32551 * make.adb: Minor reformatting
32553 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
32555 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
32556 so that it works when address is not a private type.
32558 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
32559 properly with rewritten unchecked conversions. This prevents
32560 order-of-elaboration issues that can otherwise arise.
32561 (Minimum_Size): Don't check size of access types under VMS
32563 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
32564 interpretations of integer literals as type System.Address.
32566 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
32567 (Is_Descendent_Of): New function
32569 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
32571 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
32572 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
32573 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
32575 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
32576 of the old Max_Entry_Queue_Depth.
32578 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
32579 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
32580 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
32582 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
32583 New entry for proper handling of Max_Entry_Queue_Depth.
32584 New entry for proper handling of No_Dynamic_Interrupts.
32586 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
32587 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
32588 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
32589 the GNAT specific restriction Max_Entry_Queue_Depth.
32590 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
32591 the GNAT specific restriction No_Dynamic_Interrupts.
32593 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
32594 instead of the old Boolean_Entry_Barriers.
32595 Use the new restriction No_Dynamic_Attachment instead of the old
32596 No_Dynamic_Interrupts.
32598 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
32599 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
32601 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
32602 of the old Max_Entry_Queue_Depth.
32604 2004-05-03 GNAT Script <nobody@gnat.com>
32606 * Make-lang.in: Makefile automatically updated
32608 2004-04-29 Ed Schonberg <schonberg@gnat.com>
32610 * checks.adb (Enable_Range_Check): If the prefix of an index component
32611 is an access to an unconstrained array, perform check unconditionally.
32613 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32615 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
32618 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
32620 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
32621 alternate stack setting. There was no support for the tasking cases
32622 and the changes eventually caused a number of side-effect failures in
32623 the non-tasking case too.
32625 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
32627 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
32630 2004-04-29 Vincent Celier <celier@gnat.com>
32632 * make.adb (Gnatmake): Increase max size of argument array for
32633 gnatbind for the potential addition of -F.
32634 If there are Stand-Alone Library projects, invoke gnatbind with -F to
32635 be sure that elaboration flags will be checked.
32637 * switch-c.adb: Correct call to Scan_Pos for -gnateI
32639 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
32641 * sem_warn.adb (Check_References): Move '<access-variable> may be
32642 null' warning out of under Warn_On_No_Value_Assigned.
32644 2004-04-29 Ed Falis <falis@gnat.com>
32646 * gnat_ugn.texi: Fixed texi error
32648 2004-04-29 Robert Dewar <dewar@gnat.com>
32650 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
32651 abstract operations if they come from predefined files.
32653 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
32656 * s-addope.adb: Correct obvious error in mod function
32658 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
32660 * Makefile.in: Add target pairs for powerpc darwin*
32663 * a-intnam-darwin.ads, s-osinte-darwin.adb,
32664 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
32666 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
32668 * Makefile.in: Add target macro definitions for s390*-linux*.
32669 * system-linux-s390.ads: New file.
32670 * system-linux-s390x.ads: New file.
32672 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
32674 * gnat_ugn.texi: Correct argument to @setfilename.
32676 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
32678 * a-exexpr.adb (Unwind_Word): New data type.
32679 (Unwind_Exception): Use it as type of Private1 and Private2.
32681 * raise.c (db_action_for): Fix debug printf.
32683 2004-04-27 Ed Schonberg <schonberg@gnat.com>
32685 * a-wtmoio.ads: Formal type must be a modular type, not a signed
32688 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32690 * decl.c (gnat_to_gnu_entity, case object): Call
32691 __builtin_update_setjmp_buf.
32693 * gigi.h (update_setjmp_buf): Deleted.
32694 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
32696 * misc.c: (update_setjmp_buf): Deleted.
32698 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
32699 around block of RTL.
32701 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
32703 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
32705 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
32706 subprogram for which no pragma All_Calls_Remote applies, store the
32707 address of the real subprogram in the underlying record type, so local
32708 dereferences do not go through the PCS.
32710 2004-04-26 Robert Dewar <dewar@gnat.com>
32712 * i-c.ads: Add some type qualifications to avoid ambiguities when
32713 compiling with s-auxdec.ads and a non-private address type.
32715 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
32717 * Makefile.rtl: Fix error in previous check-in:
32718 Add s-addope.o to non tasking object list (rather than tasking object
32721 2004-04-26 Javier Miranda <miranda@gnat.com>
32723 * sem_aggr.adb: Fix typo in comments
32724 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
32725 Required to check the null-exclusion attribute.
32727 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
32728 case of anonymous access types in record and array components. For a
32729 component definition the level is the same of the enclosing composite
32732 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
32733 that are anonymous access types the level of accessibility depends on
32734 the enclosing type declaration. In order to have this information, set
32735 the scope of the anonymous access type to the enclosing record type
32737 (Array_Type_Declaration): In case of components that are anonymous
32738 access types the level of accessibility depends on the enclosing type
32739 declaration. In order to have this information, set the scope of the
32740 anonymous access type to the enclosing array type declaration.
32742 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
32745 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
32746 renaming of anonymous access-to-constant types allowed if and only if
32747 the renamed object is access-to-constant.
32749 * sem_util.adb (Type_Access_Level): In case of anonymous access types
32750 that are component_definition or discriminants of a nonlimited type,
32751 the level is the same as that of the enclosing component type.
32753 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
32755 * sem_elim.adb: Some minor code reorganization from code reading. Fix
32756 misprint in the function name (File_Name_Match).
32758 2004-04-23 Laurent Guerby <laurent@guerby.net>
32760 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
32763 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
32765 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
32767 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
32769 * adaint.c (__gnat_try_lock): No longer requires that the parent
32770 directory be writable, the directory itself is enough.
32771 (gnat_is_absolute_path): Change profile, so that the call from
32772 GNAT.OS_Lib can be made more efficient.
32774 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
32775 from GNAT.OS_Lib can be made more efficient.
32777 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
32778 one copy of the file name. Found by code reading.
32780 2004-04-23 Vincent Celier <celier@gnat.com>
32782 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
32783 Correct documentation on gnatmake switches transmitted to the compiler
32785 * ali.ads: Minor comment fix
32787 2004-04-23 Javier Miranda <miranda@gnat.com>
32789 * sem_ch6.adb: (Confirming Types): Code cleanup
32791 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
32792 subprogram types: E_Anonymous_Access_Subprogram_Type and
32793 E_Anonymous_Access_Protected_Subprogram_Type.
32795 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
32797 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
32798 whether a pragma All_Calls_Remote applies to the subprogram on which
32800 No functional change is introduced by this revision; the new parameter
32801 will be used to allow calls to local RCI subprograms to be optimized
32802 to not use the PCS in the case where no pragma All_Calls_Remote applies,
32803 as is already done in the PolyORB implementation of the DSA.
32805 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
32806 whether a pragma All_Calls_Remote applies to the subprogram on which
32808 No functional change is introduced by this revision; the new parameter
32809 will be used to allow calls to local RCI subprograms to be optimized
32810 to not use the PCS in the case where no pragma All_Calls_Remote applies,
32811 as is already done in the PolyORB implementation of the DSA.
32813 2004-04-23 Robert Dewar <dewar@gnat.com>
32815 * Makefile.rtl: Add entry for s-addope.o in run time library list
32816 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
32817 * s-addope.ads, s-addope.adb: New files.
32819 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
32820 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
32821 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
32822 System.Address to be non-private and signed.
32824 * sem_elim.adb: Minor reformatting (fairly extensive)
32825 Some minor code reorganization from code reading
32826 Add a couple of ??? comments
32828 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32830 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
32831 (tree_transform, case N_If_Statement): Remove non-determinism.
32833 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
32835 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
32837 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
32838 Eliminate' section.
32840 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
32841 no longer used as a parameter name for Eliminate pragma).
32843 2004-04-22 Laurent Guerby <laurent@guerby.net>
32845 PR optimization/14984
32846 PR optimization/14985
32847 * trans.c (gigi): Fix non determinism leading to bootstrap
32848 comparison failures.
32850 2004-04-21 Pascal Obry <obry@gnat.com>
32852 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
32853 passed to spawnvp() to properly handle program pathname with spaces on
32856 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
32858 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
32859 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
32860 unlocked in case of exceptions.
32862 2004-04-21 Joel Brobecker <brobecker@gnat.com>
32864 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
32865 This function does not exist anymore.
32867 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
32869 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
32871 * link.c: Move variables to the __gnat name space.
32873 * Makefile.in: list link.o explicitly when needed.
32875 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
32877 2004-04-21 Javier Miranda <miranda@gnat.com>
32879 * einfo.adb (Original_Access_Type): New subprogram
32880 (Set_Original_Access_Type): New subprogram
32881 (Write_Field21_Name): Write the name of the new field
32883 * einfo.ads (Original_Access_Type): New field present in access to
32885 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
32886 E_Anonymous_Access_Protected_Subprogram_Type.
32888 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
32891 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
32892 to anonymous access to subprogram types.
32894 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
32895 to subprogram types.
32897 * sem_ch3.adb (Access_Definition): Complete decoration of entities
32898 corresponding to anonymous access to subprogram types.
32899 (Analyze_Component_Declaration): Add new actual to the call to
32900 subprogram replace_anonymous_access_to_protected_subprogram.
32901 (Array_Type_Declaration): Add new actual to the call to subprogram
32902 replace_anonymous_access_to_protected_subprogram.
32903 (Process_Discriminants): Add new actual to the call to subprogram
32904 replace_anonymous_access_to_protected_subprogram.
32905 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
32907 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
32910 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
32911 access to subprogram types.
32913 * sem_util.adb (Has_Declarations): Addition of package_specification
32916 2004-04-21 Ed Schonberg <schonberg@gnat.com>
32918 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
32919 inlined flags to renamed entity only if in current unit.
32921 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
32923 * s-parint.ads: Add DSA implementation marker.
32925 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
32926 value of System.Partition_Interface.DSA_Implementation to determine
32927 what version of the distributed systems annex is available (no
32928 implementation, GLADE, or PolyORB).
32930 2004-04-21 Joel Brobecker <brobecker@gnat.com>
32932 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
32934 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32936 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
32937 with new type if alias sets differ.
32938 Fixes ACATS c41103b.
32940 2004-04-21 Vincent Celier <celier@gnat.com>
32942 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
32943 Add array Lang_Args for the language specific compiling argument
32946 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
32948 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
32950 * gnat_rm.texi: Update the descripton of the Eliminate pragma
32951 according to the recent changes in the format of the parameters of the
32952 pragma (replacing Homonym_Number with Source_Location).
32954 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
32956 * 5isystem.ads: Removed, unused.
32958 * gnat_rm.texi: Redo 1.13 change.
32960 2004-04-19 Robert Dewar <dewar@gnat.com>
32962 * s-stoele.ads: Clean up definition of Storage_Offset (the new
32963 definition is cleaner, avoids the kludge of explicit Standard operator
32964 references, and also is consistent with a visible System.Address with
32965 no visible operations.
32967 * s-geveop.adb: Add declarations to avoid assumption of visible
32968 operations on type System.Address (since these might not be available
32969 if Address is a non-private type for which the operations
32970 are made abstract).
32972 * sem_eval.adb: Minor reformatting
32974 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
32975 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
32976 reformatting (new function spec format).
32978 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
32979 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
32980 s-caun64.adb: Add declarations to avoid assumption of visible
32981 operations on type System.Address (since these might not be available
32982 if Address is a non-private type for which the operations are made
32985 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
32987 * exp_intr.adb: Minor comment update
32989 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
32991 * 5omastop.adb: Add declarations to avoid assumption of visible
32992 operations on type System.Address (since these might not be available
32993 if Address is a non-private type for which the operations
32994 are made abstract).
32996 2004-04-19 Vincent Celier <celier@gnat.com>
32998 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
33000 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
33003 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
33005 Call Check with Process_Languages.
33006 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
33007 with Process_Languages.
33008 (Recursive_Check): New Boolean parameter Process_Languages. Call
33009 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
33012 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
33014 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
33015 parameter Ada_Main, defaulted to True.
33016 Check for Ada specific characteristics only when Ada_Main is True.
33018 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
33020 * prj.adb: (Project_Empty): Add new Project_Data components.
33022 * prj.ads: New types and tables for non Ada languages.
33023 (Project_Data): New components Languages, Impl_Suffixes,
33024 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
33025 Include_Path, Include_Data_Set.
33027 * prj-env.ads, prj-env.adb: Minor reformatting
33029 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
33030 Put subprograms in alphabetical order
33032 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
33033 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
33036 * mlib-prj.adb: Back out modification in last version, as they are
33038 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
33040 * make.adb: (Mains): Moved to package Makeutl
33041 (Linker_Opts): Moved to package Makeutl
33042 (Is_External_Assignment): Moved to package Makeutl
33043 (Test_If_Relative_Path): Moved to package Makeutl
33044 (Gnatmake): Move sorting of linker options to function
33045 Makeutl.Linker_Options_Switches.
33047 * makeutl.ads, makeutl.adb: New files.
33049 * Makefile.in: Add makeutl.o to the object files for gnatmake
33051 * makeusg.adb: Add line for new switch -eL.
33053 * gnatls.adb (Image): New function.
33054 (Output_Unit): If in verbose mode, output the list of restrictions
33055 specified by pragmas Restrictions.
33057 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
33060 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
33061 needed, to put it in the range 1970 (included) - 2026 (excluded).
33062 (Time_Of): Do not shift Unix_Min_Year (1970).
33063 Shift the date by multiple of 56 years, if needed, to put it in the
33064 range 1970 (included) - 2026 (excluded).
33066 * adaint.h, adaint.c (__gnat_set_executable): New function.
33068 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33070 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
33071 and pop GC context.
33072 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
33073 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
33074 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
33075 (tree_transform, case N_Code_Statement): Likewise.
33076 (gnat_expand_stmt, case LABEL_STMT): Don't look at
33077 LABEL_STMT_FIRST_IN_EH.
33078 (gnat_expand_stmt, case ASM_STMT): New case.
33080 * utils2.c (build_unary_op): Properly set TREE_READONLY of
33081 UNCONSTRAINED_ARRAY_REF.
33083 * utils.c (poplevel): Temporarily push/pop GC context around inline
33084 function expansion.
33086 * decl.c (maybe_variable): Properly set TREE_READONLY of
33087 UNCONSTRAINED_ARRAY_REF.
33088 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
33090 * ada-tree.def: (ASM_STMT): New.
33092 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
33093 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
33094 ASM_STMT_INPUT): New.
33095 (ASM_STMT_CLOBBER): Likewise.
33097 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
33099 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
33100 general rcheck mechanism to raise Program_Error for E.4(18), instead
33101 of a custom raiser in System.Partition_Interface.
33102 Part of general cleanup work before PolyORB integration.
33104 * snames.ads, snames.adb: Add new runtime library entities and names
33107 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
33109 (Build_Subprogram_Id): New subprogram provided by exp_dist
33110 Code reorganisation in preparation for PolyORB integration.
33112 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
33114 (Build_Subprogram_Id): New subprogram provided by exp_dist
33116 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
33117 actual parameter types for call to dereference of an
33118 access-to-subprogram type.
33120 * rtsfind.ads: Add new runtime library entities and names for PolyORB
33123 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
33124 instead, which has the same behaviour here since we never pass it a
33127 * link.c (run_path_option, Solaris case): Use -Wl, as for other
33130 * Makefile.in: adjust object file lists for gnatlink and gnatmake
33131 to account for new dependency upon Interfaces.C.Strings + link.o
33132 For x86 FreeBSD, use 86numaux.
33134 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
33135 from Mlib.Tgt to Mlib.
33137 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
33138 target-independent.
33140 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
33141 target-specific versions of this subprogram, now implemented as a
33142 target-independent function in Mlib.
33144 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
33145 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
33146 (Linker_Library_Path_Option): Remove target-specific versions of this
33147 subprogram, now implemented as a target-independent function in Mlib.
33149 * atree.adb: (Allocate_Initialize_Node): New subprogram.
33150 Factors out node table slots allocation.
33151 (Fix_Parents): New subprogram.
33152 Encapsulate the pattern of fixing up parent pointers for syntactic
33153 children of a rewritten node.
33154 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
33155 (Rewrite): Use New_Copy when creating saved copy of original node.
33156 (Replace): Use Copy_Node to copy nodes.
33158 2004-04-19 Javier Miranda <miranda@gnat.com>
33160 * sprint.adb (Sprint_Node_Actual): Give support to the new
33161 Access_To_Subprogram node available in Access_Definition nodes. In
33162 addition, give support to the AI-231 node fields: null-exclusion,
33163 all-present, constant-present.
33165 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
33167 * sinfo.ads, sinfo.adb:
33168 New field Access_To_Subprogram_Definition in Access_Definition nodes
33170 * sem_ch6.adb (Process_Formals): Move here the code that creates and
33171 decorates internal subtype declaration corresponding to the
33172 null-excluding formal. This code was previously in Set_Actual_Subtypes.
33173 In addition, carry out some code cleanup on this code. In case of
33174 access to protected subprogram call
33175 Replace_Anonymous_Access_To_Protected_Subprogram.
33176 (Set_Actual_Subtypes): Code cleanup.
33178 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
33179 Find_Type in case of anonymous access renamings. Add warning in case of
33180 null-excluding attribute used in anonymous access renaming.
33182 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
33185 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
33187 (Access_Definition): In case of anonymous access to subprograms call
33188 the corresponding semantic routine to decorate the node.
33189 (Access_Subprogram_Declaration): Addition of some comments indicating
33190 some code that probably should be added here. Detected by comparison
33191 with the access_definition subprogram.
33192 (Analyze_Component_Declaration): In case of access to protected
33193 subprogram call Replace_Anonymous_Access_To_Protected.
33194 (Array_Type_Declaration): In case of access to protected subprogram call
33195 Replace_Anonymous_Access_To_Protected_Subprogram.
33196 (Process_Discriminants): In case of access to protected subprogram call
33197 Replace_Anonymous_Access_To_Protected_Subprogram.
33199 * par.adb (P_Access_Definition): New formal that indicates if the
33200 null-exclusion part was present.
33201 (P_Access_Type_Definition): New formal that indicates if the caller has
33202 already parsed the null-excluding part.
33204 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
33205 (P_Identifier_Declarations): Code cleanup and give support to renamings
33206 of anonymous access to subprogram types.
33207 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
33208 (P_Array_Type_Definition): Give support to AI-254.
33209 (P_Component_Items): Give support to AI-254.
33210 (P_Access_Definition): New formal that indicates if the header was
33211 already parsed by the caller.
33212 (P_Access_Type_Definition): New formal that indicates if the caller has
33213 already parsed the null-excluding part.
33215 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
33216 call to P_Access_Definition.
33218 2004-04-19 Geert Bosch <bosch@gnat.com>
33220 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
33221 the delicate semantics of floating-point to integer conversion.
33222 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
33224 * eval_fat.adb (Machine_Mantissa): Moved to spec.
33225 (Machine_Radix): New function.
33227 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
33229 (Machine_Radix): New function also for use in conversion checks.
33231 2004-04-19 Ed Schonberg <schonberg@gnat.com>
33233 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
33235 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
33236 to decorate the access-to-protected subprogram and the equivalent type.
33238 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
33239 to anonymous access to subprogram types.
33241 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
33242 constant-folding, for legality checks in contexts that require an RM
33245 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
33246 temporary but stack checking is not enabled, increment serial number
33247 to so that symbol generation is consistent with and without stack
33250 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
33251 independent on whether stack checking is enabled, caller must check
33252 the corresponding flag.
33254 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
33256 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
33257 parent if it has discriminants.
33258 (Build_Derived_Private_Type): Constructed full view does
33259 not come from source.
33260 (Process_Discriminants): Default discriminants on a tagged type are
33261 legal if this is the internal completion of a private untagged
33264 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
33265 no constraint checks, because it corresponds to an existing object.
33267 * sem_prag.adb (Process_Convention): Pragma applies
33268 only to subprograms in the same declarative part, i.e. the same unit,
33269 not the same scope.
33271 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
33272 ignore type mismatch on a numeric conversion if expression comes from
33275 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
33277 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
33278 Homonym_Number parameter, add processing for Source_Location parameter
33280 (Check_Eliminated): Remove the check for homonym numbers, add the check
33281 for source location traces.
33283 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
33284 with Arg_Source_Location corresponding to the changes in the format of
33287 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
33288 Eliminate pragma corresponding to the changes in the format of the
33289 pragma: Homonym_Number is replaced with Source_Location, two ways of
33290 distinguishing homonyms are mutially-exclusive.
33292 2004-04-19 Joel Brobecker <brobecker@gnat.com>
33294 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
33296 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
33297 No_Dollar_In_Label, no longer necessary, as it is always True.
33298 (Strip_Suffixes): Likewise.
33300 2004-04-19 Gary Dismukes <dismukes@gnat.com>
33302 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
33303 modulus for compatibility with size clause on targets with 16-bit
33306 * layout.adb (Discrimify): In the case of private types, set Vtyp to
33307 full type to fix type mismatches on calls to size functions for
33308 discriminant-dependent array components.
33310 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
33312 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
33315 2004-04-19 Pascal Obry <obry@gnat.com>
33317 * mdll-utl.adb (Locate): New version is idempotent.
33319 2004-04-17 Laurent Guerby <laurent@guerby.net>
33321 PR ada/14988 (partial)
33322 * impunit.adb: Fix typo.
33324 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
33326 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
33327 and install-rts-cert targets. Remove all gnatlib and gnattools
33328 targets and all other rts-* targets (moved to libada). Remove (now)
33329 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
33330 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
33332 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33334 * trans.c (tree_transform): Shortcut returning error_mark_node for
33335 statements in annotate_only_mode.
33336 (tree_transform, case N_Label, case N_Return_Statement,
33337 N_Goto_Statement): Make statement tree instead of generating code.
33338 (tree_transform, case N_Assignment_Statement): No longer check
33339 type_annotate_only.
33340 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
33342 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
33344 (gnat_to_gnu): Collect any RTL generated and deal with it.
33345 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
33346 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
33347 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
33349 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
33351 * ada-tree.def (EXPR_STMT): Fix typo in name.
33352 (BLOCK_STMT, IF_STMT): New nodes.
33354 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
33355 LABEL_STMT_FIRST_IN_EH): New macros.
33356 (RETURN_STMT_EXPR): Likewise.
33358 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
33359 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
33361 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
33363 * atree.ads: Correct documentation on extended nodes.
33365 * link.c: Set run_path_option for FreeBSD.
33367 2004-04-08 Vincent Celier <celier@gnat.com>
33369 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
33370 one of the ALI file, do not link with DEC lib.
33372 * par.adb Remove the last two characters ("%s" or "%b") when checking
33373 if a language defined unit may be recompiled.
33375 2004-04-08 Ed Schonberg <schonberg@gnat.com>
33377 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
33378 removal of abstract operation leaves no possible interpretation for
33381 * sem_eval.adb (Eval_Qualified_Expression): Use
33382 Set_Raises_Constraint_Error on node when needed, so that it does not
33383 get optimized away by subsequent optimizations.
33385 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
33386 operands even when they are not wrapped in a type conversion.
33388 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
33390 * sem_prag.adb (Set_Exported): Warn about making static as result of
33391 export only when the export is coming from source. This may be not
33392 be true e.g. on VMS where we expand export pragmas for exception codes
33393 together with imported or exported exceptions, and we don't want the
33394 user to be warned about something he didn't write.
33396 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
33398 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
33399 duplication between normal entities and those declared as renamings.
33400 No functional change.
33402 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
33403 inline functions returning an unconstrained result.
33405 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
33407 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
33408 conform to what other front-ends do.
33410 2004-04-08 Doug Rupp <rupp@gnat.com>
33412 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
33415 2004-04-06 Pascal Obry <obry@gnat.com>
33417 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
33419 * osint.adb (Program_Name): Do not look past a directory separator.
33421 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
33423 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
33425 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
33426 requirement for preserving a copy of the original assignment node.
33428 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
33430 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
33432 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
33435 2004-04-06 Ed Schonberg <schonberg@gnat.com>
33437 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
33438 operator calls in functional notation, and apply
33439 Universal_Interpretation to operands, not to their type.
33441 2004-04-06 Robert Dewar <dewar@gnat.com>
33443 * 5wdirval.adb: Minor reformatting
33445 2004-04-06 Ed Falis <falis@gnat.com>
33447 * gnat_rm.texi: Improve a reference to the GCC manual
33449 2004-04-05 Vincent Celier <celier@gnat.com>
33451 * adaint.h, adaint.c: Add function __gnat_named_file_length
33453 * impunit.adb: Add Ada.Directories to the list
33455 * Makefile.in: Add VMS and Windows versions of
33456 Ada.Directories.Validity package body.
33458 * Makefile.rtl: Add a-direct and a-dirval
33460 * mlib-tgt.ads: Minor comment update.
33462 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
33463 a-direct.ads, a-direct.adb: New files.
33465 2004-04-05 Vincent Celier <celier@gnat.com>
33468 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
33469 just to the compiler.
33471 2004-04-05 Robert Dewar <dewar@gnat.com>
33473 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
33474 returned string is 1.
33476 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
33478 * eval_fat.ads: Minor reformatting
33480 * g-curexc.ads: Document that lower bound of returned string values
33483 * gnatlink.adb: Add ??? comment for previous change
33484 (need to document why this is VMS specific)
33486 * s-stoele.ads: Minor reformatting
33488 * tbuild.ads: Minor reformatting throughout (new function specs)
33490 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
33493 * scng.adb: Minor reformatting
33495 2004-04-05 Geert Bosch <bosch@gnat.com>
33497 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
33498 (Leading_Part): Still perform truncation to machine number if the
33499 specified radix_digits is greater or equal to machine_mantissa.
33501 2004-04-05 Javier Miranda <miranda@gnat.com>
33503 * par-ch3.adb: Complete documentation of previous change
33504 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
33505 (aliased must appear before constant).
33507 * par-ch4.adb: Complete documentation of previous change.
33509 * par-ch6.adb: Complete documentation of previous change.
33511 * sinfo.ads: Fix typo in commment.
33513 2004-04-05 Ed Schonberg <schonberg@gnat.com>
33515 * sem_ch3.adb (Inherit_Components): If derived type is private and has
33516 stored discriminants, use its discriminants to constrain parent type,
33517 as is done for non-private derived record types.
33519 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
33520 Ada 2005 AI-310: an abstract non-dispatching operation is not a
33521 candidate interpretation in an overloaded call.
33523 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
33524 expression is Null and target type is not an access type (e.g. a
33525 non-private address type).
33527 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
33529 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
33530 statement whose right-hand side is an inlined call, save a copy of the
33531 original assignment subtree to preserve enough consistency for
33532 Analyze_Assignment to proceed.
33534 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
33535 complete assignment subtree which is now unnecessary, as the expansion
33536 of inlined call has been improved to preserve a consistent assignment
33537 tree. Note_Possible_Modification must be called only
33538 after checks have been applied, or else unnecessary checks will
33541 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
33542 of explicit dereferences that do not Come_From_Source:
33543 - be selective on cases where we must go back to the dereferenced
33544 pointer (an assignment to an implicit dereference must not be
33545 recorded as modifying the pointer);
33546 - do not rely on Original_Node being present (Analyze_Assignment
33547 calls Note_Possible_Modification on a copied tree).
33549 * sem_warn.adb (Check_References): When an unset reference to a pointer
33550 that is never assigned is encountered, prefer '<pointer> may be null'
33551 warning over '<pointer> is never assigned a value'.
33553 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
33555 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
33558 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
33560 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
33561 libexc. We currently don't reference anything in this library and
33562 linking it in triggers linker warnings we don't want to see.
33564 * init.c: Update comments.
33566 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33568 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
33569 * utils.c (create_field_decl): Likewise.
33570 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
33572 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
33574 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
33575 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
33576 Add info directory entry and category.
33578 2004-04-02 Jan Hubicka <jh@suse.cz>
33580 * utils.c: Include function.h
33581 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
33583 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
33586 * Make-lang.in: Clean up generation of documentation
33588 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
33590 * xgnatug.adb: Removed, replaced by xgnatugn.adb
33592 * xgnatugn.adb: Replaces xgnatug.adb
33594 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
33596 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
33598 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
33599 gnat_ug_wnt.texi: Removed.
33601 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
33603 * utils2.c: Update copyright notice.
33605 2004-04-01 Robert Dewar <dewar@gnat.com>
33607 * checks.adb: Minor reformatting throughout
33608 Note that prev checkin added RM reference to alignment warning
33610 2004-04-01 Ed Schonberg <schonberg@gnat.com>
33612 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
33613 non-static when building aggregate for bit-packed array.
33615 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
33616 function call that is itself the actual in a procedure call, build
33619 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
33620 a string literal, create a temporary for it, constant folding only
33621 handles scalars here.
33623 2004-04-01 Vincent Celier <celier@gnat.com>
33625 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
33626 Error_Msg_SP): New empty procedures to instantiate the Scanner.
33627 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
33629 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
33630 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
33631 and get the checksum.
33633 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
33635 Increase the Marking_Label at the end of the Multiple_Main_Loop,
33636 instead of at the beginning.
33638 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
33640 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
33643 * osint.ads (Multi_Unit_Index_Character): New Character global variable
33645 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
33648 * par.adb: Remove test on file name to detect language defined units.
33649 Add test on unit name, after parsing, to detect language defined units
33650 that are not compiled with -gnatg (except System.RPC and its children)
33652 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
33653 following units without style checking.
33655 * switch-c.adb: Change -gnatC to -gnateI
33657 * usage.adb: Document new switch -gnateInnn
33659 * scng.adb (Accumulate_Token_Checksum): New procedure
33660 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
33661 word or literal number.
33662 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
33665 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
33668 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
33669 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
33670 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
33671 5vtpopde.adb: Add missing 'constant' keywords.
33673 2004-04-01 Javier Miranda <miranda@gnat.com>
33675 * par-ch4.adb: (P_Allocator): Code cleanup
33677 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
33680 * sinfo.ads: Complete documentation of previous change
33682 2004-04-01 Pascal Obry <obry@gnat.com>
33684 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
33685 only on VMS. This special handling was done because an old GNU/ld bug
33686 on Windows which has been fixed.
33688 2004-04-01 GNAT Script <nobody@gnat.com>
33690 * Make-lang.in: Makefile automatically updated
33692 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33694 * decl.c (gnat_to_gnu_entity, make_type_from_size):
33695 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
33696 * trans.c (tree_transform, convert_with_check): Likewise.
33697 * utils.c (gnat_signed_or_unsigned_type): Likewise.
33698 (build_vms_descriptor, unchecked_convert): Likewise.
33699 * utils2.c (nonbinary_modular_operation): Likewise.
33701 2004-03-29 Javier Miranda <miranda@gnat.com>
33703 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
33704 (Install_Null_Excluding_Check): Local subprogram that determines whether
33705 an access node requires a runtime access check and if so inserts the
33706 appropriate run-time check.
33707 (Apply_Access_Check): Call Install_Null_Excluding check if required
33708 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
33710 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
33712 * einfo.ads: Fix typo in comment
33714 * exp_ch3.adb (Build_Assignment): Generate conversion to the
33715 null-excluding type to force the corresponding run-time check.
33716 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
33717 type to force the corresponding run-time check.
33719 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
33720 the null-excluding type to force the corresponding run-time check.
33722 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
33723 case of access types unless they have the null-excluding attribute.
33725 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
33728 * exp_util.ads: Fix typo in comment
33730 * par.adb (P_Null_Exclusion): New subprogram
33731 (P_Subtype_Indication): New formal that indicates if the null-excluding
33732 part has been scanned-out and it was present
33734 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
33736 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
33737 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
33738 type to force the corresponding run-time check
33739 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
33741 (Resolve_Array_Aggregate): Carry out some static checks
33742 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
33744 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
33745 attribute must be set only if specified by means of the null-excluding
33746 part. In addition, we must also propagate the access-constant attribute
33748 (Access_Subprogram_Declaration, Access_Type_Declaration,
33749 Analyze_Component_Declaration, Analyze_Object_Declaration,
33750 Array_Type_Declaration, Process_Discriminants,
33751 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
33752 and carry out some static checks.
33753 (Build_Derived_Access_Type): Set the null-excluding attribute
33754 (Derived_Type_Declaration, Process_Subtype): Carry out some static
33757 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
33759 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
33761 * sem_ch6.adb (Process_Formals): Carry out some static checks.
33762 (Set_Actual_Subtypes): Generate null-excluding subtype if the
33763 null-excluding part was present; it is not required to be done here in
33764 case of anonymous access types.
33765 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
33768 * sem_res.adb (Resolve_Actuals): Carry out some static check
33769 (Resolve_Null): Allow null in anonymous access
33771 * sinfo.adb: New subprogram Null_Exclusion_Present
33772 All_Present and Constant_Present available on access_definition nodes
33774 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
33775 object_declaration, derived_type_definition, component_definition,
33776 discriminant_specification, access_to_object_definition,
33777 access_function_definition, allocator, access_procedure_definition,
33778 access_definition, parameter_specification, All_Present and
33779 Constant_Present flags available on access_definition nodes.
33781 2004-03-29 Robert Dewar <dewar@gnat.com>
33783 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
33784 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
33785 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
33786 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
33787 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
33788 sem_prag.adb: Updates to handle multiple units/file
33790 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
33792 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
33793 sem_util.adb: Minor reformatting
33795 * sem_ch12.adb: Add comment for previous change
33797 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
33799 * osint.adb (Executable_Prefix): Set Exec_Name to the current
33800 executable name when not initialized. Otherwise, use its current value.
33802 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
33803 initialize it to another executable name than the current one. This
33804 allows to configure paths for an executable name (gnatmake) different
33805 from the current one (gnatdist).
33807 2004-03-29 Ed Schonberg <schonberg@gnat.com>
33809 * exp_ch6.adb (Expand_Call): A call to a function declared in the
33810 current unit cannot be inlined if it appears in the body of a withed
33811 unit, to avoid order of elaboration problems in gigi.
33813 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
33814 information for protected (wrapper) operation as well, to simplify gdb
33817 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
33818 protected body, indicate that the entity for the generated spec comes
33819 from source, to ensure that references are properly generated for it.
33820 (Build_Body_To_Inline): Do not inline a function that returns a
33823 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
33824 apply convention to homonyms that are declared explicitly.
33826 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
33827 that renames an equality operator and the operands are overloaded,
33828 resolve them with the declared formal types, before rewriting as an
33831 2004-03-29 GNAT Script <nobody@gnat.com>
33833 * Make-lang.in: Makefile automatically updated
33835 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
33837 * memtrack.adb: Log realloc calls, which are treated as free followed
33840 2004-03-25 Vincent Celier <celier@gnat.com>
33842 * prj-makr.adb (Process_Directories): Detect when a file contains
33843 several units. Do not include such files in the config pragmas or
33844 in the naming scheme.
33846 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
33847 Resolve links only when not in Trusted_Mode.
33848 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
33849 Do not resolve links for the display names.
33851 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
33852 resolve links when computing the display names.
33854 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
33856 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
33857 attribute reference does not denote a subtype, it can be any
33858 expression that has a classwide type, potentially after an implicit
33859 dereference. In particular, the prefix can be a view conversion for
33860 a classwide type (for which Is_Object_Reference holds), but it can
33861 also be a value conversion for an access-to-classwide type. In the
33862 latter case, there is an implicit dereference, and the original node
33863 for the prefix does not verify Is_Object_Reference.
33865 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
33866 conversion of a discriminant-dependent component of a mutable object
33869 2004-03-25 Ed Schonberg <schonberg@gnat.com>
33871 * freeze.adb (Freeze_Entity): When an inherited subprogram is
33872 inherited, has convention C, and has unconstrained array parameters,
33873 place the corresponding warning on the derived type declaration rather
33874 than the original subprogram.
33876 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
33877 indication on renaming declaration, if formal has a box and actual
33880 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
33881 determine whether to generate an implicit or explicit reference to
33882 the renamed entity.
33884 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
33885 subprogram renaming comes from a defaulted formal subprogram in an
33888 2004-03-25 Gary Dismukes <dismukes@gnat.com>
33890 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
33891 value expressions to ensure that calls within a component definition
33892 will be checked (since those are evaluated during the record type's
33895 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
33897 * s-tpobop.adb: Code clean up:
33898 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
33900 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
33902 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
33904 * Makefile.in: Clean up in the ravenscar run time.
33906 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33908 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
33909 of No_Strict_Aliasing to build_pointer_type_for_mode.
33910 * utils.c (update_pointer_to): Walk pointer and ref chains.
33912 2004-03-22 Cyrille Comar <comar@act-europe.fr>
33914 * ali.ads: Fix Comment about Dynamic_Elab.
33916 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
33917 Has_RACW, Is_Generic, etc.)
33918 (Output_Object, Gnatls): Take into account ALI files not attached to
33921 2004-03-22 Vincent Celier <celier@gnat.com>
33923 * gprep.adb: Change all String_Access to Name_Id
33924 (Is_ASCII_Letter): new function
33925 (Double_File_Name_Buffer): New procedure
33926 (Preprocess_Infile_Name): New procedure
33927 (Process_Files): New procedure
33928 (Gnatprep): Check if output and input are existing directories.
33929 Call Process_Files to do the real job.
33931 2004-03-22 Robert Dewar <dewar@gnat.com>
33933 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
33934 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
33936 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
33938 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
33939 case when the source contains only comments.
33941 2004-03-22 Ed Schonberg <schonberg@gnat.com>
33943 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
33944 declaration for a child subprogram body that acts as a spec, indicate
33945 that the entity in the declaration needs debugging information.
33947 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
33948 full view if the subtype is created for a constrained record component;
33949 gigi has enough information to construct the record, and there is no
33950 place in the tree for the declaration.
33952 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
33953 serial number for the dummy body that is built for analysis, to avoid
33954 inconsistencies in the generation of internal names when compiling
33957 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
33959 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
33962 2004-03-22 GNAT Script <nobody@gnat.com>
33964 * Make-lang.in: Makefile automatically updated
33966 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33968 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
33969 * trans.c (tree_transform, emit_index_check): Likewise.
33970 * utils.c (build_template): Likewise.
33971 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
33972 (maybe_unconstrained_array, unchecked_convert): Likewise.
33973 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
33974 (build_unary_op): Likewise.
33975 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
33976 (fill_vms_descriptor): Likewise.
33977 (build_call_alloc_dealloc): Likewise.
33979 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
33981 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
33984 * gnat_ug.texi: Add info directory category and entry.
33985 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
33986 gnat_ug_wnt.texi: Regenerate.
33988 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
33990 * ada-tree.h: Update copyright notice.
33991 Minor reformatting.
33993 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
33995 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
33996 as regular exception objects and not as mere integers representing the
33997 condition code. The latter approach required some dynamics to mask off
33998 severity bits, which did not fit well into the GCC table based model.
33999 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
34000 exception data objects. We don't it and it would conflict with the other
34001 external symbol we have to generate for such exceptions.
34003 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
34004 the special code for VMS exceptions, since these are now represented
34005 as regular exceptions objects.
34007 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34009 * decl.c (debug_no_type_hash): Remove.
34010 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
34011 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
34013 2004-03-19 Laurent Guerby <laurent@guerby.net>
34015 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
34016 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
34018 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34020 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
34021 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
34022 (TYPE_RM_SIZE_INT): Directly use type.values.
34023 (TREE_LOOP_ID): Clean up check.
34024 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
34025 TYPE_VALUES, not TYPE_FIELDS.
34026 * trans.c (convert_with_check): Delay access of bounds of basetype
34027 until sure is numeric.
34029 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
34031 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
34034 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
34035 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
34036 Specific.Set instead of direct call to e.g pthread_setspecific.
34038 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
34040 * adaint.c: Update comments.
34042 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
34043 GNATLIB_SHARED for FreeBSD.
34045 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
34047 * init.c [VxWorks]: Do not fix the stack size for the environment task.
34048 When needed (stack checking) the stack size is retrieved
34049 from the VxWorks kernel.
34051 * Makefile.in: Flag -nostdinc is required when building the run time
34052 for avoiding looking for files in the base compiler.
34053 Add the VxWorks specific version of the package body for
34054 System.Stack_checking.Operations (5zstchop.adb).
34056 * Make-lang.in: Add the object file for
34057 System.Stack_Checking.Operations.
34059 * Makefile.rtl: Add object file for the package
34060 System.Stack_Checking.Operations.
34062 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
34064 * s-stache.ads, s-stache.adb: Move the operations related to stack
34065 checking from this package to package System.Stack_Checking.Operations.
34066 This way, stack checking operations are only linked in the final
34067 executable when using the -fstack-check flag.
34069 2004-03-18 Doug Rupp <rupp@gnat.com>
34071 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
34074 * 5qsystem.ads, 5xcrtl.ads: New files.
34076 2004-03-18 Vincent Celier <celier@gnat.com>
34078 * prj.adb (Reset): Reset hash table Files_Htable
34080 * prj-env.adb (Source_Paths, Object_Paths): New tables.
34081 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
34082 the procedures Add_To_Path_File.
34083 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
34084 making sure that each directory is present only once and, for object
34085 dirs, when a directory already present is added, the duplicate is
34086 removed and the directory is always put as the last in the table.
34087 Write the path files at the end of these accumulations.
34089 * prj-nmsc.adb (Record_Source): Add source file name in hash table
34090 Files_Htable for all sources.
34092 * prj-proc.adb (Process): Remove restrictions between not directly
34093 related extending projects.
34095 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
34097 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
34098 (Find_Sources): Minor speed optimization.
34100 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
34101 parameter Trusted_Mode.
34103 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
34105 * scn.adb (Determine_License): Take into account a degenerated case
34106 when the source contains only comments.
34108 2004-03-18 Ed Schonberg <schonberg@gnat.com>
34110 * sem_warn.adb (Check_References): For a warning on a selected
34111 component that does not come from source, locate an uninitialized
34112 component of the record type to produce a more precise error message.
34114 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
34116 * 3zsoccon.ads: Fix multicast options.
34118 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
34121 2004-03-15 Robert Dewar <dewar@gnat.com>
34123 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
34124 pragma used for a private type.
34126 * lib-xref.adb (Generate_Reference): Do not generate warning if
34127 reference is in a different unit from the pragma Unreferenced.
34129 * 5vtpopde.adb: Minor reformatting
34130 Fix casing of To_Task_ID
34132 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
34133 flag if we have an unchecked conversion to an access type in the same
34136 2004-03-15 Geert Bosch <bosch@gnat.com>
34138 * a-ngcoty.adb (Modulus): In alternate formula for large real or
34139 imaginary parts, use Double precision throughout.
34141 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
34142 we want to be able to compile run-time with -gnata for testing, but
34143 this may also be instantiated in user code that is compiled with -gnata.
34145 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
34147 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
34148 codes. Having a separate type for this is useful to enforce consistency
34149 throughout the various run-time units.
34150 (Exception_Data): Use Exception_Code for Import_Code.
34152 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
34153 Natural and Integer in various places.
34154 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
34155 with the severity bits masked off.
34156 (Register_VMS_Exception): Handle the additional exception data pointer
34159 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
34160 component, now reflected by an exported accessor.
34161 (is_handled_by): New routine to compute whether the propagated
34162 occurrence matches some handler choice specification. Extracted out of
34163 get_action_description_for, and expanded to take care of the VMS
34165 (get_action_description_for): Use is_handled_by instead of an explicit
34166 complex condition to decide if the current choice at hand catches the
34167 propagated occurrence.
34169 * raise.h (Exception_Code): New type for C.
34171 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
34172 System.Standard_Library.Exception_Code, to allow references from the
34173 pragma import/export expander.
34175 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
34176 New accessors to allow easy access to GNAT exception data
34178 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
34179 redundant Handled_By_Others component, helper for the personality
34180 routine which will now be able to call the appropriate exception data
34183 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
34184 component of Standard_Exception_Type to be the closest possible to
34185 Exception_Code in System.Standard_Library, that we cannot get at this
34186 point. Expand a ??? comment to notify that this type node should
34187 probably be rewritten later on.
34189 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
34190 registration call to include a pointer to the exception object in the
34193 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
34194 instead of int and explicit bitmasks.
34196 2004-03-15 Vincent Celier <celier@gnat.com>
34198 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
34199 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
34201 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
34202 longer needed now that it is in the spec of
34203 System.Tasking.Task_Attributes.
34205 * adaint.h, adaint.c: (__gnat_create_output_file): New function
34207 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
34209 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
34211 * make.adb (Gnatmake): Do not check the executable suffix; it is being
34212 taken care of in Scan_Make_Arg.
34213 (Scan_Make_Arg): Add the executable suffix only if the argument
34214 following -o, in canonical case, does not end with the executable
34215 suffix. When in verbose mode and executable file name does not end
34216 with executable suffix, output the executable name, in canonical case.
34218 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
34219 to avoid warnings when instantiating Ada.Task_Attributes.
34222 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
34223 in the correct order.
34225 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
34226 redirect standard output and error to a file for the invocation of the
34227 compiler, then read the file.
34229 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
34230 directory, instead of the Value.
34231 (Find_Source_Dirs): Remove useless code & comments.
34233 2004-03-15 Ed Schonberg <schonberg@gnat.com>
34235 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
34236 tagged type is inherited, and the parent operation is not frozen yet,
34237 force generation of a freeze node for the inherited operation, so the
34238 corresponding dispatch entry is properly initialized.
34239 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
34240 when looking for user-defined equality operation.
34242 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
34243 boolean when locating primitive equality of tagged component.
34245 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
34246 bit-aligned field and the right-hand side a string literal, introduce
34247 a temporary before expanding assignment into a loop.
34249 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
34250 priority in full, to ensure that any expanded subepxressions of it are
34251 elaborated in the scope of the init_proc.
34253 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
34254 after object declaration, skipping over code that may have been
34255 generated for validity checks.
34257 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
34258 discriminants, ignore the known discriminants of its full view, if
34259 any, to check legality.
34261 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
34262 component if type has unknown discriminants.
34263 (Analyze_Private_Extension_Declaration): Discriminant constraint is
34264 null if type has unknown discriminants.
34266 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
34267 for end label when present.
34269 * s-fileio.adb (Open): When called with a C_Stream, use given name for
34270 temporary file, rather than an empty string.
34272 2004-03-15 Ed Falis <falis@gnat.com>
34274 * s-thread.adb: Removed, no longer used.
34276 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34278 * decl.c (target.h): Now include.
34279 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
34280 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
34281 (validate_size): For POINTER_TYPE, get smallest size permitted on
34284 * fe.h: Sort Einfo decls and add Set_Mechanism.
34286 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
34287 (ada/decl.o): Depends on target.h.
34289 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
34290 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
34292 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
34294 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
34296 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
34297 Insert_Dereference_Action when rewriting an implicit dereference into
34298 an explicit one, this will be taken care of during expansion of the
34299 explicit dereference.
34300 (Expand_N_Slice): Same. Always do the rewriting, even for the case
34301 of non-packed slices, since the dereference action generated by
34302 expansion of the explicit dereference is needed in any case.
34303 (Expand_N_Selected_Component): When rewriting an implicit dereference,
34304 analyze and resolve the rewritten explicit dereference so it is seen
34306 (Insert_Dereference_Action): This procedure is now called only for the
34307 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
34308 dereferences that do not come from source (including explicit
34309 dereferences resulting from rewriting implicit ones), but do not
34310 recursively insert a check for the dereference nodes contained within
34312 (Insert_Dereference_Action): Clarify and correct comment.
34314 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
34317 Move language detection to the top level.
34318 * config-lang.in: Build by default.
34320 2004-03-05 Robert Dewar <dewar@gnat.com>
34322 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
34324 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
34325 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
34326 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
34327 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
34328 unchecked conversion to spec to avoid warnings.
34330 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
34333 * 7stpopsp.adb: Correct casing in To_Task_ID call
34335 * a-strsea.ads, a-strsea.adb: Minor reformatting
34337 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
34339 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
34340 Adjust Max_Msg_Length to be clearly large enough.
34342 * fe.h: Define In_Same_Source_Unit
34344 * osint.adb: Add pragma Warnings Off to suppress warnings
34345 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
34348 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
34350 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
34352 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
34354 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
34356 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
34358 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
34359 node. We now do generate them for gcc back end.
34361 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
34364 * sinput-c.adb: Fix bad name in header.
34365 Add pragma Warnings Off to suppress aliasing warning.
34367 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
34369 * snames.h, snames.ads, snames.adb: Add entry for pragma
34370 No_Strict_Aliasing.
34372 2004-03-05 Vincent Celier <celier@gnat.com>
34374 * prj-com.ads: Add hash table Files_Htable to check when a file name
34375 is already a source of another project.
34377 * prj-nmsc.adb (Record_Source): Before recording a new source, check
34378 if its file name is not already a source of another project. Report an
34381 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
34382 source file name, call gnatpp with all the sources of the main project.
34384 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
34387 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
34388 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
34389 /RUNTIME_SYSTEM=, converted to --RTS=
34390 /NOTABS, converted to -notabs
34392 2004-03-05 Pascal Obry <obry@gnat.com>
34394 * make.adb: Minor reformatting.
34396 2004-03-05 Ed Schonberg <schonberg@gnat.com>
34398 Part of implemention of AI-262.
34399 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
34401 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
34404 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
34405 when component type is a partially constrained class-wide subtype.
34406 (Constrain_Discriminated_Type): If parent type has unknown
34407 discriminants, a constraint is illegal, even if full view has
34409 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
34410 with unknown discriminants whose full view is a discriminated record.
34412 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
34413 flag, to handle properly derivations of tagged types with unknown
34415 (Analyze_Package_Spec, Analyze_Package_Body): Install
34416 Private_With_Clauses before analyzing private part or body.
34418 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
34419 Has_Discriminants can be true for a given type (documentation).
34421 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
34423 * s-restri.ads: Fix license (GPL->GMGPL).
34425 * s-tassta.adb: Minor reformatting.
34427 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
34428 by calls to Exit_One_ATC_Level, since additional clean up is performed
34431 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
34432 by calls to Exit_One_ATC_Level, since additional clean up is performed
34435 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34437 * trans.c: Reflect GCC changes to fix bootstrap problem.
34438 Add warning for suspicious aliasing unchecked conversion.
34440 2004-03-05 GNAT Script <nobody@gnat.com>
34442 * Make-lang.in: Makefile automatically updated
34444 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
34446 * ali.adb (Read_Instantiation_Instance): Do not modify the
34447 current_file_num when reading information about instantiations, since
34448 this corrupts files in later references.
34450 2004-03-02 Vincent Celier <celier@gnat.com>
34452 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
34453 before checking if it is read-only.
34455 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
34456 of SRC_DIRS and eliminate duplicates.
34458 * gprcmd.adb: Replace command "path" with command "path_sep" to return
34459 the path separator.
34460 (Usage): Document path_sep
34462 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
34463 C++ compiler. No need for a script.
34464 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
34465 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
34468 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
34469 where there are Ada sources.
34470 (Set_Ada_Paths): Only add to the include path the source dirs of project
34472 (Add_To_Path): Add the Display_Values of the directories, not their
34475 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
34478 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
34480 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
34481 Value is canonicalized.
34482 (Language_Independent_Check): Do not copy Value to Display_Value when
34483 canonicalizing Value.
34485 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
34486 path to find limited with cycles.
34487 (Parse_Single_Project): Use canonical cased path to find the end of a
34490 2004-03-02 Ed Schonberg <schonberg@gnat.com>
34492 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
34493 and not a child unit.
34495 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
34496 appear in a with_clause.
34498 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
34499 only happen in type_annotate mode, do not try to elaborate it.
34501 * exp_util.adb (Force_Evaluation): If expression is a selected
34502 component on the left of an assignment, use a renaming rather than a
34503 temporary to remove side effects.
34505 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
34506 inlined instance body, which is analyzed before the end of the
34509 2004-03-02 Robert Dewar <dewar@gnat.com>
34511 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
34512 sem_ch4.adb: Use new feature for substitution of keywords in VMS
34514 * errout.ads, errout.adb: Implement new circuit for substitution of
34517 * sem_case.adb (Analyze_Choices): Place message properly when case is
34518 a subtype reference rather than an explicit range.
34520 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
34522 2004-03-02 Doug Rupp <rupp@gnat.com>
34524 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
34526 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
34528 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
34530 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34532 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
34535 2004-02-25 Robert Dewar <dewar@gnat.com>
34537 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
34538 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
34539 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
34540 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
34541 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
34542 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
34543 the defining instance of the type to avoid aliasing problems.
34544 Fix copyright header. Fix bad comments in package header.
34546 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
34548 2004-02-25 Ed Schonberg <schonberg@gnat.com>
34550 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
34551 rewritten as references when aliased through an address clause.
34553 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
34554 whether call can be interpreted as an indirect call to the result of a
34555 parameterless function call returning an access subprogram.
34557 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
34560 * exp_ch7.adb (Make_Clean): Remove generation of calls to
34561 Unlock[_Entries], since this is now done by Service_Entries directly.
34563 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
34565 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
34566 Requeue_Call for better code readability. Change spec and update calls:
34567 PO_Service_Entries now unlock the PO on exit.
34568 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
34569 PO_Service_Entries.
34571 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
34573 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
34575 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
34577 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
34578 protected subprogram call and analyzing the result of such expanding
34579 in case when the called protected subprogram is eliminated.
34581 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
34584 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
34586 * Makefile.in: Clean ups.
34588 2004-02-23 Ed Schonberg <schonberg@gnat.com>
34590 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
34591 protected operations if original subprogram is flagged as eliminated.
34592 (Expand_N_Subprogram_Body): For a protected operation, create
34593 discriminals for next operation before checking whether the operation
34596 * exp_ch9.adb (Expand_N_Protected_Body,
34597 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
34598 for internal protected operations if the original subprogram is
34601 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
34602 declared in a single protected object.
34604 2004-02-23 Vincent Celier <celier@gnat.com>
34606 * prj-attr.adb: Make attribute Builder'Executable an associative array,
34607 case insensitive if file names are case insensitive, instead of a
34608 standard associative array.
34610 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
34611 them as case insensitive on platforms where the file names are case
34614 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
34615 project file has already been parsed that canonical path are compared.
34617 2004-02-23 Robert Dewar <dewar@gnat.com>
34619 * sinput-c.ads: Correct bad unit title in header
34621 * freeze.adb: Minor reformatting
34623 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34625 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
34626 nonaddressable COMPONENT_REF that is removing padding that we are
34627 taking the address of, take the address of the padded record instead
34628 if item is variable size.
34630 2004-02-20 Robert Dewar <dewar@gnat.com>
34632 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
34634 2004-02-20 Ed Schonberg <schonberg@gnat.com>
34636 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
34637 itype references for the constrained designated type of a component
34638 whose base type is already frozen.
34640 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
34642 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
34643 avoid GCC warnings.
34645 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
34647 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
34648 identifier for a phantom package that rewrites the formal package
34649 declaration with a box. The Add semantic decorations for the defining
34650 identifier from the original node (that represents the formal package).
34652 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
34654 * Make-lang.in (ada/stamp-sdefault): Use the top level
34657 2004-02-19 Richard Henderson <rth@redhat.com>
34659 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
34661 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
34663 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
34664 Scan_ALI can be used for multiple ALI files without reinitializing
34667 2004-02-18 Robert Dewar <dewar@gnat.com>
34669 * debug.adb: Minor reformatting.
34671 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34673 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
34674 to zero if there is an address clause.
34676 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
34678 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
34680 2004-02-18 Gary Dismukes <dismukes@gnat.com>
34682 * layout.adb (Layout_Component_List): Revise generation of call to
34683 discriminant-checking function to pass selections of all of the type's
34684 discriminants rather than just the variant-controlling discriminant.
34686 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
34688 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
34689 fail in the current setup and triggers spurious system error messages.
34690 Pretend it occurred and failed instead.
34692 2004-02-18 Vincent Celier <celier@gnat.com>
34694 * bld.adb: Mark FLDFLAGS as saved
34695 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
34696 it is not the root project. Put each directory to be
34697 extended between double quotes to prevent it to be expanded on Windows.
34698 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
34699 the project file. Set them back to their initial values if they have not
34700 been set in the project file.
34702 * gprcmd.adb: (Gprdebug, Debug): New global variables
34703 (Display_Command): New procedure
34704 (Usage): Document new command "linkopts"
34705 Call Display_Command when env var GPRDEBUG has the value "TRUE"
34706 Implement new command "linkopts"
34707 Remove quotes that may be around arguments for "extend"
34708 Always call Normalize_Pathname with arguments formatted for the platform
34710 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
34711 Change @echo to @$(display) in target clean to be able to clean silently
34713 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
34715 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
34718 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
34719 = Extending_All when current project is an extending all project.
34721 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
34722 set to True only for LINK command, after Unix switch -o.
34723 (Process_Arguments): Set Output_File_Expected to True for LINK command
34724 after Unix switch -o. When Output_File_Expected is True, never add an
34725 extension to a file name.
34727 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
34728 option file name, only to the --for-linker= switch.
34729 (Option_File_Name): If option file name do not end with ".opt", append
34732 2004-02-18 GNAT Script <nobody@gnat.com>
34734 * Make-lang.in: Makefile automatically updated
34736 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
34738 * Make-lang.in (stamp-sdefault): Do not depend on
34741 2004-02-12 Zack Weinberg <zack@codesourcery.com>
34743 * config-lang.in: Disable Ada by default until probe logic for
34744 a bootstrap Ada compiler can be moved to the top level configure
34747 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
34749 * decl.c (components_to_record): Don't claim that the internal fields
34750 we make to hold the variant parts are semantically addressable, because
34753 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
34754 adjust the comment describing the modular type form when we can use it.
34755 (Install_PAT): Account for the Esiz renaming.
34757 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
34758 sc_onstack context indication before raising the exception to which
34759 the signal is mapped. Allows better handling of later signals possibly
34760 triggered by the resumed user code if the exception is handled.
34762 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
34764 * 5zinit.adb: Removed, no longer used.
34766 2004-02-12 Robert Dewar <dewar@gnat.com>
34768 * ali.adb: Remove separating space between parameters on R line. Makes
34769 format consistent with format used by the binder for Set_Globals call.
34771 * atree.ads, atree.adb: Minor reformatting (new function header format)
34773 * bindgen.adb: Add Run-Time Globals documentation section containing
34774 detailed documentation of the globals passed from the binder file to
34777 * gnatls.adb: Minor reformatting
34779 * init.c (__gnat_set_globals): Add note pointing to documentation in
34782 * lib-writ.ads, lib-writ.adb: Remove separating space between
34783 parameters on R line.
34784 Makes format consistent with format used by the binder for Set_Globals
34787 * osint.ads: Add 2004 to copyright notice
34790 * snames.ads: Correct capitalization of FIFO_Within_Priorities
34791 Noticed during code reading, documentation issue only
34793 * usage.adb: Remove junk line for obsolete C switch
34794 Noticed during code reading
34796 2004-02-12 Vincent Celier <celier@gnat.com>
34798 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
34799 extend for each directory, so that multiple /** directories are
34800 extended individually.
34801 (Recursive_Process): Set the default for LANGUAGES to ada
34803 * gprcmd.adb: Define new command "ignore", to do nothing.
34804 Implement new comment "path".
34806 * Makefile.generic: Suppress output when SILENT is set
34807 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
34808 used, so that the correct compiler is invoked.
34809 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
34810 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
34812 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
34814 * Makefile.in: Clean ups and remove obsolete targets.
34816 2004-02-12 Ed Schonberg <schonberg@gnat.com>
34818 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
34819 predicate declared in exp_util.
34821 * exp_util.adb: Add comments.
34823 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
34824 visibility before compiling context of the subunit.
34826 * sem_res.adb (Check_Parameterless_Call): If the context expects a
34827 value but the name is a procedure, do not attempt to analyze as a call,
34828 in order to obtain more telling diagnostics.
34830 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
34831 'Access on parameterless function calls.
34832 (Normalize_Actuals): For a parameterless function call with missing
34833 actuals, defer diagnostic until resolution of enclosing call.
34835 * sem_util.adb (Wrong_Type): If the context type is an access to
34836 subprogram and the expression is a procedure name, suggest a missing
34839 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
34840 Nathanael Nerode <neroden@gcc.gnu.org>
34844 Merge with libada-branch:
34845 * config-lang.in: Build libada only when ada is built.
34847 2004-02-09 Ed Schonberg <schonberg@gnat.com>
34849 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
34850 for a tagged type, verify that both formals have the same type.
34852 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
34853 temporary when the formal is an in-parameter and the actual a possibly
34856 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
34857 when expansion is disabled, to ensure proper name capture with
34858 overloaded literals. Condition can be of any boolean type, resolve
34861 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
34862 renaming is for a formal subprogram with a default operator name, and
34863 there is a usable operator that is visible at the point of
34866 2004-02-09 Robert Dewar <dewar@gnat.com>
34868 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
34869 rewrite to ignore errors in ali files, intended to allow tools downward
34870 compatibility with new versions of ali files.
34872 * ali.ads: Add new parameter Ignore_Errors
34874 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
34875 duplicating the error message giving the file with restrictions.
34877 * debug.adb: Add debug flag I for gnatbind
34879 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
34880 operators for the case where the operator is a defining operator.
34882 * exp_ch3.adb: Minor reformatting (new function spec format).
34884 * exp_ch4.adb: Add comment for previous change, and make minor
34885 adjustment to loop to always check for improper loop termination.
34886 Minor reformatting throughout (new function spec format).
34888 * gnatbind.adb: Implement -di debug flag for gnatbind
34890 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
34892 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
34894 * lib-load.adb: Fix bad assertion.
34895 Found by testing and code reading.
34896 Minor reformatting.
34898 * lib-load.ads: Minor reformatting.
34900 * lib-writ.adb: There is only one R line now.
34902 * lib-writ.ads: Add documentation on making downward compatible changes
34903 to ali files so old tools work with new ali files.
34904 There is only one R line now.
34905 Add documentation on format incompatibilities (with special GPS note)
34907 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
34909 * par-load.adb: Minor reformatting
34911 * sem_ch8.adb: Fix to error message from last update
34912 Minor reformatting and restructuring of code from last update
34914 * par-prag.adb, snames.adb, snames.ads, snames.h,
34915 sem_prag.adb: Implement pragma Profile.
34917 * stylesw.adb: Implement -gnatyN switch to turn off all style check
34920 * usage.adb: Add line for -gnatyN switch
34922 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
34924 2004-02-09 Albert Lee <lee@gnat.com>
34926 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
34928 2004-02-09 Ed Schonberg <schonberg@gnat.com>
34930 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
34933 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
34934 is nested in an instance that is not frozen yet, to avoid
34935 order-of-elaboration problems in gigi.
34937 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
34938 body the attribute is legal.
34940 2004-02-09 Robert Dewar <dewar@gnat.com>
34942 * s-rident.ads: Minor comment correction
34944 * targparm.adb: Remove dependence on uintp completely. There was
34945 always a bug in Make in that it called Targparm before initializing
34946 the Uint package. The old code appeared to get away with this, but
34947 the new code did not! This caused an assertion error in gnatmake.
34949 * targparm.ads: Fix bad comment, restriction pragmas with parameters
34950 are indeed fully supported.
34952 2004-02-06 Alan Modra <amodra@bigpond.net.au>
34954 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
34956 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
34958 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
34959 with targetm.calls.promote_prototypes.
34961 2004-02-04 Robert Dewar <dewar@gnat.com>
34963 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
34964 ali.ads, gprcmd.adb: Minor reformatting
34966 * bindgen.adb: Output restrictions string for new style restrictions
34969 * impunit.adb: Add s-rident.ads (System.Rident) and
34970 s-restri (System.Restrictions)
34972 * lib-writ.adb: Fix bug in writing restrictions string (last few
34975 * s-restri.ads, s-restri.adb: Change name Restrictions to
34976 Run_Time_Restrictions to avoid conflict with package name.
34977 Add circuit to read and acquire run time restrictions.
34979 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
34981 * restrict.ads, restrict.adb: Use the new restriction
34982 No_Task_Attributes_Package instead of the old No_Task_Attributes.
34984 * sem_prag.adb: No_Task_Attributes is a synonym of
34985 No_Task_Attributes_Package.
34987 * snames.ads, snames.adb: New entry for proper handling of
34988 No_Task_Attributes.
34990 * s-rident.ads: Adding restriction No_Task_Attributes_Package
34991 (AI-00249) that supersedes the GNAT specific restriction
34992 No_Task_Attributes.
34994 2004-02-04 Ed Schonberg <schonberg@gnat.com>
34997 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
34998 body, an identifier may be wrapped in an unchecked conversion.
35000 2004-02-04 Vincent Celier <celier@gnat.com>
35002 * lib-writ.ads: Comment update for the W lines
35004 * bld.adb: (Expression): An empty string list is static
35006 * fname-uf.adb: Minor comment update
35008 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
35010 * gnatbind.adb: Initialize Cumulative_Restrictions with the
35011 restrictions on the target.
35013 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
35015 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
35018 2004-02-02 Arnaud Charlet <charlet@gnat.com>
35020 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
35022 2004-02-02 Vincent Celier <celier@gnat.com>
35024 * gprcmd.adb (Check_Args): If condition is false, print the invoked
35025 comment before the usage.
35026 Gprcmd: Fail when command is not recognized.
35027 (Usage): Document command "prefix"
35029 * g-md5.adb (Digest): Process last block.
35030 (Update): Do not process last block. Store remaining characters and
35033 * g-md5.ads (Update): Document that several call to update are
35034 equivalent to one call with the concatenated string.
35035 (Context): Add fields to allow new Update behaviour.
35037 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
35038 defaulted to False.
35039 When May_Fail is True and no existing file can be found, return No_File.
35041 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
35044 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
35045 spec file name instead on the W line.
35047 2004-02-02 Robert Dewar <dewar@gnat.com>
35049 * ali.adb: Read and acquire info from new format restrictions lines
35051 * bcheck.adb: Add circuits for checking restrictions with parameters
35053 * bindgen.adb: Output dummy restrictions data
35054 To be changed later
35056 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
35057 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
35058 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
35059 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
35060 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
35062 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
35063 the warning message on access to possibly uninitialized variable S)
35064 Minor changes for new restrictions handling.
35066 * gnatbind.adb: Minor reformatting
35067 Minor changes for new restrictions handling
35068 Move circuit for -r processing here from bcheck (cleaner)
35070 * gnatcmd.adb, gnatlink.adb: Minor reformatting
35072 * lib-writ.adb: Output new format restrictions lines
35074 * lib-writ.ads: Document new R format lines for new restrictions
35077 * s-restri.ads/adb: New files
35079 * Makefile.rtl: Add entry for s-restri.ads/adb
35081 * par-ch3.adb: Fix bad error messages starting with upper case letter
35084 * restrict.adb: Major rewrite throughout for new restrictions handling
35085 Major point is to handle restrictions with parameters
35087 * restrict.ads: Major changes in interface to handle restrictions with
35088 parameters. Also generally simplifies setting of restrictions.
35090 * snames.ads/adb: New entry for proper handling of No_Requeue
35092 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
35093 restriction counting.
35094 Other minor changes for new restrictions handling
35096 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
35097 Restriction_Warnings now allows full parameter notation
35098 Major rewrite of Restrictions for new restrictions handling
35100 2004-02-02 Javier Miranda <miranda@gnat.com>
35102 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
35103 syntax rule for object renaming declarations.
35104 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
35105 component definitions.
35107 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
35109 (Array_Type_Declaration): Give support to access components. In addition
35110 it was also modified to reflect the name of the object in anonymous
35111 array types. The old code did not take into account that it is possible
35112 to have an unconstrained anonymous array with an initial value.
35113 (Check_Or_Process_Discriminants): Allow access discriminant in
35115 (Process_Discriminants): Allow access discriminant in non-limited types
35116 Initialize the new Access_Definition field in N_Object_Renaming_Decl
35117 node. Change Ada0Y to Ada 0Y in comments
35119 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
35120 equality operators.
35121 Change Ada0Y to Ada 0Y in comments
35123 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
35124 renamings Change Ada0Y to Ada 0Y in comments
35126 * sem_type.adb (Find_Unique_Type): Give support to the equality
35127 operators for universal access types
35128 Change Ada0Y to Ada 0Y in comments
35130 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
35132 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
35134 (N_Object_Renaming_Declaration): Addition of Access_Definition field
35135 Change Ada0Y to Ada 0Y in comments
35137 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
35138 component definition and object renaming nodes
35139 Change Ada0Y to Ada 0Y in comments
35141 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
35143 * restrict.adb: Use the new restriction identifier
35144 No_Requeue_Statements instead of the old No_Requeue for defining the
35145 restricted profile.
35147 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
35148 No_Requeue_Statements.
35150 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
35151 that supersedes the GNAT specific restriction No_Requeue. The later is
35152 kept for backward compatibility.
35154 2004-02-02 Ed Schonberg <schonberg@gnat.com>
35156 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
35157 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
35158 pragma and fix incorrect ones.
35160 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
35161 warning if the pragma is redundant.
35163 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
35165 * 5staprop.adb: Add missing 'constant' keywords.
35167 * Makefile.in: use consistent value for SYMLIB on
35168 platforms where libaddr2line is supported.
35170 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35172 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
35175 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
35177 * init.c (__gnat_install_handler): Setup an alternate stack for signal
35178 handlers in the environment thread. This allows proper propagation of
35179 an exception on stack overflows in this thread even when the builtin
35180 ABI stack-checking scheme is used without support for a stack reserve
35183 * utils.c (create_field_decl): Augment the head comment about bitfield
35184 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
35185 here, because the former is not accurate enough at this point.
35186 Let finish_record_type decide instead.
35187 Don't make a bitfield if the field is to be addressable.
35188 Always set a size for the field if the record is packed, to ensure the
35189 checks for bitfield creation are triggered.
35190 (finish_record_type): During last pass over the fields, clear
35191 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
35192 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
35193 from DECL_BIT_FIELD.
35195 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
35197 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
35198 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
35199 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
35201 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
35203 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
35205 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
35206 (ZCX_By_Default): Likewise.
35207 (Front_End_ZCX_Support): Likewise.
35209 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
35210 (Initialize_Lock): Mark Level unreferenced.
35211 (Sleep): Mark Reason unreferenced.
35212 (Timed_Sleep): Likewise.
35213 (Wakeup): Likewise.
35214 (Exit_Task): Use Result.
35215 (Check_No_Locks): Mark Self_ID unreferenced.
35217 * 5gtasinf.adb (New_Sproc): Make Attr constant.
35218 (Bound_Thread_Attributes): Make Sproc constant.
35219 (New_Bound_Thread_Attributes): Likewise.
35221 2004-01-26 Ed Schonberg <schonberg@gnat.com>
35223 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
35224 one-dimensional array an slice assignments, when component type is
35227 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
35228 component type is controlled, and control_actions are in effect, use
35229 TSS procedure rather than generating inline code.
35231 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
35232 arrays with controlled components.
35234 2004-01-26 Vincent Celier <celier@gnat.com>
35236 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
35237 command line for the non VMS case.
35239 * gnatlink.adb (Process_Binder_File): When building object file, if
35240 GNU linker is used, put all object paths between quotes, to prevent ld
35241 error when there are unusual characters (such as '!') in the paths.
35243 * Makefile.generic: When there are sources in Ada and the main is in
35244 C/C++, invoke gnatmake with -B, instead of -z.
35246 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
35247 from VMS_Conversion.
35248 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
35249 specification of argument file on the command line.
35251 2004-01-26 Bernard Banner <banner@gnat.com>
35253 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
35255 2004-01-26 Ed Schonberg <schonberg@gnat.com>
35257 * snames.adb: Update copyright notice.
35258 Add info on slice assignment for controlled arrays.
35260 2004-01-23 Robert Dewar <dewar@gnat.com>
35262 * exp_aggr.adb: Minor reformatting
35264 * exp_ch9.adb: Minor code clean up
35266 Fix bad character in comment
35269 * targparm.adb (Get_Target_Parameters): Give clean abort error on
35270 unexpected end of file, along with more detailed message.
35272 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35274 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
35277 * decl.c (copy_alias_set): New function.
35278 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
35280 2004-01-23 Doug Rupp <rupp@gnat.com>
35282 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
35283 lib$${file} in case subsequent character is not a separator.
35285 2004-01-23 Vincent Celier <celier@gnat.com>
35287 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
35288 when the GCC version is at least 3.
35290 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
35291 Remove all "Opt.", to prepare for opt split
35293 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
35294 Extends_All. Set to True when the project parsed is an extending all
35295 project. Fails for importing an extending all project only when the
35296 imported project is an extending all project.
35297 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
35298 depending on the value of Extends_All returned.
35300 * prj-proc.adb (Process): Check that no project shares its object
35301 directory with a project that extends it, directly or indirectly,
35302 including a virtual project.
35303 Check that no project extended by another project shares its object
35304 directory with another also extended project.
35306 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
35307 Kind = N_With_Clause
35309 * prj-tree.ads: Minor reformatting
35310 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
35312 2004-01-23 Ed Schonberg <schonberg@gnat.com>
35314 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
35315 applies to a type with an incomplete view, use full view in Name of
35316 clause, for consistency with uses of Get_Attribute_Definition_Clause.
35318 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
35320 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
35321 SCHED_RR, since other values are not supported by this policy.
35322 (Initialize): Move initialization of mutex attribute to package
35323 elaboration, to prevent early access to this variable.
35325 * Makefile.in: Remove mention of Makefile.adalib, unused.
35327 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
35328 1ssecsta.ads: Removed, unused.
35330 2004-01-21 Javier Miranda <miranda@gnat.com>
35332 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
35333 entity if already built in the current scope.
35335 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
35336 reminder in internal scopes. Required for nested limited aggregates.
35338 2004-01-21 Doug Rupp <rupp@gnat.com>
35340 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
35341 VMS. Replace all occurences of libgnat- and libgnarl- with
35342 libgnat$(hyphen) and libgnarl$(hyphen).
35343 Fixed shared library build problem on VMS.
35345 2004-01-21 Robert Dewar <dewar@gnat.com>
35347 * mlib-prj.adb: Minor reformatting
35349 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
35351 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
35352 'constant' keywords for declaration of pointers that are not modified.
35354 * exp_pakd.adb: Fix English in comment.
35356 2004-01-21 Ed Schonberg <schonberg@gnat.com>
35359 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
35360 copy all attributes of the parent, including the foreign language
35363 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
35366 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
35367 for 'delay until' statement.
35369 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
35371 * Make-lang.in: Replace $(docdir) with doc.
35372 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
35373 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
35374 to use consistent MAKEINFO rule.
35375 (ada.man, ada.srcman): Dummy entry.
35376 (ADA_INFOFILES): Define.
35377 (ada.info, ada.srcinfo): New rules.
35379 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
35381 * utils.c: Update copyright notice, missed in previous change.
35383 2004-01-19 Vincent Celier <celier@gnat.com>
35385 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
35386 args if Bind is True. Set First_ALI, if not already done.
35387 (Build_Library): For Stand Alone Libraries, extract from one ALI file
35388 an eventual --RTS switch, for gnatbind, and all backend switches +
35389 --RTS, for linking.
35391 2004-01-19 Robert Dewar <dewar@gnat.com>
35393 * sem_attr.adb, memtrack.adb: Minor reformatting
35395 2004-01-19 Ed Schonberg <schonberg@gnat.com>
35397 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
35398 that rename enumeration literals. This is properly done in sem_eval.
35400 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
35401 to functions that rename enumeration literals.
35403 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
35404 functions that rename enumeration literals.
35406 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
35408 * Make-lang.in (utils.o): Depend on target.h.
35409 * utils.c: Include target.h.
35410 (process_attributes): Use targetm.have_named_sections instead
35411 of ASM_OUTPUT_SECTION_NAME.
35413 2004-01-16 Andreas Jaeger <aj@suse.de>
35415 * Makefile.in: Add $(DESTDIR).
35417 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
35419 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
35420 also when not defining if a Size clause applies. That information is
35423 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
35425 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
35426 symbolic links for the shared gnat run time when needed.
35428 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
35430 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
35431 for writing, and terminate with an error message if not.
35433 2004-01-15 Ed Schonberg <schonberg@gnat.com>
35435 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
35436 warning on an access to subprogram in an instance, when the target
35437 type is declared in the same generic unit.
35438 (Eval_Attribute): If 'access is known to fail accessibility check,
35439 rewrite as a raise statement.
35441 2004-01-15 GNAT Script <nobody@gnat.com>
35443 * Make-lang.in: Makefile automatically updated
35445 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
35447 * Make-lang.in (ada.srcextra): Dummy entry.
35449 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
35451 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
35453 2004-01-13 Ed Schonberg <schonberg@gnat.com>
35455 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
35456 components that are initialized with aggregates.
35458 2004-01-13 Vincent Celier <celier@gnat.com>
35460 * gnatlink.adb (Process_Binder_File): To find directory of shared
35461 libgcc, if "gcc-lib" is not a subdirectory, look for the last
35462 subdirectory "lib" in the path of the shared libgnat or libgnarl.
35464 * make.adb (Gnatmake): If GCC version is at least 3, link with
35465 -shared-libgcc, when there is at least one shared library project.
35467 * opt.ads (GCC_Version): New integer constant.
35469 * adaint.c (get_gcc_version): New function.
35471 2004-01-13 Robert Dewar <dewar@gnat.com>
35473 * sem_dist.adb, sem_res.adb, sem_util.adb,
35474 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
35475 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
35477 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
35479 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
35480 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
35483 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
35485 * misc.c: Remove trailing spaces.
35486 Update copyright notice missed in previous change.
35489 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
35492 * Makefile.generic: Update copyright.
35493 Add license notice.
35495 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
35496 of prefix/share/make.
35498 * Makefile.prolog: Update copyright.
35499 Add license notice.
35501 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
35503 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
35504 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
35505 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
35508 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
35511 2004-01-12 Javier Miranda <miranda@gnat.com>
35513 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
35514 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
35515 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
35516 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
35517 Component_Definition node.
35519 2004-01-12 Ed Falis <falis@gnat.com>
35521 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
35523 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
35525 * link.c: Change default libgnat kind to STATIC for FreeBSD.
35527 2004-01-12 Bernard Banner <banner@gnat.com>
35529 * Makefile.in: map 86numaux to a-numaux for x86_64
35531 2004-01-12 Ed Schonberg <schonberg@gnat.com>
35533 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
35534 generated to rename a generic actual, go to the actual itself, the
35535 subtype is not a user-visible entity.
35537 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
35538 part is a private subtype, reset the visibility of its full view, if
35539 any, to be consistent.
35542 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
35543 to use a generic package G as a formal package for another generic
35546 2004-01-12 Robert Dewar <dewar@gnat.com>
35548 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
35550 * usage.adb: Remove mention of obsolete -gnatwb switch
35551 Noticed during code reading
35553 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
35555 * 1ssecsta.adb: Minor changes for -gnatwa warnings
35557 2004-01-12 GNAT Script <nobody@gnat.com>
35559 * Make-lang.in: Makefile automatically updated
35561 2004-01-09 Mark Mitchell <mark@codesourcery.com>
35563 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
35565 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
35567 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
35569 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
35571 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
35572 Update comment and copyright date.
35573 * stamp-xgnatug: Delete.
35575 2004-01-05 Robert Dewar <dewar@gnat.com>
35577 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
35578 be modified by the binder generated main program if the -D switch is
35581 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
35582 imported functions (since now we expect this to be done for imported
35585 * 5vtaprop.adb: Add several ??? for sections requiring more comments
35586 Minor reformatting throughout
35588 * 5zinit.adb: Minor reformatting
35589 Add 2004 to copyright date
35590 Minor changes to avoid -gnatwa warnings
35591 Correct some instances of using OR instead of OR ELSE (noted while
35592 doing reformatting)
35594 * sprint.adb: Minor updates to avoid -gnatwa warnings
35596 * s-secsta.ads, s-secsta.adb:
35597 (SS_Get_Max): New function to obtain high water mark for ss stack
35598 Default_Secondary_Stack is not a constant since it may be modified by
35599 the binder generated main program if the -D switch is used.
35601 * switch-b.adb: New -Dnnn switch for binder
35604 Make -gnatg imply all warnings currently in -gnatwa
35606 * vms_conv.adb: Minor reformatting
35607 Add 2004 to copyright notice
35608 Add 2004 to printed copyright notice
35610 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
35611 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
35612 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
35613 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
35614 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
35615 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
35616 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
35617 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
35618 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
35619 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
35620 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
35621 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
35622 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
35623 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
35624 checks.adb, clean.adb, cstand.adb, einfo.ads,
35625 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
35626 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
35627 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
35628 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
35629 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
35630 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
35631 Minor reformatting and code clean ups.
35632 Minor changes to prevent -gnatwa warnings
35634 * ali.adb: Minor reformatting and cleanup of code
35635 Acquire new SS indication of secondary stack use from ali files
35637 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
35638 (since now we expect this to be done for imported functions)
35640 * bindgen.adb: Generate call to modify default secondary stack size if
35643 * bindusg.adb: Add line for new -D switch
35645 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
35646 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
35647 Add circuitry for both records and arrays to avoid gigi
35648 processing if the type involved has non-bit-aligned components
35650 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
35651 N_String_Literal node always references an E_String_Literal_Subtype
35652 entity. This may not be true in the future.
35653 (Possible_Bit_Aligned_Component): Move processing of
35654 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
35656 * exp_ch6.adb (Expand_Thread_Body): Pick up
35657 Default_Secondary_Stack_Size as variable so that we get value modified
35658 by possible -Dnnn binder parameter.
35660 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
35661 (Type_May_Have_Bit_Aligned_Components): New function.
35663 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
35664 (Type_May_Have_Bit_Aligned_Components): New function.
35666 * fe.h: (Set_Identifier_Casing): Fix prototype.
35667 Add declaration for Sem_Elim.Eliminate_Error_Msg.
35668 Minor reformatting.
35670 * freeze.adb (Freeze_Entity): Add RM reference to error message about
35671 importing constant atomic/volatile objects.
35672 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
35673 unless explicit Pure_Function pragma given, to avoid insidious bug of
35674 call to non-pure imported function getting eliminated.
35676 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
35677 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
35678 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
35679 Add 2004 to printed copyright notice
35681 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
35684 * Makefile.rtl: Add entry for g-sestin.o
35685 g-sestin.ads: New file.
35687 * mdll.adb: Minor changes to avoid -gnatwa warnings
35689 * mlib-tgt.adb: Minor reformatting
35691 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
35692 New switch Sec_Stack_Used (GNAT, GNATBIND)
35693 Make Default_Secondary_Stack_Size a variable instead of a constant,
35694 so that it can be modified by the new -Dnnn bind switch.
35696 * rtsfind.adb (Load_Fail): Give full error message in configurable
35697 run-time mode if all_errors mode is set. This was not done in the case
35698 of a file not found, which was an oversight.
35699 Note if secondary stack unit is used by compiler.
35701 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
35702 ineffective elaborate all pragmas on non-visible packages (this
35703 happened when a renamed subprogram was called). Now the elaborate all
35704 always goes on the package containing the renaming rather than the one
35705 containing the renamed subprogram.
35707 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
35708 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
35710 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
35711 has an Etype that references an E_String_Literal.
35712 (Eval_String_Literal): Avoid assumption that N_String_Literal node
35713 always references an E_String_Literal_Subtype entity. This may not
35714 be true in the future.
35716 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
35719 * sem_res.adb (Resolve): Specialize msg for function name used in proc
35722 2004-01-05 Ed Falis <falis@gnat.com>
35724 * g-debuti.adb: Replaced direct boolean operator with short-circuit
35727 2004-01-05 Vincent Celier <celier@gnat.com>
35729 * bld.adb: Minor comment updates
35730 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
35733 * make.adb (Gnatmake): Special process for files to compile/check when
35734 -B is specified. Fail when there are only foreign mains in attribute
35735 Main of the project file and -B is not specified. Do not skip bind/link
35736 steps when -B is specified.
35738 * makeusg.adb: Document new switch -B
35740 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
35742 * switch-m.adb: (Scan_Make_Switches): Process -B switch
35744 * vms_data.ads: Add new GNAT PRETTY qualifier
35745 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
35747 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35749 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
35752 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
35753 Set_Identifier_Casing.
35755 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
35756 has size that overflows.
35758 2004-01-05 Gary Dismukes <dismukes@gnat.com>
35760 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
35761 -gnatwa warning on static condition.
35763 2004-01-05 Doug Rupp <rupp@gnat.com>
35765 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
35767 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
35769 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
35770 all attributes, including read-only attribute.
35772 2004-01-05 Pascal Obry <obry@gnat.com>
35774 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
35775 library naming scheme.
35777 * mlib-prj.adb (Build_Library): Generate different names for the static
35778 or dynamic version of the GNAT runtime. This is needed to support the
35779 new shared library naming scheme.
35780 (Process_Binder_File): Add detection of shared library in binder file
35781 based on the new naming scheme.
35783 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
35784 scheme for the shared runtime libraries.
35787 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
35789 (install-gnatlib): Do not create symlinks for shared libraries.
35790 (gnatlib-shared-default): Idem.
35791 (gnatlib-shared-dual-win32): New target. Not used for now as the
35792 auto-import feature does not support arrays/records.
35793 (gnatlib-shared-win32): Do not create copy for the shared libraries.
35794 (gnatlib-shared-vms): Fix shared runtime libraries names.
35796 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
35797 dependent runtime shared library name.
35799 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
35801 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
35804 2004-01-05 Ed Schonberg <schonberg@gnat.com>
35806 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
35807 protected objects when allocator has a subtype indication, not a
35808 qualified expression. Note that qualified expressions may have to be
35809 checked when limited aggregates are implemented.
35811 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
35812 pure, emit warning.
35813 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
35814 subprogram is imported, remove warning.
35816 2004-01-05 Geert Bosch <bosch@gnat.com>
35818 * s-poosiz.adb: Update copyright notice.
35819 (Allocate): Use Task_Lock to protect against concurrent access.
35820 (Deallocate): Likewise.
35822 2004-01-05 Joel Brobecker <brobecker@gnat.com>
35824 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
35827 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
35829 * gnat_ug.texi: Force a CVS commit by updating copyright.
35830 * gnat_ug_vxw.texi: Regenerate.
35831 * gnat_ug_wnt.texi: Regenerate.
35832 * gnat_ug_vms.texi: Regenerate.
35833 * gnat_ug_unx.texi: Regenerate.
35835 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
35837 * trans.c: Remove uses of "register" specifier in
35838 declarations of local variables.
35840 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
35842 * stamp-xgnatug: New stamp file.
35843 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
35844 (ada/doctools/xgnatug): Add $(build_exeext).
35845 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
35846 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
35848 2003-12-17 Ed Falis <falis@gnat.com>
35850 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
35853 * a-exextr.adb: Add context clause for
35854 Ada.Exceptions.Last_Chance_Handler.
35856 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
35858 * cstand.adb (Create_Standard): Change the way how the declaration of
35859 the Duration type is created (making it the same way as it is for all
35860 the other standard types).
35862 2003-12-17 Robert Dewar <dewar@gnat.com>
35864 * s-crtl.ads: Fix header format
35865 Change Pure to Preelaborate
35867 2003-12-17 Ed Schonberg <schonberg@gnat.com>
35869 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
35870 the expression type only if it is declared in the current unit.
35872 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
35873 are universal and already analyzed, as can occur in constrained
35874 subcomponents that depend on discriminants, when one constraint is a
35877 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
35878 type Any_Fixed is legal as the argument of a conversion, if only one
35879 fixed-point type is in context.
35881 2003-12-17 GNAT Script <nobody@gnat.com>
35883 * Make-lang.in: Makefile automatically updated
35885 2003-12-15 Robert Dewar <dewar@gnat.com>
35887 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
35890 2003-12-15 Vincent Celier <celier@gnat.com>
35892 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
35893 (Gnatchop): Do not set failure status when reporting the number of
35896 2003-12-15 Doug Rupp <rupp@gnat.com>
35898 * s-ctrl.ads: New file.
35900 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
35902 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
35903 (GNATBIND_OBJS): Add ada/s-crtl.o.
35905 * Makefile.in [VMS]: Clean up ifeq rules.
35907 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
35908 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
35909 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
35910 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
35911 s-tasdeb.adb: Update copyright.
35912 Import System.CRTL.
35913 Make minor modifications to use System.CRTL declared functions instead
35914 of importing locally.
35916 2003-12-15 GNAT Script <nobody@gnat.com>
35918 * Make-lang.in: Makefile automatically updated
35920 2003-12-11 Ed Falis <falis@gnat.com>
35922 * 5zinit.adb: Clean up.
35924 * 5zintman.adb (Notify_Exception): replaced case statement with a call
35925 to __gnat_map_signal, imported from init.c to support
35926 signal -> exception mappings that depend on the vxWorks version.
35929 Created and exported __gnat_map_signal to support signal -> exception
35930 mapping that is dependent on the VxWorks version.
35931 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
35933 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
35935 * 5wosinte.ads: Link with -mthreads switch.
35937 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
35939 * init.c (__gnat_install_handler [NetBSD]): Set
35940 __gnat_handler_installed, as done on all other platforms.
35941 Remove duplicated code.
35943 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
35945 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
35947 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
35949 * sinfo.ads: Fix inconsistent example code in comment.
35951 2003-12-11 Robert Dewar <dewar@gnat.com>
35953 * a-tiinau.adb: Add a couple of comments
35955 * sem_ch3.adb: Minor reformatting
35958 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
35959 Minor reformatting throughout
35961 2003-12-11 Ed Schonberg <schonberg@gnat.com>
35963 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
35964 bounds of a loop, create a separate block in order to generate proper
35965 cleanup actions to prevent memory leaks.
35967 * sem_res.adb (Resolve_Call): After a call to
35968 Establish_Transient_Scope, the call may be rewritten and relocated, in
35969 which case no further processing is needed.
35971 * sem_util.adb: (Wrong_Type): Refine previous fix.
35972 Fixes ACATS regressions.
35975 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
35978 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
35980 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
35981 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
35984 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
35987 2003-12-08 Robert Dewar <dewar@gnat.com>
35989 * 7sintman.adb: Minor reformatting
35991 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
35992 standard linker options to get standard libraries linked. We now plan
35993 to provide dummy versions of these libraries to match the appropriate
35994 configurable run-time (e.g. if a library is not needed at all, provide
35995 a dummy empty library).
35997 * targparm.ads: Configurable_Run_Time mode no longer affects linker
35998 options (-L parameters and standard libraries). What we plan to do is
35999 to provide dummy libraries where the libraries are not required.
36001 * gnatbind.adb: Minor comment improvement
36003 2003-12-08 Javier Miranda <miranda@gnat.com>
36005 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
36006 aggregate in the parent. Otherwise constants with limited aggregates
36007 are not supported. Add new formal to pass the component type (Ctype).
36008 It is required to call the corresponding IP subprogram in case of
36009 default initialized components.
36010 (Gen_Assign): In case of default-initialized component, generate a
36011 call to the IP subprogram associated with the component.
36012 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
36013 of aggregate with default initialized components.
36014 (Has_Default_Init_Comps): Improve implementation to recursively check
36015 all the present expressions.
36017 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
36018 to indicate that the initialization call corresponds to a
36019 default-initialized component of an aggregate.
36020 In case of default initialized aggregate with tasks this parameter is
36021 used to generate a null string (this is just a workaround that must be
36022 improved later). In case of discriminants, this parameter is used to
36023 generate a selected component node that gives access to the discriminant
36026 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
36027 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
36028 allocated aggregates with default-initialized components.
36030 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
36031 the box notation is used in positional aggregates.
36033 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
36035 * lib.ads: Fix typo in comment
36037 2003-12-08 Vincent Celier <celier@gnat.com>
36039 * prj.adb (Project_Empty): New component Unkept_Comments
36040 (Scan): Remove procedure; moved to Prj.Err.
36042 * prj.ads (Project_Data): New Boolean component Unkept_Comments
36043 (Scan): Remove procedure; moved to Prj.Err.
36045 * prj-dect.adb: Manage comments for the different declarations.
36047 * prj-part.adb (With_Record): New component Node
36048 (Parse): New Boolean parameter Store_Comments, defaulted to False.
36049 Set the scanner to return ends of line and comments as tokens, if
36050 Store_Comments is True.
36051 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
36052 comments are associated with these nodes. Store the node IDs in the
36054 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
36056 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
36057 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
36058 current project. Call Tree.Restore afterwards. Set the various nodes
36059 for comment storage (Next_End, End_Of_Line, Previous_Line,
36062 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
36063 defaulted to False.
36065 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
36066 to False. When Truncated is True, truncate the string, never go to the
36068 (Write_End_Of_Line_Comment): New procedure
36069 (Print): Process comments for nodes N_With_Clause,
36070 N_Package_Declaration, N_String_Type_Declaration,
36071 N_Attribute_Declaration, N_Typed_Variable_Declaration,
36072 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
36073 Process nodes N_Comment.
36075 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
36076 without comments and there are some comments, set the flag
36077 Unkept_Comments to True.
36078 (Scan): If there are comments, set the flag Unkept_Comments to True and
36079 clear the comments.
36080 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
36081 (Next_End_Nodes: New table
36082 (Comment_Zones_Of): New function
36083 (Scan): New procedure; moved from Prj. Accumulate comments in the
36084 Comments table and set end of line comments, comments after, after end
36086 (Add_Comments): New procedure
36087 (Save, Restore, Seset_State): New procedures
36088 (There_Are_Unkept_Comments): New function
36089 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
36090 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
36092 (First_Comment_After, First_Comment_After_End): New functions
36093 (First_Comment_Before, First_Comment_Before_End): New functions
36094 (Next_Comment): New function
36095 (End_Of_Line_Comment, Follows_Empty_Line,
36096 Is_Followed_By_Empty_Line): New functions
36097 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
36098 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
36099 (Set_Next_Comment): New procedure
36100 (Default_Project_Node): Associate comment before if the node can store
36103 * scans.ads (Token_Type): New enumeration value Tok_Comment
36104 (Comment_Id): New global variable
36106 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
36107 defaulted to False.
36108 (Scan): Store position of start of comment. If comments are tokens, set
36109 Comment_Id and set Token to Tok_Comment when scanning a comment.
36110 (Set_Comment_As_Token): New procedure
36112 * sinput-p.adb: Update Copyright notice
36113 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
36114 that no longer exists.
36116 2003-12-08 Javier Miranda <miranda@gnat.com>
36118 * sem_aggr.adb: Add dependence on Exp_Tss package
36119 Correct typo in comment
36120 (Resolve_Aggregate): In case of array aggregates set the estimated
36121 type of the aggregate before calling resolve. This is needed to know
36122 the name of the corresponding IP in case of limited array aggregates.
36123 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
36124 in case of default initialized array components.
36126 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
36127 types. Required to give support to limited aggregates in generic
36130 2003-12-08 Ed Schonberg <schonberg@gnat.com>
36132 * sem_ch3.adb (Check_Initialization): For legality purposes, an
36133 inlined body functions like an instantiation.
36134 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
36135 until bounds are analyzed, to diagnose premature use of type.
36137 * sem_util.adb (Wrong_Type): Improve error message when the type of
36138 the expression is used prematurely.
36140 2003-12-08 GNAT Script <nobody@gnat.com>
36142 * Make-lang.in: Makefile automatically updated
36144 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
36146 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
36147 they are automatically generated by Make-lang.in and cause nothing but
36148 maintenance troubles.
36150 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
36152 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
36153 version of this unit).
36155 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
36157 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
36158 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
36159 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
36160 the body of System.Interrupt_Management common to several targets.
36161 Update copyright notice when appropriate.
36163 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
36166 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
36167 to ensure that the kernel fills in the interrupted context structure
36168 before calling a signal handler, which is necessary to be able to
36169 unwind past it. Update the copyright notice.
36171 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
36173 * a-elchha.ads: New file.
36175 * a-elchha.adb: New default last chance handler. Contents taken from
36176 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
36178 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
36179 is moved to a-elchha.adb to provide a target-independent default last
36182 * Makefile.rtl: Add a-elchha.o
36184 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
36186 2003-12-05 Ed Schonberg <schonberg@gnat.com>
36188 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
36189 declared in an instance, do not inline the call if the instance is not
36190 frozen yet, to prevent order of elaboration problems.
36192 * sem_prag.adb: Add comments for previous fix.
36194 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
36196 * g-table.adb: Use the right variable in Set_Item.
36197 Update copyright notice.
36199 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
36201 * Makefile.in: Remove unused rules.
36203 2003-12-05 Vincent Celier <celier@gnat.com>
36205 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
36206 -nostdlib. Not needed here after all.
36208 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
36211 * adaint.h, adaint.c, g-os_lib.ads:
36212 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
36213 on some platforms (including FreeBSD), it is a 64 bit value.
36214 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
36216 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
36218 * gnatvsn.ads (Library_Version): Now contain only the relevant
36220 (Verbose_Library_Version): New constant.
36222 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
36223 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
36224 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
36226 * gnatlbr.adb: Clean up: replace Library_Version by
36227 Verbose_Library_Version.
36229 * make.adb, lib-writ.adb, exp_attr.adb:
36230 Clean up: replace Library_Version by Verbose_Library_Version.
36232 * 5lintman.adb: Removed.
36235 Update and simplify computation of LIBRARY_VERSION.
36236 Fix computation of GSMATCH_VERSION.
36237 5lintman.adb is no longer used: replaced by 7sintman.adb.
36239 2003-12-03 Robert Dewar <dewar@gnat.com>
36242 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
36243 name. Modified to consider small non-bit-packed arrays as troublesome
36244 and in need of component-by-component assigment expansion.
36246 2003-12-03 Vincent Celier <celier@gnat.com>
36248 * lang-specs.h: Process nostdlib as nostdinc
36250 * back_end.adb: Update Copyright notice
36251 (Scan_Compiler_Arguments): Process -nostdlib directly.
36253 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
36256 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
36257 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
36258 included in HIE_NONE_TARGET_PAIRS.
36260 2003-12-03 Ed Schonberg <schonberg@gnat.com>
36263 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
36264 is legal in an instance, because legality is cheched in the template.
36267 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
36268 appplied to an unchecked conversion of a formal parameter.
36271 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
36274 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
36276 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
36277 routines. The second one is new functionality to deal with backtracing
36278 through signal handlers.
36279 (unwind): Split into the two separate subroutines above.
36280 Update the documentation, and deal properly with sizeof (REG) different
36281 from sizeof (void*).
36283 2003-12-01 Nicolas Setton <setton@act-europe.fr>
36285 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
36286 so that the debugger can reliably access the value of the parameter,
36287 and therefore is able to display the exception name when an exception
36288 breakpoint is reached.
36290 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
36292 * fmap.adb: Fix typo in warning message.
36294 * g-socket.ads, g-socket.adb: Make Free a visible instance of
36295 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
36297 2003-12-01 Vincent Celier <celier@gnat.com>
36299 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
36301 (Build_Library): Get the switches only if Default_Switches is declared
36304 2003-12-01 Ed Schonberg <schonberg@gnat.com>
36306 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
36307 actuals that are indexed components, reanalyze actual to ensure that
36308 packed array references are properly expanded.
36310 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
36311 attempted assignment to a discriminant.
36313 2003-12-01 Robert Dewar <dewar@gnat.com>
36315 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
36318 * switch-c.adb: Minor reformatting of comments
36320 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
36322 * Makefile.in: Clean ups.
36324 2003-12-01 GNAT Script <nobody@gnat.com>
36326 * Make-lang.in: Makefile automatically updated
36328 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
36330 * 5wsystem.ads: Disable zero cost exception, not ready yet.
36332 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
36334 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
36335 to force serialization.
36337 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
36339 * g-socket.ads, g-socket.adb:
36340 Clarify documentation of function Stream. Introduce a Free procedure
36341 to release the returned Stream once it becomes unused.
36343 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
36345 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
36347 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
36348 since NT 4 cannot handle timeout values that are too large,
36349 e.g. DWORD'Last - 1.
36351 2003-11-26 Ed Schonberg <schonberg@gnat.com>
36354 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
36355 in procedure calls and whose expansion must be deferred.
36357 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
36361 (Build_Derived_Array_Type): Create operator for unconstrained type
36362 if ancestor is unconstrained.
36364 2003-11-26 Vincent Celier <celier@gnat.com>
36366 * make.adb (Project_Object_Directory): New global variable
36367 (Change_To_Object_Directory): New procedure
36368 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
36369 of Change_Dir directly. Do not change working directory to object
36370 directory of main project after each compilation.
36371 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
36373 Change to object directory of main project before binding step.
36374 (Initialize): Initialize Project_Object_Directory to No_Project
36377 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
36378 binding a Stand-Alone Library.
36380 * output.adb: Update Copyright notice
36381 (Write_Char): Output buffer when full
36383 2003-11-26 Robert Dewar <dewar@gnat.com>
36385 * sem_ch13.adb: (Check_Size): Reset size if size is too small
36388 (Check_Size): Fix documentation to include bit-packed array case
36390 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
36392 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
36394 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
36396 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
36399 * utils.c (init_gigi_decls): Change name of built-in setjmp to
36400 __builtin_setjmp, since this is apparently needed by recent
36403 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36405 * adadecode.c: Only include ctype.h if not IN_GCC.
36406 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
36408 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
36411 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
36412 signals and interrupts.
36414 * 5zintman.ads: New File.
36416 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
36417 add exception signals to the set of unmasked signals.
36420 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
36421 between signals and interrupts.
36422 Add to Unblocked_Signal_Mask the set of signals that are in
36426 Adding a check to see whether the Interrupt_ID we want to unmask is in
36427 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
36428 reason is that the index type of the Keep_Unmasked array is not always
36429 Interrupt_ID; it may be a subtype of Interrupt_ID.
36431 2003-11-24 Gary Dismukes <dismukes@gnat.com>
36434 (Remove_Side_Effects): Condition constantness of object created for a
36435 an unchecked type conversion on the constantness of the expression
36436 to ensure the correct value for 'Constrained when passing components
36437 of view-converted class-wide objects.
36439 2003-11-24 Robert Dewar <dewar@gnat.com>
36441 * par-load.adb (Load): Improve handling of misspelled and missing units
36442 Removes several cases of compilation abandoned messages
36444 * lib.adb: (Remove_Unit): New procedure
36446 * lib.ads: (Remove_Unit): New procedure
36448 * lib-load.adb: Minor reformatting
36450 2003-11-24 Vincent Celier <celier@gnat.com>
36453 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
36454 (Marking_Label): Label to mark processed source files. Incremented for
36456 (Gnatmake): Increase Marking_Labet for each executable
36457 (Is_Marked): Compare against marking label
36458 (Mark): Mark with marking label
36460 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
36463 Move the declaration of the TSD for System.Threads to System.Soft_Links.
36466 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
36467 (rts-cert): build a single relocatable object for the run-time lib.
36470 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
36473 Use gnatls rather than gcc to obtain the location of GNAT RTL for
36476 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
36478 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
36479 can not use it as before (that is, as a variable) when dumping it into
36480 the tree file. Add a local variable to store the result of this
36481 function and to be used as the string to be written into the tree.
36483 * scn.adb (Initialize_Scanner): Add comments explaining the recent
36486 * sinput.adb (Source_First, Source_Last): In case of
36487 Internal_Source_File, replace returning attributes of
36488 Internal_Source_Ptr (which is wrong) with returning attributes of
36491 2003-11-24 Ed Schonberg <schonberg@gnat.com>
36494 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
36495 used for implicit concatenation operators.
36499 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
36500 task bodies that are in the scope of a Suppress pragma.
36501 (Check_A Call): Use the flag to prevent spurious elaboration checks.
36503 * sinfo.ads, sinfo.adb:
36504 New flag No_Elaboration_Check on function/procedure calls, to properly
36505 suppress checks on calls in task bodies that are within a local suppress
36509 (Expand_Concatenate_Other): Use the proper integer type for the
36510 expression for the upper bound, to avoid universal_integer computations
36513 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
36515 * .cvsignore: Delete.
36517 2003-11-21 Andreas Schwab <schwab@suse.de>
36519 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
36521 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
36523 * 5wsystem.ads: Enable zero cost exception.
36525 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
36527 * 5ztiitho.adb: Remove an unreferenced variable.
36529 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
36531 * adaint.c: For FreeBSD, use mkstemp.
36533 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
36535 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
36537 2003-11-21 Robert Dewar <dewar@gnat.com>
36539 * bld.adb: Remove useless USE of gnatvsn
36541 * gnatchop.adb: Minor reformatting
36542 Clean up version handling to be more consistent
36544 * gnatxref.adb: Minor reformatting
36546 * gprcmd.adb: Minor reformatting
36547 Fix output of copyright to be more consistent with other tools
36549 2003-11-21 Vincent Celier <celier@gnat.com>
36551 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
36553 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
36555 * atree.adb (Initialize): Add initializations for global variables
36556 used in New_Copy_Tree.
36558 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
36559 Internal_Source_File as the actual).
36560 Put the set of statements creating Any_Character before the set of
36561 statements creating Any_Array to have Any_Character fully initialized
36562 when it is used in creating Any_Array.
36564 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
36565 not call Scan in case if the actual is Internal_Source_File
36566 Add 2003 to copyright note.
36568 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
36569 processing Internal_Source_File.
36571 * types.ads: Add the constant Internal_Source_File representing the
36572 source buffer for artificial source-code-like strings created within
36573 the compiler (the definition of Source_File_Index is changed).
36575 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
36577 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
36578 56system.ads: New file, FreeBSD version.
36580 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
36582 * Make-lang.in (ada.extraclean): Delete.
36584 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
36586 * gnatmem.adb: Clean up verbose output.
36588 * gprcmd.adb: Change copyright to FSF.
36590 2003-11-19 Vincent Celier <celier@gnat.com>
36592 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
36593 and Version (ignored).
36595 * symbols.ads: (Policy): New type
36596 (Initialize): New parameter Reference, Symbol_Policy and
36598 Remove parameter Force.
36599 Minor reformatting.
36601 * snames.ads, snames.adbadb: New standard names
36602 Library_Reference_Symbol_File and Library_Symbol_Policy
36605 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
36609 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
36611 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
36613 * prj.adb: (Project_Empty): New component Symbol_Data
36615 * prj.ads: (Policy, Symbol_Record): New types
36616 (Project_Data): New component Symbol_Data
36619 New attributes Library_Symbol_File, Library_Symbol_Policy and
36620 Library_Reference_Symbol_File.
36623 (Ada_Check): When project is a Stand-Alone library project, process
36624 attribute Library_Symbol_File, Library_Symbol_Policy and
36625 Library_Reference_Symbol_File.
36627 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
36628 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
36629 5sml-tgt.adb (Build_Dynamic_Library): New parameter
36630 Symbol_Data (ignored).
36632 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
36633 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
36634 functions Option_File_Name and Version_String. Set new options of
36635 gnatsym related to symbol file, symbol policy and reference symbol
36639 Extensive modifications to take into account the reference symbol file,
36640 the symbol policy, the library version and to put in the symbol file the
36641 minor and major IDs.
36643 * bld.adb (Process_Declarative_Items): Put second argument of
36644 gprcmd to_absolute between single quotes, to avoid problems with
36647 * bld-io.adb: Update Copyright notice.
36648 (Flush): Remove last character of a line, if it is a back slash, to
36649 avoid make problems.
36652 Implement new scheme with reference symbol file and symbol policy.
36654 * g-os_lib.ads: (Is_Directory): Clarify comment
36656 2003-11-19 Robert Dewar <dewar@gnat.com>
36658 * atree.adb: Move New_Copy_Tree global variables to head of package
36660 * errout.adb: Minor reformatting
36662 2003-11-19 Javier Miranda <miranda@gnat.com>
36664 * sem_ch4.adb: (Diagnose_Call): Improve error message.
36665 Add reference to Ada0Y (AI-50217)
36667 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
36668 sem_util.adb: Add reference to AI-50217
36670 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
36672 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
36674 * sem_aggr.adb: Complete documentation of AI-287 changes
36676 * par-ch4.adb: Document previous changes.
36678 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
36679 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
36682 * exp_aggr.adb: Add references to AI-287 in previous changes
36684 2003-11-19 Ed Schonberg <schonberg@gnat.com>
36687 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
36688 in the rewriting is the result of an inlined call.
36690 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
36691 parameter is a type conversion, use original node to construct the
36692 post-call assignment, because expression may have been rewritten, e.g.
36693 if it is a packed array.
36696 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
36697 body, just as it is in an instance.
36698 Categorization routines
36700 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
36701 Instantiate_Object): Set proper sloc reference for message on missing
36704 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
36706 * Makefile.in: Add FreeBSD libgnat pairs.
36708 * usage.adb: Fix typo in usage message.
36710 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
36712 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
36713 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
36714 pragma Thread_Body.
36715 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
36717 * s-thread.adb: This file is now a dummy implementation of
36720 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
36722 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
36724 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
36726 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
36727 instanciation references in the parent type description.
36729 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36731 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
36733 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
36734 TYPE_PRECISION directly from esize.
36736 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
36739 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
36741 * init.c: Initialization routines for FreeBSD
36743 * link.c: Link info for FreeBSD
36745 * sysdep.c: Add the case of FreeBSD
36747 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
36749 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
36750 already called in System.Threads.
36752 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
36753 environment task, as it has been moved to System.Threads.Initialization.
36755 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
36757 * adaint.c (__gnatlib_install_locks): Only reference
36758 __gnat_install_locks on VMS, since other platforms can avoid using
36759 --enable-threads=gnat
36761 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36763 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
36765 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
36766 TYPE_PACKED_ARRAY_TYPE_P.
36767 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
36769 Part of PR ada/12806
36770 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
36771 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
36773 2003-11-17 Vincent Celier <celier@gnat.com>
36775 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
36777 Do not set exit status to Failure when Warning is True.
36778 (Gnatchop): Make errors "no compilation units found" and
36779 "no source files written" warnings only.
36781 * make.adb (Gnatmake): When using a project file, set
36782 Look_In_Primary_Dir to False.
36783 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
36784 and Local_Configuration_Pragmas in the project where they are declared
36785 not an extending project which might have inherited them.
36787 * osint.adb (Locate_File): If Name is already an absolute path, do not
36788 look for a directory.
36790 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
36791 -gnats (Check_Syntax) is used, issue only a warning, not an error.
36793 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
36794 in objects of type Variable_Value.
36796 * prj.ads: (Variable_Value): New component Project
36798 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
36799 is in a project extended by Project.
36801 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
36802 Project of Variable_Values to this new parameter value.
36803 (Expression): Set component Project of Variable_Values.
36804 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
36805 Set the component Project in array elements.
36807 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
36809 * errout.adb: (Initialize): Add initialization for error nodes.
36811 * sem_ch12.adb (Initialize): Add missing initializations for
36812 Exchanged_Views and Hidden_Entities.
36814 2003-11-17 Ed Schonberg <schonberg@gnat.com>
36816 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
36817 already instantiated tree for use in subsequent inlining.
36818 (Analyze_Associations, Instantiate_Formal_Subprogram,
36819 Instantiate_Object): improve error message for mismatch in
36822 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
36823 instantiations of subprograms declared in instances.
36825 2003-11-17 Javier Miranda <miranda@gnat.com>
36827 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
36828 executed only under the Extensions_Allowed flag.
36830 2003-11-17 Robert Dewar <dewar@gnat.com>
36832 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
36834 (Address_Image): Fix bug of returning 0x instead of 0x0
36835 Minor reformatting (function specs).
36837 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
36838 (missed case of 33-63)
36840 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
36842 * s-thread.adb: Add comments for pragma Restriction
36844 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
36845 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
36847 2003-11-17 Ed Falis <falis@gnat.com>
36849 * s-thread.adb: Added No_Tasking restriction for this implementation.
36851 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
36853 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
36854 instanciation references in the parent type description.
36856 2003-11-17 GNAT Script <nobody@gnat.com>
36858 * Make-lang.in: Makefile automatically updated
36860 2003-11-16 Jason Merrill <jason@redhat.com>
36862 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
36863 and TAGS files that include them for each front end.
36865 2003-11-14 Andreas Jaeger <aj@suse.de>
36867 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
36868 is the canonical version.
36869 * misc.c (gnat_handle_option): Likewise.
36871 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
36873 * 5nsystem.ads: New file for x86_64-linux-gnu.
36875 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
36877 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
36879 * comperr.adb: Fix logic in previous change.
36881 2003-11-13 Vincent Celier <celier@gnat.com>
36883 * 5bml-tgt.adb (Build_Dynamic_Library): Use
36884 Osint.Include_Dir_Default_Prefix instead of
36885 Sdefault.Include_Dir_Default_Name.
36887 * gnatlbr.adb: Update Copyright notice
36888 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
36889 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
36890 instead of Sdefault.Object_Dir_Default_Name
36893 (Process_Binder_File): Never suppress the option following -Xlinker
36896 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
36897 Sdefault.Object_Dir_Default_Name.
36899 * osint.ads, osint.adb:
36900 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
36901 Minor reformatting.
36903 * vms_conv.ads: Minor reformating
36904 Remove GNAT STANDARD and GNAT PSTA
36907 Allow GNAT MAKE to have several files on the command line.
36908 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
36909 Sdefault.Object_Dir_Default_Name.
36911 Remove data for GNAT STANDARD
36914 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
36915 Remove data for GNAT STANDARD
36916 Remove options and documentation for -gnatwb/-gnatwB: these warning
36917 options no longer exist.
36919 2003-11-13 Ed Falis <falis@gnat.com>
36921 * 5zthrini.adb: (Init_RTS): Made visible
36924 (Register): Removed unnecessary call to taskVarGet that checked whether
36925 an ATSD was already set as a task var for the argument thread.
36928 Updated comment to reflect that this is a VxWorks version
36929 Added context clause for System.Threads.Initialization
36930 Added call to System.Threads.Initialization.Init_RTS
36932 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
36935 (Init_RTS): New procedure, for the initialization of the run-time lib.
36938 Remove dependancy on System.Init, so that this file can be used in the
36939 AE653 sequential run-time lib.
36941 2003-11-13 Robert Dewar <dewar@gnat.com>
36943 * bindgen.adb: Minor reformatting
36945 2003-11-13 Ed Schonberg <schonberg@gnat.com>
36948 (Apply_Discriminant_Check): Do no apply check if target type is derived
36949 from source type with no applicable constraint.
36952 (Ensure_System_Dependency): Do not apply the style checks that may have
36953 been specified for the main unit.
36956 (Find_Selected_Component): Further improvement in error message, with
36960 (Resolve): Handle properly the case of an illegal overloaded protected
36963 2003-11-13 Javier Miranda <miranda@gnat.com>
36966 (Has_Default_Init_Comps): New function to check the presence of
36967 default initialization in an aggregate.
36968 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
36969 extension aggregate of a limited record. In addition, a new formal
36970 was added to do not initialize the record controller (if any) during
36971 this recursive expansion of ancestors.
36972 (Init_Controller): Add support for limited record components.
36973 (Expand_Record_Aggregate): In case of default initialized components
36974 convert the aggregate into a set of assignments.
36976 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
36977 describing the new syntax.
36978 Nothing else needed to be done because this subprogram delegates part of
36979 its work to P_Precord_Or_Array_Component_Association.
36980 (P_Record_Or_Array_Component_Association): Give support to the new
36981 syntax for default initialization of components.
36984 (Resolve_Aggregate): Relax the strictness of the frontend in case of
36985 limited aggregates.
36986 (Resolve_Record_Aggregate): Give support to default initialized
36988 (Get_Value): In case of default initialized components, duplicate
36989 the corresponding default expression (from the record type
36990 declaration). In case of default initialization in the *others*
36991 choice, do not check that all components have the same type.
36992 (Resolve_Extension_Aggregate): Give support to limited extension
36996 (Check_Initialization): Relax the strictness of the front-end in case
36997 of aggregate and extension aggregates. This test is now done in
36998 Get_Value in a per-component manner.
37000 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
37001 expression corresponds to a limited aggregate. This test is now done
37004 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
37007 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
37008 present in an N_Component_Association node
37010 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
37012 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
37013 type-conformant entry only if they are homographs.
37015 2003-11-13 GNAT Script <nobody@gnat.com>
37017 * Make-lang.in: Makefile automatically updated
37019 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37021 * adadecode.c: Use <> form of include for ctype.h.
37022 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
37024 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37026 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
37027 Works around PR middle-end/6552.
37029 2003-11-10 Ed Falis <falis@gnat.com>
37031 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
37033 * 5zinit.adb: (Install_Handler): Moved back to spec
37034 (Install_Signal_Handlers): Deleted
37036 * 5zthrini.adb: Added context clause for System.Storage_Elements
37037 (Register): Only handles creation of taskVar; initialization moved to
37039 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
37040 Added declaration of environment task secondary stack and
37043 * s-thread.adb: Implement bodies for thread body processing
37046 Added comment identifying supported targets for pragma Thread_Body.
37048 2003-11-10 Pascal Obry <obry@gnat.com>
37050 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
37054 (Open): Properly check for string length before copying into the buffer.
37055 Raises Name_Error if buffer is too small. Note that this was a potential
37058 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
37060 * bindgen.adb, comperr.adb: Code clean ups.
37061 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
37063 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
37065 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
37067 2003-11-10 Vincent Celier <celier@gnat.com>
37070 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
37073 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
37075 * prj.adb: (Project_Empty): Add new boolean component Virtual
37077 * prj.ads: (Virtual_Prefix): New constant string
37078 (Project_Data): New boolean component Virtual
37080 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
37081 a library project is extended by a virtual extending project.
37084 Modifications throughout to implement extending-all project, including:
37085 (Virtual_Hash, Processed_Hash): New hash tables
37086 (Create_Virtual_Extending_Project): New procedure
37087 (Look_For_Virtual_Projects_For): New procedure
37090 (Process): After checking the projects, if main project is an
37091 extending-all project, set the object directory of all virtual extending
37092 project to the object directory of the main project.
37093 Adjust error message when a virtual extending project has the same
37094 object directory as an project being extended.
37095 (Recursive_Process): If name starts with the virtual prefix, set Virtual
37096 to True in the project data.
37099 (Default_Project_Node): Add new boolean component Extending_All
37100 (Is_Extending_All): New function
37101 (Set_Is_Extending_All): New procedure
37103 * prj-tree.ads: (Is_Extending_All): New function
37104 (Set_Is_Extending_All): New procedure
37105 (Project_Node_Record): New boolean component Extending_All
37107 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
37110 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
37112 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
37113 "gprcmd prefix" to define it.
37115 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
37117 * einfo.ads: Fix a typo and remove an extraneous word in comments.
37120 (Create_Dummy_Package_Unit): Set the scope of the entity for the
37121 created dummy package to Standard_Standard, not to itself, to
37122 defend other parts of the front-end against encoutering a cycle in
37126 (Analyze_With_Clause): When setting the entities for the successive
37127 N_Expanded_Names that constitute the name of a child unit, do not
37128 attempt to go further than Standard_Standard in the chain of scopes.
37129 This case arises from the placeholder units created by
37130 Create_Dummy_Package_Unit in the case of a with_clause for a
37131 nonexistent child unit.
37133 2003-11-10 Ed Schonberg <schonberg@gnat.com>
37136 (Expand_Thread_Body): Place subprogram on scope stack, so that new
37137 declarations are given the proper scope.
37140 (Check_Expr_Constants): Reject an expression that contains a constant
37141 created during expansion, and that appears after the object to which
37142 the address clause applies.
37144 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
37145 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
37146 that uses 'Range of a function call with controlled components, so
37147 that the function result can be finalized before starting the loop.
37150 (Find_Selected_Component): Improve error message when prefix is
37151 an implicit dereference of an incomplete type.
37153 2003-11-10 Robert Dewar <dewar@gnat.com>
37155 * opt.ads: New Print_Standard flag for -gnatS switch
37157 * sem_ch13.adb: Remove some additional checks for unaligned arrays
37159 * cstand.adb (Create_Standard): Print out package standard if -gnatS
37162 * debug.adb: Update doc for -gnatds to discuss relationship with new
37165 * sinfo.adb: Add new field Entity_Or_Associated_Node
37167 * sinfo.ads: Add new field Entity_Or_Associated_Node
37168 Update documentation for Associated_Node and Entity fields to clarify
37169 relationship and usage.
37172 (Write_Id): Properly process Associated_Node field in generic template
37175 Recognize new -gnatS switch for printing package Standard
37176 This replaces gnatpsta
37179 Add line for new -gnatS switch for printing package Standard
37180 This replaces gnatpsta
37182 2003-11-10 Andreas Jaeger <aj@suse.de>
37184 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
37187 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
37189 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
37192 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
37194 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
37197 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
37199 * sysdep.c: Add handling of cygwin.
37201 2003-11-10 GNAT Script <nobody@gnat.com>
37203 * Make-lang.in: Makefile automatically updated
37205 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
37208 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
37209 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
37210 Replace GNAT_ROOT by GCC_ROOT.
37212 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
37214 2003-11-06 Zack Weinberg <zack@codesourcery.com>
37216 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
37217 and update for changed meaning of GET_MODE_BITSIZE.
37219 2003-11-04 Doug Rupp <rupp@gnat.com>
37221 * sysdep.c: Problem discovered during IA64 VMS port.
37222 [VMS] #include <unixio.h> to get proper prototypes.
37225 Issues discovered/problems fixed during IA64 VMS port.
37226 [VMS] #define _POSIX_EXIT for proper semantics.
37227 [VMS] #include <unixio.h> for proper prototypes.
37228 [VMS] (fork): #define IA64 version.
37229 (__gnat_os_exit): Remove unnecessary VMS specific code.
37231 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37233 Part of PR ada/12806
37234 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
37238 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
37241 * targtyps.c, decl.c, misc.c,
37242 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
37243 routines to work around change in FP sizing semantics in GCC.
37246 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
37248 * gigi.h: (enumerate_modes): New function.
37250 * Make-lang.in: (ada/misc.o): Add real.h.
37252 * misc.c: (enumerate_modes): New function.
37254 2003-11-04 Robert Dewar <dewar@gnat.com>
37256 * 3vtrasym.adb: Minor reformatting
37257 Use terminology encoded/decoded name, rather than C++ specific notion
37258 of mangling (this is the terminology used throughout GNAT).
37260 * einfo.h: Regenerated
37262 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
37265 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
37267 * par-prag.adb: Add dummy entry for Thread_Body pragma
37270 Add entries for System.Threads entities for thread body processing
37273 (Analyze_Pragma, Access attributes): Check these are not applied to a
37274 thread body, since this is not permitted
37276 * sem_prag.adb: Add processing for Thread_Body pragma.
37280 (Resolve_Call): Check for incorrect attempt to call a thread body
37281 procedure with a direct call.
37283 * snames.ads, snames.adb: Add entry for Thread_Body pragma
37284 Add names associated with thread body expansion
37286 * snames.h: Add entry for Thread_Body pragma
37288 * s-thread.adb: Add entries for thread body processing
37289 These are dummy bodies so far
37291 * s-thread.ads: Add documentation on thread body handling.
37292 Add entries for thread body processing.
37294 2003-11-04 Javier Miranda <miranda@gnat.com>
37297 (Build_Limited_Views): Return after posting an error in case of limited
37298 with_clause on subprograms, generics, instances or generic renamings
37299 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
37300 on subprograms, generics, instances or generic renamings
37302 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
37304 * raise.c (setup_to_install): Correct mistake in last revision; two
37305 arguments out of order.
37307 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
37308 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
37309 notice, missed in previous change.
37310 Remove trailing blanks and other style errors introduced in previous
37313 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
37315 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
37316 rid of the wrapper for a LJM type, ensuring we don't do that if the
37317 field is addressable. This avoids potential low level type view
37318 mismatches later on, for instance in a by-reference argument passing
37321 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37323 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
37324 aligned at byte boundary.
37326 2003-11-04 Joel Brobecker <brobecker@gnat.com>
37328 * decl.c (components_to_record): Do not delete the empty variants from
37329 the end of the union type.
37331 2003-11-04 Ed Schonberg <schonberg@gnat.com>
37333 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
37334 operation for a derived type, an explicit declaration may use a local
37335 subtype of Boolean.
37337 2003-11-04 Vincent Celier <celier@gnat.com>
37339 * make.adb (Gnatmake): Allow main sources on the command line with a
37340 library project when it is only for compilation (no binding or
37343 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37345 * Makefile.in: Remove many duplicate variables.
37347 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
37349 * Make-lang.in (dvi): Move targets to $(docobjdir).
37350 (gnat_ug_vms.dvi): Simplify rule and adjust target.
37351 (gnat_ug_wnt.dvi): Likewise.
37352 (gnat_ug_unx.dvi): Likewise.
37353 (gnat_ug_vxw.dvi): Likewise.
37354 (gnat_rm.dvi): Likewise.
37355 (gnat-style.dvi): Likewise.
37357 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
37359 * gigi.h: Missed commit from update for C90.
37361 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
37363 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
37365 2003-10-31 Andreas Schwab <schwab@suse.de>
37367 * raise.c (get_action_description_for): Fix typo in last change.
37369 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
37372 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
37373 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
37375 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
37377 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
37378 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
37379 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
37380 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
37381 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
37383 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
37386 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
37387 numbers when symbol name is too long.
37389 2003-10-30 Ed Falis <falis@gnat.com>
37391 * g-signal.ads, g-signal.adb: New files
37393 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
37395 * Makefile.rtl: Introduce GNAT.Signals
37397 2003-10-30 Robert Dewar <dewar@gnat.com>
37399 * freeze.adb: Minor reformatting
37401 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
37403 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
37404 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
37405 New handling of Id_Check parameter to improve recognition of keywords
37406 used as identifiers.
37407 Update copyright notice to include 2003
37409 2003-10-29 Robert Dewar <dewar@gnat.com>
37411 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
37412 sem_ch10.adb: Minor reformatting
37414 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
37415 (Expand_Assign_Record): Test right hand side for bit unaligned as well
37417 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
37419 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
37420 Support for TBK$SYMBOLIZE-based symbolic traceback.
37422 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
37425 Revert previous change, that did not work well when pragma No_Run_Time
37426 was used in conjunction with a run-time other than ZFP.
37428 2003-10-29 Vincent Celier <celier@gnat.com>
37431 (Gnatmake): When there are no Ada mains in attribute Main, disable the
37432 bind and link steps only is switch -z is not used.
37434 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
37436 * Makefile.generic: Remove duplicated setting of CC.
37438 * Makefile.prolog: Set CC to gcc by default, to override make's
37441 * einfo.h: Regenerated.
37443 2003-10-29 Ed Schonberg <schonberg@gnat.com>
37445 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
37446 current body, after compiling subunit.
37448 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
37449 when in deleted code, because gigi needs properly ordered freeze
37450 actions to annotate types.
37452 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
37453 prevent the premature freezing of record type that contains
37454 subcomponents with a private type that does not yet have a completion.
37456 2003-10-29 Javier Miranda <miranda@gnat.com>
37459 (Analyze_Package_Instantiation): Check that instances can not be used in
37460 limited with_clauses.
37463 (Analyze_Package_Renaming): Check that limited withed packages cannot
37464 be renamed. Improve text on error messages related to limited
37467 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
37469 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
37470 Update copyright notice.
37472 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
37473 (Install_Limited_Context_Clauses): New subprogram that isolates all the
37474 checks required for limited context_clauses and installs the limited
37476 (Install_Limited_Withed_Unit): Complete its documentation.
37477 (Analyze_Context): Check that limited with_clauses are only allowed in
37479 (Install_Context): Call Install_Limited_Context_Clauses after the
37480 parents have been installed.
37481 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
37482 package as 'From_With_Type'; this mark indicates that the limited view
37483 is installed. Used to check bad usages of limited with_clauses.
37484 (Build_Limited_Views): Do not add shadow entities to the scope's list
37485 of entities. Do not add real entities to the Non_Limited_Views chain.
37486 Improve error notification.
37487 (Remove_Context_Clauses): Remove context clauses in two phases:
37488 limited views first and regular views later (to maintain the
37490 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
37491 its visible entities.
37493 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
37495 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
37496 with any type that Is_Fixed_Point_Type.
37498 * sinfo.ads: Fix documentation for Associated_Node attribute.
37500 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
37502 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
37503 both '-gnatc' and '-gnatt' are specified.
37505 * atree.adb (Initialize): Add initialization for Node_Count (set to
37508 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37510 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
37511 do not consider as Pure.
37513 Part of implementation of function-at-a-time:
37515 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
37516 (tree_transform): Add new argument to build_component_ref.
37517 (tree_transform, case N_Assignment_Statement): Make and return an
37519 (tree_transform): If result IS_STMT, set flags and return it.
37520 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
37522 * utils2.c (build_simple_component_ref, build_component_ref): Add new
37524 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
37525 (build_allocator): Likewise.
37527 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
37528 Add new arg to build_component_ref.
37529 (maybe_unconstrained_array, unchecked_convert): Likewise.
37531 * ada-tree.def (EXPR_STMT): New code.
37533 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
37535 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
37536 build_component_ref calls.
37538 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
37540 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
37541 (build_component_ref): Add new argument, NO_FOLD_P.
37543 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
37545 * Makefile.generic: Add missing substitution on object_deps handling.
37548 * Make-lang.in (check-ada): Enable ACATS test suite.
37550 2003-10-27 Robert Dewar <dewar@gnat.com>
37553 (Freeze_Array_Type): We do not need an initialization routine for types
37554 derived from String or Wide_String. They should be treated the same
37555 as String and Wide_String themselves. This caused problems with the
37556 use of Initialize_Scalars.
37559 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
37560 composites. This allows use of component clauses that are not byte
37564 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
37565 is an attempt to pack an array of atomic objects.
37567 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
37569 2003-10-27 Pascal Obry <obry@gnat.com>
37572 (Basename): Check for drive letters in a pathname only on DOS based OS.
37574 2003-10-27 Vincent Celier <celier@gnat.com>
37577 (Gnatmake): When unable to change dir to the object dir, display the
37578 content of the parent dir of the obj dir, to try to understand why this
37581 2003-10-27 GNAT Script <nobody@gnat.com>
37583 * Make-lang.in: Makefile automatically updated
37585 2003-10-27 Ed Schonberg <schonberg@gnat.com>
37588 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
37589 should not be done in Save/Restore_Scope_Stack, because it is performed
37593 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
37594 whether use clauses should be removed/restored.
37597 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
37598 whether use clauses should be removed/restored.
37600 2003-10-26 Andreas Jaeger <aj@suse.de>
37602 * Makefile.in: Remove duplicated lines.
37604 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
37606 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
37607 minimize the differences with ACT tree.
37609 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
37610 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
37611 Gnatvsn.Gnat_Static_Version_String to reduce differences between
37614 2003-10-24 Pascal Obry <obry@gnat.com>
37617 * adadecode.c (ostrcpy): New function.
37618 (__gnat_decode): Use ostrcpy of strcpy.
37619 (has_prefix): Set first parameter a const.
37620 (has_suffix): Set first parameter a const.
37621 Update copyright notice. Fix source name in header.
37622 Removes a trailing space.
37624 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
37627 Remove the test against being in No_Run_Time_Mode before generating a
37628 call to Register_Tag. It is redundant with the test against the
37629 availability of the function Register_Tag.
37631 2003-10-24 Vincent Celier <celier@gnat.com>
37633 * g-catiio.adb: (Month_Name): Correct spelling of February
37635 * make.adb: (Mains): New package
37636 (Initialize): Call Mains.Delete
37637 (Gnatmake): Check that each main on the command line is a source of a
37638 project file and, if there are several mains, each of them is a source
37639 of the same project file.
37640 (Gnatmake): When a foreign language is specified in attribute Languages,
37641 no main is specified on the command line and attribute Mains is not
37642 empty, only build the Ada main. If there is no Ada main, just compile
37643 the Ada sources and their closure.
37644 (Gnatmake): If a main is specified on the command line with directory
37645 information, check that the source exists and, if it does, that the path
37646 is the actual path of a source of a project.
37649 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
37650 Full_Path is True, return the full path instead of the simple file name.
37651 (Project_Of): New function
37654 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
37655 defaulted to False.
37656 (Project_Of): New function
37658 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
37660 * Makefile.generic:
37661 Ensure objects of main project are always checked and rebuilt if needed.
37662 Set CC to gcc by default.
37663 Prepare new handling of link by creating a global archive (not activated
37666 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
37667 stringt.h: Update copyright notice. Remove trailing blanks.
37668 Fix source name in header.
37670 2003-10-24 Robert Dewar <dewar@gnat.com>
37672 * sem_ch12.adb: Minor reformatting
37675 Minor reformatting (including new function return style throughout)
37678 Minor reformatting (including new function return style throughout)
37680 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
37682 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
37683 stringt.h: Update copyright notice. Remove trailing blanks.
37684 Fix source name in header.
37686 2003-10-24 GNAT Script <nobody@gnat.com>
37688 * Make-lang.in: Makefile automatically updated
37690 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
37692 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
37693 stringt.h: Convert to ISO C90 declarations and definitions.
37695 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
37698 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
37699 External_Tag attribute definition clauses.
37701 2003-10-23 Ed Schonberg <schonberg@gnat.com>
37704 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
37705 child unit, generate a fully qualified name to avoid spurious errors
37706 when the context contains renamings of different child units with
37707 the same simple name.
37709 * exp_dbug.ads: Add documentation on name qualification for renamings
37712 2003-10-23 Robert Dewar <dewar@gnat.com>
37714 * g-regpat.ads, g-regpat.adb: Minor reformatting
37716 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
37718 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
37720 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37722 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
37725 * urealp.h: (Machine): Update to proper definition.
37727 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
37729 * init.c, adaint.c: Minor reformatting.
37731 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
37733 * adaint.c (w32_epoch_offset): Define static const at file level.
37734 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
37735 rather than t_create, t_access in call to GetFileTime. Use union
37736 to convert between FILETIME and unsigned long long.
37737 (__gnat_file_time_name): Test for invalid file handle.
37738 (__gnat_set_filetime_name): Support win32 targets using
37739 w32api SetFileTime.
37741 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
37743 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
37745 * ctrl_c.c (__gnat_int_handler): Remove declaration.
37747 * decl.c (creat_concat_name): Const-ify prefix.
37749 * adaint.c: Include ctype.h if __MINGW32__.
37750 (__gnat_readlink): Mark arguments as possibly unused.
37751 (__gnat_symlink): Likewise.
37752 (__gnat_is_symbolic_link): Likewise.
37753 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
37755 (__gnat_file_time_name): Don't declare struct stat statbuf when
37757 (__gnat_is_absolute_path): Add parenthesis around condition of
37758 'if' statement to avoid warning.
37759 (__gnat_plist_init): Specify void as parameter.
37760 (plist_enter): Likewise.
37761 (plist_leave): Likewise.
37762 (remove_handle): Make static. Initialize prev.
37764 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
37767 * Makefile.in: Disable build of gnatpsta.
37768 * cstreams.c (__gnat_full_name): Minor improvements and clean up
37769 of previous change.
37771 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37773 * tracebak.c (MAX): Avoid redefinition warning.
37775 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
37776 Change msg to const char *.
37777 (__gnat_install_handler): Remove ss, unused.
37778 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
37780 * cstreams.c (__gnat_full_name): Declare p only when used.
37781 (__gnat_full_name) [sgi] Return buffer.
37783 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
37785 * mingw32.h: New file.
37786 * gnat_wrapper.adb: New file.
37788 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
37790 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
37791 string match a pre compiled regular expression (the corresponding
37792 version of the function working on a raw regular expression)
37793 Fix typos in various comments
37794 Update copyright notice in spec
37796 2003-10-21 Gary Dismukes <dismukes@gnat.com>
37799 (Component_Needs_Simple_Initialization): Return False when the type is a
37800 packed bit array. Revise spec comments to document this case.
37803 (Expand_Pragma_Import): Set any expression on the imported object to
37804 empty to avoid initializing imported objects (in particular this
37805 covers the case of zero-initialization of bit arrays).
37806 Update copyright notice.
37808 2003-10-21 Ed Schonberg <schonberg@gnat.com>
37811 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
37812 a subunit is missing.
37813 (Instantiate_Subprogram_Body): If body of function is missing, set type
37814 of return expression explicitly in dummy body, to prevent cascaded
37815 errors when a subunit is missing.
37819 (Access_Subprogram_Declaration): Verify that return type is valid.
37823 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
37828 (Corresponding_Discriminant): If the scope of the discriminant is a
37829 private type without discriminant, use its full view.
37832 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
37834 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
37835 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
37836 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
37837 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
37838 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
37839 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
37840 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
37841 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
37842 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
37843 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
37844 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
37845 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
37846 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
37847 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
37848 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
37849 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
37850 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
37851 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
37852 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
37853 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
37854 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
37855 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
37856 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
37857 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
37858 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
37859 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
37860 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
37861 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
37862 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
37863 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
37864 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
37865 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
37866 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
37867 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
37868 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
37869 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
37870 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
37871 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
37872 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
37873 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
37874 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
37875 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
37876 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
37877 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
37878 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
37879 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
37880 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
37881 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
37882 vms_conv.ads, vms_conv.adb, vms_data.ads,
37883 vxaddr2line.adb: Files added. Merge with ACT tree.
37885 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
37886 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
37887 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
37888 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
37889 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
37890 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
37891 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
37892 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
37893 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
37894 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
37896 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
37897 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
37898 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
37899 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
37900 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
37901 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
37902 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
37903 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
37904 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
37905 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
37906 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
37907 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
37908 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
37909 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
37910 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
37911 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
37912 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
37913 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
37914 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
37915 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
37916 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
37917 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
37918 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
37919 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
37920 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
37921 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
37922 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
37923 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
37924 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
37925 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
37926 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
37927 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
37928 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
37929 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
37930 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
37931 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
37932 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
37933 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
37934 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
37935 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
37936 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
37937 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
37938 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
37939 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
37940 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
37941 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
37942 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
37943 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
37944 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
37945 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
37946 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
37947 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
37948 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
37949 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
37950 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
37951 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
37952 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
37953 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
37954 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
37955 checks.adb, checks.ads, cio.c, comperr.adb,
37956 comperr.ads, csets.adb, cstand.adb, cstreams.c,
37957 debug_a.adb, debug_a.ads, debug.adb, decl.c,
37958 einfo.adb, einfo.ads, errout.adb, errout.ads,
37959 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
37960 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
37961 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
37962 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
37963 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
37964 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
37965 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
37966 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
37967 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
37968 fe.h, fmap.adb, fmap.ads, fname.adb,
37969 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
37970 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
37971 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
37972 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
37973 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
37974 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
37975 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
37976 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
37977 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
37978 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
37979 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
37980 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
37981 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
37982 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
37983 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
37984 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
37985 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
37986 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
37987 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
37988 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
37989 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
37990 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
37991 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
37992 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
37993 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
37994 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
37995 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
37996 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
37997 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
37998 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
37999 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
38000 layout.adb, lib.adb, lib.ads, lib-list.adb,
38001 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
38002 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
38003 link.c, live.adb, make.adb, make.ads,
38004 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
38005 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
38006 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
38007 misc.c, mkdir.c, mlib.adb, mlib.ads,
38008 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
38009 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
38010 namet.adb, namet.ads, namet.h, nlists.ads,
38011 nlists.h, nmake.adt, opt.adb, opt.ads,
38012 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
38013 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
38014 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
38015 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
38016 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
38017 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
38018 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
38019 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
38020 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
38021 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
38022 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
38023 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
38024 prj-util.adb, prj-util.ads, raise.c, raise.h,
38025 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
38026 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
38027 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
38028 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
38029 scans.ads, scn.adb, scn.ads, s-crc32.adb,
38030 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
38031 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
38032 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
38033 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
38034 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
38035 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
38036 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
38037 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
38038 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
38039 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
38040 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
38041 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
38042 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
38043 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
38044 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
38045 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
38046 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
38047 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
38048 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
38049 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
38050 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
38051 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
38052 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
38053 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
38054 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
38055 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
38056 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
38057 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
38058 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
38059 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
38060 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
38061 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
38062 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
38063 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
38064 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
38065 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
38066 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
38067 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
38068 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
38069 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
38070 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
38071 stringt.adb, stringt.ads, stringt.h, style.ads,
38072 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
38073 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
38074 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
38075 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
38076 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
38077 table.adb, table.ads, targparm.adb, targparm.ads,
38078 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
38079 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
38080 ttypes.ads, types.ads, types.h, uintp.adb,
38081 uintp.ads, uintp.h, uname.adb, urealp.adb,
38082 urealp.ads, urealp.h, usage.adb, utils2.c,
38083 utils.c, validsw.adb, validsw.ads, widechar.adb,
38084 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
38085 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
38086 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
38087 gnatvsn.ads: Merge with ACT tree.
38089 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
38091 2003-10-20 Mark Mitchell <mark@codesourcery.com>
38093 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
38094 (gnat_ug_vmx.info): Likewise.
38095 (gnat_ug_vxw.info): Likewise.
38096 (gnat_ug_wnt.info): Likewise.
38097 (gnat_rm.info): Likewise.
38098 (gnat-style.info): Likewise.
38100 * Make-lang.in (ada.install-info): Remove target.
38101 (info): New target.
38102 (install-info): Likewise.
38103 (gnat_ug_unx.info): Simplify rule.
38104 (gnat_ug_vmx.info): Likewise.
38105 (gnat_ug_vxw.info): Likewise.
38106 (gnat_ug_wnt.info): Likewise.
38107 (gnat_rm.info): Likewise.
38108 (gnat-style.info): Likewise.
38110 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
38112 * Make-lang.in: Replace uses of $(target_alias) with
38113 $(target_noncanonical).
38114 * ada/Makefile.in: Remove unused mention of $(target_alias).
38116 2003-10-06 Mark Mitchell <mark@codesourcery.com>
38118 * Make-lang.in (ada.info): Replace with ...
38120 (ada.dvi): Replace with ...
38123 2003-09-29 Zack Weinberg <zack@codesourcery.com>
38125 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
38126 initialize dconstp5 and dconstmp5.
38128 2003-09-28 Richard Henderson <rth@redhat.com>
38130 * trans.c (tree_transform): Update call to expand_asm_operands.
38132 2003-09-21 Richard Henderson <rth@redhat.com>
38134 * trans.c, utils.c: Revert.
38136 2003-09-21 Richard Henderson <rth@redhat.com>
38138 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
38141 2003-09-04 Michael Matz <matz@suse.de>
38143 * misc.c: Include "target.h".
38144 * Make-lang.in (misc.o): Add dependency on target.h.
38146 2003-09-03 DJ Delorie <dj@redhat.com>
38148 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
38151 2003-08-30 Zack Weinberg <zack@codesourcery.com>
38153 * Makefile.in: Update substitutions to match changes to
38154 configure. Use include directives instead of @-insertions
38155 to read in host and target fragments. Add a rule to
38156 regenerate ada/Makefile.
38158 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
38160 * lang-options.h: Remove.
38161 * lang.opt: Add help text.
38163 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
38165 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
38168 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
38170 * misc.c (gnat_handle_option): Don't handle filenames.
38172 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
38174 * Make-lang.in: Replace PWD with PWD_COMMAND.
38175 * Makefile.adalib: Likewise.
38176 * Makefile.in: Likewise.
38178 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
38180 * misc.c (gnat_argv): Revert last change.
38181 (gnat_handle_option, gnat_init_options): Copy arguments.
38183 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
38185 * misc.c (gnat_argv): Make const.
38187 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
38189 * misc.c (save_argc, save_argv): Keep non-static!
38191 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
38193 * misc.c (save_argc, save_argv): Make static.
38194 (gnat_init_options): New prototype.
38195 (gnat_init_options): Update.
38197 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
38199 * gnat_ug.texi: Remove unlikely characters from @vars.
38200 * gnat_ug_vms.texi: Regenerate.
38202 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
38204 * misc.c (record_code_position): Adjust emit_note call.
38206 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
38208 * misc.c (gnat_handle_option): Don't check for missing arguments.
38210 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
38212 * utils.c (end_subprog_body): Adjust expand_function_end call.
38214 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
38216 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
38219 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
38221 * lang.opt: Declare Ada.
38222 * misc.c (gnat_init_options): Update.
38224 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
38226 * utils.c (begin_subprog_body): Adjust init_function_start call.
38228 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
38230 * Make-lang.in: Update to use options.c and options.h.
38231 * misc.c: Include options.h not aoptions.h.
38232 (gnat_handle_option): Abort on unrecognized switch.
38233 (gnat_init_options): Request Ada switches.
38235 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
38237 * lang.opt: Add -Wall.
38238 * misc.c (gnat_handle_option): Handle it.
38240 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
38242 * misc.c (gnat_handle_option): Fix warnings.
38244 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
38246 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
38248 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
38250 * Make-lang.in: Update to handle command-line options.
38251 * lang.opt: New file.
38252 * misc.c: Include aoptions.h.
38253 (cl_options_count, cl_options): Remove.
38254 (gnat_handle_option): New.
38255 (gnat_decode_option): Remove.
38256 (LANG_HOOKS_DECODE_OPTION): Remove.
38257 (LANG_HOOKS_HANDLE_OPTION): Override.
38259 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
38261 * init.c, misc.c, trans.c, utils.c: Remove dead code.
38263 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
38265 * Makefile.in: Replace "host_canonical" with "host" for autoconf
38268 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
38270 * Make-lang.in: Update.
38271 * misc.c: Include opts.h. Define cl_options_count and cl_options.
38273 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
38275 * misc.c (gnat_init_options): Update.
38277 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
38279 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
38280 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
38281 __attribute__ ((__unused__)).
38283 2003-06-05 Jan Hubicka <jh@suse.cz>
38285 * Make-lang.in: Add support for stageprofile and stagefeedback
38287 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
38289 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
38290 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
38292 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
38294 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
38295 Remove non-VMS directive.
38296 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
38298 (Examples of gnatls Usage): Remove VMS alternative.
38300 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
38303 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
38304 and turn ZCX_By_Default back to False since the underlying support
38305 is not quite there yet.
38307 2003-06-01 Andreas Jaeger <aj@suse.de>
38309 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
38310 and ROUND_TYPE_SIZE_UNIT.
38312 2003-05-22 Geert Bosch <bosch@gnat.com>
38314 * gnat_rm.texi : Remove reference to Ada Core Technologies.
38316 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
38318 * trans.c (tree_transform): Use location_t and input_location
38320 (build_unit_elab): Likewise.
38321 * utils.c (create_label_decl): Likewise.
38323 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
38325 * trans.c (tree_transform, build_unit_elab,
38326 set_lineno): Rename lineno to input_line.
38327 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
38328 end_subprog_body): Likewise.
38329 * utils2.c (build_call_raise): Likewise.
38331 2003-05-01 Laurent Guerby <guerby@acm.org>
38334 * 5iosinte.ads: Increase pthread_cond_t size to match recent
38335 LinuxThread and NPTL version, merge from ACT.
38337 2003-04-28 Zack Weinberg <zack@codesourcery.com>
38339 * utils.c (convert): No need to clear TREE_CST_RTL.
38341 2003-04-23 Geert Bosch <bosch@gnat.com>
38343 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
38344 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
38345 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
38346 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
38347 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
38348 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
38349 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
38350 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
38351 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
38352 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
38353 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
38354 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
38355 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
38356 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
38357 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
38358 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
38359 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
38360 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
38361 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
38362 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
38363 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
38364 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
38365 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
38366 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
38367 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
38368 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
38369 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
38370 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
38371 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
38372 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
38373 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
38374 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
38375 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
38376 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
38377 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
38378 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
38379 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
38380 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
38381 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
38382 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
38383 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
38384 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
38385 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
38386 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
38387 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
38388 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
38389 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
38390 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
38391 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
38392 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
38393 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
38394 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
38395 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
38396 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
38397 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
38398 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
38399 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
38400 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
38401 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
38402 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
38403 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
38404 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
38405 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
38406 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
38407 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
38408 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
38409 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
38410 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
38411 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
38412 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
38413 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
38414 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
38415 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
38416 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
38417 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
38418 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
38419 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
38420 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
38421 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
38422 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
38423 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
38424 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
38425 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
38426 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
38427 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
38428 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
38429 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
38430 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
38431 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
38432 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
38433 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
38434 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
38435 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
38436 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
38437 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
38438 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
38439 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
38440 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
38441 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
38442 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
38443 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
38444 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
38445 ali.adb, ali.ads, alloc.ads, argv.c,
38446 atree.adb, atree.ads, atree.h, aux-io.c,
38447 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
38448 binde.adb, binde.ads, binderr.adb, binderr.ads,
38449 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
38450 butil.adb, butil.ads, cal.c, calendar.ads,
38451 casing.adb, casing.ads, ceinfo.adb, checks.adb,
38452 checks.ads, cio.c, comperr.adb, comperr.ads,
38453 config-lang.in, csets.adb, csets.ads, csinfo.adb,
38454 cstand.adb, cstand.ads, cuintp.c, debug.adb,
38455 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
38456 dec-io.ads, dec.ads, deftarg.c, directio.ads,
38457 einfo.adb, einfo.ads, elists.adb, elists.ads,
38458 elists.h, errno.c, errout.adb, errout.ads,
38459 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
38460 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
38461 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
38462 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
38463 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
38464 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
38465 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
38466 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
38467 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
38468 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
38469 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
38470 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
38471 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
38472 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
38473 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
38474 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
38475 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
38476 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
38477 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
38478 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
38479 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
38480 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
38481 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
38482 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
38483 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
38484 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
38485 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
38486 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
38487 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
38488 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
38489 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
38490 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
38491 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
38492 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
38493 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
38494 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
38495 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
38496 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
38497 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
38498 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
38499 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
38500 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
38501 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
38502 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
38503 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
38504 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
38505 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
38506 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
38507 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
38508 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
38509 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
38510 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
38511 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
38512 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
38513 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
38514 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
38515 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
38516 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
38517 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
38518 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
38519 lib.adb, lib.ads, live.adb, live.ads,
38520 machcode.ads, make.adb, make.ads, makeusg.adb,
38521 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
38522 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
38523 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
38524 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
38525 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
38526 mlib.ads, namet.adb, namet.ads, nlists.adb,
38527 nlists.ads, opt.adb, opt.ads, osint-b.adb,
38528 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
38529 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
38530 osint.ads, output.adb, output.ads, par-ch10.adb,
38531 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
38532 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
38533 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
38534 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
38535 par-tchk.adb, par-util.adb, par.adb, par.ads,
38536 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
38537 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
38538 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
38539 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
38540 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
38541 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
38542 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
38543 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
38544 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
38545 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
38546 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
38547 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
38548 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
38549 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
38550 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
38551 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
38552 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
38553 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
38554 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
38555 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
38556 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
38557 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
38558 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
38559 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
38560 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
38561 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
38562 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
38563 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
38564 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
38565 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
38566 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
38567 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
38568 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
38569 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
38570 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
38571 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
38572 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
38573 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
38574 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
38575 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
38576 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
38577 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
38578 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
38579 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
38580 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
38581 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
38582 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
38583 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
38584 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
38585 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
38586 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
38587 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
38588 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
38589 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
38590 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
38591 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
38592 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
38593 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
38594 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
38595 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
38596 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
38597 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
38598 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
38599 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
38600 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
38601 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
38602 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
38603 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
38604 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
38605 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
38606 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
38607 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
38608 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
38609 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
38610 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
38611 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
38612 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
38613 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
38614 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
38615 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
38616 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
38617 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
38618 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
38619 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
38620 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
38621 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
38622 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
38623 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
38624 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
38625 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
38626 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
38627 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
38628 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
38629 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
38630 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
38631 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
38632 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
38633 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
38634 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
38635 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
38636 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
38637 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
38638 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
38639 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
38640 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
38641 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
38642 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
38643 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
38644 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
38645 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
38646 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
38647 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
38648 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
38649 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
38650 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
38651 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
38652 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
38653 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
38654 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
38655 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
38656 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
38657 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
38658 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
38659 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
38660 snames.ads, sprint.adb, sprint.ads, stand.adb,
38661 stand.ads, stringt.adb, stringt.ads, style.adb,
38662 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
38663 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
38664 switch-m.ads, switch.adb, switch.ads, system.ads,
38665 table.adb, table.ads, targparm.adb, targparm.ads,
38666 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
38667 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
38668 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
38669 ttypef.ads, ttypes.ads, types.adb, types.ads,
38670 uintp.adb, uintp.ads, uname.adb, uname.ads,
38671 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
38672 usage.adb, usage.ads, validsw.adb, validsw.ads,
38673 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
38674 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
38675 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
38676 formatting and other trivial changes from ACT.
38678 2003-04-12 Zack Weinberg <zack@codesourcery.com>
38680 * gigi.h, utils2.c (build_constructor):
38681 Rename gnat_build_constructor. Use build_constructor.
38682 * decl.c (gnat_to_gnu_entity)
38683 * trans.c (tree_transform, pos_to_constructor, extract_values)
38684 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
38685 (unchecked_convert)
38686 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
38687 (fill_vms_descriptor):
38690 2003-04-06 Zack Weinberg <zack@codesourcery.com>
38692 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
38693 * misc.c (gnat_tree_size): New function.
38694 (LANG_HOOKS_TREE_SIZE): Override.
38696 2003-04-03 Jason Merrill <jason@redhat.com>
38698 * misc.c (gnat_adjust_rli): #if 0.
38700 2003-03-31 Geert Bosch <bosch@gnat.com>
38703 * link.c : Fix misspelled "const" keyword
38705 2003-03-23 Mark Mitchell <mark@codesourcery.com>
38708 * utils2.c: Adjust calls to put_var_into_stack.
38710 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
38712 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
38714 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
38716 * misc.c (gnat_init): Update for new prototype.
38718 2003-03-05 Olivier Hainque <hainque@gnat.com>
38721 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
38722 warning, and fix return type for the IN_RTS && !SJLJ case.
38724 2003-03-04 Tom Tromey <tromey@redhat.com>
38726 * Make-lang.in (ada.tags): New target.
38728 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
38731 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
38732 wrapper, which name remains constant whatever underlying GCC
38735 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
38736 the stable interface needed for a-except.
38738 2003-03-02 Andreas Jaeger <aj@suse.de>
38740 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
38741 gnat_ug_wnt.texi: Regenerate.
38743 2003-03-02 Laurent Guerby <guerby@acm.org>
38745 * Makefile.in (install-gnatlib): Match previous change there
38748 2003-02-28 Andreas Schwab <schwab@suse.de>
38750 * Make-lang.in (install-gnatlib): Change to ada directory before
38751 running make instead of using ada/Makefile directly.
38753 2003-02-18 Ben Elliston <bje@redhat.com>
38755 Part of PR ada/9406
38756 * gnat_ug.texi (Binder output file): Grammar fix.
38758 2003-02-18 Ben Elliston <bje@redhat.com>
38761 * 5qtaprop.adb (Sleep): Fix typo in comment.
38763 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
38765 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
38766 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
38767 gnat_ug_wnt.texi: Regenerate.
38769 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
38771 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
38772 be created if necessary.
38773 (ada.install-common): Let $(DESTDIR)$(bindir) be created
38774 if necessary. Remove erroneous and redundant gnatchop
38775 installation commands. Test for gnatdll before attempting
38777 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
38778 and gnatdll from all plausible locations.
38780 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
38782 * utils2.c (build_unary_op): Don't check flag_volatile.
38783 * gnat_ug.texi: Remove -fvolatile from example.
38784 * gnat_ug_vxw.texi: Likewise.
38786 2003-01-29 Laurent Guerby <guerby@acm.org>
38789 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
38790 * Makefile.in: match previous change.
38791 * Make-lang.in: match previous change.
38793 2003-01-29 Joel Sherrill <joel@OARcorp.com>
38795 * 5rosinte.ads: Add SIGXCPU.
38796 * 5rtpopsp.adb: New file.
38797 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
38798 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
38799 specific file 5rtpopsp.adb.
38800 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
38801 is likely needed for all newlib targets.
38802 * init.c: Add RTEMS specific version of __gnat_initialize().
38804 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38806 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
38808 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38810 * init.c (__gnat_error_handler): Make msg const.
38812 * gmem.c (convert_addresses): Move declaration ...
38813 * adaint.h: ... here.
38814 * adaint.c (convert_addresses): Adapt addrs type to match
38817 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
38819 2003-01-24 Andreas Schwab <schwab@suse.de>
38821 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
38822 size_t to avoid warning.
38824 2003-01-21 Zack Weinberg <zack@codesourcery.com>
38826 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
38828 2003-01-09 Geoffrey Keating <geoffk@apple.com>
38830 * gnat_rm.texi: Remove RCS version number.
38832 * ada-tree.h (union lang_tree_node): Add chain_next option.
38834 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
38836 * Make-lang.in (ada.install-info, ada.install-common,
38837 ada.uninstall): Prepend $(DESTDIR) to the destination
38838 directory in all (un)installation commands.
38839 * Makefile.in (install-gnatlib, install-rts): Ditto.
38841 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
38843 * gnat_rm.texi, gnat_ug.texi: Use @copying.
38844 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
38845 gnat_ug_wnt.texi: Regenerate.
38847 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
38849 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
38851 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
38852 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
38853 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
38854 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
38855 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
38856 $(srcdir)/doc/include/gcc-common.texi.
38858 2002-12-15 Geert Bosch <bosch@gnat.com>
38860 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
38862 2002-12-14 Geert Bosch <bosch@gnat.com>
38865 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
38866 case of a body created for a Renaming_As_Body, on which
38867 conformance checks are not performed.
38869 2002-11-30 Zack Weinberg <zack@codesourcery.com>
38871 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
38872 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
38873 not already included.
38874 * Make-lang.in: Update dependencies.
38876 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
38877 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
38878 solution to buffer overflow bug on GNU/Linux.
38880 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
38884 * bindgen.adb: Remove all references to Public_Version.
38885 * comperr.adb: Remove all references to Public_Version and
38886 GNATPRO_Version; correct bug reporting instructions.
38887 * comperr.ads: Change to match bug box.
38888 * gnatvsn.ads: Remove all references to Public version and
38891 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
38894 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
38898 * config-lang.in: Remove diff_excludes.
38900 2002-11-05 Graham Stott <graham.stott@btinternet.com>
38903 * trans.c (gnu_pending_elaboration_lists): New GC root.
38904 (build_unit_elab): Use..
38906 2002-10-30 Geert Bosch <bosch@gnat.com>
38909 * misc.c : Include optabs.h
38911 * Make-lang.in (misc.o): Add dependency on optabs.h
38913 2002-10-29 Geert Bosch <bosch@gnat.com>
38916 * Make-lang.in (gnatbind): Depend on CONFIG_H
38918 2002-10-29 Geert bosch <bosch@gnat.com>
38921 * misc.c: Unrevert misc.c (1.13)
38923 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
38925 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
38926 maintainership comments.
38928 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
38931 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
38932 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
38933 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
38934 7staprop.adb: Correct statements in comments about
38935 maintainership of GNAT.
38938 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
38939 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
38940 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
38941 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
38942 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
38943 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
38944 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
38945 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
38946 comments about maintainership of GNAT.
38948 PR ada/6919 (forward port of patch for PR ada/5904)
38949 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
38950 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
38951 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
38952 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
38953 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
38954 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
38955 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
38956 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
38957 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
38958 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
38959 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
38960 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
38961 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
38962 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
38963 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
38964 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
38965 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
38966 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
38967 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
38968 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
38969 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
38970 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
38971 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
38972 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
38973 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
38974 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
38975 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
38976 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
38977 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
38978 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
38979 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
38980 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
38981 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
38982 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
38983 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
38984 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
38985 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
38986 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
38987 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
38988 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
38989 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
38990 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
38991 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
38992 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
38993 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
38994 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
38995 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
38996 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
38997 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
38998 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
38999 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
39000 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
39001 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
39002 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
39003 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
39004 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
39005 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
39006 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
39007 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
39008 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
39009 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
39010 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
39011 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
39012 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
39013 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
39014 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
39015 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
39016 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
39017 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
39018 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
39019 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
39020 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
39021 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
39022 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
39023 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
39024 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
39025 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
39026 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
39027 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
39028 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
39029 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
39030 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
39031 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
39032 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
39033 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
39034 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
39035 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
39036 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
39037 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
39038 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
39039 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
39040 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
39041 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
39042 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
39043 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
39044 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
39045 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
39046 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
39047 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
39048 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
39049 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
39050 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
39051 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
39052 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
39053 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
39054 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
39055 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
39056 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
39057 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
39058 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
39059 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
39060 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
39061 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
39062 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
39063 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
39064 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
39065 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
39066 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
39067 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
39068 par-endh.adb par-labl.adb par-load.adb par-prag.adb
39069 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
39070 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
39071 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
39072 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
39073 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
39074 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
39075 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
39076 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
39077 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
39078 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
39079 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
39080 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
39081 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
39082 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
39083 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
39084 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
39085 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
39086 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
39087 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
39088 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
39089 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
39090 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
39091 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
39092 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
39093 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
39094 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
39095 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
39096 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
39097 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
39098 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
39099 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
39100 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
39101 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
39102 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
39103 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
39104 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
39105 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
39106 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
39107 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
39108 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
39109 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
39110 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
39111 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
39112 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
39113 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
39114 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
39115 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
39116 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
39117 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
39118 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
39119 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
39120 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
39121 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
39122 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
39123 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
39124 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
39125 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
39126 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
39127 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
39128 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
39129 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
39130 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
39131 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
39132 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
39133 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
39134 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
39135 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
39136 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
39137 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
39138 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
39139 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
39140 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
39141 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
39142 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
39143 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
39144 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
39145 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
39146 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
39147 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
39148 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
39149 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
39150 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
39151 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
39152 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
39153 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
39154 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
39155 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
39156 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
39157 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
39158 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
39159 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
39160 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
39161 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
39162 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
39163 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
39164 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
39165 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
39166 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
39167 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
39168 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
39169 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
39170 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
39171 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
39172 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
39173 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
39174 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
39175 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
39176 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
39177 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
39178 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
39179 stringt.ads stringt.h style.adb style.ads stylesw.adb
39180 stylesw.ads switch.adb switch.ads sysdep.c system.ads
39181 table.adb table.ads targparm.adb targparm.ads targtyps.c
39182 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
39183 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
39184 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
39185 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
39186 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
39187 usage.ads utils.c utils2.c validsw.adb validsw.ads
39188 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
39189 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
39190 xtreeprs.adb: Correct statements in comments about maintainership
39193 2002-09-23 Zack Weinberg <zack@codesourcery.com>
39195 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
39196 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
39197 * gnatvsn.ads: Gnat_Version_String is now a function.
39198 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
39199 copy the C version_string into a String and return it.
39200 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
39201 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
39202 Remove pragma Ident (Gnat_Version_String). If this was the
39203 sole use of package Gnatvsn, remove the with statement too.
39204 * gnat1drv.adb: Tweak -gnatv output.
39206 2002-09-17 Richard Henderson <rth@redhat.com>
39208 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
39209 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
39210 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
39211 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
39212 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
39213 and real_2expN instead of a loop.
39214 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
39215 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
39217 2002-08-25 Andre Leis <a.leis@gmx.net>
39218 David Billinghurst <David.Billinghurst@riotinto.com>
39220 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
39222 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39224 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
39225 Remove $(CONFIG_H) dependency.
39227 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
39229 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
39231 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
39233 * adadecode.c (ada_demangle): Use xstrdup in lieu of
39235 * misc.c (gnat_decode_option): Likewise.
39237 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
39239 * make.adb (Add_Switch): Make Generic_Position a procedure. The
39240 function approach did not work well because of a side effect (the
39241 function call could reallocate the table which was being indexed
39242 using its result). Fixes ada/4851. [RESURRECTED]
39244 2002-07-01 Roger Sayle <roger@eyesopen.com>
39246 * ada/utils.c (builtin_function): Accept an additional parameter.
39248 2002-06-28 Andreas Jaeger <aj@suse.de>
39251 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
39254 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
39256 * Makefile.in (SHELL): Set to @SHELL@.
39258 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
39260 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
39261 array size calculation.
39263 2002-06-04 Andreas Jaeger <aj@suse.de>
39265 * Make-lang.in (gnatbind): Readd rule that has been lost in last
39268 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
39270 Merge from pch-branch:
39272 * config-lang.in (gtfiles): Add ada-tree.h.
39273 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
39274 (SET_TYPE_MODULUS): New.
39275 (SET_TYPE_INDEX): New.
39276 (SET_TYPE_DIGITS_VALUE): New.
39277 (SET_TYPE_RM_SIZE): New.
39278 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
39279 (SET_TYPE_ADA_SIZE): New.
39280 (SET_TYPE_ACTUAL_BOUNDS): New.
39281 (SET_DECL_CONST_CORRESPONDING_VAR): New.
39282 (SET_DECL_ORIGINAL_FIELD): New.
39283 (TREE_LOOP_ID): Correct typo.
39284 * decl.c: Use new macros.
39285 * utils.c: Include debug.h, use new macros.
39286 * utils2.c: Use new macros.
39288 * ada-tree.h: Update all macros for new tree description.
39289 (struct tree_loop_id): New.
39290 (union lang_tree_node): New.
39291 (struct lang_decl): New.
39292 (struct lang_type): New.
39293 * misc.c (gnat_mark_tree): Delete.
39294 (LANG_HOOKS_MARK_TREE): Delete.
39295 * trans.c (tree_transform): No longer any need to cast
39298 * utils.c (struct language_function): New dummy structure.
39300 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
39301 (misc.o): Likewise.
39302 (utils.o): Likewise; also gtype-ada.h.
39303 * Make-lang.in (gnat1): Add dependency on s-gtype.
39304 (gnatbind): Add dependency on $(CONFIG_H).
39305 * utils.c: Correct last #include.
39306 (stuct e_stack): Remove unnecessary 'static'.
39307 (mark_e_stack): Remove unused prototype.
39309 * scn-nlit.adb: Remove whitespace after version number to
39310 keep lines under 80 chars.
39311 * snames.adb: Likewise.
39312 * treepr.ads: Likewise.
39314 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
39315 (misc.o): Likewise.
39316 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
39317 * config-lang.in (gtfiles): New.
39318 * decl.c: Use gengtype for roots.
39319 * gigi.h: Use gengtype for roots.
39320 * trans.c: Use gengtype for roots.
39321 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
39323 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
39325 * misc.c (gnat_init): Adjust setting of internal_error_function.
39327 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
39329 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
39330 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
39331 gnat_ug_wnt.texi: Regenerate.
39333 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
39335 * 5ntaprop.adb (with System.OS_Primitives): Remove.
39337 * cstreams.c (max_path_len): Move from here ...
39338 * adaint.c (__gnat_max_path_len): ... to here.
39339 * adaint.c (__gnat_max_path_len): Declare.
39340 * g-dirope.adb (Max_Path): Adjust.
39341 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
39342 * i-cstrea.ads (max_path_len): Adjust.
39343 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
39344 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
39346 * Makefile.in, Make-lang.in: Documentation is now built in
39347 Make-lang.in. Store Info and generated Texinfo files in the
39349 * gnat_ug.texi: Remove CVS keywords, correct version number.
39350 Set file name correctly.
39352 * gnat_ug_*.texi: Add.
39353 * .cvsignore: Ignore generated Texinfo files.
39355 2002-05-30 Zack Weinberg <zack@codesourcery.com>
39357 * ada.h: Add MI guard macro.
39358 (SUBTYPE): Define constants with an anonymous enum, not static
39360 (IN): Cast constants to appropriate type before use.
39362 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
39364 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
39367 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39369 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
39370 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
39371 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
39372 (ALL_ADA_CFLAGS): Likewise.
39373 (ADA_INCLUDES): Likewise.
39374 Adapt for new working dir.
39375 (GNATBIND): Use Makefile.in version.
39376 (.SUFFIXES): Copy from Makefile.in.
39377 (ada-warn): Define.
39378 (.adb.o, .ads.o): Copy from Makefile.in.
39379 Added $(OUTPUT_OPTION).
39380 (GNAT1_C_OBJS): Moved from Makefile.in.
39381 Prefix with ada subdir.
39382 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
39383 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
39384 Adapt for new working dir.
39385 (EXTRA_GNATBIND_OBJS): Likewise.
39386 (ADA_BACKEND): Moved from Makefile.in.
39387 Renamed to avoid conflict with global BACKEND.
39389 (TARGET_ADA_SRCS): Moved from Makefile.in.
39390 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
39392 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
39393 (ada_extra_files): Moved from Makefile.in.
39394 Prefix with ada subdir.
39395 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
39396 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
39397 (ada/nmake.ads): Likewise.
39398 (update-sources): Moved from Makefile.in.
39399 Prefix with ada subdir.
39400 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
39401 (ADA_TREE_H): Likewise.
39402 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
39403 (ada/memtrack.o): Likewise.
39404 (ada/adadecode.o): Likewise.
39405 Update dependencies.
39406 (ada/adaint.o): New.
39407 (ada/argv.o): Moved from Makefile.in.
39408 Prefix with ada subdir.
39409 Update dependencies.
39410 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
39411 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
39412 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
39413 Prefix with ada subdir.
39414 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
39415 (GNAT DEPENDENCIES): Regenerate.
39416 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
39417 toplevel Makefile.in.
39418 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
39419 (TARGET_ADA_SRCS): Removed.
39420 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
39421 (GNATBIND_OBJS): Likewise.
39422 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
39423 (BACKEND): Removed.
39424 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
39425 (TREE_H): Likewise.
39426 (ada_extra_files): Likewise.
39427 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
39428 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
39429 (update-sources): Likewise.
39430 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
39431 (ADA_TREE_H): Likewise.
39432 (adadecoce.o): Likewise.
39433 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
39434 (GNAT DEPENDENCIES): Likewise.
39436 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39438 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
39439 * Makefile.in: Likewise.
39441 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39443 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
39444 Restore $(CONFIG_H) and prefix.o dependencies.
39445 (ada.stage[1-4]): Depend on stage?-start.
39447 * Makefile.in (b_gnatb.c): Depend on interfac.o.
39449 2002-05-02 Jim Wilson <wilson@redhat.com>
39451 * utils.c (finish_record_type): Change record_size to record_type.
39453 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
39455 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
39456 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
39457 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
39459 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
39461 * misc.c (gnat_parse_file): Update.
39463 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
39465 * misc.c (gnat_init): Don't set lang_attribute_common.
39467 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
39469 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
39471 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
39473 * gnat_ug.texi: New file.
39475 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
39476 instead of gfdl.texi
39478 * xgnatug.adb, ug_words: New files.
39480 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
39481 gnat_rm and gnat-style manuals.
39483 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
39485 * gigi.h (incomplete_type_error): Remove.
39486 * utils.c (incomplete_type_error): Remove.
39488 2002-04-16 Mark Mitchell <mark@codesourcery.com>
39490 * trans.c (tree_transform): Add has_scope argument to
39491 expand_start_stmt_expr.
39493 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
39495 * gigi.h (truthvalue_conversion): Rename.
39496 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
39497 * trans.c (tree_transform): Update.
39498 * utils2.c (truthvalue_conversion): Rename, update.
39499 (build_binary_op, build_unary_op): Update.
39501 2002-04-04 Laurent Guerby <guerby@acm.org>
39503 * make.adb: Implement -margs, remove restriction about file name placement.
39504 * makeusg.adb: Documentation update.
39505 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
39506 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
39508 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
39510 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
39511 (builtin_function): Similarly.
39513 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
39515 * decl.c (gnat_to_gnu_entity): Update.
39516 * gigi.h (mark_addressable): Rename.
39517 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
39518 * trans.c (tree_transform): Update.
39519 * utils.c (create_var_decl): Update.
39520 * util2.c (build_binary_op, build_unary_op,
39521 fill_vms_descriptor): Update.
39522 (mark_addressable): Rename, update.
39524 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
39526 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
39528 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
39529 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
39530 * trans.c (tree_transform, convert_with_check): Update.
39531 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
39534 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
39536 * gigi.h (finish_incomplete_decl): Rename.
39537 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
39538 * utils.c (gnat_init_decl_processing): Don't set hook.
39539 (finish_incomplete_decl): Rename.
39541 2002-03-29 Andreas Schwab <schwab@suse.de>
39543 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
39546 2001-03-28 Robert Dewar <dewar@gnat.com>
39549 (Remove_Checks): New procedure
39552 (Remove_Checks): New procedure
39555 Use new Duplicate_Subexpr functions
39556 (Duplicate_Subexpr_No_Checks): New procedure
39557 (Duplicate_Subexpr_No_Checks_Orig): New procedure
39558 (Duplicate_Subexpr): Restore original form (checks duplicated)
39559 (Duplicate_Subexpr): Call Remove_Checks
39562 (Duplicate_Subexpr_No_Checks): New procedure
39563 (Duplicate_Subexpr_No_Checks_Orig): New procedure
39564 Add 2002 to copyright notice
39566 * sem_util.adb: Use new Duplicate_Subexpr functions
39569 (Eval_Indexed_Component): This is the place to call
39570 Constant_Array_Ref and to replace the value. We simply merge
39571 the code of this function in here, since it is now no longer
39572 used elsewhere. This fixes the problem of the back end not
39573 realizing we were clever enough to see that this was
39575 (Expr_Val): Remove call to Constant_Array_Ref
39576 (Expr_Rep_Val): Remove call to Constant_Array_Ref
39578 (Constant_Array_Ref): Deal with string literals (patch
39579 suggested by Zack Weinberg on the gcc list)
39581 2001-03-28 Ed Schonberg <schonber@gnat.com>
39583 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
39584 Duplicate_Subexpr_Move_Checks.
39586 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
39587 Duplicate_Subexpr_Move_Checks.
39589 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
39590 value of array exists before retrieving it (it may a private
39591 protected component in a function).
39593 2002-03-28 Geert Bosch <bosch@gnat.com>
39595 * prj-pp.adb : New file.
39597 * prj-pp.ads : New file.
39599 2002-03-28 Andreas Jaeger <aj@suse.de>
39601 * Makefile.in (stamp-sdefault): Fix path for Makefile.
39603 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
39605 * misc.c (gnat_expand_expr): Move prototype.
39607 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
39609 * misc.c (insert_default_attributes): Remove.
39611 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
39613 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
39614 (gnat_init): Don't set hook.
39615 (gnat_expand_expr): Fix prototype.
39617 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
39619 * misc.c (ggc_p): Remove.
39621 2002-03-27 Geert Bosch <bosch@gnat.com>
39623 * prj-makr.ads, prj-makr.adb : New files.
39625 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
39627 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
39628 (lang_mark_tree): Make static, rename.
39630 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
39632 * misc.c (maybe_build_cleanup): Remove.
39634 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
39636 * gigi.h (yyparse): Remove.
39638 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
39640 From Ben Brosgol <brosgol@gnat.com>
39641 * gnat_rm.texi: Sync with ACT version.
39643 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
39645 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
39646 (gnat_init): Remove old hook.
39648 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
39650 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
39651 (yyparse): Rename gnat_parse_file.
39653 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
39655 Delete all lines containing "$Revision:".
39656 * xeinfo.adb: Don't look for revision numbers.
39657 * xnmake.adb: Likewise.
39658 * xsinfo.adb: Likewise.
39659 * xsnames.adb: Likewise.
39660 * xtreeprs.adb: Likewise.
39662 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
39664 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
39665 gnat_tree_code_name): Delete.
39666 (tree_code_type, tree_code_length, tree_code_name): Define.
39667 (gnat_init): Don't try to copy into the various tree_code
39670 2002-03-11 Richard Henderson <rth@redhat.com>
39672 * Makefile.in (.NOTPARALLEL): Add fake tag.
39674 2002-03-07 Geert Bosch <bosch@gnat.com>
39676 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
39677 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
39678 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
39679 switch-m.adb, switch-m.ads : New files.
39681 2002-03-07 Geert Bosch <bosch@gnat.com>
39683 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
39684 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
39685 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
39686 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
39687 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
39688 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
39689 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
39690 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
39691 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
39692 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
39693 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
39694 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
39695 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
39696 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
39697 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
39698 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
39699 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
39700 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
39701 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
39702 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
39703 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
39704 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
39705 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
39706 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
39707 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
39708 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
39709 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
39710 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
39711 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
39712 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
39713 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
39714 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
39715 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
39716 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
39717 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
39718 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
39719 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
39720 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
39721 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
39722 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
39723 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
39724 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
39725 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
39726 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
39727 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
39728 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
39729 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
39730 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
39731 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
39732 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
39733 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
39734 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
39735 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
39736 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
39737 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
39738 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
39739 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
39740 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
39741 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
39742 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
39743 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
39744 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
39745 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
39746 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
39747 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
39748 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
39749 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
39750 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
39751 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
39752 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
39753 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
39754 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
39755 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
39756 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
39757 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
39758 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
39759 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
39760 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
39761 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
39762 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
39763 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
39764 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
39765 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
39766 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
39767 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
39768 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
39769 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
39770 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
39771 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
39772 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
39773 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
39774 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
39775 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
39776 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
39777 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
39778 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
39779 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
39781 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
39782 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
39783 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
39784 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
39786 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
39787 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
39789 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
39790 to mdll-fil.ad[bs] and mdll-util.ad[bs]
39792 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
39793 from mdllfile.ad[bs] and mdlltool.ad[bs]
39795 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
39797 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
39798 lieu of explicit sizeof/sizeof.
39800 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
39802 * misc.c (copy_lang_decl): Remove.
39804 2002-02-27 Zack Weinberg <zack@codesourcery.com>
39806 * misc.c: Delete traditional-mode-related code copied from the
39807 C front end but not used, or used only to permit the compiler
39810 2002-02-07 Richard Henderson <rth@redhat.com>
39812 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
39813 * adaint.h (__gnat_to_gm_time): Update prototype.
39815 2002-01-30 Richard Henderson <rth@redhat.com>
39817 * trans.c (tree_transform) [N_Loop_Statement]: Use
39818 expand_exit_loop_top_cond.
39820 2001-12-23 Richard Henderson <rth@redhat.com>
39822 * utils.c (end_subprog_body): Push GC context around
39823 rest_of_compilation for nested functions.
39825 2001-12-23 Richard Henderson <rth@redhat.com>
39827 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
39829 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
39831 * gnat-style.texi (Declarations and Types): Remove ancient style
39832 rule which was mandated by code generation issues.
39834 * gnat-style.texi (header): Add @dircategory, @direntry.
39835 (title page): Remove date.
39836 (general) Add @./@: where approriate, and two spaces after the
39837 full stop at the end of a sentence. Use @samp markup when
39838 referring concrete lexical entities (keywords, attribute names
39839 etc.), and @syntax for ARM grammar elements. Use @r for English
39840 text in comments. Use @emph for emphasis. Change "if-statements"
39841 etc. to "if statements" (without @samp). Break long lines. Make
39842 casing of section names consistent.
39843 (Identifiers): Use @samp markup for variable names.
39844 (Comments): Use @samp markup for comment characters. Line-end
39845 comments may follow any Ada code, not just statements. Fix
39846 misspelling of "Integer" as "integer".
39847 (Loop statements): Do not use variable name "I", use "J".
39848 (Subprogram Declarations): Document alignment.
39849 (Subprogram Bodies, Block statements): Document empty line before
39852 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
39854 * make.adb (Add_Switch): Make Generic_Position a procedure. The
39855 function approach did not work well because of a side effect (the
39856 function call could reallocate the table which was being indexed
39857 using its result). Fixes ada/4851.
39859 2001-12-19 Robert Dewar <dewar@gnat.com>
39861 * bindgen.adb: Minor reformatting
39863 * cstand.adb: Minor reformatting
39865 * fmap.adb: Minor reformatting
39866 Change name from Add for Add_To_File_Map (Add is much too generic)
39867 Change Path_Name_Of to Mapped_Path_Name
39868 Change File_Name_Of to Mapped_File_Name
39869 Fix copyright dates in header
39872 Change name from Add for Add_To_File_Map (Add is much too generic)
39873 Change Path_Name_Of to Mapped_Path_Name
39874 Change File_Name_Of to Mapped_File_Name
39875 Fix copyright dates in header
39877 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
39878 Add use clause for Fmap.
39880 * make.adb: Minor reformatting
39882 * osint.adb: Minor reformatting. Change of names in Fmap.
39883 Add use clause for Fmap.
39885 * prj-env.adb: Minor reformatting
39887 * prj-env.ads: Minor reformatting
39889 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
39890 error found (there were odd exceptions to this general rule in
39891 -gnatec/-gnatem processing)
39893 2001-12-19 Olivier Hainque <hainque@gnat.com>
39895 * raise.c (__gnat_eh_personality): Exception handling personality
39896 routine for Ada. Still in rough state, inspired from the C++ version
39897 and still containing a bunch of debugging artifacts.
39898 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
39899 inspired from the C++ library.
39901 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
39902 exception handling integration.
39904 2001-12-19 Arnaud Charlet <charlet@gnat.com>
39906 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
39907 (HIE_SOURCES): Add s-secsta.ad{s,b}.
39908 (HIE_OBJS): Add s-fat*.o
39909 (RAVEN_SOURCES): Remove files that are no longer required. Add
39910 interrupt handling files.
39911 (RAVEN_MOD): Removed, no longer needed.
39913 2001-12-19 Robert Dewar <dewar@gnat.com>
39915 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
39916 Add 2001 to copyright date
39918 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
39919 need to force universal inlining for these cases.
39921 2001-12-19 Arnaud Charlet <charlet@gnat.com>
39923 * s-taprob.adb: Minor clean ups so that this unit can be used in
39926 * exp_ch7.adb: Allow use of secondary stack in HI mode.
39927 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
39929 2001-12-19 Vincent Celier <celier@gnat.com>
39931 * prj-tree.ads (Project_Node_Record): Add comments for components
39932 Pkg_Id and Case_Insensitive.
39934 2001-12-19 Pascal Obry <obry@gnat.com>
39936 * g-socket.adb: Minor reformatting. Found while reading code.
39938 2001-12-19 Robert Dewar <dewar@gnat.com>
39940 * prj-tree.ads: Minor reformatting
39942 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
39944 * config-lang.in (diff_excludes): Remove.
39946 2001-12-17 Ed Schonberg <schonber@gnat.com>
39948 * sem_res.adb (Resolve_Selected_Component): do not generate a
39949 discriminant check if the selected component is a component of
39950 the argument of an initialization procedure.
39952 * trans.c (tree_transform, case of arithmetic operators): If result
39953 type is private, the gnu_type is the base type of the full view,
39954 given that the full view itself may be a subtype.
39956 2001-12-17 Robert Dewar <dewar@gnat.com>
39958 * sem_res.adb: Minor reformatting
39960 * trans.c (tree_transform, case N_Real_Literal): Add missing third
39961 parameter in call to Machine (unknown horrible effects from this
39964 * urealp.h: Add definition of Round_Even for call to Machine
39965 Add third parameter for Machine
39967 2001-12-17 Ed Schonberg <schonber@gnat.com>
39969 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
39970 predefined units in No_Run_Time mode.
39972 2001-12-17 Richard Kenner <kenner@gnat.com>
39974 * misc.c (insn-codes.h): Now include.
39976 2001-12-17 Olivier Hainque <hainque@gnat.com>
39978 * a-except.adb: Preparation work for future integration of the GCC 3
39979 exception handling mechanism
39980 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
39981 to factorize previous code sequences and make them externally callable,
39982 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
39983 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
39984 Use the new notification routines.
39986 2001-12-17 Emmanuel Briot <briot@gnat.com>
39988 * prj-tree.ads (First_Choice_Of): Document the when others case
39990 2001-12-17 Arnaud Charlet <charlet@gnat.com>
39992 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
39993 HI-E mode, in order to support Ravenscar profile properly.
39995 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
39996 mode on 32 bits targets.
39998 2001-12-17 Vincent Celier <celier@gnat.com>
40000 * fmap.adb: Initial version.
40002 * fmap.ads: Initial version.
40004 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
40005 If search is successfully done, add to mapping.
40007 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
40010 (Gnatmake): Add new local variable Mapping_File_Name.
40011 Create mapping file when using project file(s).
40012 Delete mapping file before exiting.
40014 * opt.ads (Mapping_File_Name): New variable
40016 * osint.adb (Find_File): Use path name found in mapping, if any.
40018 * prj-env.adb (Create_Mapping_File): New procedure
40020 * prj-env.ads (Create_Mapping_File): New procedure.
40022 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
40025 * usage.adb: Add entry for new switch -gnatem.
40027 * Makefile.in: Add dependencies for fmap.o.
40029 2001-12-17 Ed Schonberg <schonber@gnat.com>
40031 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
40032 is a package instantiation rewritten as a package body.
40033 (Install_Withed_Unit): Undo previous change, now redundant.
40035 2001-12-17 Gary Dismuke <dismukes@gnat.com>
40038 (Compute_Length): Move conversion to Unsigned to callers.
40039 (Get_Max_Size): Convert Len expression to Unsigned after calls to
40040 Compute_Length and Determine_Range.
40041 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
40042 Compute_Length and Determine_Range.
40043 Above changes fix problem with length computation for supernull arrays
40044 where Max (Len, 0) wasn't getting applied due to the Unsigned
40045 conversion used by Compute_Length.
40047 2001-12-17 Arnaud Charlet <charlet@gnat.com>
40050 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
40051 System.Secondary_Stack.
40052 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
40054 Remove unused entity RE_Exception_Data.
40056 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
40058 * rident.ads (No_Secondary_Stack): New restriction.
40060 2001-12-17 Joel Brobecker <brobecke@gnat.com>
40062 * gnat_rm.texi: Fix minor typos. Found while reading the section
40063 regarding "Bit_Order Clauses" that was sent to a customer.
40064 Very interesting documentation!
40066 2001-12-17 Robert Dewar <dewar@gnat.com>
40068 * sem_case.adb (Choice_Image): Avoid creating improper character
40069 literal names by using the routine Set_Character_Literal_Name. This
40070 fixes bombs in certain error message cases.
40072 2001-12-17 Arnaud Charlet <charlet@gnat.com>
40074 * a-reatim.adb: Minor reformatting.
40076 2001-12-17 Ed Schonberg <schonber@gnat.com>
40078 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
40079 case where the formal is an extension of another formal in the current
40080 unit or in a parent generic unit.
40082 2001-12-17 Arnaud Charlet <charlet@gnat.com>
40084 * s-tposen.adb: Update comments. Minor reformatting.
40085 Minor code clean up.
40087 * s-tarest.adb: Update comments. Minor code reorganization.
40089 2001-12-17 Gary Dismukes <dismukes@gnat.com>
40091 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
40094 2001-12-17 Robert Dewa <dewar@gnat.com>
40096 * exp_attr.adb: Minor reformatting
40098 2001-12-17 Ed Schonberg <schonber@gnat.com>
40100 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
40101 derivations nested within a child unit: verify that the parent
40102 type is declared in an outer scope.
40104 2001-12-17 Robert Dewar <dewar@gnat.com>
40106 * sem_ch12.adb: Minor reformatting
40108 2001-12-17 Ed Schonberg <schonber@gnat.com>
40110 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
40111 warning if current unit is a predefined one, from which bodies may
40114 2001-12-17 Robert Dewar <dewar@gnat.com>
40116 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
40117 Fix header format. Add 2001 to copyright date.
40119 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
40120 which caused CE during compilation if checks were enabled.
40122 2001-12-17 Vincent Celier <celier@gnat.com>
40125 (Switches_Of): New function
40126 (Test_If_Relative_Path): New procedure
40127 (Add_Switches): Use new function Switches_Of
40128 (Collect_Arguments_And_Compile): Use new function Switches_Of.
40129 When using a project file, test if there are any relative
40130 search path. Fail if there are any.
40131 (Gnatmake): Only add switches for the primary directory when not using
40132 a project file. When using a project file, change directory to the
40133 object directory of the main project file. When using a project file,
40134 test if there are any relative search path. Fail if there are any.
40135 When using a project file, fail if specified executable is relative
40136 path with directory information, and prepend executable, if not
40137 specified as an absolute path, with the exec directory. Make sure
40138 that only one -o switch is transmitted to the linker.
40140 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
40143 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
40144 when using a non standard naming scheme.
40145 (Check_Ada_Naming_Scheme): Make sure that error messages
40146 do not raise exceptions.
40147 (Is_Illegal_Append): Return True if there is no dot in the suffix.
40148 (Language_Independent_Check): Check the exec directory.
40150 * prj.adb (Project_Empty): Add new component Exec_Directory
40153 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
40154 (Project_Data): Add component Exec_Directory
40156 * snames.adb: Updated to match snames.ads revision 1.215
40158 * snames.ads: Added Exec_Dir
40160 2001-12-17 Robert Dewar <dewar@gnat.com>
40162 * make.adb: Minor reformatting
40164 * prj-nmsc.adb: Minor reformatting
40166 * snames.adb: Updated to match snames.ads
40168 * snames.ads: Alphebetize entries for project file
40170 2001-12-17 Ed Schonberg <schonber@gnat.com>
40172 * trans.c (process_freeze_entity): Do nothing if the entity is a
40173 subprogram that was already elaborated.
40175 2001-12-17 Richard Kenner <kenner@gnat.com>
40177 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
40178 and Esize if object is referenced via pointer.
40180 2001-12-17 Ed Schonberg <schonber@gnat.com>
40182 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
40183 is discrete before analyzing choices.
40185 2001-12-17 Joel Brobecker <brobecke@gnat.com>
40187 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
40188 containing the name of the Ada Main Program. This string is mainly
40189 intended for the debugger.
40190 (Gen_Output_File_C): Do the equivalent change when generating a C file.
40192 2001-12-17 Robert Dewar <dewar@gnat.com>
40194 * ali.adb: Set new Dummy_Entry field in dependency entry
40196 * ali.ads: Add Dummy_Entry field to source dependency table
40198 * bcheck.adb (Check_Consistency): Ignore dummy D lines
40200 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
40202 * lib-writ.ads: Document dummy D lines for missing files.
40204 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
40206 2001-12-17 Robert Dewar <dewar@gnat.com>
40208 * ali.adb: Type reference does not reset current file.
40210 * ali.adb: Recognize and scan renaming reference
40212 * ali.ads: Add spec for storing renaming references.
40214 * lib-xref.ads: Add documentation for handling of renaming references
40216 * lib-xref.adb: Implement output of renaming reference.
40219 (Determine_Range): Document local variables
40220 (Determine_Range): Make sure Hbound is initialized. It looks as though
40221 there could be a real problem here with an uninitialized reference
40222 to Hbound, but no actual example of failure has been found.
40224 2001-12-17 Laurent Pautet <pautet@gnat.com>
40227 Fix comment of Shutdown_Socket and Close_Socket. These functions
40228 should not fail silently because if they are called twice, this
40229 probably means that there is a race condition in the user program.
40230 Anyway, this behaviour is consistent with the rest of this unit.
40231 When an error occurs, an exception is raised with the error message
40232 as exception message.
40234 2001-12-17 Robert Dewar <dewar@gnat.com>
40236 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
40237 that it happens before modification of Sloc values for -gnatD.
40239 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
40240 so that it happens before modification of Sloc values for -gnatD.
40242 * switch.adb: Minor reformatting
40244 2001-12-15 Richard Henderson <rth@redhat.com>
40246 * sem_ch7.adb: Wrap comment.
40248 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
40250 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
40251 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
40252 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
40253 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
40254 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
40255 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
40256 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
40257 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
40258 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
40259 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
40260 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
40261 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
40262 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
40263 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
40264 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
40265 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
40266 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
40267 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
40268 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
40269 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
40270 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
40271 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
40272 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
40273 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
40276 2001-12-14 Vincent Celier <celier@gnat.com>
40278 * osint.adb(Create_Debug_File): When an object file is specified,
40279 put the .dg file in the same directory as the object file.
40281 2001-12-14 Robert Dewar <dewar@gnat.com>
40283 * osint.adb: Minor reformatting
40285 * lib-xref.adb (Output_Instantiation): New procedure to generate
40286 instantiation references.
40288 * lib-xref.ads: Add documentation of handling of generic references.
40290 * ali.adb (Read_Instantiation_Ref): New procedure to read
40291 instantiation references
40293 * ali.ads: Add spec for storing instantiation references
40295 * bindusg.adb: Minor reformatting
40297 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
40299 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
40301 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
40303 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
40307 Add 2001 to copyright date
40308 Add entry for Latin-5 (Cyrillic ISO-8859-5)
40310 2001-12-14 Matt Gingell <gingell@gnat.com>
40312 * adaint.c: mktemp is a macro on Lynx and can not be used as an
40315 2001-12-14 Richard Kenner <kenner@gnat.com>
40317 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
40318 if operand is CONSTRUCTOR.
40320 2001-12-14 Ed Schonberg <schonber@gnat.com>
40322 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
40323 before emiting check on right-hand side, so that exception information
40326 2001-12-14 Richard Kenner <kenner@gnat.com>
40328 * utils.c (create_var_decl): Throw away initializing expression
40329 if just annotating types and non-constant.
40331 2001-12-14 Vincent Celier <celier@gnat.com>
40333 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
40336 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
40338 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
40340 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
40342 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
40344 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
40346 * ChangeLog: Remove piece of diff output.
40348 2001-12-14 Geert Bosch <bosch@gnat.com>
40350 * config-lang.in: Update copyright notice
40352 * layout.adb: Remove commented out code.
40354 * mdllfile.ads: Update copyright notice. Fix header format.
40356 * sem_case.ads: Likewise.
40358 * sem_ch3.adb: Minor reformatting.
40360 2001-12-12 Geert Bosch <bosch@gnat.com>
40362 * freeze.ads: Update copyright date.
40364 * g-comlin.ads: Minor reformatting.
40366 * gnat-style.texi: Fix typo.
40368 2001-12-12 Geert Bosch <bosch@gnat.com>
40370 * einfo.h: Regenerate.
40372 2001-12-12 Ed Schonberg <schonber@gnat.com>
40374 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
40375 on known node types, rather than untyped fields. Further cleanups.
40377 2001-12-12 Robert Dewar <dewar@gnat.com>
40380 (Save_Entity_Descendant): Minor comment update.
40381 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
40382 of an N_Attribute_Reference node. As per note below, this does not
40383 eliminate need for Associated_Node in attribute ref nodes.
40384 (Associated_Node): Documentation explicitly mentions attribute
40385 reference nodes, since this field is used in such nodes.
40387 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
40389 2001-12-12 Robert Dewar <dewar@gnat.com>
40391 * s-stalib.adb: Add more comments on with statements being needed
40393 * par-ch12.adb: Minor reformatting
40395 * prj-dect.ads: Fix copyright header
40397 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
40398 inputs fit in 32 bits, but the result still overflows.
40400 * s-fatgen.ads: Minor comment improvement
40402 2001-12-12 Ed Schonberg <schonber@gnat.com>
40404 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
40405 formal derived type, look for an inherited component from the full
40406 view of the parent, if any.
40408 2001-12-12 Robert Dewar <dewar@gnat.com>
40410 * checks.ads (Apply_Alignment_Check): New procedure.
40412 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
40413 ensure that the alignment of objects with address clauses is
40414 appropriate, and raise PE if not.
40416 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
40417 Exp_Pakd.Known_Aligned_Enough
40419 * mdllfile.ads: Minor reformatting
40421 * mlib-fil.ads: Minor reformatting
40423 2001-12-12 Ed Schonberg <schonber@gnat.com>
40425 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
40426 fix to any component reference if enclosing record has non-standard
40429 2001-12-12 Vincent Celier <celier@gnat.com>
40431 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
40434 2001-12-12 Ed Schonberg <schonber@gnat.com>
40436 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
40439 2001-12-12 Robert Dewar <dewar@gnat.com>
40441 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
40443 2001-12-12 Emmanuel Briot <briot@gnat.com>
40445 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
40446 and it adds dependencies to system.io.
40448 2001-12-12 Pascal Obry <obry@gnat.com>
40450 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
40453 2001-12-11 Ed Schonberg <schonber@gnat.com>
40455 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
40456 that is the parent of other generics, the instance body replaces the
40457 instance node. Retrieve the instance of the spec, which is the one
40458 that is visible in clients and within the body.
40460 2001-12-11 Vincent Celier <celier@gnat.com>
40462 * gnatmain.adb: Initial version.
40464 * gnatmain.ads: Initial version.
40466 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
40468 * snames.adb: Updated to match snames.ads.
40470 * snames.ads: Added Gnatstub.
40472 2001-12-11 Vincent Celier <celier@gnat.com>
40474 * prj-attr.adb (Initialization_Data): Change name from
40475 Initialisation_Data.
40477 2001-12-11 Emmanuel Briot <briot@gnat.com>
40479 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
40480 + and * applied to backslashed expressions like \r.
40482 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
40484 * g-os_lib.ads: String_List type added, Argument_List type is now
40485 subtype of String_List.
40487 2001-12-11 Robert Dewar <dewar@gnat.com>
40489 * g-os_lib.ads: Change copyright to FSF
40490 Add comments for String_List type
40492 2001-12-11 Vincent Celier <celier@gnat.com>
40494 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
40495 string to the buffer).
40497 2001-12-11 Ed Schonberg <schonber@gnat.com>
40499 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
40502 * sem_attr.adb: Simplify previous fix for Address.
40503 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
40504 to avoid anomalies where the bound of the type appears to raise
40507 2001-12-11 Robert Dewar <dewar@gnat.com>
40509 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
40512 2001-12-11 Ed Schonber <schonber@gnat.com>
40514 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
40515 renamed unit before checking for recursive instantiations.
40517 2001-12-11 Emmanuel Briot <briot@gnat.com>
40519 * prj.ads: Add comments for some of the fields.
40521 2001-12-11 Robert Dewar <dewar@gnat.com>
40523 * lib-xref.adb (Output_Refs): Don't output type references outside
40524 the main unit if they are not otherwise referenced.
40526 2001-12-11 Ed Schonberg <schonber@gnat.com>
40528 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
40529 code and diagnose additional illegal uses
40531 * sem_util.adb (Is_Object_Reference): An indexed component is an
40532 object only if the prefix is.
40534 2001-12-11 Vincent Celier <celier@gnat.com>
40536 * g-diopit.adb: Initial version.
40538 * g-diopit.ads: Initial version.
40541 (Expand_Path): Avoid use of Unbounded_String
40542 (Find, Wildcard_Iterator): Moved to child package Iteration
40544 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
40546 2001-12-11 Robert Dewar <dewar@gnat.com>
40548 * sem_attr.adb: Minor reformatting
40550 2001-12-11 Ed Schonberg <schonber@gnat.com>
40552 * sem_ch3.adb: Clarify some ???.
40554 2001-12-11 Robert Dewar <dewar@gnat.com>
40556 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
40557 Exp_Pakd.Known_Aligned_Enough
40559 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
40560 version is moved to Exp_Ch13.
40562 2001-12-11 Robert Dewar <dewar@gnat.com>
40564 * einfo.ads: Minor reformatting
40566 * exp_ch5.adb: Add comment for previous.change
40568 * ali.adb: New interface for extended typeref stuff.
40570 * ali.ads: New interface for typeref stuff.
40572 * checks.adb (Apply_Alignment_Check): New procedure.
40574 * debug.adb: Add -gnatdM for modified ALI output
40576 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
40578 * lib-xref.adb: Extend generation of <..> notation to cover
40579 subtype/object types. Note that this is a complete rewrite,
40580 getting rid of the very nasty quadratic algorithm previously
40581 used for derived type output.
40583 * lib-xref.ads: Extend description of <..> notation to cover
40584 subtype/object types. Uses {..} for these other cases.
40585 Also use (..) for pointer types.
40587 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
40589 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
40590 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
40592 2001-12-11 Vincent Celier <celier@gnat.com>
40595 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
40596 Changed /BIND_ONLY to /ACTIONS=BIND
40597 Changed /LINK_ONLY to /ACTIONS=LINK
40599 2001-12-11 Ed Schonberg <schonber@gnat.com>
40601 * sem_ch8.adb (Find_Selected_Component): improved search for a
40602 candidate package in case of error.
40604 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
40605 chain back on scope stack before reinstalling use clauses.
40607 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
40608 is enabled, do not kill the code for the condition, to preserve
40611 2001-12-11 Robert Dewar <dewar@gnat.com>
40613 * checks.adb (Insert_Valid_Check): Apply validity check to expression
40614 of conversion, not to result of conversion.
40616 2001-12-11 Ed Schonberg <schonber@gnat.com>
40618 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
40619 before freezing parent. If the declarations are mutually recursive,
40620 an access to the current record type may be frozen before the
40621 derivation is complete.
40623 2001-12-05 Vincent Celier <celier@gnat.com>
40625 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
40626 -c /COMPILE_ONLY, -l /LINK_ONLY
40629 (Bind_Only): New Flag
40630 (Link_Only): New flag
40632 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
40635 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
40638 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
40639 (Gnatmake): Set the step flags. Only perform a step if the
40640 corresponding step flag is True.
40641 (Scan_Make_Arg): Reset the bind and link step flags when -u
40642 or -gnatc has been specified.
40644 2001-12-05 Ed Schonberg <schonber@gnat.com>
40646 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
40647 get bounds from right operand.
40649 * sem_eval.adb: Minor reformatting
40651 * exp_util.adb (Make_Literal_Range): use bound of literal rather
40652 than Index'First, its lower bound may be different from 1.
40654 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
40657 2001-12-05 Vincent Celier <celier@gnat.com>
40659 * prj-nmsc.adb Minor reformatting
40661 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
40662 set and libraries are not supported.
40664 2001-12-05 Ed Schonberg <schonber@gnat.com>
40666 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
40667 private view explicitly, so the back-end can treat as a global
40670 2001-12-05 Ed Schonberg <schonber@gnat.com>
40672 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
40673 unit, always replace instance node with new body, for ASIS use.
40675 2001-12-05 Vincent Celier <celier@gnat.com>
40677 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
40678 libraries are not supported and both attributes Library_Name and
40679 Library_Dir are specified.
40681 * prj-proc.adb (Expression): Set location of Result to location of
40684 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
40685 (prj-nmsc is now importing MLib.Tgt)
40687 * prj-proc.adb: Put the change indicated above that was forgotten.
40689 2001-12-05 Robert Dewar <dewar@gnat.com>
40691 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
40693 2001-12-05 Ed Schonberg <schonber@gnat.com>
40695 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
40696 constraint, introduce explicit subtype declaration and derive from it.
40698 * sem_ch3.adb: Minor reformatting
40700 2001-12-05 Robert Dewar <dewar@gnat.com>
40702 * checks.adb (Determine_Range): Increase cache size for checks.
40705 * exp_ch6.adb: Minor reformatting
40706 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
40707 a parameter whose root type is System.Address, since treating such
40708 subprograms as pure in the code generator is almost surely a mistake
40709 that will lead to unexpected results.
40711 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
40712 change handling of conversions.
40714 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
40716 2001-12-05 Ed Schonberg <schonber@gnat.com>
40718 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
40719 aggregate with static wrong size, attach generated Raise node to
40722 2001-12-05 Robert Dewar <dewar@gnat.com>
40724 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
40725 Fixes compilation abandoned bomb in B24009B.
40727 2001-12-05 Ed Schonberg <schonber@gnat.com>
40730 Document use of Associated_Node on Selected_Components.
40731 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
40732 to clarify use of untyped descendant fields.
40734 2001-12-05 Robert Dewar <dewar@gnat.com>
40736 * prj-dect.ads: Add ??? comment
40737 Add 2001 to copyright notice (was not done in after all)
40739 * prj-part.adb: Minor reformatting. Reword one awkward error message.
40741 * prj.ads: Minor reformatting throughout, and add some ??? comments
40743 * snames.ads: Minor reformatting
40745 2001-12-05 Geert Bosch <bosch@gnat.com>
40747 * snames.adb: Autoupdate
40749 2001-12-05 Vincent Celier <celier@gnat.com>
40751 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
40753 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
40755 * prj-env.adb: Minor comment changes (modifying -> extends).
40757 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
40759 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
40762 * prj.adb (Initialize): Change Modifying to Extends.
40764 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
40766 * prj.ads: Minor comment change (Modifying -> extending).
40768 * snames.ads: Change modifying to extends.
40770 2001-12-05 Robert Dewar <dewar@gnat.com>
40772 * sem_warn.adb: Remove stuff for conditionals, we are not going to
40775 * sem_warn.ads: Remove stuff for conditionals, we are not going to
40776 do this after all. Add 2001 to copyright notice
40778 2001-12-04 Geert Bosch <bosch@gnat.com>
40780 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
40782 2001-12-04 Robert Dewar <dewar@gnat.com>
40784 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
40785 location if we already have errors. Stops some cases of cascaded
40788 * errout.adb: Improve comment.
40790 2001-12-04 Robert Dewar <dewar@gnat.com>
40793 (Analyze_Formal_Type_Definition): Defend against Error.
40794 (Analyze_Formal_Subprogram): Defend against Error.
40796 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
40797 remove following semicolon if present. Removes cascaded error.
40799 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
40802 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
40803 exceptions equals 0.
40804 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
40805 Fixes PIWG E tests (which have to be run with -gnatL).
40807 2001-12-04 Robert Dewar <dewar@gnat.com>
40809 * einfo.ads: Minor reformatting
40811 2001-12-04 Ed Schonberg <schonber@gnat.com>
40813 * einfo.ads: Block_Node points to the identifier of the block, not to
40814 the block node itself, to preserve the link when the block is
40815 rewritten, e.g. within an if-statement with a static condition.
40817 * inline.adb (Cleanup_Scopes): recover block statement from block
40818 entity using new meaning of Block_Node.
40820 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
40821 identifier of block node, rather than to node itself.
40823 2001-12-04 Gary Dismukes <dismukes@gnat.com>
40826 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
40827 (Discrimify): Go back to setting the Etypes of the selected component
40828 because the Vname component does not exist at this point and will
40829 fail name resolution. Also set Analyzed.
40830 Remove with and use of Sem_Res.
40832 2001-12-04 Arnaud Charlet <charlet@gnat.com>
40834 * Makefile.in: (HIE_SOURCES): add s-fat*.
40836 2001-12-04 Robert Dewar <dewar@gnat.com>
40839 (Compile_Time_Known_Attribute): New procedure.
40840 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
40841 proper range check.
40843 2001-12-04 Ed Schonberg <schonber@gnat.com>
40845 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
40846 processing discriminants to diagnose illegal default values.
40848 2001-12-04 Ed Schonberg <schonber@gnat.com>
40850 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
40851 access discriminant within a type extension that constrains its
40852 parent discriminants.
40854 2001-12-04 Ed Schonberg <schonber@gnat.com>
40856 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
40857 is malformed, use instance of Any_Id to allow analysis to proceed.
40859 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
40860 type definition is illegal.
40861 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
40864 2001-12-04 Ed Schonberg <schonber@gnat.com>
40866 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
40869 2001-12-04 Robert Dewar <dewar@gnat.com>
40871 * errout.adb: Minor reformatting
40873 2001-12-04 Robert Dewar <dewar@gnat.com>
40875 * exp_util.adb: Minor reformatting from last change
40877 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
40878 which is a rewriting of an expression, traverse the original
40879 expression to remove warnings that may have been posted on it.
40881 2001-12-04 Ed Schonberg <schonber@gnat.com>
40883 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
40884 record that has other packed components.
40886 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
40888 * adaint.c: Minor cleanups.
40890 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
40892 * adaint.c: Do not use utime.h on vxworks.
40894 2001-12-04 Arnaud Charlet <charlet@gnat.com>
40896 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
40897 more confusion than it solves.
40899 2001-12-04 Geert bosch <bosch@gnat.com>
40901 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
40903 2001-12-04 Geert Bosch <bosch@gnat.com>
40905 * Makefile.in (update-sources): New target.
40906 For use by gcc_release script.
40908 2001-12-04 Ed Schonberg <schonber@gnat.com>
40910 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
40911 a configuration pragma, it is now legal wherever a pragma can appear.
40913 2001-12-04 Zack Weinberg <zack@codesourcery.com>
40915 * Makefile.in: Don't set ALL. Delete @cross_defines@,
40916 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
40917 is now @CROSS@ -DIN_GCC; update comment.
40919 2001-12-04 Robert Dewar <dewar@gnat.com>
40921 * einfo.adb (Has_Pragma_Pure_Function): New flag.
40922 Fix problem that stopped ceinfo from working
40924 * einfo.ads (Has_Pragma_Pure_Function): New flag.
40926 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
40928 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
40931 (File_Time_Stamp): New procedure.
40932 (Preserve_Mode): New boolean.
40933 (Write_Unit): Pass time stamp.
40934 Implement -p switch (preserve time stamps).
40936 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
40938 * gnatchop.adb: Do usage info for -p switch
40940 * adaint.h (__gnat_set_file_time_name): New function
40942 * adaint.c (__gnat_set_file_time_name): Implement
40944 * adaint.h: Fix typo
40946 2001-12-03 Robert Dewar <dewar@gnat.com>
40948 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
40949 have Associated_Node.
40951 2001-12-03 Robert Dewar <dewar@gnat.com>
40953 * prj-proc.adb: Minor reformatting
40955 * make.adb: Minor reformatting
40957 2001-12-03 Geert Bosch <bosch@gnat.com>
40959 * make.adb: Minor reformatting.
40961 2001-12-03 Robert Dewar <dewar@gnat.com>
40963 * sem_ch12.adb: Minor reformatting
40965 2001-12-03 Ed Schonberg <schonber@gnat.com>
40967 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
40968 push Standard on the stack before analyzing the instance body,
40969 in order to have a clean visibility environment.
40971 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
40973 2001-12-03 Ed Schonberg <schonber@gnat.com>
40975 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
40976 instantiation of a body that contains an inlined body.
40978 2001-12-03 Ed Schonberg <schonber@gnat.com>
40981 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
40982 to prevent freezing within formal packages.
40983 (Freeze_Subprogram_Body): If body comes from another instance that
40984 appeared before its own body, place freeze node at end of current
40985 declarative part, to prevent a back-end crash.
40986 (Inline_Instance_Body): Handle properly a package instance within
40987 a subprogram instance that is a child unit.
40989 2001-12-01 Graham Stott <grahams@redhat.com>
40991 * Makefile.in (misc.o): Add missing $(srcdir) prefix
40992 and add optabs.h dependency.
40994 * misc.c: Include optabs.h
40995 (gnat_tree_code_type): Make static and const.
40996 (gnat_tree_code_length): Likewise.
40997 (gnat_tree_code_name): Likewise.
40998 (update_setjmp_buf): Obtain operands mode from insn_data.
41000 2001-11-29 Richard Henderson <rth@redhat.com>
41002 * init.c: Remove obsolete dwarf2 frame.h section.
41004 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
41006 * Make-lang.in (ada.generated-manpages): New dummy target.
41008 2001-11-29 Ed Schonberg <schonber@gnat.com>
41010 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
41011 into Command, an array conversion is illegal here. Uncovered by
41014 2001-11-28 Geert Bosch <bosch@gnat.com>
41016 * init.c: Minor whitespace changes.
41018 2001-11-28 Doug Rupp <rupp@gnat.com>
41020 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
41023 2001-11-28 Zack Weinberg <zack@codesourcery.com>
41025 * misc.c (gnat_expand_constant): Move declaration above
41026 definition of lang_hooks.
41027 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
41028 (gnat_init): lang_expand_constant no longer exists.
41030 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
41031 always have vprintf.
41032 (gnat_init): Always call set_internal_error_function.
41034 2001-11-27 Andreas Jaeger <aj@suse.de>
41036 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
41038 2001-11-27 Laurent Guerby <guerby@acm.org>
41040 * Makefile.in: Regenerate Ada dependencies.
41042 2001-11-26 Richard Henderson <rth@redhat.com>
41044 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
41045 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
41046 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
41048 2001-11-25 Laurent Guerby <guerby@acm.org>
41050 * sysdep.c (rts_get_*): Fix style.
41052 2001-11-19 Laurent Guerby <guerby@acm.org>
41054 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
41055 since it is of no apparent use and cause warnings.
41057 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
41059 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
41061 (gnat_init): Don't return NULL.
41062 (finish_parse): Remove.
41064 2001-11-17 Laurent Guerby <guerby@acm.org>
41066 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
41067 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
41068 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
41069 * lang-spec.h: Add missing struct field to silence warnings.
41070 * sysdep.c (rts_get_*): Provide K&R prototype.
41071 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
41072 * traceback.c (Unlock_Task, Lock_Task): Likewise.
41073 * tracebak.c (__gnat_backtrace): Remove unused variable.
41074 * utils.c (end_subprog_body): Move to K&R style.
41076 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
41078 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
41080 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
41082 * misc.c (gnat_init): Change prototype. Include the
41083 functionality of the old init_parse and init_decl_processing.
41084 (gnat_init_decl_processing): New prototype.
41085 (init_parse): Remove.
41086 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
41088 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
41090 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
41091 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
41092 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
41093 set_yydebug): Remove.
41095 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
41097 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
41098 (struct lang_hooks): Constify.
41099 (language_string, lang_identify): Remove.
41100 * utils.c (init_decl_processing): Update.
41102 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
41104 * misc.c: Include langhooks-def.h.
41105 * Makefile.in: Update.
41107 2001-10-30 Robert Dewar <dewar@gnat.com>
41110 (Check_Identifier): Rewrite circuit to be compatible with use of letters
41111 in the upper half of ASCII.
41112 (Check_Identifier): Minor reformatting
41114 2001-10-30 Geert Bosch <bosch@gnat.com>
41116 * (Associated_Node, Set_Associated_Node): Do not check for
41119 2001-10-30 Robert Dewar <dewar@gnat.com>
41121 * a-reatim.ads: Minor reformatting
41123 2001-10-30 Robert Dewar <dewar@gnat.com>
41125 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
41126 undocumented declarations.
41128 2001-10-30 Pascal Obry <obry@gnat.com>
41130 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
41131 to the binder and linker.
41134 * mdll.ads: Fix layout. Update copyright notice.
41136 * mdll.adb: Fix layout. Update copyright notice.
41138 2001-10-30 Robert Dewar <dewar@gnat.com>
41140 * usage.adb: Minor fix to output for -gnaty.
41142 2001-10-30 Ed Schonberg <schonber@gnat.com>
41144 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
41145 to accommodate all its possible values.
41147 * a-reatim.adb (Split): Special-case handling of Time_Span_First
41148 and of small absolute values of T.
41150 2001-10-30 Richard Kenner <kenner@gnat.com>
41152 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
41153 set_mem_attributes since not needed and wrong if RESULT if a REG;
41154 fixes ACATS failures.
41156 2001-10-30 Geert Bosch <bosch@gnat.com>
41158 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
41159 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
41161 2001-10-30 Robert Dewar <dewar@gnat.com>
41163 * bindusg.adb: Undocument -f switch.
41165 * gnatcmd.adb: Remove /FULL_ELABORATION.
41167 * opt.ads (Force_RM_Elaboration_Order): Document that this is
41170 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
41172 * gnatbind.adb: Minor update of warning msg.
41174 2001-10-30 Vincent Celier <celier@gnat.com>
41176 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
41177 for project file switches (-P (/PROJECT_FILE=),
41178 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
41181 2001-10-30 Geert Bosch <bosch@gnat.com>
41183 * decl.c: Minor whitespace fixes.
41185 2001-10-30 Richard Kenner <kenner@gnat.com>
41187 * utils2.c (build_allocator): Test for SIZE overflow in array case too
41189 2001-10-30 Geert Bosch <bosch@gnat.com>
41191 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
41192 Found due to GCC 3.0 warning of using uninitialized value.
41195 (Get_Max_Size): Use variant record for tracking value/expression.
41196 Makes logic clearer and prevents warnings for uninitialized variables.
41197 (Layout_Array_Type): Use variant record for tracking value/expression.
41198 Makes logic clearer and prevents warnings for uninitialized variables.
41200 2001-10-30 Robert Dewar <dewar@gnat.com>
41202 * lib.adb: Minor reformatting
41204 * s-taprop.ads: Minor reformatting
41206 2001-10-29 Laurent Guerby <guerby@acm.org>
41209 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
41211 (_gnat_error_handler): Make MSG const.
41213 2001-10-29 Richard Kenner <kenner@gnat.com>
41215 * sysdep.c: Fix localtime_r problem on LynxOS.
41216 Also remove #elif to avoid warnings.
41218 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
41221 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
41223 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
41225 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
41226 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
41227 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
41228 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
41229 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
41230 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
41231 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
41232 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
41233 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
41234 types.ads, urealp.adb: Fix spelling errors.
41236 2001-10-27 Laurent Guerby <guerby@acm.org>
41238 * trans.c (gigi): Fix non determinism leading to bootstrap
41239 comparison failures for debugging information.
41241 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
41243 * gnat_rm.texi: Use @./@: where appropriate.
41245 2001-10-26 Robert Dewar <dewar@gnat.com>
41247 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
41249 2001-10-26 Richard Kenner <kenner@gnat.com>
41251 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
41253 2001-10-26 Richard Kenner <kenner@gnat.com>
41255 * decl.c (validate_size): Modify message for bad size to avoid
41256 implication that compiler is modifying the size.
41258 2001-10-26 Robert Dewar <dewar@gnat.com>
41260 * prj-util.adb: Minor reformatting. Fix bad header format.
41262 2001-10-26 Robert Dewar <dewar@gnat.com>
41264 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
41266 * sinfo.ads: Clarify use of Associated_Node (documentation only).
41268 * sem_ch12.adb: Change Node4 to Associated_Node. Change
41269 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
41270 much more narrowly in places where needed. These are cleanups.
41272 2001-10-26 Joel Brobecker <brobecke@gnat.com>
41274 * 5zosinte.ads (null_pthread): new constant.
41277 (Initialize_TCB): Initialize thread ID to null, to be able to verify
41278 later that this field has been set.
41279 (Finalize_TCB): ditto.
41280 (Suspend_Task): Verify that the thread ID is not null before using it.
41281 (Resume_Task): ditto.
41284 (Resume_All_Tasks): Lock the tasks list before using it.
41285 (Suspend_All_Tasks): ditto.
41287 2001-10-26 Richard Kenner <kenner@gnat.com>
41289 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
41290 Make constant variant of designated type for Is_Access_Constant.
41291 Call update_pointer_to with main variant.
41293 * trans.c (process_freeze_entity, process_type):
41294 Call update_pointer_to on main variant.
41296 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
41297 If main variant, update all other variants.
41299 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
41302 2001-10-26 Robert Dewar <dewar@gnat.com>
41304 * prj-util.adb: Minor reformatting
41306 2001-10-26 Robert Dewar <dewar@gnat.com>
41308 * prj-util.adb: Minor reformatting
41310 2001-10-26 Robert Dewar <dewar@gnat.com>
41312 * prj-attr.adb: Minor reformatting throughout
41314 2001-10-26 Robert Dewar <dewar@gnat.com>
41316 * prj-attr.ads: Minor reformatting
41317 Add ??? comment (this whole spec has almost no comments)
41319 2001-10-26 Vincent Celier <celier@gnat.com>
41321 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
41322 ("//") that precede the drive letter on Interix.
41324 2001-10-26 Geert Bosch <bosch@gnat.com>
41326 * gnat_rm.texi: Add GNAT Reference Manual.
41328 2001-10-25 Robert Dewar <dewar@gnat.com>
41330 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
41331 is Error. Similar change for other renaming cases.
41333 2001-10-25 Robert Dewar <dewar@gnat.com>
41335 * s-atacco.ads: Add pragma Inline_Always for functions.
41336 Fix header format. Add copyright 2001
41338 2001-10-25 Ed Schonberg <schonber@gnat.com>
41340 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
41341 return Error rather than Empty so that analysis can proceed.
41343 2001-10-25 Ed Schonberg <schonber@gnat.com>
41345 * sem_util.adb (Enter_Name): better handling of cascaded error
41346 messages when a unit appears in its own context.
41348 2001-10-25 Ed Schonberg <schonber@gnat.com>
41350 * sem_util.adb (Defining_Entity): in case of error, attach created
41351 entity to specification, so that semantic analysis can proceed.
41353 2001-10-25 Robert Dewar <dewar@gnat.com>
41356 (Defining_Entity): Deal with Error.
41357 (Process_End_Label): Deal with bad end label for.
41359 2001-10-25 Ed Schonberg <schonber@gnat.com>
41361 * sem_elab.adb (Check_A_Call): refine message when call is in an
41362 instance but callee is not declared in the generic unit.
41364 2001-10-25 Ed Schonberg <schonber@gnat.com>
41366 * sem_elab.adb (Check_A_Call): check for renaming before finding the
41367 enclosing unit, which may already be different from the calling unit.
41369 2001-10-25 Geert Bosch <bosch@gnat.com>
41371 * 4gintnam.ads: fix header format.
41373 2001-10-25 Ed Schonberg <schonber@gnat.com>
41375 * sem_res.adb (Resolve_Call): if the call is actually an indexing
41376 operation on the result of a parameterless call, perform elaboration
41377 check after the node has been properly rewritten.
41379 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
41380 inlined within the generic tree, the defining identifier is not a
41383 2001-10-25 Ed Schonberg <schonber@gnat.com>
41385 * sem_res.adb (Resolve): special-case resolution of Null in an
41386 instance or an inlined body to avoid view conflicts.
41388 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
41389 compatibility by retrieving the access type of the generic copy.
41391 2001-10-25 Robert Dewar <dewar@gnat.com>
41394 (Analyze_Number_Declaration): Handle error expression.
41395 (Signed_Integer_Type_Declaration): Handle error bound.
41396 (Analyze_Subtype_Indication): Handle error range.
41398 * sem_util.adb (Get_Index_Bounds): Check for Error.
41400 2001-10-25 Robert Dewar <dewar@gnat.com>
41402 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
41403 in no run time mode.
41405 2001-10-25 Pascal Obry <obry@gnat.com>
41407 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
41408 mode case for ALLOC case.
41410 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
41411 all platforms. Improvement of last change.
41413 2001-10-25 Robert Dewar <dewar@gnat.com>
41415 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
41417 2001-10-25 Geert Bosch <bosch@gnat.com>
41419 * osint.adb (Is_Relative): Remove duplicate.
41421 2001-10-25 Pascal Obry <obry@gnat.com>
41423 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
41424 pathnames in UNIX and DOS style with drive letter.
41425 (Is_Relative): new routine.
41427 * osint.adb: Minor reformatting
41429 * osint.adb (Is_Relative): implementation using
41430 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
41432 2001-10-25 Pascal Obry <obry@gnat.com>
41434 * g-dirope.adb (Basename): correctly compute offset between the
41435 original Path and the translated one.
41437 * g-dirope.adb: (Base_Name): add some comments.
41439 2001-10-25 Robert Dewar <dewar@gnat.com>
41441 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
41442 in HIE mode, avoids compilation abandoned message
41444 * exp_imgv.adb: Correct typo in previous change
41446 * exp_imgv.adb: Correct typo in previous change (not my day!)
41448 2001-10-25 Robert Dewar <dewar@gnat.com>
41450 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
41452 2001-10-25 Pascal Obry <obry@gnat.com>
41454 * g-awk.ads: Move all pragma inlines next to the routine
41455 declarations. This is more uniform with other GNAT spec.
41457 2001-10-22 Geert Bosch <bosch@gnat.com>
41459 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
41461 2001-10-19 Geert Bosch <bosch@gnat.com>
41463 * Makefile.in (tools, gnattools): Remove gnatmem.
41465 2001-10-17 Richard Henderson <rth@redhat.com>
41467 * Makefile.in (misc.o): Depend on langhooks.h.
41468 * misc.c: Include it.
41469 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
41470 (LANG_HOOKS_DECODE_OPTION): New.
41471 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
41473 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
41475 * trans.c (tree_transform): Adjust to recent change in
41476 expand_asm_operands to implement named asm operands.
41478 2001-10-11 Ed Schonberg <schonber@gnat.com>
41480 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
41481 renaming of discriminant for mutable record type.
41483 2001-10-11 Robert Dewar <dewar@gnat.com>
41485 * validsw.adb: Properly save -gnatVn status.
41487 2001-10-11 Robert Dewar <dewar@gnat.com>
41489 * usage.adb: Add lines for V switch.
41491 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
41492 (/VALIDITY_CHECKING).
41494 2001-10-11 Ed Schonberg <schonber@gnat.com>
41496 * sem_type.adb (Add_One_Interp): an operator for a type declared in
41497 an extension of System is known to be visible.
41499 2001-10-11 Ed Schonberg <schonber@gnat.com>
41501 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
41502 properly. Fixes regression on ACATS C34005G.
41504 2001-10-11 Robert Dewar <dewar@gnat.com>
41506 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
41507 loop in generic instance, since this is likely not very useful.
41509 2001-10-11 Robert Dewar <dewar@gnat.com>
41511 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
41512 the error message for high integrity mode.
41514 * rtsfind.adb (RTE): Give message if we try to find an entity that
41515 is not available in high integrity mode.
41518 (OK_To_Use_In_HIE_Mode): New array.
41519 (RTE): May return Empty in high integrity mode.
41521 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
41522 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
41524 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
41525 unit if not inlined always and in no runtime mode. Fixes problem
41526 caused by new Rtsfind changes.
41528 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
41531 * rtsfind.adb (RTE): Make sure we do not try to load unit after
41532 giving message for entity not available in high integrity mode.
41534 2001-10-11 Pascal Obry <obry@gnat.com>
41536 * impunit.adb: Add GNAT.CRC32.
41538 2001-10-11 Ed Schonberg <schonber@gnat.com>
41540 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
41541 properly the case where one universal operand in a non-static
41542 exponentiation of a real literal.
41544 2001-10-11 Ed Schonberg <schonber@gnat.com>
41546 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
41547 clause, return the gobal finalization list, for lack of anthing else.
41549 2001-10-11 Ed Schonberg <schonber@gnat.com>
41551 * exp_ch7.adb (Make_Transient_Block): if statement is within
41552 exception handler, always use new transient scope to place Clean
41555 2001-10-11 Pascal Obry <obry@gnat.com>
41558 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
41559 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
41560 (GNATLS_RTL_OBJS): add g-crc32.o
41561 (GNATMAKE_RTL_OBJS): add g-crc32.o
41564 (CRC_Match): new function.
41565 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
41566 instead of the previous simple checksum algorithm.
41567 (Time_Stamp_Mismatch): use CRC_Match for comparison.
41568 (Set_Source_Table): idem.
41571 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
41572 instead of simple checksum.
41573 (CRC_Match): new function.
41574 (CRC_Error): new constant.
41576 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
41577 a CRC now and not a simple checksum. A CRC uses lower-case hex
41578 letters, fixes ambiguity in parsing.
41580 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
41581 is what this variable will store.
41583 * bcheck.adb: Change reference to chechsum in comments by CRC.
41584 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
41585 rename All_Checksum_Match to All_CRC_Match. Change due to API
41586 renaming since now GNAT does not use a simple checksum but a
41587 CRC using GNAT.CRC32.
41589 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
41590 now and not anymore a simple checksum.
41592 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
41595 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
41598 (Restore_Scan_State): rename Checksum to CRC.
41599 (Save_Scan_State): idem.
41603 (Checksum): rename to CRC.
41604 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
41606 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
41607 GNAT.CRC32). Update copyright notice.
41609 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
41610 GNAT.CRC32). Update copyright notice.
41613 (Accumulate_Checksum): removed.
41614 (Update): new procedure. Add a wide-character into the CRC.
41617 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
41618 (Load_File): fix initialization of S (change Source_Checksum to
41621 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
41622 Source_CRC in S initialization.
41624 * sinput.adb (Source_Checksum): renamed to Source_CRC.
41626 * sinput.ads (Source_Checksum): renamed to Source_CRC.
41627 Update comments for the CRC.
41629 * types.adb (Hex): Use lowercase for the letter part.
41631 * types.ads (Get_Hex_String): Returns the hexadecimal representation
41632 for a word. This is currently used only for CRC. In previous version,
41633 the checksum was using a representation with all letter being
41634 upper-case. With the new implementation (using CRC) we do not remove
41635 the 32th bit of the CRC, so we can have an upper-case starting letter
41636 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
41637 It is ambigous since the CRC was optional and could be followed by
41638 options like EB, EE. So now this routines uses lower-case letter for
41639 the hexadecimal representation. Strange enough only lower case letters
41640 where checked in Scan_ALI (even if this was not a possible case).
41642 * gnatvsn.ads (Library_Version): changed to 3.15a.
41644 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
41647 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
41650 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
41651 Add 2001 to copyright notice
41652 (Accumulate_Checksum): Modify to use System.CRC32.
41654 * ali-util.ads: Redo changes of previous revision to continue to use
41655 the word Checksum. Add 2001 to copyright notice.
41657 * ali.adb: Undo some of previous changes, not needed.
41658 Keep the change for lower case letters in the checksum.
41660 * ali.ads: Undo previous change not needed.
41662 * bcheck.adb: Undo most of previous change, not needed.
41663 But do use Checksums_Match for checksum comparison.
41665 * gnatls.adb: Undo most of previous change, not needed.
41666 But do use Checksums_Match for comparing checksums.
41668 * lib-load.adb: Undo previous change, not needed.
41670 * lib-writ.adb: Undo previous change, not needed.
41672 * lib-writ.ads: Document that checksums use lower case,
41673 not upper case letters.
41675 * scans.adb: Undo previous change, not needed
41677 * scans.ads: Undo previous change, not needed.
41679 * scn-nlit.adb: Undo previous changes, not needed.
41681 * scn-slit.adb: Undo previous change, not needed. Fix header format.
41684 (Accumulate_Checksum): Use System.CRC32.
41685 (Initialize_Checksum): New procedure.
41686 Remove other changes of previous revision.
41688 * sinput-p.adb: Undo previous change, not needed.
41690 * sinput.adb: Undo previous change, not needed.
41692 * sinput-l.adb: Undo previous change, not needed.
41694 * sinput.ads: Undo previous change, not needed. Keep only comment
41695 on new checksum algorithm
41697 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
41698 Also remove a-tags and a-stream from GNAT sources.
41700 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
41702 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
41704 2001-10-11 Geert Bosch <bosch@gnat.com>
41706 * einfo.h: Regenerate.
41708 * nmake.ads: Regenerate.
41710 * nmake.adb: Regenerate.
41712 * sinfo.h: Regenerate.
41714 * treeprs.adb: Regenerate.
41716 2001-10-10 Geert Bosch <bosch@gnat.com>
41718 * gnat-style.texi: New file describing coding guidelines for Ada.
41720 2001-10-10 Ed Schonberg <schonber@gnat.com>
41722 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
41725 2001-10-10 Geert Bosch <bosch@gnat.com>
41727 * snames.ads: Add new names for project facility.
41729 * snames.adb: Update to reflect snames.ads changes.
41731 * snames.h: Update to reflect snames.ads changes.
41733 2001-10-10 Vincent Celier <celier@gnat.com>
41736 (Add_Switches): reflect the changes for the switches attributes
41737 Default_Switches indexed by the programming language,
41738 Switches indexed by the file name.
41739 (Collect_Arguments_And_Compile): Idem.
41740 Reflect the attribute name changes.
41743 (Initialisation_Data): Change the names of some packages and
41745 (Initialize): process case insensitive associative arrays.
41748 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
41751 (Parse_Attribute_Declaration): For case insensitive associative
41752 arrays, set the index string to lower case.
41755 Reflect the changes of the project attributes.
41758 Replace Check_Naming_Scheme by Ada_Check and
41759 Language_Independent_Check.
41762 Replaced Check_Naming_Scheme by 2 procedures:
41763 Ada_Check and Language_Independent_Check.
41766 (Process_Declarative_Items): For case-insensitive associative
41767 arrays, set the index string to lower case.
41768 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
41769 Prj.Nmsc.Check_Naming_Scheme.
41772 (Case_Insensitive): New function
41773 (Set_Case_Insensitive): New procedure
41776 (Case_Insensitive): New function
41777 (Set_Case_Insensitive): New procedure
41778 (Project_Node_Record): New flag Case_Insensitive.
41781 (Value_Of): new function to get the string value of a single
41782 string variable or attribute.
41785 (Value_Of): new function to get the string value of a single
41786 string variable or attribute.
41789 (Ada_Default_Spec_Suffix): New function
41790 (Ada_Default_Impl_Suffix): New function
41791 Change definitions of several constants to reflect
41792 new components of record types.
41795 (Naming_Data): Change several components to reflect new
41796 elements of naming schemes.
41797 (Project_Data): New flags Sources_Present and
41798 Language_Independent_Checked.
41799 (Ada_Default_Spec_Suffix): New function.
41800 (Ada_Default_Impl_Suffix): New function.
41803 Modification of predefined names for project manager: added
41804 Implementation, Specification_Exceptions, Implementation_Exceptions,
41805 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
41806 Default_Switches, _Languages, Builder, Cross_Reference,
41807 Finder. Removed Body_Part, Specification_Append, Body_Append,
41808 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
41811 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
41814 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
41815 not that it is Nil_Variable_Value.
41817 * prj.ads: Add ??? for uncommented declarations
41819 2001-10-10 Ed Schonberg <schonber@gnat.com>
41821 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
41822 constant, do not indicate possible modification, so that gigi can
41823 treat it as a bona fide constant.
41825 2001-10-10 Robert Dewar <dewar@gnat.com>
41827 * sem_prag.adb: Add processing for pragma External.
41829 * snames.ads: Add entry for pragma External.
41831 * par-prag.adb: Add pragma External.
41833 * snames.adb: Updated to match snames.ads.
41835 2001-10-10 Ed Schonberg <schonber@gnat.com>
41837 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
41838 a dynamic task if the allocator appears in an indexed assignment
41839 or selected component assignment.
41841 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
41842 For a dynamic task in an assignment statement, use target of
41843 assignment to generate meaningful name.
41845 2001-10-10 Ed Schonberg <schonber@gnat.com>
41847 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
41850 * einfo.ads: Body_Entity is also defined for generic package.
41851 Documentation change only
41853 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
41854 others_choice for a discriminated component initialization,
41855 convert discriminant references into the corresponding discriminals.
41857 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
41858 only if original type is private and expression has to be wrapped
41862 (Apply_Constraint_Check): Do not perform length check
41863 if expression is an aggregate with only an others_choice.
41864 (Length_N_Cond): two references to the same in_parameter
41865 (typically the discriminal in an init_proc) denote the same value.
41866 Two useful optimization uncovered by bugfixes above.
41868 2001-10-10 Robert Dewar <dewar@gnat.com>
41870 * xeinfo.adb: Change int to char in translation of enumeration types.
41871 This fixes a problem in the C representation of component alignment.
41872 Add 2001 to copyright notice
41874 2001-10-10 Richard Kenner <kenner@gnat.com>
41876 * decl.c: (validate_size): Do check size of object of integral type
41877 if it is a packed array type.
41879 2001-10-10 Richard Kenner <kenner@gnat.com>
41881 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
41882 VAR_DECL for constant if not Is_Public but -O0.
41884 2001-10-10 Richard Kenner <kenner@gnat.com>
41886 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
41888 2001-10-10 Geert Bosch <bosch@gnat.com>
41890 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
41891 use '/' as switch character, allowing for absolute file names.
41893 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
41895 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
41898 2001-10-08 Geert Bosch <bosch@gnat.com>
41900 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
41901 Automatically build utilities when files need to be regenerated.
41903 2001-10-08 Geert Bosch <bosch@gnat.com>
41905 * xsnames.adb: New utility for updating snames.ads and snames.adb
41907 2001-10-08 Zack Weinberg <zack@codesourcery.com>
41909 * Make-lang.in (ADAFLAGS): Add -W -Wall.
41910 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
41911 (gnat1): Also depend on attribs.o.
41912 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
41913 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
41914 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
41915 (ADAFLAGS): Add -W -Wall.
41916 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
41919 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
41920 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
41921 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
41922 Use $(ADAC), not $(CC), as compilation command.
41924 (gnattools): Depend directly on tools to build, don't use
41926 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
41928 * einfo.h, sinfo.h: New files (autogenerated).
41930 2001-10-08 Richard Henderson <rth@redhat.com>
41932 * comperr.adb (Abort_In_Progress): New.
41933 (Compiler_Abort): Use it to prevent recursion.
41935 2001-10-08 Robert Dewar <dewar@gnat.com>
41937 * atree.adb: Set Error_Posted in Error node, helps error recovery.
41939 * par-endh.adb (Output_End_Expected): We should also not test
41940 Error_Posted on the Error node, since now it is always set.
41942 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
41943 to help error recovery. Part of general work on 9407-004.
41945 * par.adb: Add ??? for misuse of error
41948 (Resolve): Defend against Error, fixes 9407-003.
41949 (Resolve_Discrete_Subtype_Indication): Defend against Error.
41951 * sinfo.ads (N_Error): Now has Etype field (which will be set
41952 to Any_Type to help error recovery).
41954 2001-10-08 Richard Kenner <kenner@gnat.com>
41956 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
41957 Consistently set MEM attributes from expression; fixes
41958 bootstrap failure on x86.
41960 2001-10-08 Geert Bosch <bosch@gnat.com>
41962 * 5oosinte.adb: Add 2001 to copyright notice.
41964 2001-10-08 Geert Bosch <bosch@gnat.com>
41966 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
41968 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
41970 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
41972 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
41974 2001-10-05 Geert Bosch <bosch@gnat.com>
41976 * adaint.h: Small formatting fix.
41978 2001-10-04 Geert Bosch <bosch@gnat.com>
41980 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
41981 Arg is int, not FILE *, in dummy version of functions.
41983 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
41984 Arg is int, not FILE *.
41986 2001-10-04 Geert Bosch <bosch@gnat.com>
41988 * 3lsoccon.ads: Added file, missed with initial check ins.
41990 * 4lintnam.ads: Fix header format.
41991 Change Linux to GNU/Linux.
41993 * 5iosinte.adb: Change Linux to GNU/Linux.
41995 * 5iosinte.ads: Change Linux to GNU/Linux.
41997 * 5itaprop.adb: Change Linux to GNU/Linux.
41999 * 5itaspri.ads: Change Linux to GNU/Linux.
42000 Update copyright notice.
42002 * 5lintman.adb: Change Linux to GNU/Linux.
42004 * 5lml-tgt.adb: Change Linux to GNU/Linux.
42006 * 5losinte.ads: Change Linux to GNU/Linux.
42008 * 5lsystem.ads: Change Linux to GNU/Linux.
42010 * 5qosinte.adb: Change Linux to GNU/Linux.
42012 * 5qosinte.ads: Change Linux to GNU/Linux.
42014 * 5qparame.ads: Change Linux to GNU/Linux.
42016 * 5qtaprop.adb: Change Linux to GNU/Linux.
42018 * 5qtaspri.ads: Change Linux to GNU/Linux.
42019 Add 2001 to copyright notice.
42021 * 5vintman.ads: Change Linux to GNU/Linux.
42022 Fix header format. Add 2001 to copyright notice.
42024 * g-soccon.ads: Change Linux to GNU/Linux.
42026 * g-trasym.ads: Change Linux to GNU/Linux.
42027 Add 2001 to copyright notice.
42029 * memtrack.adb: Change Linux to GNU/Linux.
42031 * s-intman.ads: Change Linux to GNU/Linux.
42032 Add 2001 to copyright notice. Fix header format.
42034 * s-stache.adb: Change Linux to GNU/Linux.
42036 * adaint.c: Change Linux to GNU/Linux.
42038 * cio.c: Change Linux to GNU/Linux.
42040 * cstreams.c: Change Linux to GNU/Linux.
42042 * init.c: Change Linux to GNU/Linux.
42044 * gmem.c: Change Linux to GNU/Linux.
42046 * tracebak.c: Change Linux to GNU/Linux.
42049 2001-10-02 Geert Bosch <bosch@gnat.com>
42051 * misc.c (insert_default_attributes): Add dummy version.