1 2008-08-01 Ed Schonberg <schonberg@adacore.com>
3 * sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create
4 a pending instantiation for the body of a subprogram that is to be
8 (Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body.
10 * sem_prag.adb (Make_Inline): If the pragma applies to an instance,
11 create a pending instance for its body, so that calls to the subprogram
12 can be inlined by the back-end.
14 2008-08-01 Jose Ruiz <ruiz@adacore.com>
16 * gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and
19 2008-08-01 Robert Dewar <dewar@adacore.com>
21 * scng.adb (Error_Illegal_Wide_Character): Bump scan pointer
23 2008-08-01 Doug Rupp <rupp@adacore.com>
25 * gnat_rm.texi: Document new mechanism Short_Descriptor.
27 * types.ads (Mechanism_Type): Modify range for new Short_Descriptor
30 * sem_prag.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
31 mechanism and Short_Descriptor mechanism values.
33 * snames.adb (preset_names): Add short_descriptor entry.
35 * snames.ads: Add Name_Short_Descriptor.
37 * types.h: Add new By_Short_Descriptor mechanism values.
39 * sem_mech.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
40 mechanism and Short_Descriptor mechanism values.
42 * sem_mech.ads (Mechanism_Type): Add new By_Short_Descriptor mechanism
44 (Descriptor_Codes): Modify range for new mechanism values.
46 * treepr.adb (Print_Entity_Enfo): Handle new By_Short_Descriptor
49 * gcc-interface/decl.c (gnat_to_gnu_entity): Handle By_Short_Descriptor.
50 (gnat_to_gnu_param): Handle By_Short_Descriptor.
52 * gcc-interface/gigi.h (build_vms_descriptor64): Remove prototype.
53 (build_vms_descriptor32): New prototype.
54 (fill_vms_descriptor): Remove unneeded gnat_actual parameter.
56 * gcc-interface/trans.c (call_to_gnu): Removed unneeded gnat_actual
57 argument in call fill_vms_descriptor.
59 * gcc-interface/utils.c (build_vms_descriptor32): Renamed from
60 build_vms_descriptor and enhanced to hande Short_Descriptor mechanism.
61 (build_vms_descriptor): Renamed from build_vms_descriptor64.
62 (convert_vms_descriptor32): New function.
63 (convert_vms_descriptor64): New function.
64 (convert_vms_descriptor): Rewrite to handle both 32bit and 64bit
67 * gcc-interface/utils2.c (fill_vms_descriptor): Revert previous changes,
70 2008-08-01 Jose Ruiz <ruiz@adacore.com>
72 * adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam
73 nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary
76 2008-08-01 Jose Ruiz <ruiz@adacore.com>
78 * cstreams.c (__gnat_full_name): RTSS applications cannot ask for the
79 current directory so only fully qualified names are allowed.
81 2008-08-01 Robert Dewar <dewar@adacore.com>
84 Minor editing, remove uncomfortable use of semicolon
86 * s-ststop.adb: Add some ??? comments
88 * sem_ch10.adb: Minor reformatting
91 Minor comment fixes, some pragmas were not properly
92 categorized in the comments, documentation change only
94 * xref_lib.adb: Minor reformatting
96 * sinput.adb: Minor reformatting
98 * gnatchop.adb: Minor reformatting
100 * sem_util.ads: Minor reformatting.
102 * opt.ads: Minor documentation fix
104 * scng.adb: Minor reformatting
106 * prj-part.adb: Update comments
108 2008-08-01 Ed Schonberg <schonberg@adacore.com>
110 * exp_disp.adb (Expand_Interface_Conversion): If the target type is a
111 tagged synchronized type, use corresponding record type.
113 2008-08-01 Doug Rupp <rupp@adacore.com>
115 * mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a
116 dummy transfer address for debugging.
118 * mlib-tgt-specific-vms-ia64.adb (Build_Dynamic_Library): Likewise.
120 * vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING
122 2008-07-31 Eric Botcazou <ebotcazou@adacore.com>
124 * gcc-interface/decl.c (gnat_to_gnu_entity): Fix formatting.
125 * gcc-interface/utils.c (create_field_decl): Avoid superfluous work.
127 2008-07-31 Pascal Obry <obry@adacore.com>
129 * prj-nmsc.adb: Keep Object and Exec directory casing.
131 2008-07-31 Jose Ruiz <ruiz@adacore.com>
133 * system-rtx-rtss.ads
134 Change the default stack size. It is important to set the commit part.
137 (Initialize): Get the clock resolution.
138 (RT_Resolution): Return the clock resolution that is indicated by the
141 * s-parame-vxworks.adb
142 Document that this body is used for RTX in RTSS (kernel) mode.
144 * gcc-interface/Makefile.in
145 (LIBGNAT_TARGET_PAIRS for the rtx_rtss run time): Use the
146 s-parame-vxworks.adb body in order to have reasonable stack sizes in
147 RTX RTSS kernel mode. Virtual memory is not used in that case, so we
148 cannot ask for too big values.
150 2008-07-31 Robert Dewar <dewar@adacore.com>
152 * exp_aggr.adb: Minor reformatting
154 * makeutl.adb: Minor reformatting
156 * prj-env.adb: Minor reformatting
158 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
160 * exp_disp.adb (Prim_Op_Kind): Retrieve the full view when a private
161 tagged type is completed by a concurrent type.
163 2008-07-31 Gary Dismukes <dismukes@adacore.com>
166 (Resolve_Record_Aggregate): Bypass error that a type without
167 components must have a "null record" aggregate when compiling for Ada
168 2005, since it's legal to give an aggregate of form (others => <>)
171 2008-07-31 Javier Miranda <miranda@adacore.com>
173 * sem_ch4.adb (Valid_First_Argument_Of): Complete its functionality to
174 handle synchronized types. Required to handle well the object.operation
175 notation applied to synchronized types.
177 2008-07-31 Quentin Ochem <ochem@adacore.com>
179 * s-stausa.adb (Fill_Stack): Stack_Used_When_Filling is now stored
180 anymore - just used internally.
181 Added handling of very small tasks - when the theoretical size is
182 already full at the point of the call.
183 (Report_Result): Fixed result computation, Stack_Used_When_Filling does
184 not need to be added to the result.
186 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
188 * sem_ch6.adb (Disambiguate_Spec): Continue the disambiguation if the
189 corresponding spec is a primitive wrapper. Update comment.
191 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
193 * bindgen.adb Comment reformatting. Update the list of run-time globals.
194 (Gen_Adainit_Ada): Add the declaration, import and value set for
195 configuration flag Canonical_Streams.
196 (Gen_Adainit_C): Add the declaration and initial value of external
197 symbol __gl_canonical_streams.
199 * init.c: Update the list of global values computed by the binder.
201 * opt.ads: Add flag Canonical_Streams.
203 * par-prag.adb (Prag): Include Pragma_Canonical_Streams to the list of
204 semantically handled pragmas.
206 * sem_prag.adb: Add an entry into enumeration type Sig_Flags.
207 (Analyze_Pragma): Add case for pragma Canonical_Streams.
209 * snames.adb: Add character value for name Canonical_Streams.
212 Add Name_Canonical_Streams to the list of configuration pragmas.
213 Add Pragma_Canonical_Streams to enumeration type Pragma_Id.
215 * snames.h: Add a definition for Pragma_Canonical_Streams.
218 Add a flag and import to seize the value of external symbol
219 __gl_canonical_streams. Update comment and initial value of constant
222 * gnat_rm.texi: Add section of pragma Canonical_Streams.
225 Add pragma Canonical_Streams to the list of configuration pragmas.
227 2008-07-31 Ed Schonberg <schonberg@adacore.com>
229 * sem_ch10.adb (Build_Unit_Name): If the unit name in a with_clause
230 has the form A.B.C and B is a unit renaming, analyze its compilation
231 unit and add a with_clause on A.b to the context.
233 2008-07-31 Vincent Celier <celier@adacore.com>
235 * makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails,
236 return the empty string, instead of raising Constraint_Error.
238 2008-07-31 Gary Dismukes <dismukes@adacore.com>
240 * checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.
242 * checks.adb (Apply_Accessibility_Check): Insert the check on
246 (Expand_N_Attribute_Refernce, Attribute_Access): Pass attribute node
247 to new parameter Insert_Node on call to Apply_Accessibility_Check.
248 Necessary to distinguish the insertion node because the dereferenced
249 formal may come from a rename, but the check must be inserted in
250 front of the attribute.
253 (Expand_N_Allocator): Pass actual for new Insert_Node parameter on
254 call to Apply_Accessibility_Check.
255 (Expand_N_Type_Conversion): Pass actual for new Insert_Node parameter
256 on call to Apply_Accessibility_Check.
259 2008-07-31 Javier Miranda <miranda@adacore.com>
261 * sem_type.adb (Has_Compatible_Type): Complete support for synchronized
262 types when the candidate type is a synchronized type.
264 * sem_res.adb (Resolve_Actuals): Reorganize code handling synchronized
265 types, and complete management of synchronized types adding missing
266 code to handle formal that is a synchronized type.
268 * sem_ch4.adb (Try_Primitive_Operation): Avoid testing attributes that
269 are not available and cause the compiler to blowup. Found compiling
270 test with switch -gnatc
272 * sem_ch6.adb (Check_Synchronized_Overriding): Remove local subprogram
273 Has_Correct_Formal_Mode plus code cleanup.
275 2008-07-31 Bob Duff <duff@adacore.com>
277 * sinput.adb (Skip_Line_Terminators): Fix handling of LF/CR -- it was
278 recognized as two end-of-lines, but it should be just one.
280 2008-07-31 Thomas Quinot <quinot@adacore.com>
282 * exp_ch9.adb: Minor reformatting
284 * tbuild.ads: Fix several occurrences of incorrectly referring to
285 Name_Find as Find_Name.
287 2008-07-31 Ed Schonberg <schonberg@adacore.com>
289 * exp_aggr.adb (Aggr_Size_OK): If the aggregate has a single component
290 and the context is an object declaration with non-static bounds, treat
291 the aggregate as non-static.
293 2008-07-31 Vincent Celier <celier@adacore.com>
295 * prj-part.adb, prj-part.ads, prj.adb, prj.ads, prj-env.adb:
296 Move back spec of Parse_Single_Project to body, as it is not called
297 outside of package Prj.Part.
298 (Project_Data): Remove components Linker_Name, Linker_Path and
299 Minimum_Linker_Options as they are no longer set.
300 Remove function There_Are_Ada_Sources from package Prj and move code
301 in the only place it was used, in Prj.Env.Set_Ada_Paths.
303 2008-07-31 Arnaud Charlet <charlet@adacore.com>
305 * mlib-utl.ads: Fix typo.
307 2008-07-31 Robert Dewar <dewar@adacore.com>
309 * sem_ch12.adb: Minor reformatting
311 2008-07-31 Sergey Rybin <rybin@adacore.com>
313 * gnat_ugn.texi: Change the description of the
314 Overly_Nested_Control_Structures: now the rule always requires a
315 positive parameter for '+R' option
317 2008-07-31 Thomas Quinot <quinot@adacore.com>
319 * g-pehage.adb: Minor reformatting
321 2008-07-31 Pascal Obry <obry@adacore.com>
323 * s-finimp.ads: Minor reformatting.
325 2008-07-31 Vincent Celier <celier@adacore.com>
327 * s-regexp.ads: Minor comment fix
329 2008-07-31 Arnaud Charlet <charlet@adacore.com>
331 * s-direio.adb (Reset): Replace pragma Unmodified by Warnings (Off),
332 so that we can compile this file successfully with -gnatc.
334 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
336 * exp_attr.adb (Find_Stream_Subprogram): Check the base type instead
337 of the type when looking for stream subprograms for type String,
338 Wide_String and Wide_Wide_String.
340 * s-ststop.adb: Change the initialization expression of constant
343 2008-07-31 Geert Bosch <bosch@adacore.com>
346 New file implementing __gnat_mulv64 signed integer multiplication with
349 * fe.h (Backend_Overflow_Checks_On_Target): Define for use by Gigi
351 * gcc-interface/gigi.h:
352 (standard_types): Add ADT_mulv64_decl
353 (mulv64_decl): Define subprogram declaration for __gnat_mulv64
355 * gcc-interface/utils.c:
356 (init_gigi_decls): Add initialization of mulv64_decl
358 * gcc-interface/trans.c:
359 (build_unary_op_trapv): New function
360 (build_binary_op_trapv): New function
361 (gnat_to_gnu): Use the above functions instead of
362 build_{unary,binary}_op
364 * gcc-interface/Makefile.in
365 (LIBGNAT_SRCS): Add arit64.c
366 (LIBGNAT_OBJS): Add arit64.o
368 2008-07-31 Vincent Celier <celier@adacore.com>
370 * prj-nmsc.adb (Check_Library_Attributes): Check if Linker'Switches or
371 Linker'Default_Switches are declared. Warn if they are declared.
373 2008-07-31 Ed Schonberg <schonberg@adacore.com>
375 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Use
376 Insert_Actions to place the pointer declaration in the code, rather
377 than Insert_Before_And_Analyze, so that insertions of temporaries are
378 kept in the proper order when transient scopes are present.
381 2008-07-31 Robert Dewar <dewar@adacore.com>
383 * einfo.adb (Spec_PPC): Now defined for generic subprograms
385 * einfo.ads (Spec_PPC): Now defined for generic subprograms
387 * sem_prag.adb (Check_Precondition_Postcondition): Handle generic
390 2008-07-31 Vincent Celier <celier@adacore.com>
392 * s-os_lib.adb: Minor comment fix
394 2008-07-31 Ed Schonberg <schonberg@adacore.com>
396 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): After analysis,
397 transfer pre/postconditions from generic copy to original tree, so that
398 they will appear in each instance.
399 (Process_PPCs): Do not transform postconditions into a procedure in a
400 generic context, to prevent double expansion of check pragmas.
402 * sem_attr.adb: In an instance, the prefix of the 'result attribute
403 can be the renaming of the
404 current instance, so check validity of the name accordingly.
406 2008-07-31 Robert Dewar <dewar@adacore.com>
408 * mlib-utl.ads: Minor reformatting
410 2008-07-31 Ed Schonberg <schonberg@adacore.com>
412 sem_attr.adb: 'Result can have an ambiguous prefix, and is resolved
413 from context. This attribute must be usable in Ada95 mode.
414 The attribute can appear in the body of a function marked
415 Inline_Always, but in this case the postocondition is not enforced.
417 sem_prag.adb (Check_Precondition_Postcondition): within the expansion
418 of an inlined call pre- and postconditions are legal
420 2008-07-31 Vincent Celier <celier@adacore.com>
422 * prj.adb, prj.ads, clean.adb, prj-nmsc.adb: Remove declarations that
423 were for gprmake only
425 2008-07-31 Robert Dewar <dewar@adacore.com>
427 * gnat_ugn.texi: Update -gnatN documentation.
429 * gnat_rm.texi: Add note about pre/postcondition
430 pragmas not checked in conjunction with front-end inlining.
432 2008-07-31 Robert Dewar <dewar@adacore.com>
434 * g-pehage.adb, g-pehage.ads: Minor reformatting
436 2008-07-31 Arnaud Charlet <charlet@adacore.com>
438 * mlib-utl.ads, prj-makr.ads: Add comments.
440 2008-07-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
442 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS)
443 [WINDOWS]: Add s-winext.o.
445 2008-07-30 Eric Botcazou <ebotcazou@adacore.com>
448 * back_end.adb (Call_Back_End): Pass Standard_Boolean to gigi.
449 * gcc-interface/gigi.h (gigi): Take new standard_boolean parameter.
450 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Subtype>:
451 Set precision to 1 for subtype of BOOLEAN_TYPE.
452 (set_rm_size): Set TYPE_RM_SIZE_NUM for BOOLEAN_TYPE.
453 (make_type_from_size): Deal with BOOLEAN_TYPE.
454 * gcc-interface/misc.c (gnat_print_type): Likewise.
455 * gcc-interface/trans.c (gigi): Take new standard_boolean parameter.
456 Set boolean_type_node as its translation in the table, as well
457 as boolean_false_node for False and boolean_true_node for True.
458 * gcc-interface/utils.c (gnat_init_decl_processing): Create custom
459 8-bit boolean_type_node and set its TYPE_RM_SIZE_NUM.
460 (create_param_decl): Deal with BOOLEAN_TYPE.
461 (build_vms_descriptor): Likewise.
462 (build_vms_descriptor64): Likewise.
463 (convert): Deal with BOOLEAN_TYPE like with ENUMERAL_TYPE.
465 2008-07-30 Robert Dewar <dewar@adacore.com>
467 * exp_ch9.adb: Minor reformatting
469 * exp_util.ads (Find_Prim_Op): Document that Program_Error is raised
470 if no primitive operation is found.
472 * exp_util.adb: (Find_Prim_Op): Add comments for previous change
474 * sem_ch8.adb: Minor reformatting
476 2008-07-30 Laurent Pautet <pautet@adacore.com>
479 Remove a limitation on the length of the words handled by the minimal
480 perfect hash function generator.
483 Detail the use of subprograms Insert, Initialize, Compute and Finalize.
486 2008-07-30 Robert Dewar <dewar@adacore.com>
488 * gnatlink.adb: Minor reformatting
490 2008-07-30 Thomas Quinot <quinot@adacore.com>
492 * rtsfind.adb (Check_RPC): Check version consistency even when not
493 generating RCI stubs. Provide more detailed error message in case of
496 2008-07-30 Ed Schonberg <schonberg@adacore.com>
498 * sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute
499 as a actual in an instance, check for a missing attribute to prevent
500 program_error on an illegal program.
502 * exp_util.adb (Find_Prim_Op): Rather than Assert (False), raise program
503 error if primitive is not found, so that exception can be handled
504 elsewhere on illegal programs.
506 2008-07-30 Robert Dewar <dewar@adacore.com>
508 * uintp.adb (UI_GCD): Fix potential overflow
510 2008-07-30 Hristian Kirtchev <kirtchev@adacore.com>
512 * einfo.adb: Flag245 is now used.
513 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Relax the assertion
514 check to include functions.
515 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
516 (Wrapped_Entity, Set_Wrapped_Entity): Relax the assertion check to
518 (Write_Entity_Flags): Move flag Is_Primitive, add Is_Private_Primitive
519 to the list of displayed flags.
521 * einfo.ads: Update comment on the usage of Is_Primitive_Wrapper and
522 Wrapped_Entity. These two flags are now present in functions.
523 New flag Is_Private_Primitive.
524 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
527 (Build_Wrapper_Bodies): New subprogram.
528 (Build_Wrapper_Body): The spec and body have been moved to in
529 Build_Wrapper_ Bodies. Code cleanup.
530 (Build_Wrapper_Spec): Moved to the spec of Exp_Ch9. Code cleanup.
531 Wrappers are now generated for primitives declared between the private
532 and full view of a concurrent type that implements an interface.
533 (Build_Wrapper_Specs): New subprogram.
534 (Expand_N_Protected_Body): Code reformatting. Replace the wrapper body
535 creation mechanism with a call to Build_Wrapper_Bodies.
536 (Expand_N_Protected_Type_Declaration): Code reformatting. Replace the
537 wrapper spec creation mechanism with a call to Build_Wrapper_Specs.
538 (Expand_N_Task_Body): Replace the wrapper body creation
539 mechanism with a call to Build_Wrapper_Bodies.
540 (Expand_N_Task_Type_Declaration): Replace the wrapper spec
541 creation mechanism with a call to Build_Wrapper_Specs.
542 (Is_Private_Primitive_Subprogram): New subprogram.
543 (Overriding_Possible): Code cleanup.
544 (Replicate_Entry_Formals): Renamed to Replicate_Formals, code cleanup.
546 * exp_ch9.ads (Build_Wrapper_Spec): Moved from the body of Exp_Ch9.
548 * sem_ch3.adb: Add with and use clause for Exp_Ch9.
549 (Process_Full_View): Build wrapper specs for all primitives
550 that belong to a private view completed by a concurrent type
551 implementing an interface.
553 * sem_ch6.adb (Analyze_Subprogram_Body): When the current subprogram
555 concurrent type with a private view that implements an interface, try to
556 find the proper spec.
557 (Analyze_Subprogram_Declaration): Mark a subprogram as a private
558 primitive if the type of its first parameter is a non-generic tagged
560 (Analyze_Subprogram_Specification): Code reformatting.
561 (Disambiguate_Spec): New routine.
562 (Find_Corresponding_Spec): Add a flag to controll the output of errors.
563 (Is_Private_Concurrent_Primitive): New routine.
566 (Find_Corresponding_Spec): Add a formal to control the output of errors.
568 2008-07-30 Doug Rupp <rupp@adacore.com>
570 * gigi.h (build_vms_descriptor64): New function prototype.
571 (fill_vms_descriptor): Modified function prototype.
573 * utils.c (build_vms_descriptor64): New function.
575 * utils2.c (fill_vms_descriptor): Fix handling on 32bit systems.
577 * trans.c (call_to_gnu): Call fill_vms_descriptor with new third
580 * decl.c (gnat_to_gnu_tree): For By_Descriptor mech, build both a
581 64bit and 32bit descriptor and save the 64bit version as an alternate
582 TREE_TYPE in the parameter.
583 (make_type_from_size) <RECORD_TYPE>: Use the appropriate mode for the
586 * ada-tree.h (DECL_PARM_ALT, SET_DECL_PARM_ALT): New macros.
588 2008-07-30 Robert Dewar <dewar@adacore.com>
590 * make.adb: Minor reformatting
592 * mlib-utl.adb: Minor reformatting
594 * osint.ads: Minor reformatting
596 2008-07-30 Jose Ruiz <ruiz@adacore.com>
599 (__gnat_file_exists): Do not use __gnat_stat for RTX.
600 (__main for RTX in RTSS mode): Create this dummy procedure symbol to
601 avoid the use of this symbol from libgcc.a in RTX kernel mode.
604 (put_int, put_int_stderr, put_char, put_char_stderr): For RTX we call
605 the function RtPrintf for console output.
607 * argv.c Do not use the environ variable for RTX.
609 * gnatlink.adb (gnatlink): The part that handles the --RTS option has
610 been moved before the call to Osint.Add_Default_Search_Dirs in order
611 to take into account the flags in system.ads (RTX_RTSS_Kernel_Module)
612 from the appropriate run time.
615 (RTX_RTSS_Kernel_Module_On_Target): Add this flag that is set to True if
616 target is a RTSS module for RTX.
618 * targparm.adb (Targparm_Tags, RTX_Str, Targparm_Str): Add tag RTX for
619 RTX_RTSS_Kernel_Module
620 (Get_Target_Parameters): Add processing of RTX_RTSS_Kernel_Module flag.
622 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for RTX): Use gcc
623 exception handling mechanism for Windows and RTX in Win32 mode, but
624 not for RTX in kernel mode (RTSS).
625 (LIBGNAT_SRCS): Remove ada.h
627 2008-07-30 Paolo Bonzini <bonzini@gnu.org>
629 * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove X_ADAFLAGS and
630 T_ADAFLAGS, replace ALL_ADA_CFLAGS with ADA_CFLAGS.
631 (ALL_ADA_CFLAGS): Remove, replace throughout with ADA_CFLAGS.
632 * gcc-interface/Makefile.in (XCFLAGS, X_CFLAGS, X_CPPFLAGS, T_CPPFLAGS,
633 X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS, ADA_CFLAGS,
634 ALL_ADA_CFLAGS): Remove.
635 (ALL_ADAFLAGS, MOST_ADAFLAGS): Remove X_ADAFLAGS and T_ADAFLAGS,
636 replace ALL_ADA_CFLAGS with ADA_CFLAGS.
637 (GCC_CFLAGS): Remove X_CFLAGS.
638 (LOOSE_CFLAGS): Remove X_CFLAGS and XCFLAGS.
639 (ALL_CPPFLAGS): Remove X_CPPFLAGS and T_CPPFLAGS.
640 (ADA_CFLAGS): Substitute.
642 2008-07-30 Laurent Guerby <laurent@guerby.net>
645 * gcc-interface/Makefile.in (MULTISUBDIR, RTSDIR): New variables.
646 Pass MULTISUBDIR to recursive make. Use $(RTSDIR) instead of rts.
647 Replace stamp-gnatlib* by stamp-gnatlib*-rts.
648 * gcc-interface/Make-lang.in: Replace stamp-gnatlib2
649 by stamp-gnatlib2-rts.
651 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
653 PR documentation/15479
654 * gnat-style.texi: Remove AdaCore copyright statement and GPL
655 statement for GNAT. Add @copying stanza, use it. Update to
656 GFDL 1.2. Do not list GFDL as Invariant Section, do not list
657 title as Front-Cover Text.
658 * gnat_rm.texi: Likewise.
659 * gnat_ugn.texi: Likewise.
661 2008-07-29 Jan Hubicka <jh@suse.cz>
663 * trans.c (process_inlined_subprograms): Remove tree_really_inline
666 2008-07-29 Arnaud Charlet <charlet@adacore.com>
668 * gcc-interface: New directory.
670 * ada-tree.def, cuintp.c, gigi.h, Makefile.in, targtyps.c, ada.h,
671 utils.c, ada-tree.h, decl.c, lang.opt, Make-lang.in, trans.c,
672 config-lang.in, deftarg.c, lang-specs.h, misc.c, utils2.c: Moved
673 to gcc-interface subdirectory.
675 2008-07-29 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
677 * Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o.
679 2008-07-28 Jan Hubicka <jh@suse.cz>
681 * misc.c (gnat_post_options): Do not set flag_no_inline.
683 2008-07-28 Richard Guenther <rguenther@suse.de>
685 Merge from gimple-tuples-branch.
687 2008-07-22 Olivier Hainque <hainque@adacore.com>
689 * gigi.h (end_subprog_body): New ELAB_P argument, saying if
690 this is called for an elab proc to be discarded if empty.
691 * utils.c (end_subprog_body): Honor ELAB_P.
692 (build_function_stub): Adjust call to end_subprog_body.
693 * trans.c (Subprogram_Body_to_gnu): Likewise.
694 (gigi): Reorganize processing of elab procs to prevent
695 gimplifying twice, using the new end_subprog_body argument.
697 2008-07-19 Richard Guenther <rguenther@suse.de>
699 * Make-lang.in (trans.o): Add tree-iterator.h dependency.
701 * trans.c: Include tree-iterator.h.
702 (gnat_gimplify_expr): Adjust prototype. Fix typo.
703 (gnat_gimplify_stmt): Use SET_EXPR_LOCATION.
704 (set_expr_location_from_node): Likewise.
706 * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead
708 * utils.c: Include tree-iterator.h.
709 * gigi.h (gnat_gimplify_expr): Adjust prototype.
711 2008-07-18 Aldy Hernandez <aldyh@redhat.com>
713 * trans.c: Include gimple.h instead of tree-gimple.h.
716 2008-07-14 Aldy Hernandez <aldyh@redhat.com>
718 * trans.c (gnat_gimplify_expr): Use gimplify_assign.
720 2008-07-25 Jan Hubicka <jh@suse.cz>
722 * utils.c (end_subprog_body): Remove inline trees check.
723 * misc.c (gnat_post_options): Do not set flag_inline_trees.
725 2008-07-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
727 * raise-gcc.c: Move tsystem.h before tm.h.
729 2008-07-20 Arnaud Charlet <charlet@adacore.com>
731 * gnathtml.pl: New file.
733 2008-07-19 Olivier Hainque <hainque@adacore.com>
735 * targtyps.c (get_target_default_allocator_alignment): Use
736 MALLOC_ABI_ALIGNMENT.
738 2008-07-17 Olivier Hainque <hainque@adacore.com>
740 * adaint.c (__MINGW32__ section): Include ctype.h and define
741 a fallback ISALPHA if IN_RTS.
742 (__gnat_is_absolute_path): Use ISALPHA instead of isalpha.
744 2008-07-17 Olivier Hainque <hainque@adacore.com>
746 * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
747 argument, to apply to references in addition to definitions. Prevent
748 setting TREE_STATIC on externals.
749 (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
751 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
753 PR documentation/15479
754 * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
755 Replace backets around optional parameters with @ovar
756 where possible, use @r{[}, @r{]} otherwise.
757 Replace some @r, @i, and @emph with @var where appropriate.
759 2008-07-02 Eric Botcazou <ebotcazou@adacore.com>
761 * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
763 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
765 * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
766 -Wc++-compat warnings.
767 * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
768 __gnat_locate_exec_on_path): Likewise.
769 * decl.c (annotate_value): Likewise.
770 * misc.c (gnat_handle_option): Likewise.
771 * trans.c (gnat_to_gnu, extract_encoding, decode_name,
772 post_error_ne_tree): Likewise.
774 2008-06-27 Eric Botcazou <ebotcazou@adacore.com>
776 * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
777 version of its type, attempt to first convert its elements.
779 2008-06-26 Chris Proctor <chrisp_42@bigpond.com>
781 * Makefile.in: Fix *86 kfreebsd target specific pairs.
783 2008-06-25 Samuel Tardieu <sam@rfc1149.net>
785 * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
787 2008-06-24 Eric Botcazou <ebotcazou@adacore.com>
789 * utils2.c (known_alignment): Derive the alignment from pointed-to
790 types only if it is otherwise unknown.
792 <MULT_EXPR>: Likewise.
793 <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
796 2008-06-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
799 * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
801 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
803 * gnat_rm.texi (Implementation Defined Characteristics)
804 (Standard Library Routines): Use @smallexample for indented
805 text. Drop Indentation outside examples.
806 * gnat_ugn.texi: Likewise.
808 2008-06-13 Olivier Hainque <hainque@adacore.com>
810 * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
812 (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
813 realignment with force_align_arg_pointer attribute on foreign
814 convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
816 2008-06-13 Olivier Hainque <hainque@adacore.com>
818 * utils.c (rest_of_record_type_compilation): When computing
819 encodings for the components of a variable size type, early
820 strip conversions on the current position expression to make
821 sure it's shape is visible. Use remove_conversions for this
824 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
826 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
827 constrained subtype of a discriminated type, discard the fields that
828 are beyond its limits according to its size.
830 2008-06-10 Olivier Hainque <hainque@adacore.com>
832 * utils.c (create_subprog_decl): If this is for the 'main' entry
833 point according to the asm name, redirect main_identifier_node.
835 2008-06-09 Eric Botcazou <ebotcazou@adacore.com>
837 * decl.c (components_to_record): Adjust the packedness for the
838 qualified union as well.
840 2008-06-09 Arnaud Charlet <charlet@adacore.com>
842 * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
845 2008-06-07 Samuel Tardieu <sam@rfc1149.net>
847 * sem_res.adb (Large_Storage_Type): A type is large if it
848 requires as many bits as Positive to store its values and its
849 bounds are known at compile time.
850 * sem_ch13.adb (Minimum_Size): Note that this function returns
851 0 if the size is not known at compile time.
853 2008-06-06 Nicolas Setton <setton@adacore.com>
854 Olivier Hainque <hainque@adacore.com>
856 * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
857 attribute, parallel descriptive type attached to another
858 type for debug info generation purposes.
859 * utils.c (add_parallel_type): New function, register
860 parallel type to be attached to a type.
861 (get_parallel_type): New function, fetch a registered
862 parallel type, if any.
863 (rest_of_record_type_compilation): Register the parallel
864 type we make for variable size records.
865 * gigi.h (add_parallel_type, get_parallel_type): Declare.
866 * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
867 parallel debug types we make.
868 * trans.c (extract_encoding, decode_name): New functions.
869 (gigi): If the DWARF attribute extensions are available, setup
871 * lang.opt: Register language specific processing request
873 * misc.c (gnat_dwarf_extensions): New global variable. How much
874 do we want of our DWARF extensions. 0 by default.
875 (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
876 (gnat_post_options): Map gnat_dwarf_extensions to the
877 commonuse_gnu_debug_info_extensions for later processing.
879 2008-06-04 Samuel Tardieu <sam@rfc1149.net>
881 * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
883 2008-06-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
885 * Makefile.in (common_tools): Fix typos in $(exeext) extension.
886 * gnat_ugn.texi (Style Checking)
887 (Adding the Results of Compiler Checks to gnatcheck Output)
888 (Example of Binder Output File): Fix typos.
889 * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
890 exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
891 s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
892 s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
893 sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
894 sinfo.ads, utils.c: Fix typos in comments.
895 * sem_ch6.adb, vms_data.ads: Fix typos in strings.
897 2008-05-29 Thomas Quinot <quinot@adacore.com>
899 * sem_eval.adb: Minor reformatting
901 2008-05-29 Ed Schonberg <schonberg@adacore.com>
903 * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
904 is abstract, do not apply abstractness check on subprogram if this is
905 a renaming declaration.
907 2008-05-29 Arnaud Charlet <charlet@adacore.com>
910 * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
911 allow recognition of program suffix in addition to prefix.
913 * gnatchop.adb (Locate_Executable): Add support for prefix.
915 * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
916 mlib-utl.adb: Adjust calls to Program_Name.
918 2008-05-29 Robert Dewar <dewar@adacore.com>
920 * sem_ch3.adb: Minor reformatting
921 * sem_prag.adb: Minor reformatting
922 * sem_res.adb: Minor reformatting
923 * sinput-p.ads: Minor reformatting
925 2008-05-29 Javier Miranda <miranda@adacore.com>
928 (Abstract_Interface_List): Add missing support for full type-declaration
929 associated with synchronized types.
931 2008-05-29 Robert Dewar <dewar@adacore.com>
933 * sem_eval.adb (Is_Same_Value): Take care of several more cases
935 2008-05-28 Ed Schonberg <schonberg@adacore.com>
937 * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
938 access type, wrap the expression in a conversion to force an
941 * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
942 accessibility checks even when expansion is disabled in order to
943 generate messages in the presence of previous errors or in
946 2008-05-28 Eric Botcazou <ebotcazou@adacore.com>
948 * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
949 * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
951 2008-05-28 Vincent Celier <celier@adacore.com>
954 * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
955 preprocessing expressions
957 2008-05-28 Vincent Celier <celier@adacore.com>
959 * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
962 * sinput-p.ads: Minor comment update and reformatting
964 2008-05-28 Ed Schonberg <schonberg@adacore.com>
966 * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
967 type has a deeper level than any master only when it is the type of an
970 2008-05-28 Javier Miranda <miranda@adacore.com>
972 * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
974 2008-05-28 Javier Miranda <miranda@adacore.com>
976 * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
977 * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
978 * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
979 Add code that was previously located in
980 Find_Overridden_Synchronized_Primitive because it is only used here.
982 2008-05-28 Sergey Rybin <rybin@adacore.com>
984 * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
985 Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
987 2008-05-28 Robert Dewar <dewar@adacore.com>
990 Add missing restrictions, and properly label all GNAT defined ones
993 Add entry for Ada_Real_Time.Timing_Events.Timing_Event
994 Add entry for Ada.Task_Termination.Set_Specific_Handler
995 Add entry for Ada.Task_Termination.Specific_Handler
998 Add missing restrictions and properly mark all gnat defined ones
1001 (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
1004 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
1006 * gnat_rm.texi: Add missing restrictions, and properly label all
1009 2008-05-28 Robert Dewar <dewar@adacore.com>
1012 (Check_Restriction): violation of restriction No_Finalization is
1013 treated as a serious error to stop expansion
1015 2008-05-28 Robert Dewar <dewar@adacore.com>
1017 * exp_util.adb: Minor reformatting
1018 * exp_util.ads: Minor reformatting.
1020 2008-05-28 Arnaud Charlet <charlet@adacore.com>
1022 * Make-lang.in: Remove gprmake.
1024 * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
1026 2008-05-28 Ed Schonberg <schonberg@adacore.com>
1028 * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
1029 improper progenitor names, and avoid cascaded errors.
1031 2008-05-28 Robert Dewar <dewar@adacore.com>
1033 * gnat_rm.texi: Add note on Old giving warning when applied to constant
1035 * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
1038 2008-05-28 Robert Dewar <dewar@adacore.com>
1040 * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
1043 2008-05-28 Robert Dewar <dewar@adacore.com>
1046 (Expand_Simple_Function_Return): Copy unaligned result into temporary
1048 2008-05-28 Javier Miranda <miranda@adacore.com>
1050 * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
1051 for user-defined predefined primitives.
1053 * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
1054 (Find_Overridden_Synchronized_Primitive): Ditto.
1056 * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
1058 2008-05-27 Arnaud Charlet <charlet@adacore.com>
1060 * a-ststio.adb, s-direio.adb:
1061 Further code clean up of previous change.
1064 2008-05-27 Vincent Celier <celier@adacore.com>
1066 * prj-nmsc.adb: Minor reformatting
1068 2008-05-27 Bob Duff <duff@adacore.com>
1070 * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
1071 untagged private type with a tagged full type, where the full type has
1072 a self reference, create the corresponding class-wide type early, in
1073 case the self reference is "access T'Class".
1075 2008-05-27 Ed Schonberg <schonberg@adacore.com>
1077 * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
1078 tasks and context is an object declaration. create master entity before
1081 2008-05-27 Robert Dewar <dewar@adacore.com>
1083 * mlib-prj.adb: Minor reformatting
1085 * prj-part.adb: Minor reformatting
1087 * prj.ads: Minor reformatting
1089 * exp_ch3.adb: Minor reformatting.
1091 * sem_ch3.ads: Minor reformatting
1093 * sem_eval.adb: Minor reformatting
1095 2008-05-27 Vincent Celier <celier@adacore.com>
1098 <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
1100 2008-05-27 Ed Schonberg <schonberg@adacore.com>
1102 * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
1103 tasks, create an activation chain now, before the expansion into
1104 assignments and build-in-place calls that require the presence of an
1106 (Backend_Processing_Possible): If the component type is inherently
1107 limited, the aggregate must be expanded into individual built-in-place
1110 * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
1111 determine whether an allocation extra parameter must be built, to
1112 handle case of a private type whose full type is a discriminated type
1115 2008-05-27 Bob Duff <duff@adacore.com>
1118 Document the new behavior regarding trampolines.
1120 2008-05-27 Arnaud Charlet <charlet@adacore.com>
1122 * a-direio.adb, a-sequio.adb: Replace address clause by
1123 unrestricted_access, simpler and compatible with .NET.
1125 2008-05-27 Vincent Celier <celier@adacore.com>
1128 (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
1129 a project file, so that symbolic links are not resolved.
1131 2008-05-27 Arnaud Charlet <charlet@adacore.com>
1133 * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
1134 Replace heavy address clause by 'Unrestricted_Access, cleaner and more
1135 portable across GNAT targets, since this kind of address clause is not
1136 supported by VM back-ends (.NET/JGNAT).
1138 2008-05-27 Arnaud Charlet <charlet@adacore.com>
1140 * bindgen.adb: Update comments.
1142 * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
1144 2008-05-27 Vincent Celier <celier@adacore.com>
1146 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
1147 prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
1148 mlib-tgt.adb, prj-env.adb, prj-env.ads:
1149 (Path_Information): New record type
1150 Use component of type Path_Information when there are two paths, one in
1151 canonical format and one in display format.
1152 Update the project manager to these new components.
1154 2008-05-27 Robert Dewar <dewar@adacore.com>
1156 * makeutl.adb: Minor reformatting
1157 * prj-nmsc.adb: Minor reformatting
1158 * s-stausa.adb: Minor reformatting
1159 * s-stausa.ads: Minor reformatting
1160 * sem_ch6.adb: Minor reformatting
1162 2008-05-27 Thomas Quinot <quinot@adacore.com>
1164 * sem_res.adb: Minor comment fixes
1166 2008-05-27 Thomas Quinot <quinot@adacore.com>
1168 * makeutl.adb: Minor code reorganization
1170 * exp_aggr.adb: Add ??? comment
1173 * exp_ch6.adb: Minor reformatting
1175 2008-05-27 Quentin Ochem <ochem@adacore.com>
1177 * s-stausa.adb (Initialize): Updated result initialization, and
1178 initialization of environment stack.
1179 (Fill_Stack): Improved computation of the pattern zone, taking into
1180 account already filled at the calling point.
1181 (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
1182 Measure and Overflow_Guard.
1183 (Report_Result): Fixed computation of the result using new fields of
1186 * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
1187 params by more explicit Stack_Size / Max_Pattern_Size params.
1188 (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
1189 Added Stack_Used_When_Filling field.
1190 (Task_Result): Replaced Measure / Overflow_Guard by more explicit
1191 Min_Measure and Max_Measure fields.
1193 * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
1195 2008-05-27 Vincent Celier <celier@adacore.com>
1198 (Check_File): Make sure that a unit that replaces the same unit in a
1199 project being extended is properly processed.
1201 2008-05-27 Ed Schonberg <schonberg@adacore.com>
1204 (Get_Discr_Value): Remove obsolete code that failed to find the value
1205 of a discriminant for an inherited task component appearing in a type
1208 2008-05-27 Thomas Quinot <quinot@adacore.com>
1210 (System.File_IO.{Close, Delete, Reset}):
1211 Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
1213 (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
1214 Pass File parameter by reference.
1216 2008-05-27 Vincent Celier <celier@adacore.com>
1219 (Process_Sources_In_Multi_Language_Mode): Check that there are not two
1220 sources of the same project that have the same object file name.
1221 (Find_Explicit_Sources): Always remove a source exception that was not
1224 2008-05-27 Thomas Quinot <quinot@adacore.com>
1226 * sem_ch3.adb: Minor reformatting
1228 2008-05-27 Ed Schonberg <schonberg@adacore.com>
1231 (Is_Interface_Conformant): Handle properly a primitive operation that
1232 overrides an interface function with a controlling access result.
1233 (Type_Conformance): If Skip_Controlling_Formals is true, when matching
1234 inherited and overriding operations, omit as well the conformance check
1235 on result types, to prevent spurious errors.
1237 2008-05-27 Vincent Celier <celier@adacore.com>
1239 * makeutl.ads, makeutl.adb:
1240 (Set_Location): New procedure
1241 (Get_Location): New function
1242 (Update_Main): New procedure
1244 2008-05-27 Vincent Celier <celier@adacore.com>
1247 (Check_Library): Allow standard project to be extended as a static
1249 (Get_Mains): Do not inherit attribute Main in an extending library
1252 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
1254 * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
1255 * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
1256 * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
1257 * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
1258 * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
1259 * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
1260 * system-mingw.ads (Always_Compatible_Rep): Likewise.
1261 * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
1262 * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
1263 * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
1265 2008-05-27 Ed Schonberg <schonberg@adacore.com>
1267 * sem_attr.adb: add guard to previous patch.
1269 2008-05-27 Ed Schonberg <schonberg@adacore.com>
1271 * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
1272 a synchronized tagged type, do not attempt to build dispatch table for
1273 full view. The table is built for the corresponding record type, which
1274 has its own declaration.
1276 2008-05-27 Gary Dismukes <dismukes@adacore.com>
1278 * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
1279 to the known type entity E, rather than setting it to Any_Type. Fixes
1280 possible blowup in function Base_Init_Proc, as called from Freeze_Entity
1281 for objects whose type had an illegal constraint.
1283 2008-05-27 Vincent Celier <celier@adacore.com>
1286 Add succinct documentation for attribute Excluded_Source_List_File
1288 2008-05-27 Vincent Celier <celier@adacore.com>
1290 * prj-attr.adb: Add new project level attribute Map_File_Option
1292 * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
1294 * prj.ads: Minor reformatting and comment update
1295 (Project_Configuration): New component Map_File_Option
1297 * snames.adb: New standard name Map_File_Option
1299 * snames.ads: New standard name Map_File_Option
1301 2008-05-27 Vincent Celier <celier@adacore.com>
1303 * xsnames.adb: Remove unused variable Oname
1305 2008-05-27 Doug Rupp <rupp@adacore.com>
1308 (Expand_N_Function_Call): Fix comments. Minor reformatting.
1311 (Expand_Vax_Foreign_Return): Fix comments.
1313 2008-05-27 Thomas Quinot <quinot@adacore.com>
1315 * exp_dist.adb: Minor reformating
1317 2008-05-26 Gary Dismukes <dismukes@adacore.com>
1319 * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
1320 No_Default_Initialization, which is now delayed until the freeze point
1321 of the object. Add a comment about deferral of the check.
1323 * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
1324 on objects is moved here.
1326 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
1328 * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
1329 (Compare_Array_S16): Adjust for above change.
1330 * s-casi32.adb (Uword): Likewise.
1331 (Compare_Array_S32): Likewise.
1332 * s-casi64.adb (Uword): Likewise.
1333 (Compare_Array_S64): Likewise.
1334 * s-caun16.adb (Uhalf): Likewise.
1335 (Compare_Array_U16): Likewise.
1336 * s-caun32.adb (Uword): Likewise.
1337 (Compare_Array_U32): Likewise.
1338 * s-caun64.adb (Uword): Likewise.
1339 (Compare_Array_U64): Likewise.
1341 2008-05-26 Robert Dewar <dewar@adacore.com>
1343 * exp_ch6.adb: Add ??? comment for previous change
1345 * exp_vfpt.adb: Minor reformatting
1347 * exp_vfpt.ads: Add ??? comment for last change
1349 * sem_attr.adb: Add some ??? comments for previous change
1351 * s-vaflop.ads: Add comments for previous change
1353 2008-05-26 Doug Rupp <rupp@adacore.com>
1355 * s-vaflop-vms-alpha.adb:
1356 Remove System.IO use clause, to prevent spurious ambiguities when
1357 package is access through rtsfind.
1359 2008-05-26 Sergey Rybin <rybin@adacore.com>
1361 * tree_io.ads (ASIS_Version_Number): Update because of the changes
1364 2008-05-26 Ed Schonberg <schonberg@adacore.com>
1367 (Resolve_Attribute, case 'address): S (A .. B)' address can be safely
1368 converted to S (A)'address only if A .. B is known to be a non-null
1371 2008-05-26 Doug Rupp <rupp@adacore.com>
1374 (Return_D, Return_F, Return_G): New functions.
1377 (Return_D, Return_F, Return_G): New functions.
1380 (Expand_Vax_Foreign_Return): New procedure
1383 (Expand_Vax_Foreign_Return): New procedure
1386 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
1387 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
1391 (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
1393 * s-vaflop-vms-alpha.adb:
1394 (Return_D, Return_F, Return_G): New functions.
1396 2008-05-26 Gary Dismukes <dismukes@adacore.com>
1398 * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
1399 init proc entity when there is actual default initialization associated
1400 with the component type, to avoid spurious errors on objects of scalar
1401 array types that are marked Is_Public when No_Default_Initialization
1404 2008-05-26 Thomas Quinot <quinot@adacore.com>
1406 * rtsfind.ads, rtsfind.adb:
1407 (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
1408 (Check_RPC): Support per-PCS-kind API versioning.
1410 exp_dist.ads, exp_dist.adb:
1411 (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
1412 (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
1413 library function Get_RACW.
1414 (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
1415 library function Get_Reference.
1416 (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
1417 through an intermediate Any.
1418 (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
1419 going through an intermediate Any.
1421 * sem_dist.adb: Minor reformatting.
1423 2008-05-26 Javier Miranda <miranda@adacore.com>
1425 * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
1426 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
1427 (Is_Internal): Adding documentation on internal entities that have
1428 attribute Interface_Alias (old attribute Abstract_Interface_Alias)
1430 * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
1431 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
1432 Added assertion to force entities with this attribute to have
1433 attribute Is_Internal set to True.
1434 (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
1436 * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
1437 renamed as Derive_Progenitor_Subprograms. In addition, its code is
1438 a new implementation.
1439 (Add_Interface_Tag_Components): Remove special management of
1440 synchronized interfaces.
1441 (Analyze_Interface_Declaration): Minor reformating
1442 (Build_Derived_Record_Type): Minor reformating
1443 (Check_Abstract_Overriding): Avoid reporting error in case of abstract
1444 predefined primitive inherited from interface type because the body of
1445 internally generated predefined primitives of tagged types are generated
1446 later by Freeze_Type
1447 (Derive_Subprogram): Avoid generating an internal name if the parent
1448 subprogram overrides an interface primitive.
1449 (Derive_Subprograms): New implementation that keeps separate the
1450 management of tagged types not implementing interfaces, from tagged
1451 types that implement interfaces.
1452 (Is_Progenitor): New implementation.
1453 (Process_Full_View): Add documentation
1454 (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
1455 by call to Derive_Progenitor_Subprograms.
1457 * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
1458 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
1459 Skip_Controlling_Formals.
1461 * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
1462 (Check_Conventions): New implementation. Remove local subprogram
1463 Skip_Check. Remove formal Search_From of routine Check_Convention.
1464 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
1465 Skip_Controlling_Formals.
1466 (New_Overloaded_Entity): Enable addition of predefined dispatching
1470 (Find_Primitive_Covering_Interface): New subprogram.
1472 * sem_disp.adb (Check_Dispatching_Operation): Disable registering
1473 the task body procedure as a primitive of the corresponding tagged
1475 (Check_Operation_From_Private_Type): Avoid adding twice an entity
1476 to the list of primitives.
1477 (Find_Primitive_Covering_Interface): New subprogram.
1478 (Override_Dispatching_Operation): Add documentation.
1480 * sem_type.adb (Covers): Minor reformatings
1482 * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
1485 (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
1486 (Implements_Interface): New subprogram.
1487 (Is_Parent): Removed.
1488 (Primitive_Names_Match): New subprogram.
1489 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
1490 (Ultimate_Alias): New subprogram.
1492 * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
1494 Remove special management for synchronized types. Rename formal. Remove
1495 internal subprograms Interface_Present_In_Parent and Add_Interface.
1496 (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
1497 on non-record types by code to return false in such case.
1498 (Implements_Interface): New subprogram.
1499 (Is_Parent): Removed. No special management is now required for
1500 synchronized types covering interfaces.
1501 (Primitive_Names_Match): New subprogram.
1502 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
1503 (Ultimate_Alias): New subprogram.
1505 * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
1506 Add internal entities associated with secondary dispatch tables to
1507 the list of tagged type primitives that are not interfaces.
1508 (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
1509 (Make_Predefined_Primitive_Specs): Code reorganization to improve
1510 the management of predefined equality operator. In addition, if
1511 the type has an equality function corresponding with a primitive
1512 defined in an interface type, the inherited equality is abstract
1513 as well, and no body can be created for it.
1515 * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
1516 exp_util to exp_disp.
1517 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
1518 an entity corresponds with one of the predefined primitives required
1519 to implement interfaces.
1520 Update copyright notice.
1522 * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
1523 final check on abstract subprograms all the primitives associated with
1524 interface primitives because they must be visible in the public and
1526 (Write_DT): Use Find_Dispatching_Type to locate the name of the
1527 interface type. This allows the use of this routine, for debugging
1528 purposes, when the tagged type is not fully decorated.
1529 (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
1530 Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
1531 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
1532 entity corresponds with one of the predefined primitives required to
1533 implement interfaces.
1535 * exp_util.adb (Find_Interface_ADT): New implementation
1536 (Find_Interface): Removed.
1538 * sprint.adb (Sprint_Node_Actual): Generate missing output for the
1539 list of interfaces associated with nodes
1540 N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
1542 2008-05-26 Thomas Quinot <quinot@adacore.com>
1544 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
1545 condition for assignment to temporary.
1547 2008-05-26 Ed Schonberg <schonberg@adacore.com>
1549 * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
1550 checks on the upper bound if the index type is a modular type, to
1551 prevent wrap-around computations when size is close to upper bound of
1554 2008-05-26 Robert Dewar <dewar@adacore.com>
1556 * sem_ch3.adb: Minor reformatting
1558 2008-05-26 Ed Schonberg <schonberg@adacore.com>
1560 * sem_ch12.adb (Remove_Parent): Use specification of instance
1561 to retrieve generic parent,
1562 to handle properly the case where the instance is a child unit.
1563 Add guard to handle properly wrapper packages.
1566 2008-05-26 Thomas Quinot <quinot@adacore.com>
1568 * sinfo.ads: Minor reformatting
1570 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
1572 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
1573 Generate a tag check when the result subtype of a function, defined by
1574 an access definition, designates a specific tagged type.
1575 (Make_Tag_Check): New routine.
1577 2008-05-26 Arnaud Charlet <charlet@adacore.com>
1579 * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
1581 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
1583 * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
1584 (builtin_decl_for): Likewise.
1585 * trans.c (gigi): Likewise.
1586 * utils.c (def_builtin_1): Fix formatting.
1588 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
1590 * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
1591 Create the statements which map a string name to protected or task
1594 * exp_ch9.adb: Add with and use clause for Stringt.
1595 Minor code reformatting.
1596 (Build_Entry_Names): New routine.
1597 (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
1598 for flag Build_Entry_Names which controls the allocation of the data
1599 structure for the string names of entries.
1601 * exp_ch9.ads (Build_Entry_Names): New subprogram.
1603 * exp_util.adb (Entry_Names_OK): New function.
1605 * exp_util.ads (Entry_Names_OK): New function.
1607 * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
1608 enumerations RE_Id and RE_Unit_Table.
1610 * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
1611 (Free_Entry_Names_Array): New routine.
1613 * s-taskin.ads: Comment reformatting.
1614 Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
1615 Add component Entry_Names to record Ada_Task_Control_Block.
1616 (Free_Entry_Names_Array): New routine.
1618 * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
1619 dynamically allocate an array
1620 of string pointers. This structure holds string entry names.
1621 (Free_Entry_Names): New routine.
1622 (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
1623 (Set_Entry_Names): New routine.
1626 (Create_Task): Add formal Build_Entry_Names. The flag is used to
1627 control the allocation of the data structure which stores entry names.
1628 (Set_Entry_Name): New routine.
1631 Add with and use clause for Ada.Unchecked_Conversion.
1632 (Finalize): Deallocate the entry names array.
1633 (Free_Entry_Names): New routine.
1634 (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
1635 create an array of string pointers to hold the entry names.
1636 (Set_Entry_Name): New routine.
1639 Add field Entry_Names to record Protection_Entries.
1640 (Initialize_Protection_Entries): Add formal Build_Entry_Names.
1641 (Set_Entry_Name): New routine.
1643 2008-05-26 Vincent Celier <celier@adacore.com>
1646 (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
1649 (Project_Configuration): New component Shared_Lib_Driver
1651 2008-05-26 Ed Schonberg <schonberg@adacore.com>
1654 (Cleanup_Scopes): For a protected operation, transfer finalization list
1655 to protected body subprogram, to force cleanup actions when needed.
1657 2008-05-26 Robert Dewar <dewar@adacore.com>
1659 * sem_cat.adb: Minor reformatting
1661 * gnatname.adb: Minor reformatting
1663 * osint.ads: Minor reformatting
1665 * s-carun8.ads: Minor reformatting
1667 * g-heasor.ads: Minor comment fix (unit is now pure)
1669 2008-05-26 Robert Dewar <dewar@adacore.com>
1672 (Expand_Current_Value): Properly type generated integer literal
1674 2008-05-26 Sergey Rybin <rybin@adacore.com>
1676 * gnat_ugn.texi: Add description for the new gnatcheck rule -
1677 Separate_Numeric_Error_Handlers.
1679 2008-05-26 Pascal Obry <obry@adacore.com>
1681 * sem_aggr.adb: Minor reformatting.
1683 2008-05-26 Jose Ruiz <ruiz@adacore.com>
1686 (To_Target_Priority): Setting the time slice value to 0 or greater sets
1687 the scheduling policy to FIFO within priorities or round-robin
1689 Hence, the priority must be set in this case to the one selected by the
1692 2008-05-26 Ed Schonberg <schonberg@adacore.com>
1695 (Remove_Parent): If the enclosing scope is an instance whose generic
1696 parent is declared within some parent scope of the just completed
1697 instance, make full views of the entities in that parent visible, when
1700 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
1702 * mingw32.h (STD_MINGW): Set to true for target w64.
1704 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
1706 * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
1707 instead of TREE_STATIC on the ADDR_EXPR.
1709 2008-05-24 Eric Botcazou <ebotcazou@adacore.com>
1711 * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
1712 (Sloc_to_locus): Do not overwrite known GCC locations when translating
1713 GNAT standard locations.
1715 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
1717 * gigi.h (mark_visited): Declare.
1718 * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
1719 only the topmost node of expressions.
1720 (elaborate_expression_1): Look deeper for read-only variables.
1721 * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
1722 (mark_visited): Move logic to mark_visited_r. Invoke walk_tree.
1723 (mark_visited_r): New function.
1725 2008-05-23 Vincent Celier <celier@adacore.com>
1727 * snames.adb: New standard name Excluded_Source_List_File.
1729 * snames.ads: New standard name Excluded_Source_List_File.
1731 * prj-attr.adb: New project level attribute Excluded_Source_List_File.
1733 * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
1734 Get excluded sources from
1735 file indicated by attribute Excluded_Source_List_File, when present and
1736 neither Excluded_Source_Files nor Locally_Removed_Files are declared.
1738 2008-05-23 Robert Dewar <dewar@adacore.com>
1740 * exp_dist.adb: Minor reformatting
1742 2008-05-23 Ed Schonberg <schonberg@adacore.com>
1744 * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
1745 slice, convert it to an indexed component, which is equivalent, more
1746 efficient, and usable even if the slice itself is not addressable.
1748 2008-05-23 Olivier Hainque <hainque@adacore.com>
1750 * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
1751 convention also allows access to named compiler built-in subprograms
1752 such as the GCC __builtin family.
1754 2008-05-23 Vincent Celier <celier@adacore.com>
1756 * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
1757 sep. If there are several possibilities, choose the one with the
1760 2008-05-23 Vincent Celier <celier@adacore.com>
1762 * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
1763 back end switches when executable specified with --GCC= is same as
1764 default, even if there are additional options.
1767 Document when the back end switches from the ALI file are taken into
1768 account when gnatlink is invoked with --GCC=
1770 2008-05-23 Thomas Quinot <quinot@adacore.com>
1773 (copy_File): Do not open destination file if source file is unreadable.
1775 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
1777 * utils.c (handle_type_generic_attribute): Adjust to accept
1778 fixed arguments before an elipsis.
1780 2008-05-21 Thomas Quinot <quinot@adacore.com>
1782 * g-sothco.ads, g-sothco.adb: New files.
1784 2008-05-20 Thomas Quinot <quinot@adacore.com>
1786 * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
1788 * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
1789 Add missing "with" of Ada.Unchecked_Conversion
1791 * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads,
1792 g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads,
1793 g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
1794 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
1795 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
1796 g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads:
1797 Move common code out of GNAT.Sockets.Thin implementations and into
1799 New constant SIZEOF_fd_set
1800 New flag Has_Sockaddr_Len
1801 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
1803 * g-stsifd-sockets.adb
1804 (Create): Remove call to Set_Length; use Set_Family to set the family
1805 and (on appropriate platforms) length fields in struct sockaddr.
1807 * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb,
1808 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb,
1809 g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
1810 Move common code out of GNAT.Sockets.Thin implementations and into
1813 * g-socket.ads, g-socket.adb:
1814 Move common code out of GNAT.Sockets.Thin implementations and into
1816 (Connect_Socket, Accept_Socket): Provide new versions of these two
1817 routines that operate with a user specified timeout.
1818 (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
1819 this is now handled automatically by Set_Family on platforms that
1823 Move common code out of GNAT.Sockets.Thin implementations and into
1825 (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
1826 this constant to 0 (not -1) because we use it to initialize an
1827 unsigned_char value.
1828 Align values for numeric constants only.
1829 Handle the case of systems that do not support AF_INET6.
1830 New constant SIZEOF_fd_set
1831 New flag Has_Sockaddr_Len
1832 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
1834 * gsocket.h: New flag Has_Sockaddr_Len
1835 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
1837 2008-05-20 Santiago Uruena <uruena@adacore.com>
1839 * i-cobol.ads: Interfaces.COBOL should be preelaborate.
1841 2008-05-20 Arnaud Charlet <charlet@adacore.com>
1843 * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
1844 the underlying issue with malloc/free has been fixed. Remove associated
1847 Related to PR ada/24533
1849 2008-05-20 Robert Dewar <dewar@adacore.com>
1851 * ali.adb: Correct casing of ASCII.NUL
1853 * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
1856 2008-05-20 Robert Dewar <dewar@adacore.com>
1857 Gary Dismukes <dismukes@adacore.com>
1859 * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
1860 overflow if result converted to wider integer type.
1861 (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
1862 discriminated types when discriminant checks are suppressed.
1864 2008-05-20 Vincent Celier <celier@adacore.com>
1866 * cstand.adb (Print_Standard): Issue the correct Size clause for type
1867 Wide_Wide_Character.
1869 2008-05-20 Tristan Gingold <gingold@adacore.com>
1871 * decl.c: Do not emit a variable for a object that has an address
1872 representation clause whose value is known at compile time.
1873 When a variable has an address clause whose value is known at compile
1874 time, refer to this variable by using directly the address instead of
1875 dereferencing a pointer.
1877 2008-05-20 Robert Dewar <dewar@adacore.com>
1880 * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
1881 subtypes, always False for non-modular types.
1882 Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
1883 entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
1884 for Shared_Storage package.
1885 (Is_RACW_Stub_Type): New entity flag.
1888 (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
1889 case where we have a modular type with a non-binary modules.
1890 Comments reformattings.
1892 * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
1895 2008-05-20 Javier Miranda <miranda@adacore.com>
1898 (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
1899 tests did not covered the case in which the type of the aggregate has
1900 no progenitors but some its parents has progenitors.
1902 2008-05-20 Gary Dismukes <dismukes@adacore.com>
1903 Hristian Kirtchev <kirtchev@adacore.com>
1906 (Expand_N_Object_Declaration): Correct the condition which triggers the
1907 generation of a call to Displace when initializing a class-wide object.
1908 (Build_Dcheck_Functions): Build discriminant-checking for null variants
1909 when Frontend_Layout_On_Target is true to ensure that they're available
1910 for calling when a record variant size function is built in Layout.
1912 2008-05-20 Ed Schonberg <schonberg@adacore.com>
1914 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
1915 procedure for a derived type retrieve the discriminant values from the
1916 parent using the corresponding discriminant.
1917 (Expand_N_Assignment_Statement): Skip generation of implicit
1918 if-statement associated with controlled types if we are
1919 compiling with restriction No_Finalization.
1921 2008-05-20 Vincent Celier <celier@adacore.com>
1923 * prj.adb (Hash (Project_Id)): New function
1924 (Project_Empty): Add new component Interfaces_Defined
1926 * prj.ads (Source_Data): New component Object_Linked
1927 (Language_Config): New components Object_Generated and Objects_Linked
1928 (Hash (Project_Id)): New function
1929 (Source_Data): New Boolean components In_Interfaces and
1930 Declared_In_Interfaces.
1931 (Project_Data): New Boolean component Interfaces_Defined
1934 New project level attribute Object_Generated and Objects_Linked
1935 Add new project level attribute Interfaces
1937 * prj-dect.adb: Use functions Present and No throughout
1938 (Parse_Variable_Declaration): If a string type is specified as a simple
1939 name and is not found in the current project, look for it also in the
1940 ancestors of the project.
1943 Replace procedure Make with procedures Initialize, Process and Finalize
1944 to implement H414-023: process different directories with different
1946 Use functions Present and No throughout
1949 Replace procedure Make with procedures Initialize, Process and Finalize
1952 (Add_Source): Set component Object_Exists and Object_Linked accordnig to
1953 the language configuration.
1954 (Process_Project_Level_Array_Attributes): Process new attributes
1955 Object_Generated and Object_Linked.
1956 (Report_No_Sources): New Boolean parameter Continuation, defaulted to
1957 False, to indicate that the erreor/warning is a continuation.
1958 (Check): Call Report_No_Sources with Contnuation = True after the first
1960 (Error_Msg): Process successively contnuation character and warning
1962 (Find_Explicit_Sources): Check that all declared sources have been found
1963 (Check_File): Indicate in hash table Source_Names when a declared source
1965 (Check_File): Set Other_Part when found
1966 (Find_Explicit_Sources): In multi language mode, check if all exceptions
1967 to the naming scheme have been found. For Ada, report an error if an
1968 exception has not been found. Otherwise, disregard the exception.
1969 (Check_Interfaces): New procedure
1970 (Add_Source): When Other_Part is defined, set mutual pointers in spec
1972 (Check): In multi-language mode, call Check_Interfaces
1973 (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
1974 for an excluded source.
1975 (Remove_Source): A source replacing a source in the interfaces is also
1978 * prj-pars.adb: Use function Present
1980 * prj-part.adb: Use functions Present and No throughout
1981 (Parse_Single_Project): Set the parent project for child projects
1982 (Create_Virtual_Extending_Project): Register project with no qualifier
1983 (Parse_Single_Project): Allow an abstract project to be extend several
1984 times. Do not allow an abstract project to extend a non abstract
1987 * prj-pp.adb: Use functions Present and No throughout
1988 (Print): Take into account the full associative array attribute
1991 * prj-proc.adb: Use functions Present and No throughout
1992 (Expression): Call itself with the same From_Project_Node for the
1993 default value of an external reference.
1995 * prj-strt.adb: Use functions Present and No throughout
1996 (Parse_Variable_Reference): If a variable is specified as a simple name
1997 and is not found in the current project, look for it also in the
1998 ancestors of the project.
2000 * prj-tree.ads, prj-tree.adb (Present): New function
2002 Use functions Present and No throughout
2003 (Parent_Project_Of): New function
2004 (Set_Parent_Project_Of): New procedure
2006 * snames.ads, snames.adb:
2007 Add new standard names Object_Generated and Objects_Linked
2009 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
2011 * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
2012 and the derived type are of the same kind.
2013 (Expand_Call): Generate type conversions for actuals of
2014 record or array types when the parent and the derived types differ in
2015 size and/or packed status.
2017 2008-05-20 Javier Miranda <miranda@adacore.com>
2018 Ed Schonberg <schonberg@adacore.com>
2020 * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
2021 generating dispatch tables of locally defined tagged types statically.
2022 Remove implicit if-statement that is no longer required.
2023 (Expand_Dispatching_Call): If this is a call to an instance of the
2024 generic dispatching constructor, the type of the first argument may be
2025 a subtype of Tag, so always use the base type to recognize this case.
2027 2008-05-20 Thomas Quinot <quinot@adacore.com>
2030 (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
2031 and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
2032 assigning NULL into the result, to avoid a spurious warning.
2033 (Add_RACW_Features, case Same_Scope): Add assertion that designated type
2035 (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
2037 (Build_From_Any_Function, Build_To_Any_Function,
2038 Build_TypeCode_Function): For a type that has user-specified stream
2039 attributes, use an opaque sequence of octets as the representation.
2041 2008-05-20 Kevin Pouget <pouget@adacore.com>
2043 * exp_smem.ads, exp_smem.adb: Construction of access and assign
2044 routines has been replaced by an instantiation of
2045 System.Shared_Storage.Shared_Var_Procs generic package, while expanding
2046 shared variable declaration.
2047 Calls to access and assign routines have been replaced by calls to
2048 Read/Write routines of System.Shared_Storage.Shared_Var_Procs
2049 instantiated package.
2051 * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
2052 It identifies the new generic package added in s-shasto.
2054 * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
2055 is instantiated for each shared passive variable. It provides
2056 supporting procedures called upon each read or write access by the
2060 For this runtime unit (always compiled in GNAT mode), we allow
2061 stream attributes references for limited types for the case where
2062 shared passive objects are implemented using stream attributes,
2063 which is the default in GNAT's persistent storage implementation.
2065 2008-05-20 Ed Schonberg <schonberg@adacore.com>
2068 (Freeze_Enumeration_Type): For a subtype that inherits a foreign
2069 convention from its base type, do not set the type to that of integer,
2070 because it may inherit a size clause.
2071 Warn on a size clause with a size different
2072 from that of Integer, if the type has convention C.
2074 2008-05-20 Vincent Celier <celier@adacore.com>
2077 (Scan_Args): Rewrite to take into account new switch --and to separate
2078 arguments into sections.
2079 (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
2080 section, then Finalize.
2082 2008-05-20 Tristan Gingold <gingold@adacore.com>
2084 * init.c: Enable stack probing on ppc-linux.
2086 * tracebak.c: Add symbolic traceback for ppc-linux.
2088 * system-linux-ppc.ads: Enable stack probing on ppc-linux.
2090 2008-05-20 Arnaud Charlet <charlet@adacore.com>
2093 (common-tools): New rule, to avoid parallel build failure on gnat tools.
2094 Reenable parallel builds on this Makefile.
2096 * Make-lang.in: Update dependencies.
2098 2008-05-20 Robert Dewar <dewar@adacore.com>
2100 * opt.ads (Treat_Restrictions_As_Warnings): New switch
2102 * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
2103 Treat_Restrictions_As_Warnings.
2105 * switch-c.adb: Recognize new switch -gnatr
2107 * usage.adb: Add line for -gnatr
2109 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
2112 (P_Access_Definition): Change the error message when parsing "access
2113 all" in Ada 95 mode. The message no longer forces the user to recompile
2114 in 05 mode only to discover that anonymous access types are not allowed
2117 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
2120 (P_Protected): Update the error message on missing "-gnat05" switch when
2121 using interfaces in conjunction with protected types. Remove the
2122 incorrect error message associated with the presence of "private" after
2125 2008-05-20 Ed Schonberg <schonberg@adacore.com>
2127 * sem_aggr.adb: Update comments.
2128 Improve previous change for PR ada/17985
2130 2008-05-20 Thomas Quinot <quinot@adacore.com>
2133 (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
2134 the visible part of the spec of a remote types unit.
2135 (Validate_Remote_Access_Object_Type_Declaration):
2136 New local subprogram Is_Valid_Remote_Object_Type, replaces
2137 Is_Recursively_Limited_Private.
2138 (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
2139 non-controlling formals (and the return type, even though this is not
2140 explicit in the standard) must support external streaming.
2141 (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
2142 as above for of RAS types and RCI subprograms. (The return type is not
2144 Update comments related to RACWs designating limited interfaces per
2145 ARG ruling on AI05-060.
2147 * sem_util.ads, sem_util.adb
2148 (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
2149 Is_Remote_Call_Interface to identify RACW types in a stable and
2150 consistent way. We used to rely in this predicate on the privateness of
2151 the designated type and its ancestors, but depending on the currently
2152 visible private parts, this caused false negatives. We now uniformly
2153 rely on checks made at the point where the RACW type is declared.
2154 (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
2156 2008-05-20 Javier Miranda <miranda@adacore.com>
2157 Ed Schonberg <schonberg@adacore.com>
2158 Hristian Kirtchev <kirtchev@adacore.com>
2161 (Analyze_Object_Declaration): Fix over-conservative condition
2162 restricting use of predefined assignment with tagged types that have
2164 (Analyze_Object_Declaration): Relax the check regarding deferred
2165 constants declared in scopes other than packages since they can be
2166 completed with pragma Import.
2167 Add missing escaping of all-caps word 'CPP' in error messages.
2168 (Build_Discriminated_Subtype): Do not inherit representation clauses
2169 from parent type if subtype already carries them, because they are
2170 inherited earlier during derivation and already include those that may
2171 come from a partial view.
2173 * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
2174 Check the declarations of a subprogram body for proper deferred
2175 constant completion.
2177 * sem_ch7.ads, sem_ch7.adb
2178 (Inspect_Deferred_Constant_Completion): Moved to sem_util.
2180 2008-05-20 Ed Schonberg <schonberg@adacore.com>
2181 Thomas Quinot <quinot@adacore.com>
2184 (Try_Indexed_Call): Handle properly a construct of the form F(S) where
2185 F is a parameterless function that returns an array, and S is a subtype
2187 (Analyze_Call): Insert dereference when the prefix is a parameterless
2188 function that returns an access to subprogram and the call has
2190 Reject a non-overloaded call whose name resolves to denote
2191 a primitive operation of the stub type generated to support a remote
2192 access-to-class-wide type.
2194 2008-05-20 Ed Schonberg <schonberg@adacore.com>
2197 (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
2198 when there is a use clause for the same entity in the context.
2199 (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
2200 created for a stream attribute of an abstract type or interface type.
2202 2008-05-20 Thomas Quinot <quinot@adacore.com>
2204 * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
2208 (Add_One_Interp): Ignore any interpretation that is a primitive
2209 operation of an RACW stub type (these primitives are only executed
2210 through dispatching, never through static calls).
2211 (Collect_Interps): When only one interpretation has been found, set N's
2212 Entity and Etype to that interpretation, otherwise Entity and Etype may
2213 still refer to an interpretation that was ignored by Add_One_Interp,
2214 in which case would end up with being marked as not overloaded but with
2215 an Entity attribute not pointing to its (unique) correct interpretation.
2217 2008-05-20 Ed Schonberg <schonberg@adacore.com>
2220 (Eval_Slice): Warn when a slice whose discrete range is a subtype name
2221 denotes the whole array of its prefix.
2223 2008-05-20 Robert Dewar <dewar@adacore.com>
2225 * sem_res.adb (Resolve_Op_Not): Warn on double negation
2227 2008-05-20 Ed Schonberg <schonberg@adacore.com>
2230 (Print_Itype): Do not modify the sloc of the component type of a
2231 (packed) array itype, because it is an unrelated type whose source
2232 location is independent of the point of creation of the itype itself.
2234 2008-05-20 Thomas Quinot <quinot@adacore.com>
2236 * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
2239 2008-05-20 Robert Dewar <dewar@adacore.com>
2240 Vincent Celier <celier@adacore.com>
2242 * vms_data.ads: Add entry for -gnatr
2243 Put GNAT SYNC section in proper alpha order
2244 Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
2246 * gnat_ugn.texi: Add documentation for new gnatname switch --and
2247 Update the style checks section
2248 Add documentation of -gnatr
2249 Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
2250 subsection the explanation how compiler checks should be disabled for
2252 Update the list of Ada 95 reserved words used by in the project language
2253 Add documentation for project qualifiers.
2254 Document that abstract projects may be extended by different projects in
2255 the same project tree.
2256 Add documentation for gnatmake switch -d
2258 * ug_words: Add -gnatyy VMS equivalence string.
2259 Add entry for -gnatr
2261 2008-05-20 Bob Duff <duff@adacore.com>
2264 (Set_Handler): Remove code from both of these that implements
2265 RM-D.15(15/2), because it causes a race condition and potential
2267 (Process_Queued_Events): Add comment explaining "exception when others
2268 => null". Add clarifying ".all", even though implicit .all is legal
2271 2008-05-20 Arnaud Charlet <charlet@adacore.com>
2273 * s-winext.ads: Replace representation clause by pragma Pack. Gives
2274 equivalent representation, but has the advantage of allowing
2275 compilation of this file under 64 bits platforms.
2277 * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
2279 * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
2282 Don't define dummy implementation of convert_addresses on ppc-linux.
2284 2008-05-20 Ed Schonberg <schonberg@adacore.com>
2287 (Expand_Ctrl_Function_Call): Do not attach result to finalization list
2288 if expression is aggregate component.
2290 2008-05-20 Robert Dewar <dewar@adacore.com>
2292 * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
2293 sem_ch12.adb: Update comments. Minor reformatting.
2297 * s-unstyp.ads: Fixed some typos in comments.
2299 2008-05-20 Arnaud Charlet <charlet@adacore.com>
2301 * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
2304 * g-socthi-vxworks.ads: Update to latest socket changes.
2306 * a-caldel-vms.adb: Resync with a-caldel spec.
2308 * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
2311 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
2313 * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
2314 for dummy types pointed to by the converted pointer types.
2316 2008-05-15 Eric Botcazou <ebotcazou@adacore.com>
2318 * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
2319 of records and unions.
2320 (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
2322 2008-05-14 Samuel Tardieu <sam@rfc1149.net>
2323 Robert Dewar <dewar@adacore.com>
2325 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
2326 restrictions to the prefix of 'Old.
2327 * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
2328 * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
2331 2008-05-13 Eric Botcazou <ebotcazou@adacore.com>
2335 * utils.c (convert) <INTEGER_TYPE>: When converting an additive
2336 expression to an integral type with lower precision, use NOP_EXPR
2337 directly in a couple of special cases.
2339 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
2340 Ed Schonberg <schonberg@adacore.com>
2342 * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
2343 constraint expressions.
2345 2008-05-12 Tomas Bily <tbily@suse.cz>
2347 * utils2.c (known_alignment, contains_save_expr_p)
2348 (gnat_mark_addressable): Use CASE_CONVERT.
2349 * decl.c (annotate_value): Likewise.
2350 * trans.c (maybe_stabilize_reference): Likewise.
2351 * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
2352 * utils.c (rest_of_record_type_compilation): Likewise.
2353 * trans.c (protect_multiple_eval, Attribute_to_gnu)
2354 (protect_multiple_eval): Likewise.
2356 2008-05-08 Andreas Schwab <schwab@suse.de>
2358 * utils.c (handle_pure_attribute, init_gigi_decls): Rename
2359 DECL_IS_PURE to DECL_PURE_P.
2361 2008-05-05 Eric Botcazou <ebotcazou@adacore.com>
2363 * decl.c (maybe_pad_type): Add ??? comment.
2365 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
2367 * decl.c (components_to_record): Zero the alignment of the qualified
2368 union built for the variant part upon creating it.
2370 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
2372 * decl.c (maybe_pad_type): Try to get a form of the type with integral
2373 mode even if the alignment is not a factor of the original size. But
2374 make sure to create the inner field with the original size. Reorder.
2375 * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
2376 record as always addressable.
2377 * utils.c (convert): Deal specially with conversions between original
2378 and packable versions of a record type.
2379 * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
2380 recognizing an assignment between padded objects.
2382 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
2384 * decl.c (make_packable_type): Resize the last component to its RM size
2385 only if it is of an aggregate type.
2386 * trans.c (call_to_gnu): Fix nit in comment.
2387 (gnat_to_gnu): Likewise.
2389 2008-04-30 Samuel Tardieu <sam@rfc1149.net>
2391 * Makefile.in: Adapt sh4-linux target.
2393 2008-04-29 Ed Schonberg <schonberg@adacore.com>
2396 * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
2397 tagged type by an untagged protected or task type.
2399 2008-04-28 Eric Botcazou <ebotcazou@adacore.com>
2400 Tristan Gingold <gingold@adacore.com>
2403 * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
2404 of aliased objects with an unconstrained nominal subtype.
2405 Cap the promotion to the effective alignment of the word mode.
2407 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2409 * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
2410 (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
2411 Use '&&' instead of ';'.
2413 2008-04-24 Olivier Hainque <hainque@adacore.com>
2415 * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
2416 doesn't require signed arithmetic anymore.
2418 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
2420 * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
2421 (call_to_gnu): Don't set TREE_INVARIANT.
2422 * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
2424 2008-04-22 Joel Sherrill <joel.sherrill@oarcorp.com>
2426 * s-osinte-rtems.adb: Add sigalstack function.
2427 * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
2428 function. Add Alternate_Stack and Alternate_Stack_Size.
2429 Add missing process_shared field to pthread_condattr_t
2430 and change ss_low_priority to int from timespec.
2432 2008-04-22 Samuel Tardieu <sam@rfc1149.net>
2434 * i-forbla.adb: Link against -llapack and -lblas by default
2435 instead of the private -lgnalasup.
2437 2008-04-21 Olivier Hainque <hainque@adacore.com>
2439 Access to most C builtins from Ada
2440 * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
2441 (handle_pure_attribute, handle_novops_attribute,
2442 handle_nonnull_attribute, handle_sentinel_attribute,
2443 handle_noreturn_attribute, handle_malloc_attribute,
2444 handle_type_generic_attribute): New attribute handlers, from C fe.
2445 (gnat_internal_attribute_table): Map the new handlers.
2446 (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
2447 (init_gigi_decls): ... here.
2448 (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
2449 Move to a section dedicated to builtins processing.
2450 (build_void_list_node, builtin_type_for_size): New functions.
2451 (def_fn_type, get_nonnull_operand): Likewise.
2452 (install_builtin_elementary_type, install_builtin_function_types,
2453 install_builtin_attributes): Likewise.
2454 (fake_attribute_handler): Fake handler for attributes we don't
2456 (def_builtin_1): New function, worker for DEF_BUILTIN.
2457 (install_builtin_functions): New function.
2458 (gnat_install_builtins): Move to the builtins processing section.
2459 Now calling the newly introduced installers.
2461 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
2463 * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
2464 constant objects, but not exceptions.
2465 * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
2467 * utils.c (create_var_decl_1): Likewise.
2468 * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
2469 the type when copying to padded object and the source is a constructor.
2471 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
2473 * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
2474 alignment, reset it to zero if it would end up not being greater
2475 than that of the type.
2477 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
2479 * decl.c (maybe_pad_type): Only generate the XVS parallel type if
2480 the padded type has a variable size.
2482 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
2484 * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
2485 target pointer mechanism as soon as the size is not constant.
2487 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
2489 * gigi.h (create_var_decl_1): Declare.
2490 (create_var_decl): Turn into a macro invoking create_var_decl_1.
2491 (create_true_var_decl): Likewise.
2492 * utils.c (create_var_decl_1): Make global and reorder parameters.
2493 (create_var_decl): Delete.
2494 (create_true_var_decl): Likewise.
2496 2008-04-17 Eric Botcazou <ebotcazou@adacore.com>
2498 * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
2500 * fe.h (Debug_Flag_Dot_A): Delete.
2501 * debug.adb (-gnatd.a): Update documentation.
2503 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
2505 * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
2506 "not null" parameter.
2508 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
2510 * g-socket.adb: Add a message "IPv6 not supported" to the
2511 Socket_Error exception.
2513 2008-04-16 Samuel Tardieu <sam@rfc1149.net>
2516 * sem_ch12.adb (Instantiate_Type): Check whether the full view of
2517 the type is known instead of the underlying type.
2519 2008-04-15 Ed Schonberg <schonberg@adacore.com>
2522 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
2523 procedure for a derived type retrieve the discriminant values from
2524 the parent using the corresponding discriminant.
2526 2008-04-15 Samuel Tardieu <sam@rfc1149.net>
2527 Gary Dismukes <dismukes@adacore.com>
2530 * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
2531 which is not an entity (and hence not a package).
2532 (End_Use_Package): Ditto.
2534 2008-04-15 Ed Schonberg <schonberg@adacore.com>
2537 * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
2538 protected operation that matches the signature, not only an entry, a
2539 regular subprogram or a literal.
2541 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
2543 * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
2544 * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
2545 if a size or alignment is specified. Do not take into account
2546 alignment promotions for the computation of the object's size.
2547 <type>: Call maybe_pad_type only if a size or alignment is specified.
2548 (maybe_pad_type): Really reuse the RM_Size of the original type if
2550 * trans.c (Attribute_to_gnu): Fix a couple of nits.
2551 * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
2552 statements. Use the padded view of the type when copying between
2553 padded objects of the same underlying type.
2555 2008-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2557 * vms_data.ads: Fix typo in constant.
2558 * gen-soccon.c: Fix typo in error string.
2559 * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
2561 * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
2562 bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
2563 erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
2564 exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
2565 exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
2566 g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
2567 mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
2568 s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
2569 s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
2570 sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
2571 sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
2572 sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
2573 sinfo.ads: Fix typos in comments.
2575 2008-04-14 Robert Dewar <dewar@adacore.com>
2577 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
2578 to every non-object and change error message.
2580 2008-04-14 Robert Dewar <dewar@adacore.com>
2582 * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
2583 * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
2586 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
2589 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
2590 apply pragma Linker_Section on type.
2592 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
2595 * sem_prag.adb (Error_Pragma_Ref): New.
2596 (Process_Convention): Specialized message for non-local
2597 subprogram renaming. Detect the problem in homonyms as well.
2599 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
2602 * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
2603 * sem_ch12.adb (Instantiate_Object): Use it.
2604 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
2605 storage pool denotes a variable as per RM 13.11(15).
2607 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
2609 * sem_util.ads, sem_util.adb (In_Subprogram): New function.
2610 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
2612 2008-04-14 Rolf Ebert <rolf.ebert.gcc@gmx.de>
2615 * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
2616 line endings even on non-Unix platforms.
2618 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
2621 * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
2622 renaming information.
2624 2008-04-13 Samuel Tardieu <sam@rfc1149.net>
2627 * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
2630 2008-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2632 * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
2633 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
2634 snames.ads, sprint.adb, stand.ads, stringt.ads,
2635 styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
2636 switch.ads, sysdep.c, table.adb, table.ads,
2637 targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
2638 trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
2639 uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
2640 vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
2641 widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
2642 xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
2645 * sem_ch10.adb, sem_ch10.ads,
2646 sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
2647 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
2648 sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
2649 sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
2650 sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
2651 sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
2652 sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
2653 sem_warn.ads: Fix comment typos.
2655 * s-secsta.adb, s-sequio.ads, s-shasto.ads,
2656 s-soflin.ads, s-stalib.ads, s-stausa.adb,
2657 s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
2658 s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
2659 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
2660 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
2661 s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
2662 s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
2663 s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
2664 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
2665 s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
2666 s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
2667 s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
2668 s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
2669 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
2670 scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
2671 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
2672 sem_cat.adb, sem_cat.ads: Fix comment typos.
2674 2008-04-12 Joel Sherrill <joel@oarcorp.com>
2677 * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
2679 2008-04-12 Arnaud Charlet <charlet@adacore.com>
2681 * s-linux-hppa.ads: Fix syntax errors.
2683 2008-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2685 * gnat_ugn.texi: Fix typos.
2686 * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
2687 restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
2688 s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
2689 s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
2690 s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
2691 s-finimp.adb, s-finroo.ads, s-fishfl.ads,
2692 s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
2693 s-hibaen.ads, s-htable.ads, s-imgcha.adb,
2694 s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
2695 s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
2696 s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
2697 s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
2698 s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
2699 s-osinte-darwin.ads, s-osinte-freebsd.ads,
2700 s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
2701 s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
2702 s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
2703 s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
2704 s-parame-hpux.ads, s-parame-vms-alpha.ads,
2705 s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
2706 s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
2707 s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
2708 s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
2709 s-rident.ads: Fix comment typos.
2711 2008-04-09 Samuel Tardieu <sam@rfc1149.net>
2714 * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
2715 environment if generic instance is a top-level one.
2717 2008-04-09 Doug Rupp <rupp@adacore.com>
2719 * decl.c (validate_size): Set minimum size for fat pointers same as
2720 access types. Code clean ups.
2722 * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
2723 (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
2725 * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
2727 * s-crtl.ads (malloc32) New function, alias for malloc
2728 (realloc32) New function, alias for realloc
2730 * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
2732 * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
2733 allocator size is 32 and default pointer size is 64.
2734 (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
2735 lhs type if smaller, whatever the modes.
2737 * gigi.h (malloc32_decl): New macro definition
2739 * utils.c (init_gigi_decls): New malloc32_decl
2740 Various code clean ups.
2742 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
2743 Task_Address vice System.Address.
2745 * s-taspri-vms.ads: Import System.Aux_DEC
2746 (Task_Address): New subtype of System.Aux_DEC.Short_Address
2747 (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
2749 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
2750 Task_Address vice System.Address.
2752 * s-inmaop-vms.adb: Import System.Task_Primitives
2753 (To_Address): Unchecked convert to Task_Address vice System.Address
2755 * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
2757 (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
2758 (To_Address) Unchecked convert to Task_Address vice System.Address
2760 * s-tpopde-vms.adb: Remove unnecessary warning pragmas
2762 * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
2764 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
2766 * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
2767 (fdesc_type_node): Define.
2768 (null_fdesc_node): Likewise.
2769 * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
2770 uses descriptors for vtables and the type comes from a dispatch table,
2771 return the descriptor type.
2772 * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
2773 uses descriptors for vtables and the type comes from a dispatch table,
2774 build a descriptor in the static case and copy the existing one in the
2776 (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
2777 the type is a pointer-to-subprogram coming from a dispatch table,
2778 return the null descriptor.
2779 <N_Unchecked_Type_Conversion>: If the target uses descriptors for
2780 vtables, the source type is the descriptor type and the target type
2781 is a pointer type, first build the pointer.
2782 * utils.c (init_gigi_decls): If the target uses descriptors for vtables
2783 build the descriptor type and the null descriptor.
2785 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
2787 * decl.c (prepend_attributes): Fix typo.
2788 * trans.c (Pragma_to_gnu): Likewise.
2789 * utils.c (gnat_genericize): Likewise.
2791 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
2792 Richard Kenner <kenner@adacore.com>
2794 * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
2795 * decl.c (gnat_to_gnu_entity): Adjust for above change.
2796 <E_Record_Type>: Try to get a better form of the component for
2797 packing, even if it has an integral mode.
2798 <E_Record_Subtype>: Likewise.
2799 * trans.c (gnat_to_gnu): Do not require BLKmode for the special
2800 exception suppressing the final conversion between record types.
2802 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
2804 * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
2805 alignment for space, promote the alignment of non-scalar variables with
2806 no size and alignment.
2807 * gigi.h (gnat_types_compatible_p): Declare.
2808 * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
2809 * trans.c (gnat_to_gnu): Revert revision 129339 change. Minor cleanup.
2810 * utils.c (gnat_types_compatible_p) : New predicate.
2811 (convert): Use it throughout to test for cases where a mere view
2812 conversion is sufficient.
2813 * utils2.c (build_binary_op): Minor tweaks.
2814 (build_unary_op): Likewise.
2816 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
2818 * decl.c (adjust_packed): Expand comment.
2820 2008-04-08 Arnaud Charlet <charlet@adacore.com>
2822 * s-tasuti.ads: Use Task_Address instead of System.Address.
2824 * makeutl.adb (Path_Or_File_Name): New function
2826 * nlists.ads, itypes.ads: Update comments.
2828 * s-crtl.ads (malloc32, realloc32): New functions.
2830 * s-auxdec.ads (Short_Address_Size): New constant.
2832 * a-taside.adb, s-tasdeb.adb: Use Task_Address.
2834 * s-ststop.ads, s-ststop.adb: New file.
2836 * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
2839 2008-04-08 Pascal Obry <obry@adacore.com>
2841 * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
2842 (Stop_Bits_Number): New type.
2843 (Parity_Check): Likewise.
2844 (Set): Add parameter to set the number of stop bits and
2845 the parity. Parameter timeout is now a duration instead
2848 * g-sercom-linux.adb:
2849 Implement the stop bits and parity support for GNU/Linux.
2850 Fix handling of timeout, it must be given in tenth of seconds.
2852 * g-sercom-mingw.adb:
2853 Implement the stop bits and parity support for Windows.
2854 Use new s-win32.ads unit instead of declaring Win32 services
2855 directly into this body.
2856 Update handling of timeout as now a duration.
2858 * s-win32.ads, s-winext.ads: New files.
2860 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
2861 Arnaud Charlet <charlet@adacore.com>
2863 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
2865 s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
2866 s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
2868 * s-osinte-lynxos-3.ads,
2869 (Alternate_Stack): Remove when not needed. Simplify declaration
2871 (Alternate_Stack_Size): New constant.
2873 s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
2874 'Unrestricted_Access.
2876 * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
2877 s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
2878 s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
2879 s-osinte-solaris.ads, s-osinte-vms.ads
2880 (SA_ONSTACK): New constant.
2881 (stack_t): New record type.
2882 (sigaltstack): New imported function.
2883 (Alternate_Stack): New imported variable.
2884 (Alternate_Stack_Size): New constant.
2886 * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
2888 * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
2889 s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
2890 s-taspri-vms.ads (Task_Address): New subtype of System.Address
2891 (Task_Address_Size): New constant size of System.Address
2892 (Alternate_Stack_Size): New constant.
2894 * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
2895 (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
2896 Establish the alternate stack if the platform makes use of n alternate
2897 signal stack for stack overflows.
2898 (Create_Task): Take into account the alternate stack in the stack size.
2899 (Initialize): Save the address of the alternate stack into the ATCB for
2900 the environment task.
2901 (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
2903 * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
2905 * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
2907 * s-intman-posix.adb:
2908 (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
2909 alternate signal stack for stack overflows.
2911 * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
2912 x86-64, adjust the saved value of the stack pointer if the signal was
2913 raised by a stack checking probe.
2914 (HP-UX section): Use global __gnat_alternate_stack as signal handler
2915 stack and only for SIGSEGV.
2916 (Linux section): Likewise on x86 and x86-64.
2918 (__gnat_map_signal): Now static.
2919 (__gnat_error_handler): Not static any more.
2920 (__gnat_adjust_context_for_raise): New function. Signal context
2921 adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
2922 propagation circuitry.
2923 (__gnat_error_handler): Second argument of a sigaction handler is a
2924 pointer, not an int, and is unused.
2925 Adjust signal context before mapping to exception.
2926 Install signal handlers for LynxOS case.
2928 * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
2929 (Task_Id): Set size to Task_Address_Size
2930 (To_Task_id): Unchecked convert from Task_Address vice System.Address
2931 (To_Address): Unchecked convert to Task_Address vice System.Address
2933 * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
2934 address into the ATCB if the platform makes use of an alternate signal
2935 stack for stack overflows.
2936 (Free_Task): Add call to Finalize_Attributes_Link.
2937 Add argument Relative_Deadline to pass the value specified for
2938 the task. This is not yet used for any target.
2940 * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
2941 the value specified for the task.
2943 2008-04-08 Arnaud Charlet <charlet@adacore.com>
2945 (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
2946 (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
2947 s-vxwext-rtp.adb): New files.
2949 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb:
2950 Minor updates to accomodate changes above.
2952 2008-04-08 Pascal Obry <obry@adacore.com>
2954 * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
2955 s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
2956 Use new s-win32.ads unit instead of declaration
2957 from s-osinte-mingw.ads.
2959 * s-osinte-mingw.ads:
2960 Move all non tasking based interface to s-win32.ads.
2962 * s-osprim-mingw.adb:
2963 Remove duplicated declarations and use s-win32.ads
2966 2008-04-08 Vincent Celier <celier@adacore.com>
2967 Arnaud Charlet <charlet@adacore.com>
2969 * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
2970 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
2971 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
2972 mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
2973 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
2975 * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
2976 mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
2977 mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
2978 mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
2979 mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
2980 mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
2981 mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
2982 mlib-tgt-specific-mingw.adb: New names.
2985 On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
2987 (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
2988 Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
2989 Minor updates for VMS
2991 * gnatbl.c: Removed.
2993 2008-04-08 Thomas Quinot <quinot@adacore.com>
2995 * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
2996 g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
2997 gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
2998 a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
2999 s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
3000 ASCII.NUL throughout.
3002 2008-04-08 Arnaud Charlet <charlet@adacore.com>
3003 Matthew Heaney <heaney@adacore.com>
3005 * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
3008 * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,
3009 a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
3010 to convention for non-RM specs.
3011 Add descriptive header, and documented each operation
3012 document each operation
3014 2008-04-08 Robert Dewar <dewar@adacore.com>
3015 Bob Duff <duff@adacore.com>
3016 Gary Dismukes <dismukes@adacore.com>
3017 Ed Schonberg <schonberg@adacore.com>
3019 * alloc.ads: Add entries for Obsolescent_Warnings table
3021 * einfo.ads, einfo.adb: Minor reformatting.
3022 (Is_Discriminal): New subprogram.
3023 (Is_Prival): New subprogram.
3024 (Is_Protected_Component): New subprogram.
3025 (Is_Protected_Private): Removed.
3026 (Object_Ref, Set_Object_Ref): Removed.
3027 (Prival, Set_Prival): Change assertion.
3028 (Privals_Chain, Set_Privals_Chain): Removed.
3029 (Prival_Link, Set_Prival_Link): New subprogram.
3030 (Protected_Operation, Set_Protected_Operation): Removed.
3031 (Protection_Object, Set_Protection_Object): New subprogram.
3032 (Write_Field17_Name): Remove case for Object_Ref.
3033 (Write_Field20_Name): Add case for Prival_Link.
3034 (Write_Field22_Name): Remove case for Protected_Operation,
3036 Add case for Protection_Object.
3037 (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
3039 (Overlays_Constant): New flag
3040 (Is_Constant_Object): New predicate
3041 (Is_Standard_Character_Type): New predicate
3042 (Optimize_Alignment_Space): New flag
3043 (Optimize_Alignment_Time): New flag
3044 (Has_Postconditions): New flag
3045 (Obsolescent_Warrning): Field removed
3046 (Spec_PPC_List): New field
3047 (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
3048 subprograms to get and set the relative deadline associated to a task.
3050 * exp_attr.adb (May_Be_External_Call): Account for the case where the
3051 Access attribute is part of a named parameter association.
3052 (Expand_Access_To_Protected_Op): Test for the attribute occurring
3053 within an init proc and use that directly as the scope rather than
3054 traversing up to the protected operation's enclosing scope. Only apply
3055 assertion on Is_Open_Scopes in the case the scope traversal is done.
3056 For the init proc case use the address of the first formal (_init) as
3057 the protected object reference.
3058 Implement Invalid_Value attribute
3059 (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
3060 contents of the dispatch table there is no need to duplicate the
3061 itypes associated with record types (i.e. the implicit full view
3063 Implement Enum_Val attribute
3064 (Expand_N_Attribute_Reference, case Old): Properly handle appearence
3065 within _Postconditions procedure
3066 (Expand_N_Attribute_Reference, case Result): Implement new attribute
3068 * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
3069 a return statement calls a function that is not available in
3070 configurable runtime.
3071 (Analyze_If_Statement): don't optimize simple True/False cases in -O0
3072 (Expand_Non_Function_Return): Generate call to _Postconditions proc
3073 (Expand_Simple_Function_Return): Ditto
3075 * frontend.adb: Add call to Sem_Aux.Initialize
3077 * sem_aux.ads, sem_aux.adb: New file.
3079 * par-prag.adb: Add entries for pragmas Precondition/Postcondition
3080 Add new Pragma_Relative_Deadline.
3081 Add support for pragmas Check and Check_Policy
3083 * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
3084 (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
3085 (Analyze_Attribute): In case of attributes 'Alignment and 'size add
3086 missing check because they are not allowed in CPP tagged types.
3087 Add Sure parameter to Note_Possible_Modification calls
3088 Add implementation of Invalid_Value attribute
3089 Implement new attribute Has_Tagged_Values
3090 Implement Enum_Val attribute
3091 (Analyze_Attribute, case Range): Set Name_Req True for prefix of
3092 generated attributes.
3093 (Analyze_Attribute, case Result): If prefix of the attribute is
3094 overloaded, it always resolves to the enclosing function.
3095 (Analyze_Attribute, case Result): Properly deal with analysis when
3096 Postconditions are not active.
3097 (Resolve_Attribute, case Result): Properly deal with appearence during
3098 preanalysis in spec.
3099 Add processing for attribute Result
3101 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
3103 (Analyze_Subprogram_Body): Install private_with_clauses when the body
3105 (Check_Inline_Pragma): recognize an inline pragma that appears within
3106 the subprogram body to which it applies.
3107 (Analyze_Function_Return): Check that type of the expression of a return
3108 statement in a function with a class-wide result is not declared at a
3109 deeper level than the function.
3110 (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
3111 (Verify_Overriding_Indicator): Handle properly subprogram bodies for
3112 user- defined operators.
3113 (Install_Formals): Moved to spec to allow use from Sem_Prag for
3114 analysis of precondition/postcondition pragmas.
3115 (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
3116 Last_Formal, along with lots of comments on what this is about
3117 (Analyze_Subprogram_Body): Fix case where we move entities from the
3118 spec to the body when there are no body entities (now possible with
3119 precondition and postcondition pragmas).
3120 (Process_PPCs): New procedure
3121 (Analyze_Subprogram_Body): Add call to Process_PPCs
3123 * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
3125 (Pop_Scope): Restore Check_Policy_List on scope exit
3126 (Push_Scope): Save Check_Policy_List on scope entry
3127 Change name In_Default_Expression => In_Spec_Expression
3128 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
3129 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
3130 (Analyze_Object_Renaming): Allow 'Reference as object
3131 (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
3132 (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
3133 of restriction identifier.
3134 Add Sure parameter to Note_Possible_Modication calls
3136 * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
3137 Don't check for primitive operations when calling Rep_Item_Too_Late.
3138 (Process_Import_Or_Interface): Do not place flag on formal
3140 (Analyze_Pragma, case Export): If the entity is a deferred constant,
3141 propagate information to full view, which is the one elaborated by the
3143 (Make_Inline): the pragma is effective if it applies to an internally
3144 generated subprogram declaration for a body that carries the pragma.
3145 (Analyze_Pragma, case Optimize_Alignment): Set new flag
3146 Optimize_Alignment_Local.
3147 (Analyze_PPC_In_Decl_Part): New procedure
3148 (Get_Pragma_Arg): Moved to outer level
3149 (Check_Precondition_Postcondition): Change to allow new visibility
3150 rules for package spec
3151 (Analyze_Pragma, case Check_Policy): Change placement rules to be
3152 same as pragma Suppress/Unsuppress.
3153 Change name In_Default_Expression => In_Spec_Expression
3154 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
3155 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
3156 (Check_Precondition_Postcondition): Do proper visibility preanalysis
3157 for the case of these pragmas appearing in the spec.
3158 (Check_Enabled): New function
3159 (Initialize): New procedure
3160 (Tree_Read): New procedure
3161 (Tree_Write): New procedure
3162 (Check_Precondition_Postcondition): New procedure
3163 Implement pragmas Check and Check_Policy
3164 Merge Assert processing with Check
3166 * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
3167 New warning flag -gnatw.e
3169 * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
3170 returning whether a task (or main procedure) has a pragma
3172 (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
3173 (or main procedure) has a pragma Relative_Deadline.
3174 Add Next_Pragma field to N_Pragma node
3175 (PPC_Enabled): New flag
3176 (Next_Pragma): Now used for Pre/Postcondition processing
3178 * snames.h, snames.ads, snames.adb: New standard name
3180 Add entry for 'Invalid_Value attribute
3181 Add entry for new attribute Has_Tagged_Values
3182 Add entry for Enum_Val attribute
3183 Add new standard names Aggregate, Configuration and Library.
3186 Add Pragma_Precondition
3187 Add Pragma_Postcondition
3188 Add Attribute_Result
3189 New standard name Archive_Builder_Append_Option
3190 (Preset_Names): Add _relative_deadline and relative_deadline definitions
3191 There was also a missing non_preemptive_within_priorities.
3192 (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
3194 Add support for pragmas Check and Check_Policy
3196 * tree_gen.adb: Call Sem_Aux.Tree_Write
3198 * tree_in.adb: Call Sem_Aux.Tree_Read
3200 * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
3203 * exp_intr.adb (Expand_Source_Info): New Build_Location calling
3206 * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
3207 (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
3209 (Expand_Pragma_Check): New procedure
3211 * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
3214 * sinfo.adb (PPC_Enabled): New flag
3216 2008-04-08 Robert Dewar <dewar@adacore.com>
3217 Gary Dismukes <dismukes@adacore.com>
3218 Javier Miranda <miranda@adacore.com>
3219 Ed Schonberg <schonberg@adacore.com>
3221 * fe.h: Remove global Optimize_Alignment flag, no longer used
3223 * layout.adb: Test Optimize_Alignment flags rather than global switch
3225 * lib.ads, lib.adb: New OA_Setting field in library record
3227 * lib-load.adb: New OA_Setting field in library record
3229 * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
3230 units mentioned in limited_with_ clauses in the ali file, with an
3232 New Ox fields in U line
3234 * opt.adb: New flag Optimize_Alignment_Local
3235 (Check_Policy_List[_Config]): New flags
3237 * opt.ads (Invalid_Value_Used): New flag
3238 New switch Optimize_Alignment_Local
3239 (Warn_On_Parameter_Order): New flag
3240 (Check_Policy_List[_Config]): New flags
3242 * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
3243 limited_with clauses.
3244 New data structures for Optimize_Alignment
3246 * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
3248 (Check_Consistent_Optimize_Alignment): Rework for new structure
3249 (Check_Consistent_Restrictions): Fix incorrect error message
3251 sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
3252 created class-wide type (to the Parent field of the specific type).
3253 (Install_Siblings): Handle properly private_with_clauses on subprogram
3254 bodies and on generic units.
3255 (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
3256 illegal limited_with_clause that names a non-existent package.
3257 (Check_Body_Required): Determine whether a unit named a limited_with
3258 clause needs a body.
3259 (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
3260 Capture Optimize_Alignment settings to set new OA_Setting field in
3262 (Build_Limited_Views): Include task and protected type declarations.
3264 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
3265 case of a possible constant redeclaration where the current object is
3266 an entry index constant.
3267 (Analyze_Object_Declaration): Generate an error in case of CPP
3268 class-wide object initialization.
3269 (Analyze_Object_Declaration): Add extra information on warnings for
3270 declaration of unconstrained objects.
3271 (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
3272 conflicts with the setting of Stored_Constraint in the case where the
3273 access type entity has already been created as an E_Incomplete_Type due
3274 to a limited with clause.
3275 Use new Is_Standard_Character_Type predicate
3276 (Analyze_Object_Declaration): Apply access_constant check only after
3277 expression has been resolved, given that it may be overloaded with
3278 several access types.
3279 (Constant_Redeclaration): Additional legality checks for deferred
3280 constant declarations tha involve anonymous access types and/or null
3281 exclusion indicators.
3282 (Analyze_Type_Declaration): Set Optimize_Alignment flags
3283 (Analyze_Subtype_Declaration): Ditto
3284 (Analyze_Object_Declaration): Ditto
3285 (Analyze_Object_Declaration): Don't count tasks in generics
3286 Change name In_Default_Expression => In_Spec_Expression
3287 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
3288 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
3289 (Process_Discriminants): Additional check for illegal use of default
3290 expressions in access discriminant specifications in a type that is not
3292 (Check_Abstract_Overriding): If an inherited function dispaches on an
3293 access result, it must be overridden, even if the type is a null
3295 (Derive_Subprogram): The formals of the derived subprogram have the
3296 names and defaults of the parent subprogram, even if the type is
3297 obtained from the actual subprogram.
3298 (Derive_Subprogram): In the presence of interfaces, a formal of an
3299 inherited operation has the derived type not only if it descends from
3300 the type of the formal of the parent operation, but also if it
3301 implements it. This is relevant for the renamings created for the
3302 primitive operations of the actual for a formal derived type.
3303 (Is_Progenitor): New predicate, to determine whether the type of a
3304 formal in the parent operation must be replaced by the derived type.
3306 * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
3307 predicate recursive to handle components that have a user-defined
3308 Initialize procedure. Handle controlled derived types whose ancestor
3309 has a user-defined Initialize procedured.
3310 (Note_Possible_Modification): Add Sure parameter, generate warning if
3311 sure modification of constant
3312 Use new Is_Standard_Character_Type predicate
3313 (Find_Parameter_Type): when determining whether a protected operation
3314 implements an interface operation, retrieve the type of the formal from
3315 the entity when the formal is an access parameter or an
3316 anonymous-access-to-subprogram.
3317 Move Copy_Parameter_List to sem_util, for use when building stubbed
3319 (Has_Access_Values): Tagged types now return False
3320 (Within_HSS_Or_If): New procedure
3321 (Set_Optimize_Alignment_Flags): New procedure
3322 Change name In_Default_Expression => In_Spec_Expression
3323 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
3324 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
3326 2008-04-08 Tristan Gingold <gingold@adacore.com>
3328 * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
3330 2008-04-08 Tristan Gingold <gingold@adacore.com>
3334 * cuintp.c: Fix 16 bits issue for AVR.
3335 On AVR, integer is 16 bits, so it can't be used to do math with
3337 So use long_integer instead.
3339 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
3341 * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
3342 System.OS_Primitives.
3343 Change type of various constants, parameters and local variables from
3344 Time to representation type OS_Time.
3345 (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
3346 Remove the declaration of constant Mili_F from several routines. New
3347 body for internal package Conversions_Operations.
3348 (Time_Of): Add default parameters for several formals.
3350 * a-caldel.adb: Minor reformatting
3352 * a-calend.ads, a-calend.adb: New body for internal package
3353 Conversions_Operations.
3354 (Time_Of): Add default parameters for several formals.
3356 * Makefile.rtl: Add a-ststop
3357 Add Ada.Calendar.Conversions to the list of runtime files.
3360 * a-calcon.adb, a-calcon.ads: New files.
3362 2008-04-08 Jose Ruiz <ruiz@adacore.com>
3363 Tristan Gingold <gingold@adacore.com>
3365 * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
3366 (Install_Restricted_Handlers): New procedure
3367 which is a simplified version of Install_Handlers that does not store
3368 previously installed.
3370 * s-interr-vxworks.adb: Fix ACATS cxc3001
3371 On VxWorks interrupts can't be detached.
3372 (Install_Restricted_Handlers): New procedure.
3374 * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
3377 2008-04-08 Olivier Hainque <hainque@adacore.com>
3379 * s-intman-vxworks.ads, s-intman-vxworks.adb
3380 (Map_And_Raise_Exception): Remove. Was an import of only part of the
3381 required services already implemented elsewhere.
3382 (Notify_Exception): Delete body, import __gnat_error_handler instead.
3383 (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
3384 argument passed to the handler, which we need for ZCX propagation
3387 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
3389 * adaint.h, adaint.c (__gnat_current_time_string): New routine.
3391 * g-timsta.adb, g-timsta.ads: New files.
3393 2008-04-08 Robert Dewar <dewar@adacore.com>
3395 * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
3396 (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
3397 (Raise_Exception_Always): Fix documentation accordingly
3399 2008-04-08 Robert Dewar <dewar@adacore.com>
3401 * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
3404 * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
3407 2008-04-08 Javier Miranda <miranda@adacore.com>
3408 Robert Dewar <dewar@adacore.com>
3409 Ed Schonberg <schonberg@adacore.com>
3411 * a-tags.adb (Register_Interface_Offset): New subprogram.
3412 (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
3413 (To_Predef_Prims_Table_Ptr): Removed.
3414 (Acc_Size): Removed.
3415 (To_Acc_Size): Removed.
3416 (Parent_Size): Modified to the call the subprogram returning the size of
3417 the parent by means of the new TSD component Size_Func.
3419 * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
3420 (DT_Offset_To_Top_Offset): New constant value that is used to generate
3421 code referencing the Offset_To_Top component of the dispatch table's
3423 (Prim_Ptr): New declaration of access to procedure. Used to avoid the
3424 use of 'address to initialize dispatch table slots.
3425 (Size_Func): New component of the TSD. Used by the run-time to call the
3426 size primitive of the tagged type.
3428 * checks.adb (Apply_Access_Check): Avoid check when accessing the
3429 Offset_To_Top component of a dispatch table.
3430 (Null_Exclusion_Static_Checks): If the non-null access type appears in a
3431 deferred constant declaration. do not add a null expression, to prevent
3432 spurious errors when full declaration is analyzed.
3433 (Apply_Discriminant_Check): If both discriminant constraints share a
3434 node which is not static but has no side effects, do not generate a
3435 check for that discriminant.
3436 (Generate_Index_Checks): Set Name_Req to true in call to duplicate
3437 subexpr, since the prefix of an attribute is a name.
3439 * checks.ads: Fix nit in comment.
3441 * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
3442 and body of predefined primitives in case of CPP tagged type
3444 (Freeze_Type): Deal properly with no storage pool case
3445 (Make_Predefined_Primitive_Specs): Generate specification of abstract
3446 primitive Deep_Adjust if a nonlimited interface is derived from a
3448 (Build_Dcheck_Functions): Create discriminant-checking functions only
3449 for variants that have some component(s).
3450 (Build_Slice_Assignment): In expanded code for slice assignment, handle
3451 properly the case where the slice bounds extend to the last value of the
3452 underlying representation.
3453 (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
3454 (Is_Variable_Size_Record): An array component has a static size if
3455 index bounds are enumeration literals.
3457 * exp_disp.adb (Make_DT): Use the first subtype to determine whether
3458 an external tag has been specified for the type.
3459 (Building_Static_DT): Add missing support for private types.
3460 (Make_DT): Add declaration of Parent_Typ to ensure consistent access
3461 to the entity associated with the parent of Typ. This is done to
3462 avoid wrong access when the parent is a private type.
3463 (Expand_Interface_Conversion): Improve error message when the
3464 configurable runtime has no support for dynamic interface conversion.
3465 (Expand_Interface_Thunk): Add missing support to interface types in
3466 configurable runtime.
3467 (Expand_Dispatching_Call): remove obsolete code.
3468 (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
3469 ensure that all subtypes and aggregates associated with dispatch
3470 tables have the attribute Is_Dispatch_Table_Entity set to true.
3471 (Register_Primitive): Rename one variable to improve code reading.
3472 Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
3473 of the pointer to the 'size primitive in the TSD.
3475 * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
3476 (RE_Offset_To_Top_Ptr): New entity.
3477 (RE_Register_Interface_Offset): New entity.
3478 (RE_Set_Dynamic_Offset_To_Top): New entity.
3479 (RE_Set_Offset_To_Top): Removed entity.
3480 (RE_Prim_Ptr): New entity
3481 (RE_Size_Func): New entity
3482 (RE_Size_Ptr): New entity
3483 (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
3484 (Ada_Dispatching_Child): Define this new subrange.
3485 (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
3486 RE_Time_Span, and RE_Time_Span_Zero).
3487 (RE_Unit_Table): Add new required run-time calls
3489 * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
3492 * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
3493 (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
3494 initializes the Offset_To_Top component of a dispatch table.
3495 (Build_Predef_Prims): Removed.
3496 (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
3498 (Build_Set_Size_Function): New subprogram.
3500 * exp_ch13.adb: Do not generate storage variable for storage_size zero
3501 (Expand): Handle setting/restoring flag Inside_Freezing_Actions
3503 2008-04-08 Robert Dewar <dewar@adacore.com>
3505 * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
3506 computing Fore when Exp > 0
3508 2008-04-08 Robert Dewar <dewar@adacore.com>
3510 * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
3512 * errout.adb: Remove Big_String_Ptr declarations (now in Types)
3513 Change name Is_Style_Msg to Is_Style_Or_Info_Msg
3515 * fmap.adb: Remove Big_String declarations (now in Types)
3516 (No_Mapping_File): New Boolean global variable
3517 (Initialize): When mapping file cannot be read, set No_Mapping_File to
3519 (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
3520 tables were empty before adding entries, open the mapping file
3521 with Truncate = True, instead of delete/re-create.
3523 * fname-sf.adb: Remove Big_String declarations (now in Types)
3525 * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
3526 s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
3529 * table.ads: Add for Table_Ptr'Storage_Size use 0
3531 * types.ads: Add Big_String declarations
3532 Add Size_Clause of zero for big pointer types
3534 2008-04-08 Vincent Celier <celier@adacore.com>
3536 * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
3537 (Usage): Add line for switch --subdirs=
3538 Add new switch -eL, to follow symbolic links when processing project
3541 * gnatcmd.adb: Process switches -eL and --subdirs=
3542 (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
3543 Program_Name to get proper tool names when AAMP_On_Target is set.
3544 (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
3545 AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
3546 Osint.Program_Name).
3548 * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
3549 (Usage): Add lines for switches -eL and --subdirs=
3551 * makeusg.adb: Add line for switch --subdirs=
3554 (Source_Data): New Boolean component Compiled, defaulted to True
3555 (Empty_File_Name: New global variable in private part, initialized in
3556 procedure Initialize.
3557 (Subdirs_Option): New constant string
3558 (Subdirs): New String_Ptr global variable
3559 (Language_Config): New component Include_Compatible_Languages
3560 (Project_Qualifier): New type for project qualifiers
3561 (Project_Data): New component Qualifier
3562 (Project_Configuration): New component Archive_Builder_Append_Option
3564 * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
3565 another imported project indicate the name of this imported project.
3566 (Check_File): When a unit is in two project files, indicate the project
3567 names and the paths of the source files for each project.
3568 (Add_Source): Set Compiled to False if compiler driver is empty. Only
3569 set object, dependency and switches file names if Compiled is True.
3570 (Process_Compiler): Allow the empty string for value of attribute Driver
3571 (Get_Directories): When Subdirs is not null and Object_Dir is not
3572 specified, locate and create if necessary the actual object dir.
3573 (Locate_Directory): When Subdirs is not empty and Create is not the
3574 empty string, locate and create if necessary the actual directory
3575 as a subdirectory of directory Name.
3576 (Check_Library_Attributes.Check_Library): Allow a project where the only
3577 "sources" are header files of file based languages to be imported by
3578 library projects, in multi-language mode (gprbuild).
3579 (Check_Library_Attributes.Check_Library): In multi-language mode
3580 (gprbuild), allow a library project to import a project with no
3581 sources, even when this is not declared explicitly.
3582 (Check_If_Externally_Built): A virtual project extending an externally
3583 built project is also externally built.
3584 (Check_Library_Attributes): For a virtual project extending a library
3585 project, inherit the library directory.
3586 (Process_Project_Level_Array_Attributes): Process new attribute
3587 Inherit_Source_Path.
3588 For projects with specified qualifiers "standard", "library" or
3589 "abstract", check that the project conforms to the qualifier.
3590 (Process_Project_Level_Simple_Attributes): Process new attribute
3591 Archive_Builder_Append_Option.
3593 * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
3594 (Normalize_Compiler_Switches): Only keep compiler switches that are
3595 passed to gnat1 by the gcc driver and that are stored in the ALI file
3597 Do not take into account switc -save-temps
3599 * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
3600 gprmake is called with -eL.
3601 (Scan_Arg): Recognize switch -eL
3602 (Usage): Add line for switch -eL
3604 * prj.adb (Initialize): Initialize Empty_File_Name
3605 (Project_Empty): New component Qualifier
3607 * prj-attr.ads, prj-attr.adb: New project level attribute
3608 Inherit_Source_Path.
3609 New project level attribute Archive_Builder_Append_Option
3611 * prj-dect.adb: Replace System.Strings by GNAT.Strings.
3613 * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
3614 <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
3615 upward compatibility.
3617 * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
3618 each Trying ..." on different lines.
3619 (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
3620 is "configuration" when not in configuration. Fail when in configuration
3621 when a specified qualifier is other than "configuration".
3623 * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
3624 full associative array together.
3625 (Recursive_Process): Put the project qualifier in the project data
3627 * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
3628 (Set_Project_Qualifier_Of): New procedure
3630 2008-04-08 Robert Dewar <dewar@adacore.com>
3632 * errout.ads: Update comments for new handling of info: messages
3634 * erroutc.adb (Matches): New procedure
3635 (Warning_Specifically_Suppressed): Modified to handle multiple * chars
3636 (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
3637 info messages as well as style messages.
3639 * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
3641 * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
3643 (Check_A_Call): Special "info: " warnings now have ? in the text
3644 (Elab_Warning): Use info message in static case
3646 2008-04-08 Ed Schonberg <schonberg@adacore.com>
3648 * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
3649 whether an array aggregate with static bounds and scalar components
3650 should be expanded into a static constant.
3652 2008-04-08 Gary Dismukes <dismukes@adacore.com>
3653 Ed Schonberg <schonberg@adacore.com>
3654 Robert Dewar <dewar@adacore.com>
3656 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
3657 Has_Stream_Attribute_ Definition when checking for available stream
3658 attributes on parameters of a limited type in Ada 2005. Necessary for
3659 proper recognition of visible stream attribute clauses.
3660 (Has_Stream_Attribute_Definition): If the type is derived from a
3661 private type, then use the derived type's underlying type for checking
3662 whether it has stream attributes.
3663 (Validate_Object_Declaration): The check for a user-defined Initialize
3664 procedure applies also to types with controlled components or a
3665 controlled ancestor.
3666 Reject an object declaration in a preelaborated unit if the type is a
3667 controlled type with an overriding Initialize procedure.
3668 (Validate_Remote_Access_To_Class_Wide_Type): Return without further
3669 checking when the parent of a dereference is a selected component and
3670 the name has not been analyzed.
3672 * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
3673 prefixes that are invalid explicit dereferences of remote
3674 access-to-class-wide values, first checking whether the selected
3675 component is a prefixed form of call to a tagged operation.
3676 (Analyze_Call): Remove code that issues an error for limited function
3677 calls in illegal contexts, as we now support all of the contexts that
3678 were forbidden here.
3679 Allow a function call that returns a task.and appears as the
3680 prefix of a selected component.
3681 (Analyze_Reference): Give error message if we try to make a 'Reference
3682 for an object that is atomic/aliased without its type having the
3683 corresponding attribute.
3684 (Analyze_Call): Remove condition checking for attributes to allow
3685 calls to functions with inherently limited results as prefixes of
3686 attributes. Remove related comment about Class attributes.
3687 (Analyze_Selected_Component): If the prefix is a remote type, check
3688 whether this is a prefixed call before reporting an error.
3689 (Complete_Object_Operation): If the controlling formal is an access to
3690 variable reject an actual that is a constant or an access to one.
3691 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
3692 primitive operations from base type.
3694 * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
3696 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
3697 (Expand_N_Selected_Component): Test for prefix that is a build-in-place
3698 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
3699 (Expand_N_Slice): Test for prefix that is a build-in-place function call
3700 and call Make_Build_In_Place_Call_In_Anonymous_Context.
3701 (Analyze_Call): Remove code that issues an error for limited function
3702 calls in illegal contexts, as we now support all of the contexts that
3703 were forbidden here.
3704 New calling sequence for Get_Simple_Init_Val
3705 (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
3706 (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
3708 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
3709 Ed Schonberg <schonberg@adacore.com>
3710 Robert Dewar <dewar@adacore.com>
3712 * exp_ch2.adb: Minor reformatting.
3713 (Expand_Entry_Index_Parameter): Set the type of the identifier.
3714 (Expand_Entry_Reference): Add call to Expand_Protected_Component.
3715 (Expand_Protected_Component): New routine.
3716 (Expand_Protected_Private): Removed.
3717 Add Sure parameter to Note_Possible_Modification calls
3719 * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
3720 generated subprogram declaration must inherit the overriding indicator
3721 from the instantiation node.
3722 (Validate_Access_Type_Instance): If the designated type of the actual is
3723 a limited view, use the available view in all cases, not only if the
3724 type is an incomplete type.
3725 (Instantiate_Object): Actual is illegal if the formal is null-excluding
3726 and the actual subtype does not exclude null.
3727 (Process_Default): Handle properly abstract formal subprograms.
3728 (Check_Formal_Package_Instance): Handle properly defaulted formal
3729 subprograms in a partially parameterized formal package.
3730 Add Sure parameter to Note_Possible_Modification calls
3731 (Validate_Derived_Type_Instance): if the formal is non-limited, the
3732 actual cannot be limited.
3733 (Collect_Previous_Instances): Generate instance bodies for subprograms
3736 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
3738 Add Sure parameter to Note_Possible_Modification calls
3739 (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
3740 (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
3741 constant overlaid by variable and issue warning.
3742 Use new Is_Standard_Character_Type predicate
3743 (Analyze_Record_Representation_Clause): Check that the specified
3744 Last_Bit is not less than First_Bit - 1.
3745 (Analyze_Attribute_Definition_Clause, case Address): Check for
3746 self-referential address clause
3748 * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
3749 detection mechanism when the lhs is a prival.
3750 (Analyze_Assignment): Call Check_Unprotected_Access to detect
3751 assignment of a pointer to protected data, to an object declared
3752 outside of the protected object.
3753 (Analyze_Loop_Statement): Check for unreachable code after loop
3754 Add Sure parameter to Note_Possible_Modication calls
3755 Protect analysis from previous syntax error such as a scope mismatch
3757 (Analyze_Assignment_Statement): The assignment is illegal if the
3758 left-hand is an interface.
3760 * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
3761 violation of restriction No_Implicit_Conditionals
3762 Add Sure parameter to Note_Possible_Modication calls
3763 Use new Is_Standard_Character_Type predicate
3764 (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
3765 call as operator. Fixes problems (e.g. validity checking) which
3766 come from the result looking as though it does not come from source).
3767 (Resolve_Call): Check case of name in named parameter if style checks
3769 (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
3770 from the checking that such calls should not occur from an entry body.
3771 (Resolve_Call): If the return type of an Inline_Always function
3772 requires the secondary stack, create a transient scope for the call
3773 if the body of the function is not available for inlining.
3774 (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
3775 that are actuals for in-out formals.
3776 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
3777 primitive operations from base type.
3778 (Analyze_Selected_Component): If the context is a call to a protected
3779 operation the parent may be an indexed component prior to expansion.
3780 (Resolve_Actuals): If an actual is of a protected subtype, use its
3781 base type to determine whether a conversion to the corresponding record
3783 (Resolve_Short_Circuit): Handle pragma Check
3785 * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
3786 Use new Is_Standard_Character_Type predicate
3787 (Eval_Relational_Op): Catch more cases of string comparison
3789 2008-04-08 Robert Dewar <dewar@adacore.com>
3790 Gary Dismukes <dismukes@adacore.com>
3792 * s-rident.ads: Add No_Default_Initialization restriction
3795 (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
3796 (Set_TSS): Handle No_Default_Initialization case
3798 * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
3799 No_Default_Initialization
3800 (Expand_N_Subprogram_Body): Remove redundant initialization of out
3801 parameters when Normalize_Scalars is active.
3802 (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
3803 Fix casing error in formal parameter name in call
3804 (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
3805 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
3806 dispatching call on VM targets.
3808 2008-04-08 Gary Dismukes <dismukes@adacore.com>
3809 Thomas Quinot <quinot@adacore.com>
3811 * exp_ch7.adb (Find_Final_List): Change the test for generating a
3812 selected component from an access type's Associated_Final_Chain to
3813 check for the presence of that field, rather than assuming it exists
3814 for all named access types.
3815 (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
3816 procedure to call at the end of the generated cleanup procedure.
3817 (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
3818 and an At_End_Proc already exists in the handled sequence of statements
3819 for which cleanup actions are being expanded, the original cleanup
3820 action must be preserved.
3822 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
3823 Ed Schonberg <schonberg@adacore.com>
3824 Robert Dewar <dewar@adacore.com>
3825 Gary Dismukes <dismukes@adacore.com>
3827 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
3828 Build_Unprotected_Subprogram_Body): Generate debug info for
3829 declarations related to the handling of private data in task and
3831 (Debug_Private_Data_Declarations): New subprogram.
3832 (Install_Private_Data_Declarations): Remove all debug info flagging.
3833 This is now done by Debug_Private_Data_Declarations at the correct
3835 (Build_Simple_Entry_Call): If the task name is a function call, expand
3836 the prefix into an object declaration, and make the surrounding block a
3838 (Build_Master_Entity): An internal block is a master if it wraps a call.
3839 Code reformatting, update comments. Code clean up.
3840 (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
3841 (Replicate_Entry_Formals): If the formal is an access parameter or
3842 anonymous access to subprogram, copy the original tree to create new
3843 entities for the formals of the subprogram.
3844 (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
3845 for tasks to store the value passed using pragma Relative_Deadline.
3846 (Make_Task_Create_Call): Add the Relative_Deadline argument to the
3847 run-time call to create a task.
3848 (Build_Wrapper_Spec): If the controlling argument of the interface
3849 operation is an access parameter with a non-null indicator, use the
3850 non-null indicator on the wrapper.
3852 * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
3853 present, which it may not be in the case where the type entity is an
3854 incomplete view brought in by a limited with.
3855 (Analyze_Task_Type): Only retrieve the full view when present, which it
3856 may not be in the case where the type entity is an incomplete view brought
3857 in by a limited with.
3858 (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
3859 private components of a protected type, to prevent the generation of freeze
3860 nodes for which there is no proper scope of elaboration.
3862 * exp_util.ads, exp_util.adb
3863 (Remove_Side_Effects): If the expression is a function call that returns a
3864 task, expand into a declaration to invoke the build_in_place machinery.
3865 (Find_Protection_Object): New routine.
3866 (Remove_Side_Effects): Also make a copy of the value
3867 for attributes whose result is of an elementary type.
3868 (Silly_Boolean_Array_Not_Test): New procedure
3869 (Silly_Boolean_Array_Xor_Test): New procedure
3870 (Is_Volatile_Reference): New function
3871 (Remove_Side_Effects): Use Is_Volatile_Reference
3872 (Possible_Bit_Aligned_Component): Handle slice case properly
3874 * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
3875 case test to Exp_Util
3876 (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
3878 2008-04-08 Thomas Quinot <quinot@adacore.com>
3880 * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
3882 (Add_RACW_Features): When processing an RACW in another unit than the
3883 main unit, set Body_Decls to No_List to indicate that the bodies of
3884 the type's TSS must not be generated.
3885 (GARLIC_Support.Add_RACW_Read_Attribute,
3886 GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
3887 Body_Decls is No_List.
3888 (PolyORB_Support.Add_RACW_Read_Attribute,
3889 PolyORB_Support.Add_RACW_Write_Attribute,
3890 PolyORB_Support.Add_RACW_From_Any,
3891 PolyORB_Support.Add_RACW_To_Any,
3892 PolyORB_Support.Add_RACW_TypeCode): Same.
3893 (Transmit_As_Unconstrained): New function.
3894 (Build_Ordered_Parameters_List): Use the above to order parameters.
3895 (GARLIC_Support.Build_General_Calling_Stubs):
3896 Use the above to determine which parameters to unmarshall using 'Input
3897 at the point where their temporary is declared (as opposed to later on
3899 (PolyORB_Support.Build_General_Calling_Stubs):
3900 Use the above to determine which parameters to unmarshall using From_Any
3901 at the point where their temporary is declared (as opposed to later on
3902 with an assignment).
3904 2008-04-08 Ed Schonberg <schonberg@adacore.com>
3906 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
3907 an Input function for an access type, do not perform default
3908 initialization on the local variable that receives the value, to
3909 prevent spurious warnings when the type is null-excluding.
3911 2008-04-08 Robert Dewar <dewar@adacore.com>
3912 Ed Schonberg <schonberg@adacore.com>
3914 * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
3916 (Size_Known): Generic formal scalar types have known at compile
3917 time size, so remove check.
3918 Fix casing error in formal parameter name in call
3919 (Freeze_Subprogram): If the subprogram is a user-defined operator,
3920 recheck its overriding indication.
3922 2008-04-08 Vincent Celier <celier@adacore.com>
3924 * gnat1drv.adb: Send all messages indicating an error to standard error
3926 2008-04-08 Robert Dewar <dewar@adacore.com>
3928 * gnatbind.adb (Restriction_Could_Be_Set): New procedure
3929 (List_Applicable_Restrictions): Do not list existing restrictions
3931 2008-04-08 Thomas Quinot <quinot@adacore.com>
3933 * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
3934 add a pointer to generic sockets literature
3935 do not mention that the given example is "typical" usage.
3936 Remove obsolete comment about multicast not being supported on Windows.
3937 (Connect_Socket): Make Server mode IN rather than IN OUT
3938 since this formal is never modified.
3940 2008-04-08 Robert Dewar <dewar@adacore.com>
3942 * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
3943 the declaration for some different entity.
3944 (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
3945 list is precent (following the parent subtype indication), display
3946 appropriate "and" keyword.
3948 * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
3949 Remove unnecessary calls to Init_Size_Align and Init_Esize.
3950 Add notes on use of Parent field of an Itype
3952 2008-04-08 Ed Schonberg <schonberg@adacore.com>
3953 Robert Dewar <dewar@adacore.com>
3954 Gary Dismukes <dismukes@adacore.com>
3956 * lib-xref.adb (Is_On_LHS): Remove dead code
3957 (Output_Overriden_Op): If the overridden operation is itself inherited,
3958 list the ancestor operation, which is the one whose body or absstract
3959 specification is actually being overridden. For source navigation
3962 * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
3963 operation is primitive for the type.
3964 (Declare_Inherited_Private_Subprograms): If the new operation overrides
3965 an inherited private subprogram, set properly the Overridden_Operation
3966 attribute, for better cross-reference information.
3967 (Analyze_Package_Specification): Do late analysis of spec PPCs
3968 (Install_Private_Declaration, Uninstall_Declarations): Save/restore
3969 properly the full view and underlying full views of a private type in a
3970 child unit, whose full view is derived from a private type in a parent
3971 unit, and whose own full view becomes visible in the child body.
3973 * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
3974 primitive operation after the type has been frozen, add an explicit
3975 reference to the type and the operation, because other primitive
3976 references have been emitted already.
3977 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
3978 dispatching call on VM targets.
3980 2008-04-08 Vincent Celier <celier@adacore.com>
3981 Thomas Quinot <quinot@adacore.com>
3983 * make.adb: (Gnatmake_Called): Remove, no longer necessary
3984 (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
3985 is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
3986 (Insert_Project_Sources): Take into account index in multi-unit source
3988 After building a library project, delete all temporary files.
3989 (Initialize): Reset current output after parsing project file.
3990 (Collect_Arguments_And_Compile): Never insert in the queue the sources
3991 of library projects that are externally built.
3992 Put file name in error and inform messages if -df is used
3993 (Display): If invoked with -d7, do not display path names, but only
3996 * makeutl.ads (Path_Or_File_Name): New function
3997 (Path_Or_File_Name): New function
3999 2008-04-08 Arnaud Charlet <charlet@adacore.com>
4001 * Make-lang.in: Disable warnings during first stage of bootstrap
4003 Update dependencies.
4005 2008-04-08 Vincent Celier <celier@adacore.com>
4007 * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
4008 case to decide if ALI object file is included in library.
4009 (Build_Library): Never attempt to build a library if the project is
4012 2008-04-08 Thomas Quinot <quinot@adacore.com>
4014 * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
4015 (No_List) is defined to return Empty.
4017 2008-04-08 Jose Ruiz <ruiz@adacore.com>
4019 * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
4022 (Read_Default_Search_Dirs): Do not consider spaces as path separators
4023 because spaces may be part of legal paths.
4025 2008-04-08 Robert Dewar <dewar@adacore.com>
4027 * par-ch11.adb (P_Exception_Handler): Check indentation level for
4030 2008-04-08 Ed Schonberg <schonberg@adacore.com>
4032 * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
4033 in a type declaration, if this is not an interface declaration or
4034 private type extension.
4036 2008-04-08 Vincent Celier <celier@adacore.com>
4038 * prj-util.adb (Executable_Of): New String parameter Language. When
4039 Ada_Main is False and Language is not empty, attempt to remove the body
4040 suffix or the spec suffix of the language to get the base of the
4041 executable file name.
4042 (Put): New Boolean parameter Lower_Case, defauilted to False. When
4043 Lower_Case is True, put the value in lower case in the name list.
4044 (Executable_Of): If there is no executable suffix in the configuration,
4045 then do not modify Executable_Extension_On_Target.
4047 * prj-util.ads (Executable_Of): New String parameter Language,
4048 defaulted to the empty string.
4049 (Put): New Boolean parameter Lower_Case, defauilted to False
4051 2008-04-08 Robert Dewar <dewar@adacore.com>
4053 * scng.adb (Scan_Identifier): Handle case of identifier starting with
4054 wide character using UTF-8 encoding.
4056 2008-04-08 Javier Miranda <miranda@adacore.com>
4058 * sem.adb (Analyze): Consider case in which we analyze an empty node
4059 that was generated by a call to a runtime function that is not
4060 available under the configurable runtime.
4062 * sem.ads (Inside_Freezing_Actions): New flag.
4063 (Save_Check_Policy_List): New field in scope stack entry
4065 2008-04-08 Ed Schonberg <schonberg@adacore.com>
4066 Robert Dewar <dewar@adacore.com>
4068 * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
4069 the ancestor part of an extension aggregate for a limited type.
4070 (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
4071 enumeration index bounds.
4072 (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
4073 when array is too short.
4074 (Check_Expr_OK_In_Limited_Aggregate): Move function
4075 Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
4077 (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
4078 Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
4079 component associations.
4080 (Check_Non_Limited_Type): Moved to outer level and renamed.
4081 (Resolve_Record_Aggregate): In an extension aggregate, an association
4082 with a box initialization can only designate a component of the
4083 extension, not a component inherited from the given ancestor
4085 * sem_case.adb: Use new Is_Standard_Character_Type predicate
4087 2008-04-08 Robert Dewar <dewar@adacore.com>
4089 * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
4091 (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
4092 Properly handle case where Aft > Scale and input number is less than
4095 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
4097 * s-stoele.ads, s-soflin.ads: Move the location of
4098 Dummy_Communication_Block from System.Storage_Elements to
4101 * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
4102 emulate Communication_Block in certain scenarios.
4104 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
4106 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
4108 Add new subtype S_WWC, unchecked conversion routines From_WWC and
4110 (I_WWC, O_WWC): New routines for input and output of
4111 Wide_Wide_Character.
4113 2008-04-08 Robert Dewar <dewar@adacore.com>
4115 * stringt.adb (Write_String_Table_Entry): Handle wide characters
4118 2008-04-08 Robert Dewar <dewar@adacore.com>
4120 * styleg.adb (Check_Comment): Allow special char after -- in
4121 non-end-of-line case
4123 2008-04-08 Robert Dewar <dewar@adacore.com>
4125 * stylesw.adb: Implement -gnaty + - y options
4126 (Set_GNAT_Style_Check_Options): Includ I in style check string
4128 * stylesw.ads: Add comments for new style switch options
4130 2008-04-08 Sergey Rybin <rybin@adacore.com>
4132 * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
4133 to the set of the GNAT components needed by ASIS.
4135 2008-04-08 Bob Duff <duff@adacore.com>
4137 * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
4139 2008-04-08 Tristan Gingold <gingold@adacore.com>
4141 * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
4142 Improve error message generation.
4144 2008-04-08 Vincent Celier <celier@adacore.com>
4146 * a-direct.adb (Start_Search): Check for Name_Error before checking for
4147 Use_Error, as specified in the RM. Check if directory is open and raise
4148 Use_Error if it is not.
4150 2008-04-08 Vincent Celier <celier@adacore.com>
4151 Robert Dewar <dewar@adacore.com>
4153 * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
4154 AAMP_On_Target is set.
4156 * vms_data.ads: Add NOxxx to style check switch list
4157 Add entry COMPONENTS for -gnatVe
4158 Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
4160 (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
4161 Add qualifiers for gnatmetric coupling options
4162 Add note that -gnata enables all checks
4163 Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
4164 Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
4165 New warning flag -gnatw.e
4167 * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
4168 Add entry for -gnatyN (forgotten before)
4169 Line for new warning switch -gnatw.p
4170 New warning flag -gnatw.e
4172 * gnat_ugn.texi: Add documentation fpr project file switch -aP
4173 Document -gnaty - + y
4174 Replace occurences of "package specification" with "package spec"
4175 Define preprocessing symbols in documentation of gnatprep
4176 Clarify reason for distinguishing overflow checking
4177 Add documentation for project-aware tool switches -eL and --subdirs=
4178 Complete list of configuration pragmas
4179 Specify that, even when gnatmake switch -x is used, mains on the command
4180 line need to be sources of project files.
4181 Editing of gnatcheck/gnatmetric doc.
4182 Add documentation for -gnatw.p/-gnatw.P
4183 Add missing documentation for -fno-inline-functions.
4184 Add documentation for -gnatw.e
4186 * gnat_rm.texi: Add documentation for No_Default_Initialization
4187 Replace occurences of "package specification" with "package spec"
4188 Document use of * in Warnings Off string
4189 Update documentation of alignment/component clauses.
4190 Add documentation for Invalid_Value
4191 Document new consistency rule for Optimize_Alignment
4192 Add documentation for Precondition and Postcondition pragmas
4193 Add documentation for Check and Check_Policy pragmas
4194 Document new Enum_Val attribute
4195 Remove requirement for static string in pragma Assert
4196 Add documentation on GNAT.Time_Stamp
4198 * ug_words: add entry for -gnatVe
4199 Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
4200 Add entry for -gnatw.e
4202 * debug.adb: Add missing documentation for d.a flag
4203 Document new -gnatd.a switch.
4204 Add documentation for new gnatmake debug switch -df
4206 2008-04-08 Thomas Quinot <quinot@adacore.com>
4208 * gen-soccon.c: Bump year in copyright notices.
4210 * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
4212 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4214 * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
4217 2008-04-08 Robert Dewar <dewar@adacore.com>
4218 Bob Duff <duff@adacore.com>
4220 * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
4221 Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
4223 * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
4225 * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
4227 * g-trasym.ads: Minor comment improvements
4229 * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
4231 * a-sequio.ads, a-direio.ads: improve message for tagged type
4233 * a-strunb.ads: Minor reformatting
4235 * a-tifiio.adb: Minor reformatting
4237 * atree.adb (Fix_Parents): Use clearer names for formals
4238 Cleanup and simplify code
4239 Use named notation in calls
4241 * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
4244 * uintp.adb: Used named notation for some confusing calls
4246 * bindusg.adb: Minor change in one line of output
4248 * cstand.adb: Minor reformatting of src representation of Standard
4250 * a-assert.ads: Add comment.
4252 * g-decstr.adb: Fix bad indentation
4254 * expander.ads, expander.adb: Code clean up.
4256 * sem_dist.ads: Minor comment improvement
4258 * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
4259 s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
4261 * i-cstrin.adb: Fix casing error in formal parameter name in call
4263 2008-04-08 Ed Schonberg <schonberg@adacore.com>
4265 * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
4266 mentioned in limited_with_clauses to do create semantic dependencies
4267 even though they appear in the ali file.
4269 2008-04-08 Emmanuel Briot <briot@adacore.com>
4271 * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
4273 (Get_Configuration): New subprogram.
4275 * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
4276 These optional parameters help preserve the casing of the project's name
4277 when pretty-printing.
4279 2008-04-08 Jerome Lambourg <lambourg@adacore.com>
4280 Arnaud Charlet <charlet@adacore.com>
4282 * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
4283 then use __gnat_set_exit_status to report the returned status code.
4285 * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
4286 messages on .NET, since some constructs of the language are not
4289 * gnatlink.adb (Gnatlink): In case the command line is too long for the
4290 .NET linker, gnatlink now concatenate all .il files and pass this to
4293 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
4294 Xavier Grave <grave@ipno.in2p3.fr>
4296 * Makefile.in: Add make ifeq define for mips/mipsel support.
4297 * g-soccon-linux-mips.ads, system-linux-mipsel.ads,
4298 system-linux-mips.ads: New files.
4300 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
4302 * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
4303 detect systems using GNU libc.
4309 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
4311 * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New
4312 constant constant for sysconf call.
4313 (bit_field): New packed boolean type used by cpu_set_t.
4314 (cpu_set_t): New type corresponding to the C type with
4315 the same name. Note that on the Ada side we use a bit
4316 field array for the affinity mask. There is not need
4317 for the C macro for setting individual bit.
4318 (pthread_setaffinity_np): New imported routine.
4319 * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
4322 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
4324 * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
4326 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
4328 * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
4329 * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
4330 * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
4331 * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
4332 Return by Depressed Stack Pointer.
4334 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
4336 * decl.c (is_variable_size): Do not unconditionally return false
4337 on non-strict alignment platforms.
4339 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
4341 * decl.c (rest_of_type_decl_compilation_no_defer): New local function
4342 used to process all the variants of the specified type.
4343 (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
4344 types too. Call rest_of_type_decl_compilation_no_defer if undeferring.
4345 (rest_of_type_decl_compilation): Likewise.
4346 * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
4348 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
4350 * gigi.h (insert_block): Kill.
4351 * utils.c (insert_block): Kill.
4353 2008-04-02 Eric Botcazou <ebotcazou@adacore.com>
4355 * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
4356 type has self-referential size, get the size from the initializing
4357 expression directly if it is also a constant whose nominal type
4358 has self-referential size.
4360 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4363 * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
4366 * env.c: Always include crt_externs.h if __APPLE__ is defined.
4367 (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
4369 2008-04-01 Andreas Jaeger <aj@suse.de>
4371 * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
4374 2008-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4376 * g-table.adb, g-tasloc.adb, g-traceb.ads,
4377 g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
4378 gnatbind.adb, gnatchop.adb, gnatcmd.adb,
4379 gnatcmd.ads, gnatdll.adb, gnatfind.adb,
4380 gnatlink.adb, gnatmem.adb, gprep.adb,
4381 i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
4382 i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
4383 layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
4384 lib-xref.ads, lib.adb, link.c, live.ads,
4385 make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
4386 mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
4387 misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
4388 mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
4389 namet.adb, namet.h, nlists.adb, nlists.ads,
4390 nlists.h, opt.ads, osint-b.ads, osint-c.adb,
4391 osint-c.ads, osint.adb, osint.ads, output.ads,
4392 par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
4393 par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
4394 par-endh.adb, par-labl.adb, par-prag.adb,
4395 par-sync.adb, par-tchk.adb, par-util.adb,
4396 par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
4397 prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
4398 prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
4399 prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
4401 2008-03-31 Eric Botcazou <ebotcazou@adacore.com>
4403 * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
4404 size if it has overflowed.
4406 2008-03-31 Olivier Hainque <hainque@adacore.com>
4407 Eric Botcazou <ebotcazou@adacore.com>
4409 * utils2.c (find_common_type): Document assumption on t1/t2 vs
4410 lhs/rhs. Force use of lhs type if smaller, whatever the modes.
4412 2008-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4414 * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
4415 einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
4416 exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
4417 exp_pakd.ads, exp_prag.adb, exp_smem.adb,
4418 exp_tss.ads, exp_util.adb, exp_util.ads,
4419 exp_vfpt.adb, freeze.adb, freeze.ads,
4420 frontend.adb, g-alleve.adb, g-altcon.adb,
4421 g-altive.ads, g-alveop.ads, g-alvevi.ads,
4422 g-arrspl.adb, g-busorg.ads, g-calend.adb,
4423 g-calend.ads, g-casuti.ads, g-cgideb.adb,
4424 g-comlin.adb, g-comlin.ads, g-curexc.ads,
4425 g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
4426 g-dirope.adb, g-dirope.ads, g-dynhta.ads,
4427 g-dyntab.adb, g-encstr.ads, g-excact.ads,
4428 g-except.ads, g-expect.ads, g-heasor.adb,
4429 g-hesora.adb, g-hesorg.adb, g-htable.ads,
4430 g-locfil.ads, g-md5.adb, g-md5.ads,
4431 g-memdum.ads, g-moreex.ads, g-os_lib.adb,
4432 g-pehage.adb, g-pehage.ads, g-regexp.adb,
4433 g-regexp.ads, g-regpat.adb, g-regpat.ads,
4434 g-soccon-aix.ads, g-soccon-darwin.ads,
4435 g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
4436 g-soccon-hpux.ads, g-soccon-irix.ads,
4437 g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
4438 g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
4439 g-soccon-mingw.ads, g-soccon-solaris-64.ads,
4440 g-soccon-solaris.ads, g-soccon-tru64.ads,
4441 g-soccon-vms.ads, g-soccon-vxworks.ads,
4442 g-soccon.ads, g-socket.adb, g-socket.ads,
4443 g-socthi-mingw.adb, g-socthi-vms.adb,
4444 g-socthi-vxworks.adb, g-soliop-mingw.ads,
4445 g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
4446 g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
4449 2008-03-27 Eric Botcazou <ebotcazou@adacore.com>
4451 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
4452 if the procedure is imported.
4454 2008-03-26 Arnaud Charlet <charlet@adacore.com>
4456 * adaint.c: Fix warnings.
4458 2008-03-26 Arnaud Charlet <charlet@adacore.com>
4460 * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
4462 2008-03-26 Arnaud Charlet <charlet@adacore.com>
4464 * a-witeio.adb: Fix problem with Current_Output (introduce Self).
4465 Fix problem of status check for null file
4467 2008-03-26 Arnaud Charlet <charlet@adacore.com>
4469 * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
4470 s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
4471 s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
4472 i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
4473 s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
4476 2008-03-26 Thomas Quinot <quinot@adacore.com>
4479 * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
4480 Get_Socket_Option): Add support for Receive_Packet_Info.
4482 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
4483 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
4484 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
4485 g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
4486 g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
4487 new constants SO_REUSEPORT and IP_PKTINFO
4489 2008-03-26 Robert Dewar <dewar@adacore.com>
4491 * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
4492 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
4493 a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
4494 a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
4495 a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
4496 a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
4497 s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
4498 s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
4499 a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
4500 s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
4501 s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
4502 s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
4503 s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
4504 s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
4505 s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
4506 s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
4507 s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
4508 s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
4509 s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
4510 s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
4511 a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
4512 a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
4513 s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
4514 s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
4515 s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
4516 s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
4517 s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
4518 a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
4519 a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
4520 s-tasloc.adb: Minor reformatting.
4522 Remove "used for" sections from comments.
4524 2008-03-26 Robert Dewar <dewar@adacore.com>
4526 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
4527 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
4528 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
4529 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
4530 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
4531 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
4532 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
4533 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
4534 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
4535 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
4536 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
4537 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
4538 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
4539 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
4540 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
4541 double spaced if it fits on one line and otherwise single spaced.
4543 2008-03-26 Arnaud Charlet <charlet@adacore.com>
4545 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
4546 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
4547 s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
4548 or task info if the thread could not be created.
4550 2008-03-26 Arnaud Charlet <charlet@adacore.com>
4552 * gnatvsn.ads (Library_Version): Bump to 4.4.
4553 (Current_Year): Bump to 2008.
4555 2008-03-26 Robert Dewar <dewar@adacore.com>
4557 * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
4559 * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
4561 * debug.adb: Add debug flags d.r and d.v
4562 Add debug flag .T (Optimize_Alignment (Time))
4563 Add debug flag .S (Optimize_Alignment (Space))
4565 * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
4566 depending on setting of relevant debug flags.
4567 Replace use of Warnings_Off by Has_Warnings_Off
4568 (Freeze_Entity): In circuit for warning on suspicious convention
4569 actuals, do not give warning if subprogram has same entity as formal
4570 type, or if subprogram does not come from source.
4571 (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
4572 if Optimize_Alignment set to Space.
4574 * frontend.adb: Add call to Sem_Warn.Initialize
4575 Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
4576 Reset Optimize_Alignment mode from debug switches .S and .T
4578 * layout.adb (Layout_Composite_Object): Rewritten for
4579 Optimize_Aligment pragma.
4581 * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
4584 * opt.ads, opt.adb: (Optimize_Alignment): New global switch
4586 * par-prag.adb (N_Pragma): Chars field removed, use Chars
4587 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
4588 this change. Add entry for pragma Optimize_Alignment
4590 * sem_prag.adb (N_Pragma): Chars field removed, use Chars
4591 (Pragma_Identifier (..
4592 instead, adjustments throughout to accomodate this change.
4593 (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
4594 (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
4595 Add implementation of pragma Optimize_Alignment
4597 2008-03-26 Vincent Celier <celier@adacore.com>
4599 * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
4600 Improve memory usage to avoid use of stack.
4602 2008-03-26 Robert Dewar <dewar@adacore.com>
4604 * a-teioed.ads: Correct value of Default_Fill
4606 * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
4608 2008-03-26 Robert Dewar <dewar@adacore.com>
4610 * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
4611 with Current_Output (introduce Self).
4613 2008-03-26 Robert Dewar <dewar@adacore.com>
4615 * checks.adb (Ensure_Valid): Capture valid status if possible
4618 2008-03-26 Robert Dewar <dewar@adacore.com>
4620 * stand.ads: Deal with reordering of package standard declarations
4622 * cstand.adb: Put package Standard declarations in proper order
4624 2008-03-26 Robert Dewar <dewar@adacore.com>
4626 * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
4627 (Pragma_Identifier (.. instead.
4628 (OK_To_Reorder_Components): New flag
4629 (Has_Entries): Code cleanup.
4630 (Warnings_Off_Used): New flag
4631 (Warnings_Off_Used_Unmodified): New flag
4632 (Warnings_Off_Used_Unreferenced): New flag
4633 (Has_Warnings_Off): New function
4634 (Has_Unmodified): New function
4635 (Has_Unreferenced): New function
4636 (Is_Trivial_Subprogram): New flag
4637 (Is_Static_Dispatch_Table_Entity): New attribute.
4638 Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
4639 (more consistent with other similar names)
4640 (Access_Subprogram_Type): New classification function
4642 2008-03-26 Robert Dewar <dewar@adacore.com>
4644 * errout.ads: Document new !! insertion sequence
4646 * errout.adb (N_Pragma): Chars field removed, use Chars
4647 (Pragma_Identifier (.. instead.
4648 Replace use of Warnings_Off by Has_Warnings_Off
4649 (Error_Msg_Internal): Don't delete warning ending in !!
4651 2008-03-26 Robert Dewar <dewar@adacore.com>
4653 * par.adb (Check_No_Right_Paren): Removed no longer used
4655 * par-ch10.adb (N_Pragma): Chars field removed, use Chars
4656 (Pragma_Identifier (.. instead.
4658 * par-ch10.adb (P_Subunit): Improvement in error recovery and message
4660 * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
4661 par-ch4.adb: Minor improvements in error recovery and messages.
4663 * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
4666 * par-ch9.adb: Minor improvements in error recovery and messages
4667 (P_Protected): Better error recovery for "protected type x;"
4669 * par-util.adb: Minor improvements in error recovery and messages
4670 (Check_No_Right_Paren): Removed no longer used
4672 2008-03-26 Ed Schonberg <schonberg@adacore.com>
4674 * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
4675 that the prefix of an attribute is the type of the aggregate being
4678 2008-03-26 Javier Miranda <miranda@adacore.com>
4679 Robert Dewar <dewar@adacore.com>
4681 * exp_attr.adb (N_Pragma): Chars field removed.
4682 (Expand_N_Attribute_Reference): If the designated type associated with
4683 attribute 'Unrestricted_Access is a subprogram entity then replace it
4684 by an E_Subprogram_Type itype.
4685 Implement attribute Old
4687 * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
4689 * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
4691 New_Internal_Entity by call to Create_Itype to centralize calls
4692 building itypes, ad propagate the convention of the designated
4693 subprogram. In addition, disable the machinery cleaning constant
4694 indications from all entities in current scope when 'Unrestricted_Access
4695 corresponds with a node initializing a dispatch table slot.
4696 (Analyze_Attribute): Parameterless attributes returning a string or a
4697 type will not be called with improper arguments, so we can remove junk
4698 code that was dealing with this case.
4699 Implement attribute Old
4701 * snames.ads, snames.h, snames.adb: Add entries for attribute Old
4702 Add entry for pragma Optimize_Alignment
4703 New standard names Sync and Synchronize
4705 2008-03-26 Robert Dewar <dewar@adacore.com>
4706 Arnaud Charlet <charlet@adacore.com>
4708 * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
4710 (No_Exception_Propagation_Active): New function.
4711 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
4712 Update comments, and review all uses of No_Exception_Propagation, which
4713 are now correct and in sync with what gigi expects.
4715 * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
4717 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
4718 Update comments, and review all uses of No_Exception_Propagation, which
4719 are now correct and in sync with what gigi expects.
4721 2008-03-26 Ed Schonberg <schonberg@adacore.com>
4723 * sem_ch3.adb (Access_Definition): If the access type is the return
4724 result of a protected function, create an itype reference for it
4725 because usage will be in an inner scope from the point of declaration.
4726 (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
4727 OK_To_Reorder_Components.
4728 (Make_Index): If an overloaded range includes a universal integer
4729 interpretation, resolve to Standard.Integer.
4730 (Analyze_Subtype_Indication): Copy Convention to subtype
4731 (Check_Abstract_Interfaces): Complete semantic checks on the legality of
4732 limited an synchronized progenitors in type declaration and private
4733 extension declarations.
4735 * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
4736 protected subprogram body, determine proper scope from subprogram
4739 2008-03-26 Robert Dewar <dewar@adacore.com>
4741 * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
4744 2008-03-26 Gary Dismukes <dismukes@adacore.com>
4746 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
4747 of a heap allocator for a limited unconstrained function return when
4748 resstriction No_Allocators is active.
4749 (Analyze_Allocator): The restriction No_Allocators is now only checked
4750 on allocators that have Comes_From_Source set, as per RM-H.4(7).
4752 * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
4753 of a heap allocator for a limited unconstrained function return when
4754 resstriction No_Allocators is active.
4755 (Analyze_Allocator): The restriction No_Allocators is now only checked
4756 on allocators that have Comes_From_Source set, as per RM-H.4(7).
4757 (Has_Fixed_Op): If the name in a function call is Standard."*" and the
4758 operands are fixed-point types, the universal_fixed predefined operation
4759 is used, regardless of whether the operand type (s) have a primitive
4760 operation of the same name.
4762 2008-03-26 Javier Miranda <miranda@adacore.com>
4764 * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
4765 Is_Static_Dispatch_Table
4766 (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
4767 to Exchange_Declarations to exchange the private and full-view. Bug
4768 found working in this issue.
4769 (Expand_Dispatching_Call): Propagate the convention of the subprogram
4770 to the subprogram pointer type.
4771 (Make_Secondary_DT): Replace generation of Prim'Address by
4772 Address (Prim'Unrestricted_Access)
4773 (Make_DT): Replace generation of Prim'Address by
4774 Address (Prim'Unrestricted_Access)
4775 (Make_Disp_*_Bodies): When compiling for a restricted profile, use
4776 simple call form for single entry.
4777 (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
4778 tables of predefined primitives).
4779 (Make_Secondary_DT): Add support to handle access to dispatch tables of
4780 predefined primitives.
4781 (Make_Tags): Add entities to Access_Dispatch_Table associated with
4782 access to dispatch tables containing predefined primitives.
4784 * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
4785 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
4787 (Register_Predefined_DT_Entry): Updated to handle the new contents
4788 of attribute Access_Disp_Table (pointers to dispatch tables containing
4789 predefined primitives).
4791 * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
4793 (Find_Interface_ADT): Updated to skip the new contents of attribute
4794 Access_Dispatch_Table (pointers to dispatch tables containing predefined
4797 * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
4799 (Set_Convention): Use new function Is_Access_Subprogram_Type
4800 (Collect_Interfaces_Info): Updated to skip the new contents of attribute
4801 Access_Dispatch_Table (pointers to dispatch tables containing predefined
4804 * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
4805 expanded code avoiding calls to Build_Predef_Prims.
4806 (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
4807 call to Build_Get_Predefined_Prim_Op_Address.
4809 2008-03-26 Javier Miranda <miranda@adacore.com>
4811 * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
4812 subprogram Corresponding_Runtime_Package to know the runtime package
4813 that will provide support to a given protected type.
4815 * exp_ch9.adb (Add_Private_Declarations,
4816 Build_Protected_Subprogram_Call,
4817 Build_Protected_Entry, Build_Simple_Entry_Call,
4818 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
4819 Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
4820 cleanup using the new centralized subprogram Corresponding_Runtime
4821 Package to know the runtime package that provides support to
4822 a given protected type.
4824 2008-03-26 Ed Schonberg <schonberg@adacore.com>
4826 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
4827 assignment is within the initialization procedure for a packed array,
4828 and Initialize_Scalars is enabled, compile right-hand side with checks
4829 off, because the value is purposely out of range.
4831 2008-03-26 Vincent Celier <celier@adacore.com>
4833 * gnatcmd.adb: Add processing for GNAT SYNC
4835 * vms_conv.ads: (Command_Type): Add command Sync
4837 * vms_conv.adb (Initialize): Add Command_List data for new command Sync
4839 * vms_data.ads: Add entries for -gnatw.w
4840 Add qualifier for gnatstub --header-file option
4841 Add switches for GNAT SYNC
4843 * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
4844 (Add_Package_Name): New procedure
4845 (Package_Name_List): New function
4846 (Initialize): Add known package names to the list
4847 (Register_New_Package): Add the new package name to the list
4849 2008-03-26 Robert Dewar <dewar@adacore.com>
4851 * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
4852 s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
4853 Raise_Exception by "raise with" construct.
4855 2008-03-26 Pascal Obry <obry@adacore.com>
4857 * Makefile.in: Add proper GNAT.Serial_Communications implementation on
4858 supported platforms.
4860 * Makefile.rtl: Add g-sercom.o.
4862 * impunit.adb: Add g-sercom.adb.
4864 * s-crtl.ads (open): New routine.
4868 * s-osinte-mingw.ads (BYTE): New type.
4870 (OVERLAPPED): Likewise.
4871 (GENERIC_READ): New constant.
4872 (GENERIC_WRITE): Likewise.
4873 (OPEN_EXISTING): Likewise.
4874 (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
4876 (CreateFile): New routine.
4877 (WriteFile): Likewise.
4878 (ReadFile): Likewise.
4879 (CloseHandle): Move next to the other file oriented routines.
4881 * g-sercom.ads: New unit.
4883 * g-sercom.adb: Default implementation, calls to this unit will raise
4884 a program error exception.
4886 * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
4887 GNU/Linux implementations.
4889 2008-03-26 Robert Dewar <dewar@adacore.com>
4891 * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
4893 * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
4894 unchecked conversion for different conventions only for subprogram
4897 2008-03-26 Vincent Celier <celier@adacore.com>
4899 * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
4900 to check if the specified object file is correct.
4902 2008-03-26 Thomas Quinot <quinot@adacore.com>
4904 * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
4905 Comes_From_Source to exclude primitives from being checked. We want to
4906 exclude predefined primitives only, so use the appropriate specific
4907 predicate. Also, flag a formal parameter of an anonymous
4908 access-to-subprogram type as illegal for a primitive operation of a
4909 remote access to class-wide type.
4911 2008-03-26 Vincent Celier <celier@adacore.com>
4913 * prj-dect.adb (Parse_Package_Declaration): When a package name is not
4914 known, check if it may be a missspelling of a known package name. In
4915 not verbose, not mode, issue warnings only if the package name is a
4916 possible misspelling.
4917 In verbose mode, always issue a warning for a not known package name,
4918 plus a warning if the name is a misspelling of a known package name.
4920 * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
4921 limited withs or limited withs are parse during one call.
4922 (Parse_Single_Project): Post parse context clause in two passes: non
4923 limited withs before current project and limited withs after current
4926 * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
4927 project with the name With_Name, even if it is only extended indirectly.
4928 (Recursive_Process): Process projects in order: first single withs, then
4929 current project, then limited withs.
4931 * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
4932 project with the name With_Name, even if it is only extended indirectly.
4934 2008-03-26 Robert Dewar <dewar@adacore.com>
4936 * scn.adb (Initialize_Scanner): Format messages belong on standard error
4938 2008-03-26 Ed Schonberg <schonberg@adacore.com>
4940 * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
4941 a generic subprogram that is imported, do not attempt to compile
4944 * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
4945 imported, do not generate a raise_program_error for the non-existent
4947 (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
4948 perform minimal name resolution on the generic to avoid spurious
4950 (Find_Actual_Type): the designated type of the actual in a child unit
4951 may be declared in a parent unit without being an actual.
4953 2008-03-26 Robert Dewar <dewar@adacore.com>
4955 * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
4956 * sinfo.ads, sinfo.adb (From_At_End): New flag
4958 2008-03-26 Ed Schonberg <schonberg@adacore.com>
4960 * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
4961 operations that have an interface parameter.
4962 (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
4963 Don't treat No_Return call as raise.
4965 * sem_disp.adb (Check_Dispatching_Operations): apply check for
4966 non-primitive interface primitives to access parameters, not to all
4967 parameters of an access type.
4969 2008-03-26 Ed Schonberg <schonberg@adacore.com>
4971 * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
4972 declarations of a parent unit are made visible when compiling a child
4973 instance, the parent is not a hidden open scope, even though it may
4974 contain other pending instance.
4976 * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
4977 hidden open scope for some child instance, it does affect the
4978 visibility status of other stach entries.
4979 (Analyze_Object_Renaming): Check that a class-wide object cannot be
4980 renamed as an object of a specific type.
4982 2008-03-26 Robert Dewar <dewar@adacore.com>
4984 * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
4985 recursion and raise SE directly.
4986 (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
4987 set for formal type for IN mode parameter.
4989 2008-03-26 Robert Dewar <dewar@adacore.com>
4991 * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
4992 (Initialize): New procedure
4993 (Output_Warnings_Off_Warnings): New procedure
4994 (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
4995 (Output_Non_Modifed_In_Out_Warnings): Ditto
4996 (Warn_On_Unreferenced_Entity): Ditto
4998 2008-03-26 Vincent Celier <celier@adacore.com>
5000 * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
5003 2008-03-26 Matthew Heaney <heaney@adacore.com>
5005 * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads,
5006 a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
5007 Marked with clauses as private, and controlled operations as overriding
5009 2008-03-26 Robert Dewar <dewar@adacore.com>
5011 * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
5013 2008-03-26 Robert Dewar <dewar@adacore.com>
5015 * back_end.adb, back_end.ads: Minor reformatting
5017 * bindgen.adb: Minor clarification of comments
5019 * fname.ads: Minor comment fixes
5021 * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
5022 prj-nmsc.adb, sem_aggr.adb: Minor reformatting
5024 * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
5025 xsnames.adb: Remove warnings off pragma no longer needed
5027 * a-catizo.ads, a-calari.ads, a-calfor.adb,
5028 a-calfor.ads: Fix header.
5030 2008-03-26 Tristan Gingold <gingold@adacore.com>
5032 * init.c: Do not adjust pc for HPARITH on alpha/vms.
5034 2008-03-26 Robert Dewar <dewar@adacore.com>
5036 * lib-xref.adb: (OK_To_Set_Reference): New function
5037 (Generate_Reference): Don't set referenced from occurrence in Warnings,
5038 Unmodified, or Unreferenced pragma
5040 2008-03-26 Robert Dewar <dewar@adacore.com>
5042 * alloc.ads: Add entries for Warnings_Off_Pragmas table
5044 2008-03-26 GNAT Script <nobody@adacore.com>
5046 * Make-lang.in: Makefile automatically updated
5048 2008-03-26 Robert Dewar <dewar@adacore.com>
5050 * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
5051 par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
5052 removed, use Chars (Pragma_Identifier (.. instead, adjustments
5053 throughout to accomodate this change.
5055 * s-pooglo.ads, s-pooloc.ads: Minor comment updates
5057 * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
5058 Einfo.Set_Needs_Debug_Info)
5060 2008-03-26 Robert Dewar <dewar@adacore.com>
5062 * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
5063 Add description for the new gnatstub option '--header-file'
5064 clarification of -gnatwz/-gnatwZ
5065 Add a "Irix-Specific Considerations" section to document the need to
5066 set LD_LIBRARY_PATH when using the default shared runtime library.
5067 Added documentation for both gcov and gprof.
5069 * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
5070 messages that are not suppressed when clients are compiled.
5071 Add documentation of s-pooglo s-pooloc
5072 Document the new GNAT.Serial_Communications API.
5073 Add documentation for 'Old attribute
5074 Add description of pragma Optimize_Alignment
5076 * ug_words: Add entries for -gnatw.w -gnatw.W
5078 * usage.adb: Add line for -gnatw.w (warn on warnings off)
5080 2008-03-25 Eric Botcazou <ebotcazou@adacore.com>
5083 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
5085 * decl.c (maybe_pad_type): Avoid padding an integral type when
5086 bumping its alignment is sufficient.
5088 2008-03-25 Arnaud Charlet <charlet@adacore.com>
5090 * exp_ch6.adb, exp_disp.adb: Update copyright notice.
5091 Fix wrong formatting (lines too long)
5093 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5095 * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
5096 a-calend-vms.adb, a-calend.adb, a-calend.ads,
5097 a-calfor.adb, a-chahan.ads, a-chtgke.adb,
5098 a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
5099 a-cohama.ads, a-comlin.ads, a-coorse.adb,
5100 a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
5101 a-except-2005.ads, a-except.adb, a-except.ads,
5102 a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
5103 a-exextr.adb, a-filico.ads, a-finali.ads,
5104 a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
5105 a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
5106 a-sequio.ads, a-strbou.ads, a-strfix.adb,
5107 checks.adb, exp_ch3.adb, exp_ch4.adb,
5108 exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
5109 exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
5110 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
5111 exp_dbug.ads, exp_disp.adb, exp_dist.adb,
5112 exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
5114 2008-03-24 Robert Dewar <dewar@adacore.com>
5116 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
5117 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
5118 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
5119 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
5120 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
5121 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
5122 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
5123 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
5124 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
5125 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
5126 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
5127 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
5128 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
5129 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
5130 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
5131 double spaced if it fits on one line and otherwise single spaced.
5133 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5135 PR documentation/15479
5136 * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
5137 (doc/gnat_ugn_unw.texi): ... this, and adjusted.
5138 (doc/gnat_ugn.info): Renamed from ...
5139 (doc/gnat_ugn_unw.info): ... this.
5140 (doc/gnat_ugn.dvi): Renamed from ...
5141 (doc/gnat_ugn_unw.dvi): ... this.
5142 (doc/gnat_ugn.pdf): Renamed from ...
5143 (doc/gnat_ugn_unw.pdf): ... this.
5144 (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
5146 * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
5147 unconditionally to gnat_ugn.info. Fix cross references to the
5148 GNAT Reference Manual. Convert links to the GCC, GDB, Emacs,
5149 and GNU make manuals to be proper texinfo links.
5150 * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
5152 2008-03-21 Olivier Hainque <hainque@adacore.com>
5154 * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
5155 ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
5157 2008-03-21 Eric Botcazou <ebotcazou@adacore.com>
5159 * trans.c (addressable_p): Add notes on addressability issues.
5161 2008-03-21 Olivier Hainque <hainque@adacore.com>
5162 Ed Schonberg <schonberg@adacore.com>
5164 * trans.c (addressable_p): Accept COND_EXPR when both arms
5166 (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
5167 (call_to_gnu): Do not use name reference in the error message
5168 for a misaligned by_reference_parameter. The actual may be a
5171 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
5173 * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
5175 2008-03-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5177 * gnat_rm.texi (Implementation Defined Characteristics)
5178 (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
5180 * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
5181 (Switches for gnatchop, Installing a library): Likewise.
5183 2008-03-10 Eric Botcazou <ebotcazou@adacore.com>
5185 * trans.c (emit_range_check): Do not emit the check if the base type
5186 of the expression is the type against which its range must be checked.
5188 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5190 * decl.c (maybe_pad_type): Use value_factor_p.
5192 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5194 * lang.opt (nostdlib): Move around.
5195 * misc.c (gnat_handle_option): Fix formatting.
5196 (gnat_dwarf_name): Move around.
5197 * trans.c (Case_Statement_to_gnu): Fix formatting.
5198 (gnat_to_gnu): Likewise.
5199 * utils.c (aggregate_type_contains_array_p): Likewise.
5200 (create_subprog_decl): Likewise.
5202 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5204 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
5205 bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
5207 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5209 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
5210 BIGGEST_ALIGNMENT when capping the alignment of records with
5211 strict alignment and size clause.
5213 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5215 * lang-specs.h: Pass -gnatwa if -Wall is passed.
5216 * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
5217 and -Wuninitialized.
5218 (gnat_post_options): Clear warn_unused_parameter.
5220 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5222 * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
5223 aligned bit-fields, bumping the alignment of the record type if deemed
5225 (value_factor_p): Return false instead of 0.
5227 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5229 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
5230 for scalar types with small alignment.
5232 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5234 * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
5235 from that of the front-end's end label.
5236 (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
5237 from that of the loop label.
5239 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
5241 * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
5242 comment for the packed array type case.
5243 * utils.c (build_template): Use a loop to strip padding or
5244 containing records for justified modular types.
5246 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
5248 * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
5249 large alignments specified for types.
5250 (validate_alignment): Minor cleanup.
5252 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
5254 * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
5255 (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
5256 the component for packing, if possible, as well as if a component
5257 size clause is specified.
5258 <E_Record_Subtype>: For an array type used to implement a packed
5259 array, get the component type from the original array type.
5260 Try to get a smaller form of the component for packing, if possible,
5261 as well as if a component size clause is specified.
5262 (round_up_to_align): New function.
5263 (make_packable_type): Add in_record parameter.
5264 For a padding record, preserve the size. If not in_record and the
5265 size is too large for an integral mode, attempt to shrink the size
5266 by lowering the alignment.
5267 Ditch the padding bits of the last component.
5268 Compute sizes and mode manually, and propagate the RM size.
5269 Return a BLKmode record type if its size has shrunk.
5270 (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
5271 Use Original_Array_Type to retrieve the type in case of an error.
5272 Adjust call to make_packable_type.
5273 (gnat_to_gnu_field): Likewise.
5274 (concat_id_with_name): Minor tweak.
5275 * trans.c (larger_record_type_p): New predicate.
5276 (call_to_gnu): Compute the nominal type of the object only if the
5277 parameter is by-reference. Do the conversion actual type -> nominal
5278 type if the nominal type is a larger record.
5279 (gnat_to_gnu): Do not require integral modes on the source type to
5280 avoid the conversion for types with identical names.
5281 (addressable_p): Add gnu_type parameter. If it is specified, do not
5282 return true if the expression is not addressable in gnu_type.
5283 Adjust recursive calls.
5284 * utils.c (finish_record_type): Remove dead code.
5286 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
5289 * decl.c (maybe_pad_type): Avoid padding an integral type when
5290 bumping its alignment is sufficient.
5292 2008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5294 * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
5295 * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
5297 * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
5298 gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
5299 sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
5300 code output strings.
5301 * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
5302 system-vms_64.ads: Fix typos in ada source code comments.
5303 * sinfo-cn.adb: Remove incomplete sentence.
5305 PR documentation/15479
5306 * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
5308 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
5311 * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
5313 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
5316 * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
5317 that underlying type is present.
5319 2008-02-26 Tom Tromey <tromey@redhat.com>
5321 * misc.c (internal_error_function): Remove test of
5322 USE_MAPPED_LOCATION.
5323 * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
5324 (Sloc_to_locus): Remove old location code.
5326 2008-02-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5328 * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
5329 `i.e.' by adding comma or `@:' as appropriate.
5330 * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
5331 plain characters `C', use `@samp{C}'.
5332 * gnat_ugn.texi (File Naming Rules, About gnatkr)
5333 (Krunching Method): Likewise.
5335 * gnat_ugn.texi (Conventions): List environment variables and
5336 metasyntactic variables.
5337 (Compiling Programs): Fix notation of metasyntactic variables.
5338 Add @file where appropriate. Use @file for file extensions,
5340 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
5341 instead of @file, @env instead of @code.
5343 2008-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5345 PR documentation/15479
5346 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
5347 and `...' with `@dots{}' or `@enddots{}'.
5349 PR documentation/15479
5350 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
5351 use @command instead of @code, @option instead of @samp or @code,
5352 @code instead of @var, @samp instead of @file.
5354 PR documentation/15479
5355 * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
5356 in Makefile rules, by using `&&' rather than `;'.
5358 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5360 PR documentation/15479
5361 * gnat_ugn.texi: In non-code, avoid space before colon.
5362 (Regular Expressions in gnatfind and gnatxref): Fix indentation.
5363 (Examples of gnatxref Usage): Use @command{vi} instead of
5365 (Character Set Control): Do not use @code for UTF-8.
5366 (Validity Checking): Fix typo "NaNs" instead of "NaN's". Do not
5368 * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
5370 * gnat_rm.texi, gnat_ugn.texi: Fix typos. Bump copyright years.
5372 2008-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
5375 * env.c: Add __rtems__ to if defined.
5376 * s-osinte-rtems.adb: Add To_Target_Priority. Fix formatting.
5377 * s-osinte-rtems.ads: Add To_Target_Priority prototype and
5378 PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants. Add
5379 pragma Convention as required.
5380 * gsocket.h: Make compile in and out of RTS.
5381 * Makefile.in: Add system-rtems.ads. Build DEC extensions.
5382 Use g-soccon-rtems.ads.
5383 * g-soccon-rtems.ads, system-rtems.ads: New files.
5385 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5388 * Make-lang.in (gnat1): Add $(GMPLIBS).
5390 2008-01-26 Eric Botcazou <ebotcazou@adacore.com>
5392 * decl.c (components_to_record): Improve comment.
5394 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
5396 * decl.c (components_to_record): Do not reuse the empty union type
5397 if there is a representation clause on the record.
5398 * trans.c (addressable_p): Return true for INTEGER_CST.
5400 2008-01-21 Eric Botcazou <ebotcazou@adacore.com>
5402 * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
5403 in pointer arithmetics.
5404 * utils2.c (build_allocator): Likewise.
5406 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
5408 * utils.c (build_function_stub): Properly build the call expression.
5410 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
5412 * decl.c (gnat_to_gnu_entity) <object>: Process renamings
5413 before converting the expression to the type of the object.
5414 * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
5415 Stabilize constructors for special wrapping types.
5417 2008-01-13 Eric Botcazou <ebotcazou@adacore.com>
5419 * trans.c (call_to_gnu): Invoke the addressable_p predicate only
5420 when necessary. Merge some conditional statements. Update comments.
5421 Rename unchecked_convert_p local variable to suppress_type_conversion.
5422 Do not suppress conversions in the In case.
5423 (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
5424 into account on non strict-alignment platforms.
5426 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
5428 * utils.c (aggregate_type_contains_array_p): New predicate.
5429 (create_field_decl): In a packed record, force byte alignment
5430 for fields without specified position that contain an array.
5432 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
5434 * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
5436 2008-01-10 John David Anglin <dave.anglin.@nrc-cnrc.gc.ca>
5439 * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
5441 (bit_field): New packed boolean type used by cpu_set_t.
5442 (cpu_set_t): New type corresponding to the C type with
5443 the same name. Note that on the Ada side we use a bit
5444 field array for the affinity mask. There is not need
5445 for the C macro for setting individual bit.
5446 (pthread_setaffinity_np): New imported routine.
5448 2008-01-03 Tero Koskinen <tero.koskinen@iki.fi>
5451 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
5452 on OpenBSD as is done on other BSD systems.
5455 * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
5456 getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
5460 * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
5464 * init.c (__gnat_error_handler, __gnat_install_handler,
5465 __gnat_init_float): Define for OpenBSD.
5467 * initialize.c (__gnat_initialize): Define for OpenBSD.
5469 2007-12-27 Samuel Tardieu <sam@rfc1149.net>
5472 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
5473 instead of mktemp() or tmpnam() on NetBSD.
5475 2007-12-23 Eric Botcazou <ebotcazou@adacore.com>
5477 * trans.c (call_to_gnu): Make the temporary for non-addressable
5478 In parameters passed by reference.
5479 (addressable_p): Return true for STRING_CST and CALL_EXPR.
5481 2007-12-19 Robert Dewar <dewar@adacore.com>
5483 * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
5484 Add pragma Warnings (Off) for unassigned IN OUT arguments
5486 * sem_warn.adb (Output_Reference): Suppress messages for internal names
5487 (Check_References): Extensive changes to tune up warnings
5488 (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
5489 (Has_Pragma_Unmodifed_Check_Spec): New function
5490 (Check_References): Implement pragma Unmodified
5491 (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
5493 * par-prag.adb: Dummy entry for pragma Unmodified
5495 * sem_prag.adb: Implement pragma Unmodified
5497 * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
5498 (Proc_Next_Component_Or_Discriminant): Fix typo.
5501 * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
5503 (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
5504 because the former already takes care of discarding the result.
5505 (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
5508 * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
5510 2007-12-19 Eric Botcazou <ebotcazou@adacore.com>
5512 * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
5513 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
5514 system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
5515 system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
5516 system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
5517 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
5518 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
5519 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
5520 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
5521 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
5522 (Dynamic_Trampolines_Used): Delete.
5524 * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
5525 Turn on stack probing mechanism on LynxOS.
5527 2007-12-19 Bob Duff <duff@adacore.com>
5529 * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
5530 the resulting tail recursion by hand. This prevents running out of
5531 memory on deeply nested concatenations, since Field2 is where the left
5532 operand of concatenations is stored.
5533 Fix bug (was returning OK_Orig in some cases). Fix return subtype to
5534 clarify that it can only return OK or Abandon.
5536 * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
5537 operand by iteration, in order to avoid running out of memory on
5538 deeply-nested concatenations. Use the Parent pointer to get back up the
5540 (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
5541 Resolve_Op_Concat_Rest): New procedures split out of
5542 Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
5545 * checks.adb (Remove_Checks): Use Traverse_Proc instead of
5546 Traverse_Func, because the former already takes care of discarding the
5549 * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
5550 because the former already takes care of discarding the result.
5551 (Remove_Warning_Messages): Use appropriate subtype for Status and
5554 2007-12-19 Ed Schonberg <schonberg@adacore.com>
5556 * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
5557 discriminants forces expansion of the aggregate into assignments.
5558 (Init_Record_Controller): If the type of the aggregate is untagged and
5559 is not inherently limited, the record controller is not limited either.
5561 2007-12-19 Robert Dewar <dewar@adacore.com>
5563 * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
5564 handling compile time known size of record or array (case of front end
5565 layout active, e.g. in GNAAMP).
5567 2007-12-19 Javier Miranda <miranda@adacore.com>
5569 * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
5570 that forces the construction of static dispatch tables in case of
5573 2007-12-19 Robert Dewar <dewar@adacore.com>
5575 * exp_ch9.adb (Null_Statements): Moved to library level
5576 (Trivial_Accept_OK): New function
5577 (Expand_Accept_Declaration): Use Trivial_Accept_OK
5578 (Expand_N_Accept_Statement): Use Trivial_Accept_OK
5580 2007-12-19 Robert Dewar <dewar@adacore.com>
5582 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
5583 in complex case where array is Volatile.
5585 2007-12-19 Ed Schonberg <schonberg@adacore.com>
5587 * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
5588 properly the Ada2005 rules concerning when the current instance of a
5589 record type is aliased.
5591 2007-12-19 Ed Schonberg <schonberg@adacore.com>
5593 * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
5595 (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
5597 (P_Variant_Part): Cleaner patch for parenthesized discriminant
5599 2007-12-19 Vincent Celier <celier@adacore.com>
5601 * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
5602 package is not known
5604 * prj-attr.ads (Unknown_Package): New constant
5605 Do not crash when an unknown package is in several projects
5607 * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
5610 * prj-nmsc.adb (Check): Remove obsolete code related to no longer
5611 existing package Language_Processing.
5613 2007-12-19 Ed Schonberg <schonberg@adacore.com>
5614 Gary Dismukes <dismukes@adacore.com>
5615 Samuel Tardieu <sam@rfc1149.net>
5617 PR ada/15803, ada/15805
5618 * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
5619 illegal access subtypes when there is a constrained partial view.
5620 (Check_For_Premature_Usage): New procedure inside
5621 Access_Subprogram_Declaration for checking that an access-to-subprogram
5622 type doesn't reference its own name within any formal parameters or
5623 result type (including within nested anonymous access types).
5624 (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
5625 (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
5626 context is an access_to_variable, the expression cannot be an
5629 2007-12-19 Bob Duff <duff@adacore.com>
5631 * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
5632 (Analyze_Concatenation): Use iteration instead of recursion in order
5633 to avoid running out of stack space for deeply nested concatenations.
5635 2007-12-19 Ed Schonberg <schonberg@adacore.com>
5636 Gary Dismukes <dismukes@adacore.com>
5638 * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
5639 whose renamed entity is a subprogram that requires overriding.
5640 (Premature_Usage): Test for the case of N_Full_Type_Declaration when
5641 issuing an error for premature usage and issue a message that says
5642 'type' rather than 'object'.
5644 2007-12-19 Gary Dismukes <dismukes@adacore.com>
5647 * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
5648 presence of a statically tagged operand (Present (Static_Tag)) with
5649 test for Indeterm_Ancestor_Call when determining whether to propagate
5650 the static tag to tag-indeterminate operands (which forces dispatching
5652 (Check_Controlling_Formals): Ada2005, access parameters can have
5654 (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
5655 not insert subprogram in list of primitive operations if already there.
5657 2007-12-19 Tristan Gingold <gingold@adacore.com>
5659 * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
5662 2007-12-19 Thomas Quinot <quinot@adacore.com>
5664 Part of PR ada/33688
5665 * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
5666 datagram info on Linux.
5668 2007-12-19 Vincent Celier <celier@adacore.com>
5670 * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
5671 that the source path name is always found in the dependencies.
5673 2007-12-19 Robert Dewar <dewar@adacore.com>
5675 * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
5676 Fix name of Wide_Wide_Latin_1/9 file names
5677 Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
5678 Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
5679 Add missing documentation for Ada.Command_Line.Response_File
5680 Update list of warning letters for Warnings pragma
5681 Add documentation for pragma Unmodified
5683 2007-12-19 Samuel Tardieu <sam@rfc1149.net>
5685 * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
5687 2007-12-17 Arnaud Charlet <charlet@adacore.com>
5689 * s-vxwork-alpha.ads: Removed, no longer used.
5691 2007-12-15 Jakub Jelinek <jakub@redhat.com>
5693 * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
5695 2007-12-13 Samuel Tardieu <sam@rfc1149.net>
5698 * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
5699 mlib-tgt-specific.adb.
5701 2007-12-13 Bob Duff <duff@adacore.com>
5703 * trans.c (Attribute_to_gnu): Check for violations of the
5704 No_Implicit_Dynamic_Code restriction. This checking used to be done in
5705 the front end, but is moved here so we can make it more accurate.
5707 2007-12-13 Pascal Obry <obry@adacore.com>
5709 * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
5710 version is provided for older GNU/Linux distribution not
5711 supporting thread affinity sets.
5713 * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
5715 (bit_field): New packed boolean type used by cpu_set_t.
5716 (cpu_set_t): New type corresponding to the C type with
5717 the same name. Note that on the Ada side we use a bit
5718 field array for the affinity mask. There is not need
5719 for the C macro for setting individual bit.
5720 (pthread_setaffinity_np): New imported routine.
5722 * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
5724 (Create_Task): Set the processor affinity mask if information
5727 * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
5729 2007-12-13 Robert Dewar <dewar@adacore.com>
5731 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
5732 s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
5733 s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
5734 s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
5735 s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
5736 s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
5737 s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
5738 i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
5739 for subprogram pointers.
5741 * g-ctrl_c.adb: New file.
5743 * g-ctrl_c.ads (Install_Handler): New body.
5745 * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
5746 instead of obsolete function Is_Always_Inlined.
5747 (Freeze_Entity): check for tagged type in imported C subprogram
5748 (Freeze_Entity): check for 8-bit boolean in imported C subprogram
5749 (Freeze_Entity): check for convention Ada subprogram pointer in
5750 imported C subprogram.
5751 (Freeze_Fixed_Point_Type): In the case of a base type where the low
5752 bound would be chopped off and go from negative to zero, force
5753 Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
5754 bound) so that the size computation for the base type will take
5755 negative values into account.
5757 2007-12-13 Eric Botcazou <ebotcazou@adacore.com>
5758 Bob Duff <duff@adacore.com>
5759 Tristan Gingold <gingold@adacore.com>
5761 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
5762 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
5763 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
5764 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
5765 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
5766 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
5767 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
5768 system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
5769 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
5770 system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
5771 system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
5772 (Always_Compatible_Rep): New flag to control trampolines globally.
5773 (Dynamic_Trampolines_Used): New flag for implementing the
5774 No_Implicit_Dynamic_Code restriction more correctly (not yet used,
5775 and not yet set correctly for some targets).
5777 * s-taprop-vxworks.adb: Use stack limit method of stack checking.
5778 Simply indirectly call s-stchop when a task is created.
5781 New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
5782 appears as an argument (entries A) in an ALI file.
5784 * fe.h (Stack_Check_Limits): Declare new target parameter.
5785 (Check_Implicit_Dynamic_Code_Allowed): New procedure.
5787 * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
5788 This variable is declared in C to be sure not subject to elaboration
5790 (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
5793 * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
5794 (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
5796 * s-stchop.ads: Add comments.
5798 * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
5799 limit method of stack checking.
5801 * s-stchop-limit.ads: New file.
5803 2007-12-13 Robert Dewar <dewar@adacore.com>
5805 * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
5806 a-cihama.adb, g-awk.adb,
5807 s-inmaop-posix.adb: Update handling of assigned value/unreferenced
5810 * exp_smem.adb: Update handling of assigned value/unreferenced warnings
5812 * sem.adb: Update handling of assigned value/unreferenced warnings
5814 * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
5816 * lib-xref.ads: Improve documentation for k xref type
5819 Update handling of assigned value/unreferenced warnings
5820 (Generate_Reference): Warning for reference to entity for which a
5821 pragma Unreferenced has been given should be unconditional.
5822 If the entity is a discriminal, mark the original
5823 discriminant as referenced.
5825 * sem_warn.ads, sem_warn.adb
5826 (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
5827 no entities referenced in package
5828 (Check_One_Unit): Don't give message about no entities referenced in
5829 a package if a pragma Unreferenced has appeared.
5830 Handle new warning flag -gnatw.a/-gnatw.A
5831 Update handling of assigned value/unreferenced warnings
5833 * atree.h: Add flags up to Flag247
5834 (Flag231): New macro.
5836 2007-12-13 Jose Ruiz <ruiz@adacore.com>
5838 * adaint.h: (__gnat_plist_init): Not defined for RTX.
5840 * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
5843 * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
5844 (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
5845 EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
5846 GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
5849 Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
5851 * sysdep.c (winflush_function for RTX): Procedure that does nothing
5852 since we only have problems with Windows 95/98, which are not
5854 (__gnat_ttyname): Return the empty string on Nucleus, just as
5857 2007-12-13 Robert Dewar <dewar@adacore.com>
5859 * a-textio.adb, a-textio.ads:
5860 Extensive changes to private part for wide character encoding
5862 * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
5863 (Look_Ahead): Fix mishandling of encoded sequences
5864 Move declaration of Wch_Con to private part (should not be visible)
5866 * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
5867 UTF-8. Probably this is never used, but if it is, brackets is
5870 * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
5871 setting wide character encoding for no main program case and when
5872 encoding is specified using -W?
5873 Initialize stack limit of environment task if stack limit method of
5874 stack checking is enabled.
5875 (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
5876 (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
5877 (Get_Main_Unit_Name): New function.
5878 (Gen_Adainit_Ada): Add call to main program for .NET when needed.
5879 (Gen_Output_File): Set Bind_Main_Program to True for .NET
5881 * bindusg.adb: Add line for -Wx switch
5883 * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
5885 Add new useful constant WC_Longest_Sequences
5887 * switch-b.adb: Clean up handling of -Wx switch
5888 For -gnatWx, set Wide_Character_Encoding_Method_Specified
5890 * switch-c.adb: -gnatg activates warning on assertion errors
5891 For -gnatWx, set Wide_Character_Encoding_Method_Specified
5893 * s-wchcon.adb: (Is_Start_Of_Encoding): New function
5895 2007-12-13 Robert Dewar <dewar@adacore.com>
5896 Ed Schonberg <schonberg@adacore.com>
5898 * a-ngcoty.adb: New pragma Fast_Math
5900 * opt.adb: New pragma Fast_Math
5903 Add Implemented_By_Entry to the list of pragmas which do not require any
5905 (Favor_Top_Level): New pragma.
5906 New pragma Fast_Math
5908 * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
5909 (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
5910 Expand_Allocator_Expression): Take into account VM_Target
5911 (Expand_Attribute, case 'Identity): Handle properly the case where
5912 the prefix is a task interface.
5913 New pragma Fast_Math
5915 * par.adb (Next_Token_Is): New function
5916 (P_Pragma): Add Skipping parameter
5917 (U_Left_Paren): New procedure
5918 (U_Right_Paren): New procedure
5919 New pragma Fast_Math
5921 * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
5923 New pragma Fast_Math
5925 * sem_prag.adb: Add significance value to table Sig_Flag for pragma
5926 Implemented_By_Entry.
5927 (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
5928 (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
5929 items, since it can apply to more than one overloadable entity. Set
5930 new flag Has_Pragma_Inline_Always for Inline_Always case.
5931 (Analyze_Pragma, case Complex_Representation): Improve error message.
5932 (Analyze_Pragma, case Assert): When assertions are disabled build the
5933 rewritten code with Sloc of expression rather than pragma, so new
5934 warning about failing is not deleted.
5935 (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
5936 protected types and update error message to reflect that. Test whether
5937 the protected type is allowed for the pragma (an error is issued if the
5938 type has any entries, or components that do not have preelaborable
5940 New pragma Fast_Math
5941 (Analyze_Pragma, case No_Return): Handle generic instance
5943 * snames.h, snames.ads, snames.adb:
5944 Add new predefined name for interface primitive _Disp_Requeue.
5945 New pragma Fast_Math
5947 * a-tags.ads, a-tags.adb: New calling sequence for
5948 String_To_Wide_[Wide_]String
5949 (Secondary_Tag): New subprogram.
5951 * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
5953 New calling sequence for String_To_Wide_[Wide_]String
5954 (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
5955 the use of the secondary stack for image routines.
5957 * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
5958 calling sequence for String_To_Wide_[Wide_]String
5960 * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
5962 (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
5963 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5965 * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
5966 (P_Formal_Part): Use Skipping parameter in P_Pragma call
5967 to improve error recovery
5969 * par-util.adb (Next_Token_Is): New function
5970 (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
5972 * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
5973 semicolon if missing
5974 (P_Pragma): Implement new Skipping parameter
5975 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5976 Fix location of flag for unrecognized pragma message
5978 * par-tchk.adb (U_Left_Paren): New procedure
5979 (U_Right_Paren): New procedure
5981 2007-12-13 Geert Bosch <bosch@adacore.com>
5984 (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
5985 the second or later Scaled_Divide would omit leading zeroes,
5986 resulting in too few digits produced and a Layout_Error as result.
5987 (Put): Initialize Pos.
5989 2007-12-13 Robert Dewar <dewar@adacore.com>
5991 atree.ads, atree.adb (Flag231..Flag247): New functions
5992 (Set_Flag231..Set_Flag247): New procedures
5993 (Basic_Set_Convention): Rename Set_Convention to be
5994 Basic_Set_Convention
5995 (Nkind_In): New functions
5996 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5998 * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
6000 of obsolete function Is_Always_Inlined
6001 (Register_Predefined_DT_Entry): Initialize slots of the second
6002 secondary dispatch table.
6003 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6004 (Expand_N_Function_Call): Remove special provision for stack checking.
6006 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
6007 Include _Disp_Requeue in the list of predefined operations.
6008 (Find_Interface_ADT): Modified to fulfill the new specification.
6009 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6011 * par-ch4.adb, nlists.ads, nlists.adb:
6012 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6014 * sinfo.ads, sinfo.adb: (Nkind_In): New functions
6015 Fix location of flag for unrecognized pragma message
6017 * sem_ch7.adb: Use Nkind_In
6019 2007-12-13 Vincent Celier <celier@adacore.com>
6022 Indicate what flags are used by the Project Manager, gprbuild and
6024 (Opt.Follow_Links_For_Dirs): New flag
6025 (Warn_On_Assertion_Failure): New flag
6026 (Wide_Character_Encoding_Method_Specified): New flag
6027 (Suppress_All_Inlining): New switch set by -fno-inline
6028 (Real_VMS_Target): New flag
6029 New pragma Fast_Math
6031 2007-12-13 Robert Dewar <dewar@adacore.com>
6033 * back_end.adb: Recognize -fno-inline
6035 2007-12-13 Robert Dewar <dewar@adacore.com>
6037 * checks.adb: Fix optimization problem with short-circuited form
6039 2007-12-13 Bob Duff <duff@adacore.com>
6041 * clean.adb (Usage): Add line for -aP
6042 (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
6043 with a parameter "procedure Usage", instead of passing a pointer to a
6044 procedure. This is to eliminate trampolines (since the Usage procedure
6045 is often nested in a main procedure, and it would be inconvenient to
6048 * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
6049 to be generic, with a parameter "procedure Callback (...)", instead of
6050 passing a pointer to a procedure. This is to eliminate trampolines
6051 (since the Callback procedure is usually nested).
6053 * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
6054 gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
6055 (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
6057 * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
6058 Use the generic Heap_Sort_G instead of Heap_Sort_A.
6060 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
6062 * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
6063 (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
6064 (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
6065 (Renamed_In_Spec): New flag
6066 (Has_Pragma_Inline_Always): New flag
6067 Add missing doc for pragma Obsolescent_Warning
6068 Add missing doc for 17 additional unused flags (230-247)
6069 (Is_Derived_Type): Remove condition "not Is_Generic_Type".
6070 Alphabetize with clauses.
6071 Separate Is_Thunk and Has_Thunks flags
6072 (Write_Entity_Flags): Add forgotten entry for Has_Thunks
6073 (Related_Interface): Renamed to Related_Type.
6074 (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
6075 (Set_Is_Flag): Restrict the assertion.
6077 2007-12-13 Vincent Celier <celier@adacore.com>
6079 * errout.adb (Output_Source_Line): Do not keep a trailing space after
6080 the source line number if the source line is empty.
6082 2007-12-13 Geert Bosch <bosch@adacore.com>
6084 * eval_fat.adb (Decompose_Int): Handle argument of zero.
6085 (Compose): Remove special casing of zero.
6086 (Exponent): Likewise.
6087 (Fraction): Likewise.
6088 (Machine): Likewise.
6089 (Decompose): Update comment.
6091 2007-12-13 Ed Schonberg <schonberg@adacore.com>
6093 * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
6094 limited ancestor part, initialize controllers of enclosing record
6095 before expanding ancestor aggregate.
6096 (Gen_Assign): If a component of the aggregate is box-initialized, add
6097 code to call Initialize if the component is controlled, and explicit
6098 assignment of null if the component is an access type.
6100 Handle properly aggregates for limited types that appear in object
6101 declarations when the aggregate contains controlled values such as
6103 When expanding limited aggregates into individual components, do not
6104 call Adjust on controlled components that are limited.
6106 2007-12-13 Ed Schonberg <schonberg@adacore.com>
6108 * expander.adb: Take into account N_Subprogram_Renaming_Declaration
6110 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
6112 * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
6113 predefined primitive _Disp_Requeue.
6114 (Make_Predefined_Primitive_Specs): Create the spec for predefined
6115 primitive _Disp_Requeue.
6116 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
6117 type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
6118 (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
6119 an interface type. In case of limited interfaces we now declare all the
6120 predefined primitives associated with synchronized interfaces as
6122 (Predef_Spec_Or_Body): For interface types generate abstract subprogram
6124 (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
6125 tagged type is an interface type and there is no user-defined equality
6127 Add also bodies of predefined primitives associated with synchronized
6129 (Freeze_Record_Type): Do not build bodies of predefined primitives of
6130 interface types because they are now defined abstract.
6131 Add missing documentation.
6132 (Expand_Record_Controller): Update occurrence of Related_Interface
6134 (Build_Offset_To_Top_Functions): Do nothing in case of VM.
6135 (Expand_N_Object_Declaration): Take into account VM_Target when handling
6136 class wide interface object declaration.
6137 (Expand_Previous_Access_Type): Do not create a duplicate master entity
6138 if the access type already has one.
6139 (Expand_N_Object_Declaration): Defend against attempt to validity check
6140 generic types. Noticed for -gnatVcf specified with previous errors.
6142 2007-12-13 Arnaud Charlet <charlet@adacore.com>
6144 * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
6145 Expand_Allocator_Expression): Take into account VM_Target
6147 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
6148 secondary stack when VM_Target /= No_VM
6150 2007-12-13 Javier Miranda <miranda@adacore.com>
6151 Ed Schonberg <schonberg@adacore.com>
6153 * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
6154 Is_Complation_Unit by Is_Library_Level_Entity in the code
6155 that decides if the static dispatch tables need to be built.
6156 (Wrap_Transient_Declaration): Do not generate a finalization call if
6157 this is a renaming declaration and the renamed object is a component
6158 of a controlled type.
6160 2007-12-13 Gary Dismukes <dismukes@adacore.com>
6162 * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
6163 In the case where the renamed subprogram is a dereference, call
6164 Force_Evaluation on the prefix.
6166 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
6167 Ed Schonberg <schonberg@adacore.com>
6169 * exp_ch9.adb (Expand_N_Asynchronous_Select,
6170 Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
6171 comment reformatting.
6172 (Set_Privals): Inherit aliased flag from formal. From code reading.
6173 (Build_Simple_Entry_Call): Out parameters of an access type are passed
6174 by copy and initialized from the actual. This includes entry parameters.
6175 (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
6176 and Ada 2005 models of requeue.
6177 (Null_Statements): Still connsider do-end block null if it contains
6178 Unreferenced and Warnings pragmas.
6179 (Expand_N_Accept_Statement): Do not optimize away null do end if
6180 dispatching policy is other than defaulted.
6181 (Expand_N_Timed_Entry_Call): When the triggering statement is a
6182 dispatching call, manually analyze the delay statement.
6183 (Find_Parameter_Type): Move subprogram to Sem_Util.
6185 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
6186 Javier Miranda <miranda@adacore.com>
6188 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
6189 _Disp_Requeue occupies dispatch table slot number 15. Move
6190 _Disp_Timed_Select to slot 16.
6191 (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
6192 generate the spec and body of _Disp_Reqeueue.
6193 (Make_DT): Build and initialize the second dispatch table.
6194 Handle initialization of RC_Offset when the parent
6195 is a private type with variable size components.
6196 (Make_Secondary_DT): Complete documentation. Add support to
6197 initialize the second dispatch table.
6198 (Make_Tags): Generate the tag of the second dispatch table.
6199 (Register_Primitive): Add support to register primitives in the
6200 second dispatch table.
6202 2007-12-13 Pascal Obry <obry@adacore.com>
6204 * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
6205 Windows. This signal is used by gnatmake to kill child processes for
6208 2007-12-13 Javier Miranda <miranda@adacore.com>
6210 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
6211 support for generic dispatching constructor calls in which we need to
6212 locate the tag of a secondary dispatch table associated with an
6213 interface type to properly dispatch the call.
6214 (Expand_N_Attribute_Reference [case Address],
6215 Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
6216 handling of VM targets.
6218 2007-12-13 Robert Dewar <dewar@adacore.com>
6219 Ed Schonberg <schonberg@adacore.com>
6221 * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
6224 * ug_words: Add entries for -gnatw.a -gnatw.A
6226 * sem_res.adb (Set_String_Literal_Subtype): If the context of the
6227 literal is a subtype with non-static constraints, use the base type of
6228 the context as the base of the string subtype, to prevent type
6230 (Resolve_Actuals): If the actual is an entity name, generate a
6231 reference before the actual is resolved and expanded, to prevent
6232 spurious warnings on formals of enclosing protected operations.
6233 (Analyze_Overloaded_Selected_Component): If type of prefix if
6234 class-wide, use visible components of base type.
6235 (Resolve_Selected_Component): Ditto.
6236 (Resolve_Short_Circuit): Detect case of pragma Assert argument
6237 evaluating to False, and issue warning message.
6239 * usage.adb: Add lines for -gnatw.a and -gnatw.A
6241 2007-12-13 Emmanuel Briot <briot@adacore.com>
6243 * g-calend.ads (No_Time): New constant, to represent an uninitialized
6246 * g-catiio.ads, g-catiio.adb (Value): Added support for more date
6248 (Month_Name_To_Number): New subprogram
6250 * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
6251 letter to upper-case.
6253 2007-12-13 Robert Dewar <dewar@adacore.com>
6254 Ed Schonberg <schonberg@adacore.com>
6256 * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
6258 * layout.adb (Resolve_Attribute, case 'Access): If designated type of
6259 context is a limited view, use non-limited view when available. If the
6260 non-limited view is an unconstrained array, this enforces consistency
6261 requirements in 3.10.2 (27).
6262 (Layout_Type): For an access type whose designated type is a limited
6263 view, examine its declaration to determine if it is an unconstrained
6264 array, and size the access type accordingly.
6265 (Layout_Type): Do not force 32-bits for convention c subprogram
6266 pointers in -gnatdm mode, only if real vms target.
6268 * sem_attr.adb (Analyze_Access_Attribute): Use new flag
6269 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
6270 (Analyze_Access_Attribute,Attribute_Address): Remove checks for
6271 violations of the No_Implicit_Dynamic_Code restriction.
6272 (Resolve_Attribute, case 'Access): If designated type of context is a
6273 limited view, use non-limited view when available. If the non-limited
6274 view is an unconstrained array, this enforces consistency requirements
6276 (Layout_Type): For an access type whose designated type is a limited
6277 view, examine its declaration to determine if it is an unconstrained
6278 array, and size the access type accordingly.
6280 2007-12-13 Vincent Celier <celier@adacore.com>
6282 * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
6283 object directory of main project does not exist.
6284 On VMS, correctly set then environment variable for the source
6287 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
6289 * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
6290 set to True this procedure will create the value of type REG_EXPAND_SZ.
6291 It was only possible to create REG_SZ values before.
6293 2007-12-13 Robert Dewar <dewar@adacore.com>
6295 * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
6296 g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
6297 namet-sp.adb, namet-sp.ads: New files.
6299 * g-speche.adb: Use generic routine in g-spchge
6301 * s-wchcnv.ads, s-wchcnv.adb:
6302 Minor code cleanup (make formal type consistent with spec)
6304 * namet.adb: Update comments.
6306 * par-endh.adb (Evaluate_End_Entry): Use new
6307 Namet.Sp.Is_Bad_Spelling_Of function
6309 * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
6311 * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
6312 ancestor is an access type initialized with a box, set its type
6313 explicitly, for use in subsequent expansion.
6314 (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
6317 2007-12-13 Robert Dewar <dewar@adacore.com>
6319 * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
6322 2007-12-13 Robert Dewar <dewar@adacore.com>
6324 * inline.adb (Back_End_Cannot_Inline): Use new flag
6325 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
6327 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
6328 Has_Pragma_Inline_Always instead.
6329 of obsolete function Is_Always_Inlined
6330 (Build_Body_To_Inline): Same change
6331 (Cannot_Inline): Same change
6332 Do not give warning on exception raise in No_Return function
6334 * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
6335 component has two inconsistent component clauses in the same record
6336 representation clause, favor the message that complains about
6337 duplication rather than inconsistency.
6339 (Record_Representation_Clause): Do not warn on missing component
6340 clauses for inherited components of a type extension.
6341 (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
6342 an overloadable item if it is a pragma that can apply to multiple
6343 overloadable entities (e.g. Inline) because a pragma cannot be on
6344 more than one chain at a time.
6345 (Validate_Unchecked_Conversion): Add code to warn on unchecked
6346 conversion where one of the operands is Ada.Calendar.Time.
6347 (Analyze_Attribute_Definition_Clause): Fix typo in error message.
6348 For now, ignore Component_Size clause on VM targets, as done for
6351 2007-12-13 Emmanuel Briot <briot@adacore.com>
6352 Vincent Celier <celier@adacore.com>
6354 * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
6356 (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
6358 (Hash): Move instantiation of System.HTable.Hash from spec to body
6359 (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
6360 systems, since we do not need to recompute the Name_Id for the canonical
6362 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
6363 as a parameter. This parameter is in fact always "ada" in all calls, and
6364 we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
6365 while loading a project with 40000 files
6367 * prj-attr.adb: Fix name of attribute Dependency_Driver
6368 Change the kind of indexing for attribute Root
6370 * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
6371 variables already declared, in case constructions.
6373 * prj-env.adb (Initialize): Reset Current_Source_Path_File and
6374 Current_Object_Path_File to No_Path.
6376 * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
6377 ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
6379 * prj-makr.adb: new parameter Current_Dir
6381 * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
6382 Ada sources when language is not Ada.
6383 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
6384 (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
6385 (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
6386 (Locate_Directory): Always resolve links when computing Canonical_Path
6387 (Look_For_Sources): Make sure that Name_Buffer contains the file name
6388 in Source_Files before checking for the presence of a directory
6390 Optimize calls to Name_Find when on case sensitive systems.
6391 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
6393 (Prj.Nmsc.Check): new parameter Current_Dir
6394 (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
6395 cannot be empty and the spec suffix cannot be the same as the body or
6397 (Get_Unit): When a file name can be of several unit kinds (spec, body or
6398 subunit), always consider the longest suffix.
6399 (Check_Configuration): Do not issue an error if there is no compiler
6400 for a language. Just issue a warning and ignore the sources for the
6402 (Check_Library_Attributes): Only check Library_Dir if Library_Name is
6404 (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
6405 (Unit_Exceptions): New hash table
6406 (Check_Naming_Schemes): Check if a file that could be a unit because of
6407 the naming scheme is not in fact a source because there is an exception
6409 (Look_For_Sources): Put the unit exceptions in hash table
6411 (Get_Unit_Exceptions): Give initial value No_Source to local variable
6412 Other_Part to avoid exception when code is compiled with validity
6414 (Get_Sources_From_File): Check that there is no directory information
6416 (Look_For_Sources): Check that there is no directory information in the
6417 list of file names in Source_Files.
6418 (Look_For_Sources): In multi-language mode, do not allow exception file
6419 names that are excluded.
6420 (Excluded_Sources_Htable): New hash table
6421 (Search_Directories.Check_File): New procedure to simplify
6423 (Search_Directories): Do not consider excluded sources
6424 (Look_For_Sources): Populate Excluded_Sources_Htable before calling
6426 (Get_Exceptions): Set component Lang_Kind of Source_Data
6427 (Get_Unit_Exceptions): Ditto
6428 (Search_Directories): Ditto
6430 * prj-pars.adb: new parameter Current_Dir
6432 * prj-part.ads, prj-part.adb:
6433 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
6434 (Opt.Follow_Links_For_Dirs): New flag
6435 (Project_Path_Name_Of): Cache information returned by this routine as
6436 Locate_Regular_File is a costly routine. The code to output a log
6437 information and the effective call to Locate_Regular_File is now
6438 factorized into a routine (code clean-up).
6439 (Parse, Parse_Single_Project): new parameter Current_Dir
6440 When main project file cannot be found, indicate in the error
6441 message the project path that was used to do the search.
6443 * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
6444 (Prj.Proc.Process*): new parameter Current_Dir
6446 * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
6448 2007-12-13 Bob Duff <duff@adacore.com>
6450 * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
6451 procedure to be called from the back end to check the
6452 No_Implicit_Dynamic_Code restriction.
6454 2007-12-13 Arnaud Charlet <charlet@adacore.com>
6456 * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
6457 Fixes another case where RTE_Available_Call was ignored instead of being
6461 * rtsfind.ads: Add new entries.
6463 2007-12-13 Robert Dewar <dewar@adacore.com>
6465 * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
6466 g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
6468 * scn.adb: Implement BOM recognition
6470 2007-12-13 Thomas Quinot <quinot@adacore.com>
6471 Ed Schonberg <schonberg@adacore.com>
6473 * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
6474 subprogram body that acts as its own spec may not have a non-private
6475 WITH clause on a private sibling.
6476 (Build_Unit_Name): If the parent unit in the name in a with_clause on a
6477 child unit is a renaming, create an implicit with_clause on that
6478 parent, and not on the unit it renames, to prevent visibility errors
6479 in the current unit.
6481 2007-12-13 Ed Schonberg <schonberg@adacore.com>
6483 * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
6484 renaming declaration, use the Slocs of the formal parameters from the
6485 declaration of the formal subprogram when creating the formal parameter
6486 entities in the renaming declaration.
6487 (Analyze_Formal_Type_Declaration): Change the placement of the error
6488 message concerning illegal known discriminants. It is now posted on the
6489 type rather than on the first discriminant. This change ensures early
6491 (Freeze_Subprogram_Body): If the generic subprogram is nested within
6492 the package body that contains the instance, do not generate an
6493 out-of-place freeze node for the enclosing package.
6494 (Collect_Previous_Instantiations): Ignore internal instantiations
6495 generated for formal packages.
6496 (Validate_Derived_Type_Instance): Add a check that when a formal
6497 derived type is Known_To_Have_Preelab_Init then the actual type must
6498 have preelaborable initialization, and issue an error when this
6499 condition is violated.
6501 2007-12-13 Robert Dewar <dewar@adacore.com>
6503 * s-imenne.adb, s-imenne.ads: New files.
6505 * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
6506 s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
6507 s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
6508 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
6509 s-imgwch.ads: New calling sequence for Image routines to avoid sec
6512 2007-12-13 Javier Miranda <miranda@adacore.com>
6513 Ed Schonberg <schonberg@adacore.com>
6515 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
6516 generation of spurious error if parent is an interface type; caused
6517 because predefined primitive bodies will be generated later by
6519 (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
6521 (Derive_Subprograms): Handle derivations of predefined primitives
6522 after all the user-defined primitives to ensure that they are
6523 found in proper order in instantiations.
6524 (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
6525 of Related_Interface to Related_Type.
6526 (Record_Type_Declaration): Minor reordering of calls to decorate the
6527 Tag component because the entity must have set its Ekind attribute
6528 before setting its Is_Tag attribute.
6529 (Analyze_Subtype_Declaration): In the case of subtypes with
6530 Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
6532 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
6533 Ed Schonberg <schonberg@adacore.com>
6535 * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
6536 statement to the list of contexts where a selected component with a
6537 concurrent tagged type prefix should yield a primitive operation.
6538 (Find_Primitive_Operation): Handle case of class-wide types.
6539 (Analyze_Overloaded_Selected_Component): If type of prefix is
6540 class-wide, use visible components of base type.
6541 (Resolve_Selected_Component): Ditto.
6542 (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
6543 formal of a generic subprogram. find candidate interpretations by
6544 scanning the list of generic formal declarations.:
6545 (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
6546 type from a limited_with_clause, and the full view is available, use it
6547 for subsequent semantic checks.
6548 (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
6549 (Find_Primitive_Operation): New function.
6550 (Analyze_Overloaded_Selected_Component): insert explicit dereference
6551 only once if several interpretations of the prefix yield an access type.
6552 (Try_Object_Operation): Code and comment cleanup.
6553 (Analyze_Selected_Component): Reorder local variables. Minot comment and
6554 code reformatting. When the type of the prefix is tagged concurrent, a
6555 correct interpretation might be available in the primitive and
6556 class-wide operations of the type.
6558 2007-12-13 Robert Dewar <dewar@adacore.com>
6559 Ed Schonberg <schonberg@adacore.com>
6561 * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
6562 renaming entry as subprogram using rename-as-body if subprogram spec
6564 (Use_One_Type): The clause is legal on an access type whose designated
6565 type has a limited view.
6566 (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
6567 (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
6568 (Analyze_Renamed_Primitive_Operation): new procedure to determine the
6569 operation denoted by a selected component.
6570 (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
6571 it can be an expression, possibly overloaded, that returns a task or
6574 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
6575 Gary Dismukes <dismukes@adacore.com>
6577 * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
6578 requeue statement is dispatching. Do not emit an error when the name is
6579 not an entry and the context is a dispatching select. Add code to
6580 perform subtype conformance between the formals of the current entry
6581 and those of the target interface primitive.
6582 (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
6583 Timed_Entry_Call): Analyze the triggering statement as the first step of
6584 the processing. If this is a dispatching select, postpone the analysis
6585 of all select statements until the Expander transforms the select. This
6586 approach avoids generating duplicate identifiers after the Expander has
6587 replicated some of the select statements. In case the Expander is
6588 disabled, perform regular analysis.
6589 (Check_Triggering_Statement): New routine.
6590 (Analyze_Requeue): Exclude any interpretations that are not entries when
6591 checking overloaded names in a requeue. Also test type conformance for
6592 matching interpretations rather than requiring subtype conformance at
6593 that point to conform with the RM's resolution rule for requeues.
6595 2007-12-13 Ed Schonberg <schonberg@adacore.com>
6597 * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
6598 inherited operation is a defaulted tag-indeterminate call, and there is
6599 a statically tagged actual, use the static tag as a controlling actual
6600 for the defaulted actual.
6602 2007-12-13 Geert Bosch <bosch@adacore.com>
6604 * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
6605 context, so do not call Check_Non_Static_Context.
6607 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
6609 * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
6610 whether formal E is an entity which may have parameters.
6612 2007-12-13 Bob Duff <duff@adacore.com>
6613 Javier Miranda <miranda@adacore.com>
6614 Robert Dewar <dewar@adacore.com>
6616 * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
6617 (Set_Convention): New procedure to set the Convention flag, and in
6618 addition make sure the Favor_Top_Level flag is kept in sync (all
6619 foreign-language conventions require Favor_Top_Level = True).
6620 (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
6622 (Collect_Interfaces_Info): Minor update to handle the two secondary
6623 dispatch tables. Update occurrence of Related_Interface to Related_Type.
6624 (Generate_Parent_Ref): Add parameter to specify entity to check
6625 (Is_Preelaborable_Expression): Allow the name of a discriminant to
6626 initialize a component of a type with preelaborable initialization.
6627 This includes the case of a discriminal used in such a context.
6628 (Is_Dependent_Component_Of_Mutable_Object): Take into account the
6629 latest Ada 2005 rules about renaming and 'Access of
6630 discriminant-dependent components.
6631 (Check_Nested_Access): Add handling when there are no enclosing
6632 subprograms (e.g. case of a package body).
6633 (Find_Parameter_Type): Factor routine from several other compiler files.
6634 Remove routine from Find_Overridden_Synchronized_Primitive.
6636 2007-12-13 Thomas Quinot <quinot@adacore.com>
6638 * sinput.adb (Get_Source_File_Index): Add assertion to guard against
6639 an invalid access to an uninitialized slot in the
6640 Source_File_Index_Table.
6642 2007-12-13 Thomas Quinot <quinot@adacore.com>
6644 * sinput-l.adb (Load_File): Disable style checks when preprocessing.
6646 2007-12-13 Bob Duff <duff@adacore.com>
6648 * s-soflin.ads: Apply new pragma Favor_Top_Level to all
6649 access-to-subprogram types in this package.
6651 2007-12-13 Olivier Hainque <hainque@adacore.com>
6653 * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
6654 with Stack_Grows_Down in System.Parameters. Rename Array_Address into
6655 Stack_Overlay_Address and document that we are using an internal
6657 (Byte_Size, Unsigned_32_Size): Remove, now useless.
6658 (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
6659 consistently throughout the various implementation pieces.
6661 * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
6662 overlay we are using to fill the stack area with patterns.
6663 (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
6664 (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
6665 (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
6667 2007-12-13 Robert Dewar <dewar@adacore.com>
6669 * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
6671 2007-12-13 Arnaud Charlet <charlet@adacore.com>
6674 (Create_Task): Take into account tasks created by foreign threads.
6675 Code clean up: use constants instead of hard coded values.
6677 2007-12-13 Robert Dewar <dewar@adacore.com>
6679 * styleg.adb (Check_Comment): More liberal rules for comment placement
6681 2007-12-13 Olivier Hainque <hainque@adacore.com>
6683 * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
6684 of Procedure Value instead of Frame Pointer as the invocation
6685 identifier associated with the instruction pointer in each traceback
6688 * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
6689 TB_Entry_For): Revert back to use of Procedure Value instead of Frame
6690 Pointer as the invocation identifier passed to tbk$symbolize.
6692 * s-traent-vms.ads, s-traent-vms.adb
6693 (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
6694 Procedure Value instead of Frame Pointer as the invocation identifier
6695 passed to tbk$symbolize.
6697 2007-12-13 Robert Dewar <dewar@adacore.com>
6699 * tbuild.ads, tbuild.adb:
6700 Fix location of flag for unrecognized pragma message
6702 2007-12-13 Robert Dewar <dewar@adacore.com>
6704 * treepr.ads, treepr.adb: (pl): implement use of positive value
6707 2007-12-13 Robert Dewar <dewar@adacore.com>
6709 * xeinfo.adb: Remove warnings
6710 * xnmake.adb: Remove warnings
6711 * xsinfo.adb: Remove warnings
6712 * xtreeprs.adb: Remove warnings
6713 * xsnames.adb: Remove warnings
6715 * a-ngcoar.adb: Fix typo.
6716 * s-interr.adb: Minor reformatting
6717 * env.c: Minor reformatting.
6718 * g-bytswa.adb: Minor reformatting.
6719 * g-rannum.ads: Minor documentation improvements
6720 * s-tasinf-mingw.adb: Minor header fix
6721 * a-clrefi.adb: Minor reformatting
6722 * g-sttsne.ads: Minor documentation improvement
6723 * g-sttsne-locking.ads: Minor documentation improvement
6724 * g-soliop-solaris.ads: Minor documentation improvement
6725 * g-soliop-mingw.ads: Minor documentation improvement
6726 * g-soliop.ads: Minor documentation improvement
6727 * exp_aggr.ads: Minor reformatting
6728 * debug.adb: Add documentation for the gprbuild debug flags
6729 * exp_ch2.adb: Use Nkind_In to simplify code throughout
6730 * exp_pakd.adb: Minor reformatting
6732 * g-altive.ads, g-alleve.adb: Remove assertions.
6733 Add comment about minor differences between targets regarding
6734 floating-point operations.
6736 * g-thread.adb: Remove pragma unreferenced.
6737 * lib.ads: Minor reformatting
6738 * par-ch9.adb: Minor reformatting of error messages
6739 * sem_case.adb: Minor reformatting
6740 * s-fileio.adb: Minor reformattinng
6741 * s-vmexta.ads: Minor typo
6743 Take into account 'Success' value as per new GNAT warning.
6745 2007-12-13 Vincent Celier <celier@adacore.com>
6747 * a-direct.adb (Create_Path): Always take '/' as a directory separator,
6750 2007-12-13 Robert Dewar <dewar@adacore.com>
6751 Bob Duff <duff@adacore.com>
6753 * gnat_ugn.texi: Dcoument new rules for style check comment alignment
6754 Document that suffixes may be terminations of each others
6755 Add doc for -gnatw.a and -gnatw.A
6756 Document gnatbind -Wx switch
6757 Document BOM recognition
6758 Document pragma Implemented_By_Entry.
6761 * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
6762 Add doc for pragma Unreferenced suppressing no entities referenced msg
6763 Add documentation of GNAT.Directory_Operations.Iteration
6764 Add documentation of GNAT.Random_Numbers
6765 Add documentation for pragma Shared.
6766 Correct documentation for Bit_Order
6767 Add documentation for the Pool_Address attribute.
6768 Fix and improve documentation of pragma machine_attribute.
6769 New pragma Fast_Math
6770 Document BOM recognition
6772 * vms_data.ads: Add entries for -gnatw.a -gnatw.A
6773 Add /Wide_Character_Encoding for binder
6774 Add qualifier for the new gnatpp option --no-separate-loop-then
6776 2007-12-13 Matthew Heaney <heaney@adacore.com>
6778 * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
6779 which generic formal operations are called for each operation.
6781 2007-12-13 Olivier Hainque <hainque@adacore.com>
6783 * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
6784 (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
6786 2007-12-13 Emmanuel Briot <briot@adacore.com>
6788 * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
6789 Reference_Dir unless we actually need it.
6791 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
6792 Tristan Gingold <gingold@adacore.com>
6794 * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
6797 a-calend-vms.adb: Remove pragma warning off and add pragma
6800 2007-12-13 Robert Dewar <dewar@adacore.com>
6802 * impunit.adb: Add entries for missing units
6804 * Makefile.rtl: Add new run-time units.
6806 * Make-lang.in: Update dependencies.
6808 2007-12-13 Bob Duff <duff@adacore.com>
6810 * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
6811 types, set Can_Use_Internal_Rep appropriately, based on
6812 Always_Compatible_Rep_On_Target.
6814 2007-12-13 Gary Dismukes <dismukes@adacore.com>
6815 Arnaud Charlet <charlet@adacore.com>
6817 * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
6818 it to the front end and setting the aamp_target environment variable
6819 to the switch's argument to ensure that gnaampbind and gnaamplink will
6820 take the specified library into account.
6821 (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
6822 target, since the CIL compiler supports an "object" file (.il files).
6824 2007-12-13 Vincent Celier <celier@adacore.com>
6826 * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
6827 (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
6829 2007-12-13 Geert Bosch <bosch@adacore.com>
6831 * s-parame-vxworks.adb:
6832 Update comments to reflect usage of this package by Nucleus.
6834 2007-12-13 Arnaud Charlet <charlet@adacore.com>
6836 * i-vxwork.ads: Kill new warning on Convention C, since changing the
6837 spec would break code.
6839 * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
6841 * system-vxworks-alpha.ads: Removed.
6843 2007-12-10 Eric Botcazou <ebotcazou@adacore.com>
6845 * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
6847 2007-12-09 Samuel Tardieu <sam@rfc1149.net>
6850 * sem_ch3.adb (Designates_T): New function.
6851 (Mentions_T): Factor reusable part of the logic into Designates_T.
6852 Consider non-access parameters and access and non-access result.
6853 (Check_Anonymous_Access_Components): Set ekind of anonymous access to
6854 E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
6856 * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
6858 2007-12-07 Ludovic Brenta <ludovic@ludovic-brenta.org>
6861 * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
6862 the new implementation of target-specific calls.
6864 2007-12-07 Olivier Hainque <hainque@adacore.com>
6866 * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
6867 the designated full view, only follow a second level Full_View link
6868 for Non_Limited_Views of from_limited_with references.
6870 2007-12-07 Samuel Tardieu <sam@rfc1149.net>
6873 * sem_ch6.adb (Process_Formals): Prevent an access type formal
6874 to be initialized with an access to constant object.
6876 * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
6877 when an access to constant is used to initialize an access
6881 * a-direct.adb (Compose): Containing_Directory can be an empty string.
6883 2007-12-07 Olivier Hainque <hainque@adacore.com>
6886 * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
6887 the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
6888 this is from an alignment clause on the GNAT entity.
6889 * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
6890 to distinguish the case where we set it from the type's alignment.
6891 When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
6892 whether this alignment was set from an explicit alignment clause.
6894 2007-12-06 Eric Botcazou <ebotcazou@adacore.com>
6896 * decl.c (make_packable_type): Revert last change.
6897 (gnat_to_gnu_field): Avoid setting size and position multiple times.
6898 * utils.c (finish_record_type): Retrieve the real name of the type.
6900 2007-12-05 Eric Botcazou <ebotcazou@adacore.com>
6902 * trans.c (lvalue_required_p): Take base node directly instead
6903 of its parent. Rename second parameter to 'gnu_type'.
6904 <N_Indexed_Component>: Return 0 if the node isn't the prefix.
6905 <N_Slice>: Likewise.
6906 (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
6907 Adjust calls to lvalue_required_p.
6909 2007-12-05 Samuel Tardieu <sam@rfc1149.net>
6912 * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
6913 parameters of an entry call.
6915 2007-12-03 Robert Dewar <dewar@adacore.com>
6916 Samuel Tardieu <sam@rfc1149.net>
6919 * sem_util.adb (Safe_To_Capture_Value): Do not capture values
6920 of variables declared in a library-level package.
6922 2007-12-02 Samuel Tardieu <sam@rfc1149.net>
6924 * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
6925 of Empty_String'Unchecked_Access.
6927 * Makefile.in: Add support for sh4-linux.
6929 * system-linux-sh4.ads: New file.
6931 2007-12-01 Kostik Belousov <kostikbel@ukr.net>
6934 * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
6935 and its argument must not be free()ed.
6937 2007-11-29 Eric Botcazou <ebotcazou@adacore.com>
6939 * decl.c (make_packable_type): Retrieve the real name of the type.
6940 (maybe_pad_type): Simplify similar code.
6942 2007-11-28 Samuel Tardieu <sam@rfc1149.net>
6945 * par-ch3.adb (P_Variant_Part): Signal an error when anything other
6946 than an identifier is used after "case" in a variant_part.
6949 * par-ch4.adb (Is_Parameterless_Attribute): New map.
6950 (P_Name, Scan_Apostrophe block): Parse left parenthesis following
6951 attribute name or not depending on the new map.
6953 * sem-attr.adb (Analyze_Attribute): Parameterless attributes
6954 returning a string or a type will not be called with improper
6957 * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
6959 * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
6962 * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
6963 Signal an error when attribute argument is a fixed-point value of
6967 * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
6968 a derived ordinary fixed point type.
6970 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
6971 RM_Size when a Small clause is found.
6973 2007-11-26 Andreas Krebbel <krebbel1@de.ibm.com>
6976 * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
6977 Pass 'false' for the new allocate_struct_function parameter.
6978 * utils.c (build_function_stub): Likewise.
6980 2007-11-25 Richard Guenther <rguenther@suse.de>
6982 * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
6983 (gnat_poplevel): Likewise.
6985 2007-11-25 Eric Botcazou <ebotcazou@adacore.com>
6987 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
6988 strict alignment, no alignment clause and a known static size, cap
6989 the type alignment to the greatest power of 2 factor of the size.
6990 (gnat_to_gnu_field): If the field has a component clause, is aliased
6991 or of a type with strict alignment, require that its size be equal to
6993 (validate_size): Use the type size as the minimum size for a type with
6996 2007-11-23 Samuel Tardieu <sam@rfc1149.net>
6998 * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
6999 s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
7000 s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
7001 Use 'Access instead of 'Unchecked_Access in second and third
7002 arguments of pthread_sigmask.
7004 2007-11-23 Eric Botcazou <ebotcazou@adacore.com>
7006 * decl.c (ceil_alignment): New function.
7007 (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
7008 (make_packable_type): Likewise.
7010 2007-11-22 Olivier Hainque <hainque@adacore.com>
7012 * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
7013 to fit in 80 columns.
7015 2007-11-21 Aurelien Jarno <aurelien@aurel32.net>
7017 * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
7018 * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
7020 2007-11-19 Eric Botcazou <ebotcazou@adacore.com>
7023 * misc.c (gnat_adjust_rli): Delete.
7024 (gnat_init): Do not initialize the translation code here.
7025 Do not call set_lang_adjust_rli.
7026 * trans.c (init_code_table): Make static.
7027 (gnat_init_stmt_group): Delete.
7028 (gigi): Initialize the translation code entirely here.
7029 Emit debug info for the common types here instead of...
7030 * utils.c (gnat_init_decl_processing): ...here.
7031 * gigi.h (init_code_table): Delete.
7032 (gnat_init_stmt_group): Likewise.
7034 2007-11-16 Olivier Hainque <hainque@adacore.com>
7036 * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
7037 retrieving an allocator return value from a super-aligned address from
7039 * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
7040 expect a super-aligned address for a fat or thin pointer.
7042 2007-11-14 Eric Botcazou <ebotcazou@adacore.com>
7044 * trans.c (call_to_gnu): Always set the source location on the call
7045 expression. If the function returns-by-target, also set it on the
7048 2007-11-14 Samuel Tardieu <sam@rfc1149.net>
7050 * adaint.c, init.c, initialize.c, link.c: Remove system-specific
7051 sections of non-supported Interix target.
7053 * s-osinte-interix.ads: Removed.
7055 * i-cstrin.ads (chars_ptr): Make it a C convention type.
7057 2007-11-13 Samuel Tardieu <sam@rfc1149.net>
7059 * a-tasatt.adb: Add a comment at the beginning of the package
7060 explaining why in general 'Unchecked_Access must be used instead
7063 * sem_prag.adb (Process_Convention): Move the test for the
7064 entity on which the Convention pragma applies down to also
7065 forbid pragma Convention on enumeration literals reached
7068 2007-11-10 Samuel Tardieu <sam@rfc1149.net>
7070 * a-tasatt.adb: Revert previous change for this file as it will
7071 generate an error when this package is instantiated from a
7074 2007-11-07 Samuel Tardieu <sam@rfc1149.net>
7076 * a-tasatt.adb: Type Wrapper should be declared in comment instead
7077 of already declared type Node_Access.
7078 Use 'Access instead of 'Unchecked_Access when applicable. Local
7079 lifetime is the one of the package.
7080 (Set_Value): W is allocated on the heap.
7082 * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
7084 (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
7086 (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
7089 * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
7091 (elaboration code): Timer_Queue lifetime is the one of the
7094 * tracebak.c (i386 alternative): Remove useless comparaison
7095 which is always false; LOWEST_ADDRESS is 0 and is never greater
7096 than an unsigned integer.
7098 * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
7099 embedded check for "Ada_Version >= Ada_05".
7101 2007-11-07 Olivier Hainque <hainque@adacore.com>
7103 * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
7104 craft and expand comment.
7106 2007-11-01 Eric Botcazou <ebotcazou@adacore.com>
7108 * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
7110 2007-10-23 Eric Botcazou <ebotcazou@adacore.com>
7112 * misc.c (gnat_handle_option): Replace call to abort with
7113 call to gcc_unreachable.
7114 (gnat_init): Likewise.
7115 (gnat_expand_expr): Likewise.
7116 (fp_prec_to_size): Likewise.
7117 (fp_size_to_prec): Likewise.
7119 2007-10-23 Richard Guenther <rguenther@suse.de>
7122 * tracebak.c: #undef abort after including system.h.
7124 2007-10-20 Danny Smith <dannysmith@users.sourceforge.net>
7126 * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
7127 s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
7129 (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
7131 2007-10-15 Eric Botcazou <ebotcazou@adacore.com>
7133 * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
7134 Set the protection status of the guard page based on the value of On.
7136 * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
7138 * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
7139 (Exit_Task): Pass False to Hide_Yellow_Zone.
7141 2007-10-15 Robert Dewar <dewar@adacore.com>
7143 * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
7144 s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
7145 a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
7146 checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
7147 freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
7148 gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
7149 mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
7150 prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
7151 sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
7152 s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
7153 uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
7154 a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
7155 a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
7156 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
7157 a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
7158 a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
7160 Add Unreferenced and Warnings (Off) pragmas for cases of
7161 variables modified calls where they are IN OUT or OUT parameters and
7162 the resulting values are not subsequently referenced. In a few cases,
7163 we also remove redundant code found by the new warnings.
7165 * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
7166 sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
7167 sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
7168 sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
7169 warning controlled by -gnatw.o that warns on cases of out parameter
7170 values being ignored.
7172 2007-10-15 Geert Bosch <bosch@adacore.com>
7174 * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
7176 * expect.c: Initial port to arm-mentor-nucleus.
7177 Use kill for __gnat_kill() on VMS.
7179 2007-10-15 Emmanuel Briot <briot@adacore.com>
7181 * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
7183 (Xref_Record): Change type for Line, since in the case of a reference to
7184 a predefined entity (as happens for array index types), the line is set
7186 Add support for parsing multiple array index types info, or
7187 multiple inherited interfaces info. This information cannot be stored
7188 in Xref_Entity_Record, which only supports a single instance of Tref_*,
7189 and is therefore stored in the list of references instead. It has a
7190 special treatement later on in tools that use this information.
7192 2007-10-15 Tristan Gingold <gingold@adacore.com>
7194 * debug.adb: Document use of -gnatd.a and -gnatd.I
7196 * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
7198 2007-10-15 Javier Miranda <miranda@adacore.com>
7200 * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
7201 Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
7202 care of access to class-wide interface types plus removal of bizarre
7203 conversion of tagged object to access type (reported by Gary
7204 Dismukes). After this patch there is no need to perform any
7205 additional management on these nodes in Expand_Interface_Actuals.
7207 * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
7208 that handles use of 'Access and 'Unchecked_Access applied to
7209 actuals covering interface types. Such code is now
7210 centralized in Expand_N_Attribute_Reference.
7212 2007-10-15 Ed Schonberg <schonberg@adacore.com>
7214 * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
7215 of tagged types whose ultimate ancestor is a CPP type.
7216 (Freeze_Array_Type): For a packed array type, generate an initialization
7217 procedure if the type is public, to handle properly a client that
7218 specifies Normalize_Scalars.
7220 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
7222 * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
7223 inside a generic body, retrieve the full view of the entry family
7224 discrete subtype if available.
7226 2007-10-15 Thomas Quinot <quinot@adacore.com>
7228 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
7229 attempt to generate stubs for hidden primitive operations.
7231 2007-10-15 Vincent Celier <celier@adacore.com>
7233 * mlib-tgt-specific.adb (Support_For_Libraries): New function,
7234 returning None, used when there is no platform specific body for
7237 2007-10-15 Bob Duff <duff@adacore.com>
7239 * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
7240 (passing'Unrestricted_Access of nested subprograms to Sort) with use of
7241 the generic Heap_Sort_G, in order to avoid trampolines.
7243 2007-10-15 Vasiliy Fofanov <fofanov@adacore.com>
7244 Jose Ruiz <ruiz@adacore.com>
7246 * vx_stack_info.c: New file.
7248 * i-forbla-unimplemented.ads: New file.
7250 * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
7251 for unsupported configurations; use it on VMS targets instead of the
7253 (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
7254 vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
7255 used by VxWorks targets to have access to task-specific data and be
7256 able to extract the stack boundaries for stack checking.
7257 Use system-vms-ia64.ads on ivms.
7259 * Make-lang.in: Update dependencies.
7261 * sysdep.c (__gnat_get_stack_info): Move to a standalone file
7264 2007-10-15 Vincent Celier <celier@adacore.com>
7266 * snames.adb, snames.ads: Add new standard name runtime_library_dir
7268 * prj.ads (Language_Config): Add new component Runtime_Library_Dir
7270 * prj-attr.adb: Add project level attribute Runtime_Library_Dir
7272 * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
7273 the source is unknown.
7275 * prj-ext.adb: Spelling error fix
7277 * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
7278 95 reserved word in its name.
7279 (Process_Project_Level_Array_Attributes): Process new attribute
7280 Runtime_Library_Dir.
7282 * prj-part.adb (Parse_Single_Project): Do not check the name of the
7283 config project against the user project names.
7285 * prj-proc.adb (Expression): In multi-language mode, indexes that do
7286 not include a dot are always case insensitive.
7287 (Process_Declarative_Items): Ditto
7288 (Process_Project_Tree_Phase_1): Set Success to False in case an error is
7291 * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
7292 True, compare both indexes in lower case.
7294 2007-10-15 Robert Dewar <dewar@adacore.com>
7296 * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
7298 2007-10-15 Gary Dismukes <dismukes@adacore.com>
7300 * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
7301 association for an access component, add an association with null as
7302 the expression. Remove testing for array subtypes and the setting in
7303 that case of Ctyp to the array component type, which prevented proper
7304 inclusion of an association for null-initialized arrays. Collapse
7305 condition that tests for array subtypes into just a test of
7306 Is_Partially_Initialized_Type (which already covers arrays anyway).
7308 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
7310 * sem_ch12.adb: Minor code reformatting.
7311 (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
7312 find the parent package which may have been hidden by local
7315 2007-10-15 Gary Dismukes <dismukes@adacore.com>
7317 * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
7318 flag of derived concurrent types, taking into account the flag setting
7319 on the parent subtype and any new set of discriminants.
7321 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
7323 * sem_ch4.adb: Minor code and comment reformatting.
7324 (Analyze_Allocator): When the designated type of an unconstrained
7325 allocator is a record with unknown discriminants or an array with
7326 unknown range bounds, emit a detailed error message depending on the
7327 compilation mode and whether the designated type is limited.
7329 2007-10-15 Tristan Gingold <gingold@adacore.com>
7331 * system-vms-ia64.ads: New file.
7333 * system-vms_64.ads: Minor comment fix.
7335 2007-10-15 Ed Schonberg <schonberg@adacore.com>
7337 * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
7338 body generated for a function with a controlling result that is a null
7339 extension, discard the generated body in favor of the current explicit
7342 2007-10-15 Ed Schonberg <schonberg@adacore.com>
7344 * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
7345 examining its original form, to handle properly operator calls that
7346 have been rewritten.
7348 2007-10-15 Olivier Hainque <hainque@adacore.com>
7350 * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
7351 instead of a procedure value in each traceback entry.
7353 * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
7354 instead of procedure value to TBK$SYMBOLIZE.
7356 * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
7358 (TB_Entry_For): Account for the PV/FP renaming.
7360 * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
7362 (Null_TB_Entry): Account for change of component name.
7363 (PV_For): Rename as FP_For.
7365 2007-10-15 Tristan Gingold <gingold@adacore.com>
7367 * trans.c (gnat_to_gnu): Remove the padding structure more often.
7368 This optimize assignment to over-aligned record.
7370 2007-10-15 Emmanuel Briot <briot@adacore.com>
7372 * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
7375 * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
7376 type, for dispatching calls.
7378 2007-10-15 Vincent Celier <celier@adacore.com>
7379 Robert Dewar <dewar@adacore.com>
7381 * gnat_ugn.texi: Add documentation for switches --version and --help
7382 for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
7383 gnatxref, gnatfind, gnatls, and gnatclean.
7385 Mention attribute Excluded_Source_Dirs
7386 Replace obsolescent attribute Locally_Removed_Files with attribute
7387 Excluded_Source_Files.
7388 Improve documentation of -u (gnatbind)
7389 Document how to do reliable stack checking for the environmental task
7392 * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
7393 Document attribute Excluded_Source_Files and indicate that attribute
7394 Locally_Removed_Files is obsolescent.
7396 2007-10-15 Thomas Quinot <quinot@adacore.com>
7398 * g-soccon-vms.ads: Fix value of MSG_WAITALL.
7401 Update documentation to note that OpenVMS 8.3 or later must be used
7402 to generate g-soccon-vms.ads.
7404 * atree.adb: Add ??? comment
7406 * exp_util.adb: Minor reformatting.
7407 Add ??? comment in Kill_Dead_Code.
7409 2007-10-15 Robert Dewar <dewar@adacore.com>
7411 * errout.ads: Comment clarification
7413 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
7414 (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
7416 * lib.ads: Comment update
7418 * init.c: Minor reformatting.
7420 * sem_attr.adb: Minor formatting
7422 * osint-b.ads: Minor reformatting
7424 * sem_ch9.adb: Implement -gnatd.I switch
7426 * g-comlin.adb: (Start): Fix handling of empty command line.
7428 * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
7429 even when -rules follows the -cargs section.
7431 2007-10-08 Ollie Wild <aaw@google.com>
7433 * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
7435 (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
7437 (gnat_eh_runtime_type): Removed.
7438 (gnat_return_tree): New function.
7440 2007-10-08 Ben Elliston <bje@au.ibm.com>
7444 2007-08-31 Ben Elliston <bje@au.ibm.com>
7446 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
7447 when compiling for powerpc64-*-linux.
7448 * system-linux-ppc64.ads: New file.
7450 2007-09-27 Eric Botcazou <ebotcazou@adacore.com>
7452 Mapped location support
7453 * back_end.adb (Call_Back_End): Pass information about source
7454 files instead of units to gigi.
7455 * gigi.h (struct File_Info_Type): New.
7456 (gigi): Rename and change type of number_units parameter, change
7457 type of file_info_ptr parameter.
7458 * trans.c (number_files): New global variable.
7459 (gigi): Rename and change type of number_units parameter, change
7460 type of file_info_ptr parameter.
7461 If mapped location support is enabled, create the isomorphic mapping
7462 between source files and line maps.
7463 (Sloc_to_locus): If mapped location support is enabled, translate
7464 source location into mapped location.
7465 (annotate_with_node): Rename into set_expr_location_from_node.
7466 Call set_expr_location instead of annotate_with_locus.
7467 (Pragma_to_gnu): Adjust for above change.
7468 (Loop_Statement_to_gnu): Likewise.
7469 (call_to_gnu): Likewise.
7470 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
7471 (gnat_to_gnu): Likewise.
7472 (add_stmt_with_node): Likewise.
7473 (add_cleanup): Likewise.
7474 * utils.c (gnat_init_decl_processing): Do not set input_line.
7476 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
7478 * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
7479 (Applicable_Use): Emit a warning when a package tries to use itself.
7480 (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
7481 is already in use or the package where it is declared is in use or is
7482 declared in the current package.
7483 (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
7485 * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
7486 s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
7487 s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
7489 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
7491 * a-calend-vms.adb, a-calend.adb:
7492 Add a section on leap seconds control along with two entities used to
7493 enable and disable leap seconds support. The array Leap_Second_Times is
7494 now constant and contains hard time values pre-generated. Remove
7495 all elaboration code used to populate the table of leap seconds.
7498 Add entity Leap_Seconds_Support to the list of global run-time variables
7499 along with a comment on its usage and values.
7500 (Gen_Adainit_Ada): Add code to generate the declaration and import of
7501 Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
7502 or one (enabled) depending on the presence of binder switch "-y".
7503 (Gen_Adainit_C): Add code to generate the declaration of external int
7504 __gl_leap_seconds_support. Set is value to zero (disabled) or one
7505 (enabled) depending on the presence of binder switch "-y".
7507 * init.c: Add __gl_leap_seconds_support to the list of global values
7508 computed by the binder.
7510 2007-09-26 Jerome Guitton <guitton@adacore.com>
7512 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
7513 s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
7514 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
7515 s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
7517 * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
7519 * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
7520 function which can be called by the debugger to interrupt the tasks of
7521 an Ada application asynchronously, as needed on VxWorks.
7522 (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
7524 * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
7525 renamed from Stop_All_Tasks. Update comments.
7526 (Stop_All_tasks): New function declaration.
7528 2007-09-26 Olivier Hainque <hainque@adacore.com>
7530 * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
7531 #include <utime.h> and #define GCC_RESOURCE_H before
7532 #include <sys/wait.h>.
7533 Add more protections in __gnat_translate_vms.
7535 * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
7536 #include <sys/wait.h>.
7538 2007-09-26 Thomas Quinot <quinot@adacore.com>
7539 Sergey Rybin <rybin@adacore.com>
7541 * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
7543 * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
7546 * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
7548 * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
7551 * sem_dist.ads: Minor comment fix
7553 * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
7555 2007-09-26 Javier Miranda <miranda@adacore.com>
7556 Eric Botcazou <ebotcazou@adacore.com>
7559 (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
7560 indirection added to the HT_Link component of the TSD. This is required
7561 to statically allocate the TSD.
7564 Minor reordering of the declarations in the private part. Required to
7565 add a level of indirection to the contents of the TSD component HT_Link.
7566 This is required to statically allocate the TSD.
7568 * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
7569 Is_Statically_Allocated set from constant objects.
7570 Do not make exported constants created by the compiler volatile.
7571 (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
7574 * trans.c (Identifier_to_gnu): For constants, unshare initializers
7575 before returning them.
7577 * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
7578 public part of the package.
7579 (Make_DT): Move HT_Link component out of the TSD record. For this
7580 purpose Make_DT now declares a separate object that stores the
7581 HT_Link value, and initializes the TSD component with the address
7582 of this new object. The addition of this level of indirection is
7583 required to statically allocate the TSD because the TSD cannot
7584 have variable components.
7585 (Expand_Interface_Conversion): Improve the expanded code.
7586 (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
7588 * sem_disp.adb (Check_Dispatching_Operation): In case of a body
7589 declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
7590 if we are building static dispatch tables then we must not generate
7591 extra code to register the primitive because the dispatch table will
7592 be built at the end of the library package; otherwise we notify that
7593 we cannot build the static dispatch table.
7595 2007-09-26 Robert Dewar <dewar@adacore.com>
7597 * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
7600 * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
7601 (Analyze_Record_Representation_Clause): Suppress junk warning for
7602 missing component clause.
7603 (Analyze_Attribute_Definition_Clause, case Address): Apply the special
7604 tests for controlled type overlay to composites with controlled
7606 (Analyze_Record_Representation_Clause): Add reference for component name
7608 2007-09-26 Javier Miranda <miranda@adacore.com>
7609 Gary Dismukes <dismukes@adacore.com>
7611 * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
7612 for thunks associated with interface types.
7614 * einfo.ads: Improve documentatation of Is_Internal
7615 (Is_Thunk): New attribute applicable to subprograms. True for thunks
7616 associated with interface types.
7617 Extensive comment fixes regarding flags that appear in all entities. The
7618 documentation is now consistent for all such flags (there were a number
7619 of errors in the documentation in this regard).
7621 * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
7623 * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
7624 of these procedures are passed a function call that already has
7625 build-in-place actuals (testing new flag
7626 Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
7627 the case where processing continues.
7628 (Expand_Call): If the call is generated from a thunk body then we
7629 propagate the extra actuals associated with the accessibility
7630 level of the access type actuals.
7632 * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
7633 of each extra formal of a protected operation to reference the
7634 corresponding extra formal of the subprogram denoted by the
7635 operation's Protected_Body_Subprogram.
7637 * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
7638 N_Function_Call nodes.
7640 2007-09-26 Robert Dewar <dewar@adacore.com>
7642 * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
7644 * debug.adb: Add d.s flag.
7646 2007-09-26 Gary Dismukes <dismukes@adacore.com>
7648 * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
7649 debug variable so that it won't be initialized when pragma
7650 Initialize_Scalars is in effect.
7652 2007-09-26 Gary Dismukes <dismukes@adacore.com>
7654 * freeze.adb (Freeze_Entity): Remove check for preelaborable
7655 initialization of a full view. This is moved to
7656 Analyze_Package_Specification.
7658 * sem_ch7.adb (Analyze_Package_Specification): Add check for
7659 preelaborable initialization of a full view in entity loop.
7660 (Uninstall_Declarations): If entity is a use-visible compilation unit,
7661 its child units are use-visible only if they are visible child units.
7663 * sem_util.adb (Is_Preelaborable_Expression): New function to determine
7664 whether an expression can be used within a type declaration that
7665 requires preelaborable init.
7666 (Check_Components): Replace inline code that does partial checking for
7667 preelaborable default expressions with call to
7668 Is_Preelaborable_Expression.
7669 (Has_Preelaborable_Initialization): In the case of a generic actual
7670 subtype, (that is, Is_Generic_Actual is True), return the result of
7671 applying Has_Preelaborable_Initialization to the generic actual's base
7674 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
7676 * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
7677 call to Jan_1_Day _Of_Week to optimize its performance.
7678 (Is_Leap): Move the routine to the scope of Week_In_Year.
7679 (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
7680 weekday on which January 1 falls of Year - 1 and Year + 1. This function
7681 avoids calling Time_Of and Split, thus making it more efficent.
7682 (Week_In_Year): Reimplemented in oder to follow ISO 8601.
7684 * g-calend.ads (Week_In_Year): Change comment to reflect new
7687 2007-09-26 Emmanuel Briot <briot@adacore.com>
7689 * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
7690 Command_Line): New types
7691 (Define_Alias, Define_Prefix, Free): New subprograms. These provide
7692 support for defining how switches can be grouped on a command line (as
7693 is the case for -gnatw... for GNAT), and how simple switches can be
7694 used as aliases for more complex switches (-gnatwa is same as
7696 (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
7697 (Start, Current_*): New subprograms
7698 Added support for parsing an array of strings in addition to the real
7700 (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
7701 be moved from the body to the private part of the spec.
7702 (*): All subprograms now have an extra parameter with default value to
7703 specify which parser should be used. For backward compatibility, it
7704 defaults to parsing the command line of the application. They were also
7705 modified to properly handle cases where each of the argument does not
7706 start at index 1 (which is always true for Ada.Command_Line, but not
7707 when processing any Argument_List).
7708 (Free): New subprogram
7709 (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
7710 Argument): New subprograms
7711 (Switch_Parameter_Type): New enum, which clarifies the code. The extra
7712 special characters like ':', '=',... are now handled in a single place,
7713 which makes the code more extensible eventually.
7714 (Getopt, Full_Switch): When the switch was returned as part of the
7715 special character '*', make sure it is prepended by the switch character
7716 ('-' in general), so that the application knows whether "foo" or "-foo"
7717 was specified on the command line.
7719 2007-09-26 Florian Villoing <villoing@adacore.com>
7721 * g-dirope.adb (Remove_Dir): In case we are removing directories
7722 recursively, make sure that if an exception is raised during the
7723 processing, the current working directory is reset to its initial
7724 value before propagating the exception.
7726 2007-09-26 Vincent Celier <celier@adacore.com>
7728 * gnatbind.adb: If there are several ALI files specified and there is
7729 a main program to bind, the first ALI is expected to contain the main
7730 subprogram and the names of the binder generated files will be derived
7731 from the first ALI file name.
7732 (Gnatbind): Fix insertion character in invocation of Error_Msg
7734 2007-09-26 Vincent Celier <celier@adacore.com>
7736 * gnatcmd.adb (Check_Files): Do not include sources that have been
7737 removed by attributes Exclude_Source_Files or Locally_Removed_Files.
7739 2007-09-26 Ed Schonberg <schonberg@adacore.com>
7741 * lib-xref.ads, lib-xref.adb: The entry for array types now carries
7742 information about each of its index types, following the type
7743 reference for its component type.
7745 2007-09-26 Vincent Celier <celier@adacore.com>
7747 * make.adb: (Kill): New procedure (__gnat_kill imported)
7748 (Running_Compile, Outstanding_Compiles): Global variables that
7749 were previously local to procedure Compile_Sources.
7750 (Sigint_Intercepted): Send signal SIGINT to all outstanding
7751 compilation processes.
7753 (Gnatmake): If project files are used, create the mapping of all the
7754 sources, so that the correct paths will be found.
7756 * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
7758 2007-09-26 Vincent Celier <celier@adacore.com>
7760 * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
7762 * prj.ads, prj.adb (Default_Language): Remove function, no longer used
7763 Replace components Compiler_Min_Options and Binder_Min_Options with
7764 Compiler_Required_Switches and Binder_Required_Switches in record
7766 Remove components Default_Language and Config in Project_Tree_Data,
7769 * prj-attr.adb: New attributes Required_Switches (<language>) in
7770 packages Compiler and Binder.
7772 * prj-nmsc.adb: Major rewrite of the processing of configuration
7773 attributes for gprbuild. No impact on GNAT tools.
7775 * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
7776 process configuration attributes: this is done in Prj.Nmsc.Check.
7777 (Recursive_Process): Make a full copy of packages inherited from project
7778 being extended, instead of a shallow copy.
7779 (Process_Project_Tree_Phase_1): New procedure
7780 (Process_Project_Tree_Phase_1): New procedure
7781 (Process): Implementation now uses the two new procedures
7783 * prj-util.adb (Executable_Of): Get the suffix and the default suffix
7784 from the project config, not the tree config that no longer exists.
7786 2007-09-26 Vincent Celier <celier@adacore.com>
7788 * Make-lang.in: Update dependencies..
7790 2007-09-26 Vincent Celier <celier@adacore.com>
7792 * osint.adb, osint.ads: Minor reformatting
7794 * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
7796 2007-09-26 Gary Dismukes <dismukes@adacore.com>
7798 * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
7799 message to cite use of <> in aggregate component associations rather
7800 than wrongly indicating use of limited aggregates.
7802 2007-09-26 Robert Dewar <dewar@adacore.com>
7804 * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
7807 2007-09-26 Ed Schonberg <schonberg@adacore.com>
7809 * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
7810 ancestor of the derived type, the operations are inherited from the
7811 primary dispatch table of the parent.
7812 (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
7813 when the context is an explicit type conversion.
7815 2007-09-26 Ed Schonberg <schonberg@adacore.com>
7817 * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
7818 rule for qualified expressions properly, to detect improper conversions
7819 and resolve some cases of overloading.
7821 2007-09-26 Ed Schonberg <schonberg@adacore.com>
7823 * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
7824 proper kind of reference to the primitive operation, for better source
7826 (Valid_Conversion): A tagged conversion is legal if both operands are
7829 2007-09-26 Robert Dewar <dewar@adacore.com>
7831 * sem_warn.adb (Check_References): Catch more cases of unreferenced
7834 2007-09-26 Vincent Celier <celier@adacore.com>
7836 * snames.adb, snames.ads: Change Include_Option to Include_Switches
7838 2007-09-26 Robert Dewar <dewar@adacore.com>
7840 * s-wchstw.adb: provide messages for run time unit exceptions
7842 * a-witeio.adb: Minor reformatting
7844 * exp_ch13.adb: Minor reformatting
7846 2007-09-26 Sergey Rybin <rybin@adacore.com>
7848 * vms_data.ads: Revise gnatmetric qualifiers.
7849 Add qualified for the new gnatbind option '-y'
7851 * gnat_ugn.texi: Revise the gnatmetric section.
7852 Add entry for new gnatbind option '-y'.
7854 * gnat_rm.texi: Minor spelling correction.
7855 Document restriction on overlaying controlled types
7857 2007-09-26 Vincent Celier <celier@adacore.com>
7859 * makegpr.adb (Link_Executables): Do not fail when the root project has
7860 no sources, but is an extending project.
7862 2007-09-25 Eric Botcazou <ebotcazou@adacore.com>
7864 * trans.c: Fix misplaced #define.
7866 2007-09-22 Eric Botcazou <ebotcazou@adacore.com>
7868 * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
7869 the TYPE_REF_CAN_ALIAS_ALL flag to the result.
7871 2007-09-21 Olivier Hainque <hainque@adacore.com>
7873 * utils.c (type_for_nonaliased_component_p): Return false for
7874 all AGGREGATE_TYPEs.
7876 2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
7878 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
7879 object covered by 13.3(19) volatile.
7881 2007-09-12 Eric Botcazou <ebotcazou@adacore.com>
7885 * utils.c (unchecked_convert): Use a subtype as the intermediate type
7886 in the special VIEW_CONVERT_EXPR case.
7888 2007-09-12 Robert Dewar <dewar@adacore.com>
7890 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
7892 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
7893 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
7894 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
7895 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
7896 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
7897 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
7898 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
7899 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
7900 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
7901 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
7902 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
7903 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
7904 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
7905 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
7906 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
7907 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
7908 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
7909 pragma Compiler_Unit and adds it to relevant library units.
7911 2007-09-12 Ed Schonberg <schonberg@adacore.com>
7913 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
7914 a box need not correspond to any component.
7916 2007-09-12 Robert Dewar <dewar@adacore.com>
7918 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
7919 the tasking version of the Ada run time when foreign threads are
7920 present and there are no explicit Ada tasks or tasking constructs.
7922 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
7924 2007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
7926 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
7927 the usage of switch -y.
7929 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
7930 when switch -y is present.
7932 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
7933 leap seconds in Ada.Calendar and its children.
7935 2007-09-12 Jose Ruiz <ruiz@adacore.com>
7937 * a-extiti.ads (Timer): The discriminant is a "not null access
7938 constant" in the Reference Manual.
7939 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
7941 2007-09-12 Robert Dewar <dewar@adacore.com>
7943 * a-swuwha.adb: Remove junk RM header
7945 2007-09-12 Vincent Celier <celier@adacore.com>
7947 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
7950 * g-bytswa.ads: Minor reformatting
7952 2007-09-12 Thomas Quinot <quinot@adacore.com>
7954 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
7955 Add new constant Thread_Blocking_IO, always True by default, set False
7956 on a per-runtime basis.
7957 (Need_Netdb_Buffer): New constant.
7959 2007-09-12 Arnaud Charlet <charlet@adacore.com>
7961 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
7962 Added renames for corresponding functions in System.Partition_Interface.
7964 2007-09-12 Doug Rupp <rupp@adacore.com>
7966 * Makefile.in: Remove VMS specific System.CRTL packages which are no
7969 * s-crtl-vms64.ads: Removed.
7971 2007-09-12 Olivier Hainque <hainque@adacore.com>
7973 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
7974 with discriminant constraints, generalize the code for BIT_FIELDs
7975 to PACKED fields of constant size and propagate DECL_PACKED.
7977 2007-09-11 Eric Botcazou <ebotcazou@adacore.com>
7979 * decl.c (array_type_has_nonaliased_component): New predicate.
7980 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
7981 set the TYPE_NONALIASED_COMPONENT flag on the type.
7982 <E_Array_Subtype>: Likewise.
7983 * gigi.h (type_for_nonaliased_component_p): Declare.
7984 * utils.c (type_for_nonaliased_component_p): New predicate.
7985 (create_field_decl): Invoke the above predicate to set the
7986 DECL_NONADDRESSABLE_P flag on the field.
7988 2007-09-11 Javier Miranda <miranda@adacore.com>
7990 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
7991 in library level record type entities if we are generating statically
7992 allocated dispatch tables.
7994 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
7995 importing/exporting the _tag declaration by new code
7996 importing/exporting the dispatch table wrapper. This change allows us
7997 to statically allocate of the TSD.
7998 (Make_DT.Export_DT): New procedure.
7999 (Build_Static_DT): New function.
8000 (Has_DT): New function.
8002 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
8003 True_Constant and Current_Value. Required to statically
8004 allocate the dispatch tables.
8005 (Check_Allocator): Make function iterative instead of recursive.
8006 Also return inner allocator node, when present, so that we do not have
8007 to look for that node again in the caller.
8009 2007-09-11 Jan Hubicka <jh@suse.cz>
8011 * misc.c (gnat_expand_body): Kill.
8012 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
8014 2007-09-10 Robert Dewar <dewar@adacore.com>
8016 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
8017 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
8018 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
8019 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
8020 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
8021 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
8022 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
8023 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
8024 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
8025 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
8026 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
8027 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
8028 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
8029 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
8030 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
8031 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
8032 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
8033 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
8034 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
8035 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
8036 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
8037 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
8038 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
8039 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
8040 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
8041 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
8042 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
8043 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
8044 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
8045 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
8046 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
8047 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
8048 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
8049 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
8050 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
8051 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
8052 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
8053 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
8054 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
8055 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
8056 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
8057 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
8058 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
8059 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
8060 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
8061 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
8062 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
8063 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
8064 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
8065 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
8066 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
8067 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
8068 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
8069 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
8070 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
8071 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
8072 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
8073 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
8074 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
8075 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
8076 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
8077 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
8078 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
8079 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
8080 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
8081 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
8082 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
8083 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
8084 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
8085 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
8086 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
8087 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
8088 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
8089 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
8090 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
8091 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
8092 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
8093 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
8094 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
8095 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
8096 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
8097 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
8098 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
8100 2007-09-10 Emmanuel Briot <briot@adacore.com>
8102 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
8105 2007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
8107 * adaint.c (__gnat_translate_vms): new function.
8109 2007-09-10 Gary Dismukes <dismukes@adacore.com>
8110 Thomas Quinot <quinot@adacore.com>
8112 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
8113 create an abstract subprogram in the case of 'Input. For 'Output we now
8114 create a real spec/body when the type is abstract, since it can
8115 potentially be called.
8116 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
8117 body for 'Output when the type is abstract (only the creation of the
8118 body for 'Input is excluded when the type is abstract).
8119 (Stream_Operation_OK): Add an additional condition in the return
8120 statement, so that False will be returned for TTS_Stream_Input if the
8121 associated tagged type is an abstract extension. Add comments for
8123 (Expand_N_Object_Declaration): For the case of a shared passive
8124 variable, insert init proc call only after the shared variable
8125 procedures have been processed, because the IP call needs to undergo
8126 shared passive variable reference expansion, which requires these
8127 procedures to be available (and elaborated).
8129 2007-09-10 Vincent Celier <celier@adacore.com>
8131 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
8132 parameter Runtime_Project.
8134 2007-09-10 Ed Schonberg <schonberg@adacore.com>
8136 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
8137 given a box association, the type of the component is discriminated,
8138 and the value of the discriminant is the discriminant of the enclosing
8139 type, retrieve its value from the aggregate itself, where it must have
8142 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
8143 to remove other spurious ambiguities on arithmetic operations involving
8144 literals and addresses, on systems where Address is a visible integer
8145 type, when the operator is called in functional notation.
8146 (Try_Primitive_Operation): Within an instance, a call in prefixed form
8147 is legal when the types match, even if the operation is currently
8150 2007-09-10 Ed Schonberg <schonberg@adacore.com>
8152 * sem_ch12.adb (Build_Local_Package): A formal package with no
8153 associations is legal if all formals have defaults. It is not
8154 equivalent to a formal declared with a box.
8156 2007-09-10 Sergey Rybin <rybin@adacore.com>
8158 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
8160 2007-09-10 Sergey Rybin <rybin@adacore.com>
8162 * gnat_ugn.texi: Add description of the new '-lratio' option
8163 Update 7.3.1 section about availability of the feature.
8165 2007-09-10 Thomas Quinot <quinot@adacore.com>
8167 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
8170 2007-09-10 Olivier Hainque <hainque@adacore.com>
8172 * Makefile.in: (mips-irix section): Activate build of libgmem.
8174 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
8176 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
8179 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
8181 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
8182 a debug renaming declaration specially.
8184 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
8186 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
8187 which a constant renaming is treated as a normal object declaration.
8188 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
8189 the N_Indexed_Component case.
8190 <N_Indexed_Component>: Fall through to above case.
8191 <N_Object_Renaming_Declaration>: Return true for all composite types.
8193 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
8195 * decl.c (make_packable_type): If the new type has been given BLKmode,
8196 try again to get an integral mode for it.
8198 2007-09-07 Eric Botcazou <ebotcazou@adacore.com>
8200 Re-apply accidentally reverted change:
8202 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
8204 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
8205 get_action_description_for): Replace _Unwind_Word with _uleb128_t
8206 and _Unwind_SWord with _sleb128_t.
8208 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
8210 * trans.c (convert_with_check): Update call to real_2expN.
8212 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
8214 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
8215 * utils.c (end_subprog_body): Likewise.
8217 2007-09-03 Nick Clifton <nickc@redhat.com>
8219 * Make-lang.in: Change copyright header to refer to version 3 of
8220 the GNU General Public License and to point readers at the
8221 COPYING3 file and the FSF's license web page.
8222 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
8223 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
8224 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
8225 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
8228 2007-08-31 Vincent Celier <celier@adacore.com>
8232 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
8233 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
8234 (Check_Version_And_Help): New procedure in package Switch to process
8235 switches --version and --help.
8236 Use Check_Version_And_Help in GNAT tools
8239 (Compile_Sources): Make sure that sources that are "excluded" are not
8241 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
8242 project file is used.
8243 (Version_Switch): Remove, moved to Switch
8244 (Help_Switch): Remove, moved to Switch
8245 (Display_Version): Remove, moved to Switch
8247 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
8248 package Switch to process switches --version and --help.
8249 (Display_Version): New procedure
8251 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
8253 2007-08-31 Javier Miranda <miranda@adacore.com>
8255 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
8258 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
8260 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
8261 (Mark_Non_Null): If the node for which we just generated an access check
8262 is a reference to an *in* parameter and the reference appears in the
8263 declarative part of a subprogram body, mark the node as known non null.
8265 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
8267 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
8268 structure of E_Exception to reflect the new flag.
8269 (Is_Raised, Set_Is_Raised): New inlined routines.
8270 Update the usage of available flag to reflect the addition of Is_Raised.
8271 (Is_Raised, Set_Is_Raised): Bodies of new routines.
8272 (Write_Entity_Flags): Write the status of flag Is_Raised.
8273 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
8274 spurious ambiguities when integer literals appear in the context of an
8275 address type that is a visible integer type.
8277 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
8278 exceptions never being raised.
8279 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
8282 2007-08-31 Javier Miranda <miranda@adacore.com>
8284 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
8285 statement when compiling under restriction No_Exceptions_Proparation.
8287 2007-08-31 Ed Schonberg <schonberg@adacore.com>
8289 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
8290 initialization aggregate for the type, generate itype references for
8291 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
8293 2007-08-31 Gary Dismukes <dismukes@adacore.com>
8295 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
8296 library-level package renaming, pass the declaration associated with
8297 the renaming's special debug variable to Qualify_Entity_Names to ensure
8298 that its encoded name is properly qualified.
8300 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
8301 occurring in the list of entities to qualify, and do not attempt to
8302 traverse an entity list in that case. Variables associated with
8303 ` library-level package renamings can now occur in the table.
8305 * exp_dbug.ads: Revise documentation of the encoding for renaming
8308 2007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8310 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
8311 access type points to an unconstrained array.
8313 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
8315 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
8318 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
8319 simple redundant qualifications. The check is performed whenever the
8320 expression is a non-overloaded identifier.
8321 (Resolve_Type_Conversion): Enchance the redundant type conversion check
8322 to include loop parameters.
8323 (Valid_Conversion): Avoid generation of spurious error message.
8325 2007-08-31 Bob Duff <duff@adacore.com>
8327 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
8328 concatenations of string literals into a single literal, in order to
8329 avoid very deep recursion in the front end, which was causing stack
8332 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
8333 string, and the right operand is a string literal (the case of "" &
8334 "..."), optimize by avoiding copying the right operand -- just use the
8335 value of the right operand directly.
8337 * stringt.adb (Store_String_Chars): Optimize by growing the
8338 String_Chars table all at once, rather than appending characters one by
8340 (Write_String_Table_Entry): If the string to be printed is very long,
8341 just print the first few characters, followed by the length. Otherwise,
8342 doing "pn(n)" in the debugger can take an extremely long time.
8344 * sem_prag.adb (Process_Interface_Name): Replace loop doing
8345 Store_String_Char with Store_String_Chars.
8347 2007-08-31 Vincent Celier <celier@adacore.com>
8349 * prj-attr.adb: Add new attribute Excluded_Source_Files
8351 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
8352 Locally_Removed_Files.
8354 * snames.ads, snames.adb: New standard name Excluded_Source_Files
8356 2007-08-31 Ed Schonberg <schonberg@adacore.com>
8358 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
8359 clauses of subunits, ignore limited_with_clauses that are illegal and
8360 have not been fully analyzed.
8362 2007-08-31 Ed Schonberg <schonberg@adacore.com>
8364 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
8365 flag, for effiency. It is called when analyzing arithmetic operators
8366 and also for actuals in calls that are universal_integers. The flag is
8367 set for the predefined type address, and for any type or subtype
8370 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
8371 Universal_Integer, when the formal is a descendent of address and the
8372 call appears in user code.
8373 (Analyze_Selected_Component): if the prefix is a private extension, the
8374 tag component is visible.
8376 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
8379 2007-08-31 Robert Dewar <dewar@adacore.com>
8381 * s-fileio.adb (Open): Normalize file name to lower case in non-case
8382 sensitive file name systems to avoid unexpected mismatch in Vista.
8384 2007-08-31 Vincent Celier <celier@adacore.com>
8386 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
8388 2007-08-31 Vincent Celier <celier@adacore.com>
8390 * symbols-vms.adb (Initialize): Read symbol files with continuation
8392 (Finalize): If symbol is long, split the line
8394 2007-08-31 Vincent Celier <celier@adacore.com>
8396 * fmap.ads: Minor comment updates
8398 2007-08-31 GNAT Script <nobody@adacore.com>
8400 * Make-lang.in: Makefile automatically updated
8402 2007-08-31 Bob Duff <duff@adacore.com>
8404 * sinfo.ads: Minor comment fix.
8406 2007-08-31 Thomas Quinot <quinot@adacore.com>
8408 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
8409 with implementation.
8410 Documentation cleanup only.
8412 2007-08-31 Sergey Rybin <rybin@adacore.com>
8414 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
8415 gnatpp '--separate-stmt-name' option.
8416 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
8419 * gnat_ugn.texi: Add description for the new gnatpp
8420 '--separate-stmt-name' and '--use-on-new-line' options.
8422 2007-08-31 Ben Elliston <bje@au.ibm.com>
8424 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
8425 when compiling for powerpc64-*-linux.
8426 * system-linux-ppc64.ads: New file.
8428 2007-08-22 Krister Walfridsson <cato@df.lth.se>
8430 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
8433 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8435 * misc.c (gnat_type_max_size): Constify.
8437 2007-08-16 Gary Dismukes <dismukes@adacore.com>
8439 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
8440 associated with Standard_Debug_Renaming_Type, to be used as the type of
8441 the special variables whose names provide debugger encodings for
8442 renaming declarations.
8444 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
8445 (Set_Debug_Renaming_Link): Change to set Node25.
8446 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
8447 (Write_Field25_Name): Add case for E_Variable to output
8448 "Debug_Renaming_Link".
8449 (Write_Field23_Name): Correct the output string for "Limited_View".
8451 * exp_dbug.adb: Add with and use of Tbuild.
8452 (Debug_Renaming_Declaration): Replace creation of an enumeration type
8453 and literal with creation of a variable of type
8454 Standard_Debug_Renaming_Type whose name encodes both the renamed object
8455 and the entity of the renaming declaration.
8456 (Qualify_Entity_Name): Add the delayed qualification of the entity name
8457 part of the name of a variable that has a Debug_Renaming_Link.
8459 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
8460 special type to be associated with variables that provide debugger
8461 encodings for renaming declarations.
8463 2007-08-16 Gary Dismukes <dismukes@adacore.com>
8464 Ed Schonberg <schonberg@adacore.com>
8465 Javier Miranda <miranda@adacore.com>
8467 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
8468 ancestor part given by an aggregate to test for an unchecked conversion,
8469 since this can occur in some cases when the ancestor part is a function
8470 call, and we don't want to fall into the recursive call to this
8471 procedure in that case.
8473 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
8474 stream attributes on limited types to account for user-specified
8475 attributes as well as whether Input (resp. Output) becomes available
8476 due to Read (resp. Write) being available for the type. Change Boolean
8477 variable to the more accurate name
8478 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
8479 double-"not" predicate at beginning of return statement to more
8480 understandable form.
8482 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
8483 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
8484 in a block statement and use that as the first statement of the
8485 expanded return rather than incorrectly using the handled sequence as
8486 the first statement.
8488 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
8489 operation, generate an explicit freeze node for it rather than
8490 generating extra formals, to ensure that gigi has the proper order of
8491 elaboration for anonymous subtypes in the signature of the subprograms.
8492 (Build_In_Place_Formal): Move assertion to beginning of loop.
8493 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
8494 applied to a function call (occurs for some cases of 'Input).
8495 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
8496 applied to a function call (occurs for some cases of 'Input).
8498 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
8499 2005, generate an extended return statement enclosing the result object
8502 * freeze.adb (Freeze_Record_Type): Extend the current management of
8503 components that are access type with an allocator as default value: add
8504 missing support to the use of qualified expressions of the
8505 allocator (which also cause freezing of the designated type!)
8506 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
8507 dispatching operation, since extra formals may be needed by calls to
8508 build-in-place functions (such as stream 'Input).
8510 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
8511 formals for 'Constrained and accessibility level in the case of a
8512 predefined dispatching operation.
8514 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
8515 point, no need to find the parent node.
8517 2007-08-16 Javier Miranda <miranda@adacore.com>
8519 * exp_attr.adb (Attribute_Priority): Add missing support for entries
8522 2007-08-16 Javier Miranda <miranda@adacore.com>
8524 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
8525 is not really required and can introduce regression with the debugger.
8526 The original problem is fixed with the patch written for checks.adb.
8528 2007-08-16 Thomas Quinot <quinot@adacore.com>
8530 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
8531 Range_Check on Allocated_Table.
8533 2007-08-16 Vincent Celier <celier@adacore.com>
8535 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
8536 Including_Non_Switch set to False.
8537 (Gnatmake): For the compiler, call Test_If_Relative_Path with
8538 Including_Non_Switch set to False.
8540 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
8541 parameter Including_Non_Switch, defaulted to True. When
8542 Including_Non_Switch is False, options that are not switches and
8543 appear as relative path are not converted to absolute paths.
8545 2007-08-16 Nicolas Roche <roche@adacore.com>
8547 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
8550 * Make-lang.in: Update dependencies
8552 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
8554 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
8555 currently inspected is a selected component, retrieve the entity of
8557 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
8558 from the immediate ancestor of Main_Unit_Entity.
8559 (Install_Limited_Withed_Unit): Do not install the limited view of
8560 package P if P is reachable through an ancestor chain from package C
8561 and C also has a with clause for P in its body.
8562 (Has_Limited_With_Clause): New routine.
8563 (Has_With_Clause): New routine.
8565 2007-08-16 Ed Schonberg <schonberg@adacore.com>
8567 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
8568 generic for an enclosing instance is a global reference, even though
8569 its scope is the enclosing instance.
8571 2007-08-16 Gary Dismukes <dismukes@adacore.com>
8572 Javier Miranda <miranda@adacore.com>
8574 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
8575 initialize a limited object.
8576 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
8578 Make sure Has_Complex_Representation is inherited by derived type.
8580 2007-08-16 Robert Dewar <dewar@adacore.com>
8582 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
8585 2007-08-16 Ed Schonberg <schonberg@adacore.com>
8587 * sem_disp.adb (Check_Dispatching_Operation): If the operation
8588 implements an operation inherited from a progenitor interface, verify
8589 that they are subtype-conformant.
8591 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
8592 Bob Duff <duff@adacore.com>
8593 Nicolas Setton <setton@adacore.com>
8595 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
8596 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
8597 the statement which is being resolved comes from a predefined library
8598 unit, all non-predefined library interpretations are skipped.
8599 (Resolve_Op_Concat): If string concatenation was folded in the parser,
8600 but the "&" is user defined, give an error, because the folding would
8603 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
8604 the parser has folded a long sequence of concatenations of string
8607 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
8608 and "JMP_BUF" variables as artificial.
8609 (N_String_Literal): Do not use alloca for very long string literals. Use
8610 xmalloc/free instead. Otherwise the stack might overflow.
8612 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
8615 2007-08-16 Vincent Celier <celier@adacore.com>
8617 * vms_conv.adb (Process_Argument): Ensure that project related options
8618 are not put in the -cargs section when using GNAT COMPILE.
8620 2007-08-16 Robert Dewar <dewar@adacore.com>
8622 * gnat_ugn.texi: Add note on preprocessing (output file not written)
8624 2007-08-16 Thomas Quinot <quinot@adacore.com>
8626 * a-tags.adb: Minor reformatting.
8628 2007-08-16 Bob Duff <duff@adacore.com>
8630 * sem_type.ads, sem_ch4.adb: Minor reformatting.
8632 2007-08-14 Thomas Quinot <quinot@adacore.com>
8634 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
8635 s-osinte-interix.ads, system-interix.ads: Removed.
8637 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
8639 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
8640 calls to Check_Within_Time_Bounds.
8641 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
8642 (Difference): Account for possible rounding of the resulting difference
8644 2007-08-14 Robert Dewar <dewar@adacore.com>
8646 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
8647 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
8648 s-osinte-solaris.adb, s-osinte-solaris.ads,
8649 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
8651 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
8652 switch -gnatyS. Enable -gnatyS in GNAT style check mode
8654 2007-08-14 Robert Dewar <dewar@adacore.com>
8655 Ed Schonberg <schonberg@adacore.com>
8657 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
8658 Suppress unmodified in-out parameter warning in some cases
8659 This patch is a also fairly significant change to the way suppressible
8662 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
8663 needed for access to concurrent record types generated by the expander.
8664 (Generate_Range_Check): When generating a temporary to capture the
8665 value of a conversion that requires a range check, set the type of the
8666 temporary before rewriting the node, so that the type is always
8667 properly placed for back-end use.
8668 (Apply_Float_Conversion_Check): Handle case where the conversion is
8670 (Get_Discriminal): Code reformatting. Climb the scope stack looking
8671 for a protected type in order to examine its discriminants.
8673 2007-08-14 Robert Dewar <dewar@adacore.com>
8674 Gary Dismukes <dismukes@adacore.com>
8675 Ed Schonberg <schonberg@adacore.com>
8676 Thomas Quinot <quinot@adacore.com>
8678 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
8679 a-stwisu.adb, a-strsup.adb: Fix warnings for range
8680 tests optimized out.
8682 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
8683 (Get_Allocator_Final_List): For the case of an anonymous access type
8684 that has a specified Associated_Final_Chain, do not go up to the
8686 (Expand_N_Type_Conversion): Test for the case of renamings of access
8687 parameters when deciding whether to apply a run-time accessibility
8689 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
8690 aggregate code before allocator, and ahead of declaration for
8691 temporary, to prevent access before elaboration when the allocator is
8692 an actual for an access parameter.
8693 (Expand_N_Type_Conversion): On an access type conversion involving an
8694 access parameter, do not apply an accessibility check when the
8695 operand's original node was an attribute other than 'Access. We now
8696 create access conversions for the expansion of 'Unchecked_Access and
8697 'Unrestricted_Access in certain cases and clearly accessibility should
8698 not be checked for those.
8700 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
8701 includes a type conversion of a packed component that has been expanded,
8702 recover the original expression for the object, and use this expression
8703 in the post-call assignment statement, so that the assignment is made
8704 to the object and not to a back-end temporary.
8705 (Freeze_Subprogram): In case of primitives of tagged types not defined
8706 at the library level force generation of code to register the primitive
8707 in the dispatch table. In addition some code reorganization has been
8708 done to leave the implementation clear.
8709 (Expand_Call): When expanding an inherited implicit conversion,
8710 preserve the type of the inherited function after the intrinsic
8711 operation has been expanded.
8713 * exp_ch2.ads, exp_ch2.adb
8714 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
8715 of an entry formal appearing in an assignment statement does not assign
8717 (Expand_Current_Value): Instead of calling a routine to determine
8718 whether the prefix of an attribute reference should be optimized or
8719 not, prevent the optimization of such prefixes all together.
8721 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
8722 component whose prefix is known to be of an access type is an implicit
8723 dereference and does not assign to the prefix.
8725 2007-08-14 Ed Schonberg <schonberg@adacore.com>
8726 Robert Dewar <dewar@adacore.com>
8728 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
8729 itype is visited, make an entry into table to link associated node and
8731 Add comments and correct harmless error in Build_NCT_Hash_Tables
8732 (Array_Aggr_Subtype): Associate each itype created for an index type to
8733 the corresponding range construct, and not to the aggregate itself. to
8734 maintain a one-to-one correspondence between itype and its associated
8735 node, to prevent errors when complex expression is copied.
8736 Fix mishandling of multiple levels of parens
8738 * sem_aggr.adb: Create a limited view of an incomplete type, to make
8739 treatment of limited views uniform for all visible declarations in a
8740 limited_withed package.
8741 (New_Copy_Tree): If hash table is being used and itype is visited,
8742 make an entry into table to link associated node and new itype.
8743 (Resolve_Record_Aggregate): Do not add an others box association for a
8744 discriminated record component that has only discriminants, when there
8745 is a box association for the component itself.
8747 * par-ch4.adb: Fix mishandling of multiple levels of parens
8749 2007-08-14 Robert Dewar <dewar@adacore.com>
8751 * comperr.adb: Fix problem with suppressing warning messages from gigi
8753 * erroutc.ads, erroutc.adb, errout.ads,
8754 errout.adb (Write_Eol): Remove trailing spaces before writing the line
8755 (Write_Eol_Keep_Blanks): New procedure to write a line, including
8756 possible trailing spaces.
8757 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
8758 Fix problem with suppressing warning messages from back end
8759 Improve handling of deleted warnings
8762 Fix problem with suppressing warning messages from back end
8763 Handle setting of Static_Dispatch_Tables flag.
8766 Fix problem with suppressing warning messages from back end
8768 * exp_intr.adb: Improve handling of deleted warnings
8770 2007-08-14 Robert Dewar <dewar@adacore.com>
8772 * debug.adb: Improve -gnatdI to cover all cases of serialization
8773 Add documentation of dZ, d.t
8775 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
8777 (Sprint_Node_Actual): Generate new output associated with implicit
8778 importation and implicit exportation of object declarations.
8780 2007-08-14 Ed Schonberg <schonberg@adacore.com>
8781 Robert Dewar <dewar@adacore.com>
8782 Javier Miranda <miranda@adacore.com>
8783 Gary Dismukes <dismukes@adacore.com>
8785 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
8786 to make treatment of limited views uniform for all visible declarations
8787 in a limited_withed package.
8788 Improve warnings for in out parameters
8789 (Set_Related_Interaface/Related_Interface): Allow the use of this
8790 attribute with constants.
8791 (Write_Field26_Name): Handle attribute Related_Interface in constants.
8792 Warn on duplicate pragma Preelaborable_Initialialization
8794 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
8795 generation of a freezing node to ensure proper management of null
8796 excluding access types in the backend.
8797 (Create_Extra_Formals): Test base type of the formal when checking for
8798 the need to add an extra accessibility-level formal. Pass the entity E
8799 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
8800 originally being done in a couple of cases), to ensure that the
8801 Extra_Formals list gets set on the entity E when the first entity is
8803 (Conforming_Types): Add missing calls to Base_Type to the code that
8804 handles anonymous access types. This is required to handle the
8805 general case because Process_Formals builds internal subtype entities
8806 to handle null-excluding access types.
8807 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
8808 functions that need it, even when not marked Requires_Overriding.
8809 Improve warnings for in out parameters
8810 (Analyze_Function_Return): Warn for disallowed null return
8811 Warn on return from procedure with unset out parameter
8812 Ensure consistent use of # in error messages
8813 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
8814 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
8815 the implicit conversion of the expression done for anonymous access
8816 types. This is required to generate the code of the null excluding
8817 check (if required).
8819 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
8820 A formal parameter is never publicly referenceable outside of its body.
8821 (Check_References): For an unreferenced formal parameter in an accept
8822 statement, use the same warning circuitry as for subprogram formal
8824 (Warn_On_Unreferenced_Entity): New subprogram, taken from
8825 Output_Unreferenced_Messages, containing the part of that routine that
8826 is now reused for entry formals as described above.
8827 (Goto_Spec_Entity): New function
8828 (Check_References): Do not give IN OUT warning for dispatching operation
8829 Improve warnings for in out parameters
8830 (Test_Ref): Check that the entity is not undefinite before calling
8831 Scope_Within, in order to avoid infinite loops.
8832 Warn on return from procedure with unset out parameter
8833 Improved warnings for unused variables
8835 2007-08-14 Robert Dewar <dewar@adacore.com>
8836 Javier Miranda <miranda@adacore.com>
8837 Gary Dismukes <dismukes@adacore.com>
8839 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
8840 (Expand_N_Attribute_Reference): Further unify the handling of the
8841 three forms of access attributes, using common code now for all three
8842 cases. Add a test for the case of applying an access attribute to
8843 an explicit dereference when the context is an access-to-interface
8844 type. In that case we need to apply the conversion to the prefix
8845 of the explicit dereference rather than the prefix of the attribute.
8846 (Attribute_Version, UET_Address): Set entity as internal to ensure
8847 proper dg output of implicit importation.
8848 (Expand_Access_To_Type): Removed.
8849 (Expand_N_Attribute_Reference): Merge the code from the three cases
8850 of access attributes, since the processing is largely identical for
8851 these cases. The substantive fix here is to process the case of a
8852 type name prefix (current instance case) before handling the case
8853 of interface prefixes.
8855 2007-08-14 Thomas Quinot <quinot@adacore.com>
8856 Ed Schonberg <schonberg@adacore.com>
8857 Javier Miranda <miranda@adacore.com>
8858 Robert Dewar <dewar@adacore.com>
8860 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
8861 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
8862 type that is an anonymous access to controlled object, establish
8863 an associated finalization chain to avoid corrupting the global
8864 finalization list when a dynamically allocated object designated
8865 by such a component is deallocated.
8866 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
8867 functions that need it, even when not marked Requires_Overriding.
8868 (Initialize_Tag): Replace call to has_discriminants by call to
8869 Is_Variable_Size_Record in the circuitry that handles the
8870 initialization of secondary tags.
8871 (Is_Variable_Size_Record): New implementation.
8872 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
8873 Suppress_Initialization pragma for a derived type.
8874 (Is_Variable_Size_Record): New subprogram.
8875 (Build_Offset_To_Top_Functions): New implementation that simplifies the
8876 initial version of this routine and also fixes problems causing
8877 incomplete initialization of the table of interfaces.
8878 (Build_Init_Procedure): Improve the generation of code to initialize the
8879 the tag components of secondary dispatch tables.
8880 (Init_Secondary_Tags): New implementation that simplifies the previous
8881 version of this routine.
8882 (Make_DT): Add parameter to indicate when type has been frozen by an
8883 object declaration, for diagnostic purposes.
8884 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
8885 diagnose attemps to freeze a subprogram when some untagged type of its
8886 profile is a private type whose full view has not been analyzed yet.
8887 (Freeze_Array_Type): Generate init proc for packed array if either
8888 Initialize or Normalize_Scalars is set.
8889 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
8890 constructing the new profile, copy the null_exclusion indicator for each
8891 parameter, to ensure full conformance of the new body with the spec.
8893 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
8894 Create wrappers for constructor functions that need it, even when not
8895 marked Requires_Overriding.
8896 (Covers): Handle properly designated types of anonymous access types,
8897 whose non-limited views are themselves incomplete types.
8898 (Add_Entry): Use an entity to store the abstract operation which hides
8900 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
8901 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
8902 initialization aggregate.
8903 (Function_Interp_May_Be_Hidden): Rename to
8904 Function_Interp_Has_Abstract_Op.
8905 (Has_Compatible_Type): Remove machinery that skips interpretations if
8906 they are labeled as potentially hidden by an abstract operator.
8907 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
8908 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
8909 (Write_Overloads): Output the abstract operator if present.
8910 (Add_Entry): Before inserting a new entry into the interpretation table
8911 for a node, determine whether the entry will be disabled by an abstract
8913 (Binary_Op_Interp_May_Be_Hidden): New routine.
8914 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
8916 (Function_Interp_May_Be_Hidden): New routine.
8917 (Has_Compatible_Type): Do not consider interpretations hidden by
8918 abstract operators when trying to determine whether two types are
8920 (Has_Hidden_Interp): New routine.
8921 (Set_May_Be_Hidden_Interp): New routine.
8922 (Write_Overloads): Write the status of flag May_Be_Hidden.
8924 2007-08-14 Ed Schonberg <schonberg@adacore.com>
8925 Javier Miranda <miranda@adacore.com>
8927 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
8928 types declared in the declarative part of a nested package body or in
8929 the proper body of a stub.
8930 (Set_All_DT_Position): Add missing check to avoid wrong assignation
8931 of the same dispatch table slot to renamed primitives.
8932 (Make_Select_Specific_Data_Table): Handle private types.
8933 (Tagged_Kind): Handle private types.
8934 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
8935 output of implicit importation and exportation.
8936 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
8937 first formal of the thunk is always associated with the controlling
8938 type. In addition perform the following code cleanup: remove formal
8939 Thunk_Alias which is no longer required, cleanup evaluation of the
8940 the controlling type, and update the documentation.
8941 Replace occurrence of Default_Prim_Op_Count by
8942 Max_Predef_Prims. Addition of compile-time check to verify
8943 that the value of Max_Predef_Prims is correct.
8944 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
8945 (Make_DT): Add parameter to indicate when type has been frozen by an
8946 object declaration, for diagnostic purposes.
8947 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
8948 construction of statically allocated dispatch tables.
8949 (Make_DT): In case of library-level tagged types export the declaration
8950 of the primary tag. Remove generation of tags (now done by Make_Tags).
8951 Additional modifications to handle non-static generation of dispatch
8952 tables. Take care of building tables for asynchronous interface types
8953 (Make_Tags): New subprogram that generates the entities associated with
8954 the primary and secondary tags of Typ and fills the contents of Access_
8955 Disp_Table. In case of library-level tagged types imports the forward
8956 declaration of the primary tag that will be declared later by Make_DT.
8957 (Expand_Interface_Conversion): In case of access types to interfaces
8958 replace an itype declaration by an explicit type declaration to avoid
8959 problems associated with the scope of such itype in transient blocks.
8961 2007-08-14 Robert Dewar <dewar@adacore.com>
8962 Ed Schonberg <schonberg@adacore.com>
8963 Javier Miranda <miranda@adacore.com>
8965 * exp_util.ads, exp_util.adb:
8966 This patch replaces a number of occurrences of explicit tests for N_Null
8967 with calls to Known_Null. This improves tracking of null values, since
8968 Known_Null also catches null constants, and variables currently known to
8969 be null, so we get better tracking.
8970 (Ensure_Defined): create an itype reference only in the scope of the
8972 (Side_Effect_Free): A selected component of an access type that
8973 denotes a component with a rep clause must be treated as not
8974 side-effect free, because if it is part of a linked structure its
8975 value may be affected by a renaming.
8976 (Expand_Subtype_From_Expr): For limited objects initialized with build
8977 in place function calls, do nothing; otherwise we prematurely introduce
8978 an N_Reference node in the expression initializing the object, which
8979 breaks the circuitry that detects and adds the additional arguments to
8980 the called function. Bug found working in the new patch for statically
8981 allocated dispatch tables.
8982 (Is_Library_Level_Tagged_Type): New subprogram.
8983 (Remove_Side_Effects): If the expression of an elementary type is an
8984 operator treat as a function call.
8985 (Make_Literal_Range): If the index type of the array is not integer, use
8986 attributes properly to compute the constraint on the resulting aggregate
8989 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
8990 class-wide type whose base type is an incomplete private type, leave
8991 class-wide type unfrozen so that freeze nodes can be generated
8992 properly at a later point.
8993 (Freeze_Entity, array case): Handle case of pragma Pack and component
8994 size attributre clause for same array.
8996 2007-08-14 Vincent Celier <celier@adacore.com>
8998 * prj.ads, prj.adb: Update Project Manager to new attribute names for
9000 Allow all valid declarations in configuration project files
9001 (Reset): Initialize all tables and hash tables in the project tree data
9002 Major update of the Project Manager and of the project aware tools,
9003 including gprmake, so that the same sources in the GNAT repository
9004 can be used by gprbuild.
9005 (Slash_Id): Change type to be Path_Name_Type
9006 (Slash): Return a Path_Name_Type instead of a File_Name_Type
9008 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
9010 Update Project Manager to new attribute names for ghprbuild
9011 Allow all valid declarations in configuration project files
9012 Major update of the Project Manager and of the project aware tools,
9013 including gprmake, so that the same sources in the GNAT repository
9014 can be used by gprbuild.
9017 Major update of the Project Manager and of the project aware tools,
9018 including gprmake, so that the same sources in the GNAT repository
9019 can be used by gprbuild.
9021 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
9022 insensitive flag for attributes with optional index.
9023 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
9024 array attribute, put the index in lower case.
9025 Update Project Manager to new attribute names for ghprbuild
9026 Allow all valid declarations in configuration project files
9027 Major update of the Project Manager and of the project aware tools,
9028 including gprmake, so that the same sources in the GNAT repository
9029 can be used by gprbuild.
9031 * prj-env.ads, prj-env.adb:
9032 Major update of the Project Manager and of the project aware tools,
9033 including gprmake, so that the same sources in the GNAT repository
9034 can be used by gprbuild.
9035 (Get_Reference): Change type of parameter Path to Path_Name_Type
9037 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
9038 removing '-' from the path to start with the first character of the
9040 Major update of the Project Manager and of the project aware tools,
9041 including gprmake, so that the same sources in the GNAT repository
9042 can be used by gprbuild.
9043 Major update of the Project Manager and of the project aware tools,
9044 including gprmake, so that the same sources in the GNAT repository
9045 can be used by gprbuild.
9047 * prj-nmsc.ads, prj-nmsc.adb:
9048 Update Project Manager to new attribute names for ghprbuild
9049 Allow all valid declarations in configuration project files
9050 (Search_Directories): Detect subunits that are specified with an
9051 attribute Body in package Naming. Do not replace a source/unit in the
9052 same project when the order of the source dirs are known. Detect
9053 duplicate sources/units in the same project when the order of the
9054 source dirs are not known.
9055 (Check_Ada_Name): Allow all identifiers that are not reserved words
9057 Major update of the Project Manager and of the project aware tools,
9058 including gprmake, so that the same sources in the GNAT repository
9059 can be used by gprbuild.
9060 (Look_For_Sources): If the list of sources is empty, set the object
9061 directory of non extending project to nil.
9062 Change type of path name variables to be Path_Name_Type
9063 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
9064 otherwise creating missing directories will fail.
9066 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
9067 prj-part.ads, prj-part.adb:
9068 Major update of the Project Manager and of the project aware tools,
9069 including gprmake, so that the same sources in the GNAT repository
9070 can be used by gprbuild.
9072 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
9073 insensitive flag for attributes with optional index.
9074 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
9075 array attribute, put the index in lower case.
9076 (Parse_Variable_Reference): Allow the current project name to be used in
9077 the prefix of an attribute reference.
9079 * prj-util.ads, prj-util.adb
9080 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
9081 defaulted to False. When True, always check against indexes in lower
9084 * snames.ads, snames.h, snames.adb:
9085 Update Project Manager to new attribute names for gprbuild
9086 Allow all valid declarations in configuration project files
9088 2007-08-14 Robert Dewar <dewar@adacore.com>
9089 Ed Schonberg <schonberg@adacore.com>
9091 * opt.ads: Warning for non-local exception propagation now off by
9093 New switch -gnatI to disable representation clauses
9094 Implement new pragma Implicit_Packing
9097 Warning for non-local exception propagation now off by default
9098 Add warning for unchecked conversion of pointers wi different
9100 New switch -gnatI to disable representation clauses
9102 * usage.adb: new switch -gnatyS
9104 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
9105 note that aggregates of anonymous array types are not flagged.
9106 -gnatwc now includes membership tests optimized away
9107 -gnatw.x warnings are now off by default
9108 Added conditional compilation Appendix
9109 Add documentation of -gnatI
9110 Add documentation for new -gnatyS style check
9111 Update documentation about SAL and auto-init on Windows.
9114 Add documentation for pragma Check_Name and 'Enabled attribute
9115 Document that Eliminate on dispatching operation is ignored
9116 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
9117 Document pragma Main
9118 Document pragma Implicit_Packing
9120 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
9121 different conventions
9122 New switch -gnatI to disable representation clauses
9124 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
9125 recognized, report the invalid characters including "-gnat" instead of
9126 just the first character in the switch.
9127 New switch -gnatI to disable representation clauses
9128 Set Warn_On_Object_Renames_Function true for -gnatg
9130 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
9131 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
9132 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
9133 to switch -aP (add directory to project search dir).
9135 * par-prag.adb: Implement new pragma Implicit_Packing
9137 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
9138 type as having a non-standard representation, to force expansion on
9139 conversion to related types.
9140 (Analyze_Pragma): Warn on misspelled pragma
9141 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
9142 Ensure consistent use of # in error messages
9143 Implement pragma Implicit_Packing
9145 2007-08-14 Olivier Hainque <hainque@adacore.com>
9146 Eric Botcazou <ebotcazou@adacore.com>
9148 * targtyps.c (get_target_maximum_default_alignment): New function.
9150 that the compiler might choose by default for a type or object.
9151 (get_target_default_allocator_alignment): New function. Alignment known
9152 to be honored by the target default allocator.
9153 (get_target_maximum_allowed_alignment): New function. Maximum alignment
9154 we might accept for any type or object on the target.
9155 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
9157 * gigi.h (get_target_maximum_default_alignment): Declare new function.
9158 (get_target_default_allocator_alignment): Likewise.
9159 (get_target_maximum_allowed_alignment): Likewise.
9162 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
9163 result of a function call, first try to use a stabilized reference for
9164 a constant renaming too.
9165 (validate_alignment): Use target_maximum_allowed_alignment instead of
9166 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
9167 (gnat_to_gnu_entity): Use common nodes directly.
9168 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
9169 alignment and size for the object.
9170 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
9171 and N_Procedure_Call_Statement.
9172 (takes_address): Rename to lvalue_required_p, add third parameter
9173 'aliased' and adjust recursive calls.
9174 <N_Indexed_Component>: Update 'aliased' from the array type.
9175 <N_Selected_Component>: New case.
9176 <N_Object_Renaming_Declaration>: New Likewise.
9177 (Identifier_to_gnu): Adjust for above changes.
9178 (maybe_stabilize_reference) <CONST_DECL>: New case.
9180 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
9181 between type variants.
9182 (build_simple_component_ref): Likewise.
9183 (build_call_alloc_dealloc): Use target_default_allocator_alignment
9184 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
9185 aligning type circuitry for allocations from the default storage pool.
9186 (build_allocator): Likewise.
9187 (build_simple_component_ref): Manually fold the reference for a
9188 constructor if the record type contains a template.
9190 * utils.c (value_zerop): Delete.
9191 (gnat_init_decl_processing): Emit debug info for common types.
9192 (rest_of_record_type_compilation): If a union contains a field
9193 with a non-constant qualifier, treat it as variable-sized.
9194 (finish_record_type): Give the stub TYPE_DECL a name.
9195 (rest_of_record_type_compilation): Likewise.
9196 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
9197 types are equivalent array types.
9198 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
9199 even if the type is not passed by reference.
9200 (static_ctors, static_dtors): Delete.
9201 (end_subprog_body): Do not record constructors and destructors.
9202 (build_global_cdtor): Delete.
9203 (gnat_write_global_declarations): Do not call build_global_cdtor.
9205 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
9206 -fRTS=rtp is specified.
9207 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
9210 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
9211 of the personality function with SJLJ exceptions.
9213 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
9214 the name of the personality function with SJLJ exceptions.
9216 2007-08-14 Robert Dewar <dewar@adacore.com>
9217 Ed Schonberg <schonberg@adacore.com>
9219 * par.ads, par.adb: Improve handling of extra right parens.
9220 (Par): Remove flag From_Limited_With_Clause.
9222 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
9223 Improve handling of extra right parens.
9225 2007-08-14 Robert Dewar <dewar@adacore.com>
9227 * par-tchk.adb (TF_Semicolon): Improve error recovery
9229 2007-08-14 Robert Dewar <dewar@adacore.com>
9230 Ed Schonberg <schonberg@adacore.com>
9232 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
9233 enumeration type, mark all literals as referenced.
9234 (Eval_Attribute, case 'Image): If the argument is an enumeration
9235 literal and names are available, constant-fold but mark nevertheless as
9237 Clean up function names.
9238 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
9240 (Requires_Simple_Name_Prefix): Removed.
9242 2007-08-14 Robert Dewar <dewar@adacore.com>
9243 Ed Schonberg <schonberg@adacore.com>
9245 * sem_ch11.adb: Improved warnings for unused variables
9247 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
9248 is a synchronized interface, the derived type is limited.
9249 (Analyze_Object_Declaration): Mark the potential coextensions in the
9250 definition and expression of an object declaration node.
9251 (Build_Derived_Type): For the completion of a private type declaration
9252 with a derived type declaration, chain the parent type's representation
9253 items to the last representation item of the derived type (not the
9254 first one) if they are not present already.
9255 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
9256 object declaration of forward references to tags.
9257 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
9258 subprogram types can appear as access discriminants of synchronized
9260 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
9261 given in prefixed form as a selected component.
9262 (Process_Discriminants): If not all discriminants have defaults, place
9263 error message on a default that is present.
9264 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
9265 extend a synchronized tagged type.
9266 Improved warnings for unused variables
9267 (Is_Visible_Component): Fix a visibility hole on a component inherited
9268 by a private extension when parent is itself declared as a private
9269 extension, and the derivation is in a child unit.
9270 (Find_Hidden_Interface): Move spec from the package body.
9272 2007-08-14 Robert Dewar <dewar@adacore.com>
9273 Ed Schonberg <schonberg@adacore.com>
9275 * sem_ch5.adb: Improve warnings on redundant assignments
9277 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
9279 (Is_Synchronized_Tagged_Type): New subprogram that returns true
9280 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
9281 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
9282 is set to False. Improves handling of Known_[Not_]Null.
9283 (Wrong_Type): Special case address arithmetic attempt
9284 (Collect_Abstract_Interfaces): Add new formal to allow collecting
9285 abstract interfaces just using the partial view of private types.
9286 (Has_Abstract_Interfaces): Add new formal to allow checking types
9287 covering interfaces using the partial view of private types.
9288 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
9289 component still needs to be defined in this case, but is never
9290 initialized as VMs are using other dispatching mechanisms.
9291 (Abstract_Interface_List): For a protected type, use base type to get
9293 Improve warnings on redundant assignments
9294 (Is_Variable): Handle properly an implicit dereference of a prefixed
9296 (Build_Actual_Subtype): If this is an actual subtype for an
9297 unconstrained formal parameter, use the sloc of the body for the new
9298 declaration, to prevent anomalises in the debugger.
9300 2007-08-14 Robert Dewar <dewar@adacore.com>
9302 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
9303 dispatching operation
9305 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9306 Gary Dismukes <dismukes@adacore.com>
9309 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
9310 expanded aggregate code before allocator, and ahead of declaration for
9311 temporary, to prevent access before elaboration when the allocator is
9312 an actual for an access parameter.
9313 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
9314 the TSD and the table of interfaces.
9315 (Convert_To_Assignments): Augment the test for delaying aggregate
9316 expansion for limited return statements to include the case of extended
9317 returns, to prevent creation of an unwanted transient scope.
9318 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
9319 (Expand_Array_Aggregate): Handle aggregates associated with
9320 statically allocated dispatch tables.
9321 (Expand_Record_Aggregate): Handle aggregates associated with
9322 statically allocated dispatch tables.
9323 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
9324 of anonymous access type.
9326 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9328 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
9329 is a variable that renames a slice, use the variable itself in the
9330 expannsion when the renamed expression itself may be modified between
9331 the declaration of the renaming and the array assignment.
9333 2007-08-14 Jerome Guitton <guitton@adacore.com>
9335 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
9336 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
9337 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
9338 New functions; dummy implementations.
9340 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
9341 functions, used to implement the multi-tasks mode routines on VxWorks.
9343 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
9345 binding to the VxWorks routines which have changed between VxWorks 5
9347 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
9348 which are not callable from a RTP.
9350 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
9351 implemented for the multi-tasks mode on VxWorks 5 and 6.
9353 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
9355 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
9358 2007-08-14 Vincent Celier <celier@adacore.com>
9360 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
9361 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
9362 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
9363 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
9364 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
9365 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
9366 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
9368 (Major_Id_Name): New function.
9369 mlib-tgt.ads/mlib.tgt.adb:
9370 (Library_Major_Minor_Id_Supported): New function, default returns True
9371 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
9372 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
9373 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
9374 Implementation of Library_Major_Minor_Id_Supported returns False
9376 (Clean_Library_Directory): If major/minor ids are supported, clean all
9378 Major update of the Project Manager and of the project aware tools,
9379 including gprmake, so that the same sources in the GNAT repository
9380 can be used by gprbuild.
9382 2007-08-14 Olivier Hainque <hainque@adacore.com>
9384 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
9385 (GCC_ZCX_Support): Switch to True.
9387 * s-intman-solaris.adb (Notify_Exception): Call
9388 Adjust_Context_For_Raise before raising, as expected for signal
9389 handlers in general.
9391 * s-intman-posix.adb (Notify_Exception): Remove declaration of
9392 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
9393 to other implementation bodies.
9395 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
9396 be visible by multiple implementation bodies.
9398 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
9399 only for conditions coming from hardware.
9400 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
9401 adjustments to signal context prior to exception raise from signal
9403 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
9405 Solaris section: (__gnat_adjust_context_for_raise): New function.
9406 Implementation of the machine context adjustments to perform prior to
9407 raise from a signal handler. Version for both sparc and x86.
9408 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
9409 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
9410 prior to raising as expected for any handler, before possible nested
9411 faults to make sure all the contexts in a chain have been adjusted by
9412 the time we propagate.
9414 2007-08-14 Pascal Obry <obry@adacore.com>
9416 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
9417 (SYSTEM_INFO): New record.
9418 (SetThreadIdealProcessor): New imported routine needed for supporting
9419 task_info pragma on Windows.
9421 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
9422 info can be applied to the current host.
9423 (Create_Task): Set the ideal processor if information is present.
9425 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
9426 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
9428 2007-08-14 Olivier Hainque <hainque@adacore.com>
9430 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
9431 stack size and initial stack pointer value for a given task.
9432 (Enter_Task): Get the stack attributes of the task we are entering and
9433 let the stack checking engine know about them.
9435 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
9436 Let the stack-checking engine know about the initial sp value and stack
9437 size associated with the current task.
9438 (Set_Stack_Info): If a stack base has been notified for the current
9439 task, honor it. Fallback to the previous less accurate method otherwise.
9441 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
9443 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9445 * sem_ch10.adb: Create a limited view of an incomplete type, to make
9446 treatment of limited views uniform for all visible declarations in a
9447 limited_withed package.
9448 Set flag indicating that a subprogram body for a child unit has a
9450 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
9451 separate declaration, remove the unit name from visibility after
9452 compilation, so that environment is clean for subsequent compilations.
9453 (Install_Limited_Context_Clauses): Do not install a
9454 limited_private_with_clause unless the current unit is a body or a
9456 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
9457 in the same fashion.
9458 (Install_Limited_Withed_Unit): Do not install a limited with clause if
9459 it applies to the declaration of the current package body.
9460 (Remove_Private_With_Clauses): If there is a regular with_clause for
9461 the unit, delete Private_With_Clause from context, to prevent improper
9462 hiding when processing subsequent nested packages and instantiations.
9464 2007-08-14 Jose Ruiz <ruiz@adacore.com>
9466 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
9467 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
9468 representing absolute path names.
9469 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
9471 * cstreams.c (__gnat_full_name for VxWorks): Use
9472 __gnat_is_absolute_path to detect whether we need to add the current
9473 directory to normalize the path.
9475 2007-08-14 Javier Miranda <miranda@adacore.com>
9478 a-tags.adb (Displace): Associate a message with the raised CE
9480 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
9481 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
9482 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
9484 (Default_Prim_Op_Count): Removed.
9485 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
9486 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
9487 Remove pragma Inline_Always.
9489 * rtsfind.ads (Default_Prim_Op_Count): Removed
9490 (Max_Predef_Prims): New entity
9491 (RE_Expanded_Name): Removed
9492 (RE_HT_Link): Removed
9493 (RE_Iface_Tag): Remmoved
9494 (RE_Ifaces_Table): Removed
9495 (RE_Interfaces_Array): Removed
9496 (RE_Interface_Data_Element): Removed
9497 (RE_Nb_Ifaces): Removed
9498 (RE_RC_Offset): Removed
9499 (RE_Static_Offset_To_Top): Removed
9501 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
9503 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
9504 Prim_Op_Count by Max_Predef_Prims.
9506 2007-08-14 Thomas Quinot <quinot@adacore.com>
9507 Vincent Celier <celier@adacore.com>
9509 * binde.adb (Elab_All_Links): Remove unnecessary call to
9510 Generic_Separately_Compiled (if a unit satisfies this predicate, there
9511 won't be an associated Afile).
9512 (Elab_All_Links): Fail if a referenced unit cannot be found
9515 Fix comments in bindgen regarding consistency checks done in Bcheck:
9516 the checks are made across units within a partition, not across several
9518 Fix generation of C binder file for VxWorks.
9520 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
9521 Generic_May_Lack_ALI, more descriptive of the current use of the
9522 predicate, and update documentation.
9524 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
9525 reorganization and documentation update for the case of predefined
9526 library generics (for which we do not reference an Afile).
9528 2007-08-14 Robert Dewar <dewar@adacore.com>
9530 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
9531 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
9532 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
9533 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
9534 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
9535 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
9536 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
9537 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
9538 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
9539 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
9540 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
9541 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
9542 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
9543 g-altcon.adb: Minor reformatting
9545 ada-tree.h: Delete empty line.
9547 ali.ads: Minor reformatting
9548 Clarification of comments.
9549 Minor spelling correction
9551 * exp_dbug.adb: Add Warnings Off to suppress new warning
9553 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
9556 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
9559 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
9561 * a-textio.ads: Reorder the standard input/output/error declarations
9564 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
9566 * par-ch2.adb: Recognize RM specially in errout
9567 Change 'R'M to RM in all error messages
9569 * scng.adb: Recognize RM specially in errout
9571 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
9572 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
9574 * s-direio.adb: Add missing routine header box.
9576 * sem_attr.ads: Add ??? comments
9578 * sem_eval.adb: Recognize RM specially in errout
9579 Change 'R'M to RM in all error messages
9581 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
9583 * s-tasinf.ads: Fix minor comment typo.
9585 * a-cihama.adb: Minor comment addition
9587 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
9590 * s-tasinf-tru64.ads: Fix minor comment typo.
9592 * itypes.ads: Comment update.
9594 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
9597 * argv.c: Added protection against null gnat_argv and gnat_envp.
9599 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
9600 warning message when Tolerate_Consistency_Errors is True.
9602 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
9603 Any_Id, as this subprogram is only applicable to *type* entities (it
9604 sets RM_Size). Instead initialize just Esize and Alignment.
9606 2007-08-14 Bob Duff <duff@adacore.com>
9608 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
9609 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
9610 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
9611 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
9612 a-coorse.ads (Next): Applied pragma Inline.
9613 Make all Containers packages Remote_Types (unless they are already
9615 (Previous): applied pragma Inline
9616 (Elements_Type): is now a record instead of an array
9618 2007-08-14 Thomas Quinot <quinot@adacore.com>
9620 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
9622 (Set_Item): When the new item is an element of the currently allocated
9623 table passed by reference, save a copy on the stack if we're going
9624 to reallocate. Also, in Table.Set_Item, make sure we test the proper
9625 variable to determine whether to call Set_Last.
9627 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
9628 symbols-vms.adb, symbols-processing-vms-alpha.adb,
9629 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
9630 some occurrences of the pattern
9632 T.Table (T.Last) := Value;
9633 with a cleaner call to
9636 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9637 Gary Dismukes <dismukes@adacore.com>
9638 Thomas Quinot <quinot@adacore.com>
9640 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
9641 derived type with interface progenitors use the analyzed formal as the
9642 parent of the actual, to create renamings for all the inherited
9643 operations in Derive_Subprograms.
9644 (Collect_Previous_Instances): new procedure within of
9645 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
9646 unit being loaded, to ensure that the generation of global symbols is
9647 consistent in different compilation modes.
9648 (Is_Tagged_Ancestor): New function testing the ancestor relation that
9649 takes progenitor types into account.
9650 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
9651 traversing over the primitives of the formal and actual types to locate
9652 any abstract subprograms of the actual type that correspond to a
9653 nonabstract subprogram of the formal type's ancestor type(s), and issue
9654 an error if such is found.
9655 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
9656 Instantiate_Package_Body, Instantiate_Subprogram_Body):
9657 Remove bogus guard around calls to Inherit_Context.
9658 (Reset_Entity): If the entity is the selector of a selected component
9659 that denotes a named number, propagate constant-folding to the generic
9660 template only if the named number is global to the generic unit.
9661 (Set_Instance_Env): Only reset the compilation switches when compiling
9662 a predefined or internal unit.
9664 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9666 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
9667 parameter to determine whether operation applies to the prefix.
9668 (Complete_Object_Operation): If actual has an access type and
9669 controlling formal is not an in_parameter, reject the actual if it is
9670 an access_to_constant type.
9671 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
9672 type, the candidate operations are found in the scope of declaration of
9673 the type, because the type has no primitive subprograms.
9674 (Analyze_Selected_Component): If prefix is class-wide, and root type is
9675 a private extension, only examine visible components before trying to
9676 analyze as a prefixed call.
9677 Change Entity_List to Type_To_Use, for better readability.
9678 (Has_Fixed_Op): Use base type when checking whether the type of an
9679 operator has a user-defined multiplication/division
9680 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
9681 user-defined operators are available for fixed-point types.
9683 2007-08-14 Thomas Quinot <quinot@adacore.com>
9684 Ed Schonberg <schonberg@adacore.com>
9686 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
9687 formal At_Any_Place indicating, when True, that we want to test for
9688 availability of the stream attribute at any place (as opposed to the
9689 current visibility context only).
9690 (Missing_Read_Write_Attributes): A stream attribute is missing for the
9691 purpose of enforcing E.2.2(8) only if it is not available at any place.
9692 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
9693 when checking the legality of an extension aggregate in a preelaborable
9694 package. Treat the literal null as a valid default expression in a
9695 component declaration for a type with preelaborable initialization.
9696 A limited interface is a legal progenitor for the designated type of a
9697 remote access to class-wide type.
9699 2007-08-14 Thomas Quinot <quinot@adacore.com>
9700 Ed Schonberg <schonberg@adacore.com>
9702 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
9703 reference): Use correct entity as denoted entity for the selector of
9705 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
9706 setting the Referenced_As_LHS flag for entities that are implicitly
9708 (Find_Type): If the type is an internally generated incomplete type,
9709 mark the full view as referenced, to prevent spurious warnings.
9710 (Find_Selected_Component, Has_Components): Handle properly non-limited
9711 views that are themselves incomplete types.
9712 Handle interfaces visible through limited-with clauses.
9713 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
9714 subprogram generic actual for which we have generated a renaming.
9715 Warn when the renaming introduces a homonym of
9716 the renamed entity, and the renamed entity is directly visible.
9718 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9719 Hristian Kirtchev <kirtchev@adacore.com>
9721 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
9722 appear in the subtree to the current allocator if it is not a static
9724 (Resolve_Allocator): Perform cleanup if resolution has determined that
9725 the allocator is not a coextension.
9726 (Resolve): Skip an interpretation hidden by an abstract operator only
9727 when the type of the interpretation matches that of the context.
9728 (Resolve): When looping through all possible interpretations of a node,
9729 do not consider those that are hidden by abstract operators.
9730 (Resolve_Actuals): When verifying that an access to class-wide object
9731 is an actual for a controlling formal, ignore anonymous access to
9732 subprograms whose return type is an access to class_wide type.
9733 (Resolve_Slice): If the prefix of the slice is a selected component
9734 whose type depends on discriminants, build its actual subtype before
9735 applying range checks on the bounds of the slice.
9736 (Valid_Conversion): In an instance or inlined body, compare root types,
9737 to prevent anomalies between private and public views.
9738 (Resolve): Improve error message for ambiguous fixed multiplication
9739 expressions that involve universal_fixed multiplying operations.
9741 2007-08-14 Javier Miranda <miranda@adacore.com>
9742 Hristian Kirtchev <kirtchev@adacore.com>
9744 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
9745 location to allow the correct generation of errors in case of
9746 restrictions applied to the expanded code.
9747 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
9748 function if the condition does not reference them.
9749 (Expand_Entry_Body_Declarations): Mark the index constant as having a
9752 2007-08-14 Thomas Quinot <quinot@adacore.com>
9753 Pablo Oliveira <oliveira@adacore.com>
9755 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
9756 typecode parameters for a union (in a variant record), remove
9757 extraneous layer of Any wrapping for member label.
9758 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
9759 elabration statements, register the package with the name server
9760 at the beginning, not at the end, of the elaboration statements so
9761 that they can create remote access to subprogram values that designate
9762 remote subprograms from the package.
9764 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
9766 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
9767 values to compute the number of seconds since the Unix Epoc in order to
9768 account for Daylight Savings Time. Perform special processing for dates
9769 that are earlier than the Unix Epoc to obtain a negative number.
9771 2007-08-14 Emmanuel Briot <briot@adacore.com>
9773 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
9776 2007-08-14 Eric Botcazou <ebotcazou@adacore.com>
9778 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
9779 binder-generated file is not in Ada.
9780 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
9781 recorded in the ALI file.
9782 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
9784 2007-08-14 Vincent Celier <celier@adacore.com>
9786 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
9787 (Output_Source): Do nothing if parameter is No_Sdep_Id
9789 * make.adb (Gnatmake): Do not rebuild an archive simply because a
9790 shared library it imports has a later time stamp.
9791 (Check): Resolve the symbolic links in the path name of the object
9793 Check that the ALI file is in the correct object directory
9794 Check if a file name does not correspond to the mapping of units
9796 (Display_Version): New procedure
9797 (Initialize): Process switches --version and --help
9798 Use type Path_Name_Type for path name
9800 2007-08-14 Paul Hilfinger <hilfinger@adacore.com>
9802 * impunit.adb: Re-organize System.Random_Numbers and
9803 GNAT.Random_Numbers and add to builds.
9805 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
9807 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
9809 * a-assert.ads, a-assert.adb: New files.
9811 2007-08-14 Gary Dismukes <dismukes@adacore.com>
9813 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
9814 if AAMP_On_Target is True, then the size of the type encompasses two
9815 addresses (a static link and a subprogram address), except in the case
9816 of library-level access types.
9818 2007-08-14 Vincent Celier <celier@adacore.com>
9820 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
9822 (Write_Eol_Keep_Blanks): New procedure to write a line, including
9823 possible trailing spaces.
9824 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
9826 2007-08-14 Javier Miranda <miranda@adacore.com>
9828 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
9829 null-excluding access types.
9831 2007-08-14 Javier Miranda <miranda@adacore.com>
9833 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
9834 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
9835 of private types add missing check on matching interfaces in the
9836 partial and full declarations.
9837 (Analyze_Protected_Type): Code cleanup.
9838 (Analyze_Task_Type): Code cleanup.
9840 2007-08-14 Javier Miranda <miranda@adacore.com>
9842 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
9843 generated interface thunk.
9845 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9847 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
9848 obsolescent warning on application of 'Class to an incomplete type.
9850 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
9851 prevent obsolescent warning on application of 'Class to an incomplete
9854 2007-08-14 Pascal Obry <obry@adacore.com>
9856 * s-fileio.adb (Is_Open): Add check for usability of the underlying
9859 2007-08-14 Cyrille Comar <comar@adacore.com>
9861 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
9862 since it is potentially used in cases implying double finalization of
9865 2007-08-14 Jose Ruiz <ruiz@adacore.com>
9867 * s-tasini.adb (Get_Stack_Info): Move this function to
9868 System.Soft_Links.Tasking because it is common to the full and the
9869 restricted run times.
9870 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
9871 in SSL.Tasking.Init_Tasking_Soft_Links.
9873 * s-solita.adb (Get_Stack_Info): Function moved from
9874 System.Tasking.Initialization because it is common to the full and the
9875 restricted run times.
9876 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
9878 2007-08-14 Arnaud Charlet <charlet@adacore.com>
9880 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
9881 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
9882 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
9885 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
9888 2007-08-14 Gary Dismukes <dismukes@adacore.com>
9890 * s-veboop.adb (SU): New named number initialized to
9891 System.Storage_Unit.
9892 (True_Val): The initialization expression is revised to use SU (=
9893 Storage_Unit) rather than assuming 8 for the component size of an
9894 unpacked Boolean array.
9896 2007-08-14 Tristan Gingold <gingold@adacore.com>
9898 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
9900 * tb-ivms.c: New file.
9902 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
9904 2007-08-14 Geert Bosch <bosch@adacore.com>
9906 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
9907 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
9908 Add required linker pragmas for automatically linking with the gnalasup
9909 linear algebra support library, and the systems math library.
9910 Rename cdot to cdotu and zdot to zdotu.
9911 Update header comment to describe purpose of package.
9913 2007-08-14 Thomas Quinot <quinot@adacore.com>
9915 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
9916 an explicitly specified Associated_Final_Chain, use that list.
9917 (Expand_N_Package_Body): Build dispatch tables of library level tagged
9919 (Expand_N_Package_Declaration): Build dispatch tables of library level
9920 tagged types. Minor code cleanup.
9922 2007-08-14 Vincent Celier <celier@adacore.com>
9924 * gnatchop.adb (Terminate_Program): Remove exception and use
9925 Types.Terminate_Program instead.
9927 * osint.ads, osint.adb (Current_Exit_Status): New global variable
9928 (Find_Program_Name): Added protection against empty name.
9929 (OS_Exit_Through_Exception): New procedure
9931 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
9932 (OS_Exit_Default): New procedure that contains the previous
9933 implementation of procedure OS_Exit.
9934 (Final_Value): Remove obsolete Interix stuff.
9936 2007-08-14 Thomas Quinot <quinot@adacore.com>
9938 * g-socket.ads: Reorganize example code so that it also works on
9941 2007-08-14 Tristan Gingold <gingold@adacore.com>
9943 * g-trasym.ads: AIX now supports symbolic backtraces.
9945 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9947 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
9948 units being loaded to detect circularities. A circularity may be
9949 present even if the current chain of pending units to load starts from
9950 a limited_with_clause.
9952 * lib-load.ads: Change profile of Load_Unit to use a with_clause
9953 rather than a boolean flag, in order to detect circularities in
9956 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
9957 than propagating the From_Limited_With flag, in order to handle
9958 properly circularities involving with_clauses.
9960 2007-08-14 Nicolas Setton <setton@adacore.com>
9962 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
9965 2007-08-14 Arnaud Charlet <charlet@adacore.com>
9967 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
9968 to build for libgnala.
9969 libgnat: Add rules to build libgnala.a
9970 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
9971 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
9972 Add s-osinte-vxworks-kernel.adb to the target pairs of the
9973 kernel run-time lib for VxWorks 6, which would provide a different
9974 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
9975 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
9976 running ZCX by default.
9977 Add g-sttsne-locking to LynxOS version.
9978 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
9979 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
9981 * system-darwin-x86.ads: New file.
9983 * Make-lang.in: Delete files before copying onto them, so if they are
9984 read-only, the copy won't fail.
9987 2007-08-14 Pascal Obry <obry@adacore.com>
9989 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
9992 2007-08-14 Vincent Celier <celier@adacore.com>
9994 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
9995 (Gcc): Initialize Gcc_Name at the first call
9997 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9999 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
10000 with_clauses of the enclosing unit when analyzing the package
10001 specification of a nested instance.
10003 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
10005 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
10006 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
10007 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
10008 layout of N_Allocator.
10010 2007-08-14 Thomas Quinot <quinot@adacore.com>
10012 * rtsfind.adb (Check_RPC): Add PCS version check.
10014 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
10015 (Gnat_Free_Software): New function.
10017 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
10018 the PCS_Version value from s-parint, used to check that it is consistent
10019 with what exp_dist expects.
10021 * s-parint.ads (PCS_Version): New entity for checking consistency
10022 between exp_dist and PCS.
10024 * gen-soccon.c: (SO_REUSEPORT): New constant.
10026 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
10028 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
10029 variable Sub_Second to Duration in order to accomodate a larger range
10030 of arithmetic operations.
10032 2007-08-14 Bob Duff <duff@adacore.com>
10034 * g-sttsne-locking.ads: Move comments from spec to body.
10035 * g-sttsne-locking.adb: Move comments from spec to body.
10036 * g-sttsne-vxworks.ads: Removed.
10037 * g-sttsne-vxworks.adb: Removed.
10039 2007-08-11 Ian Lance Taylor <iant@google.com>
10041 * misc.c (gnat_get_alias_set): Change return type to
10044 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10046 * decl.c, utils2.c: Fix whitespace in last change.
10048 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10050 * decl.c (compare_field_bitpos): Constify.
10051 * utils2.c (compare_elmt_bitpos): Likewise.
10053 2007-07-27 Aurelien Jarno <aurelien@aurel32.net>
10055 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
10056 anonymous access type.
10057 (pthread_sigmask): Now take an access sigset_t.
10059 2007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
10061 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
10063 2007-06-21 Eric Botcazou <ebotcazou@adacore.com>
10065 PR tree-optimization/25737
10066 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
10068 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
10070 * trans.c (Attribute_to_gnu): When subtracting an
10071 offset from a pointer, use POINTER_PLUS_EXPR with
10072 NEGATE_EXPR instead of MINUS_EXPR.
10073 (gnat_to_gnu): Likewise.
10074 * utils.c (convert): When converting between
10075 thin pointers, use POINTER_PLUS_EXPR and sizetype
10077 * utils2.c (known_alignment): POINTER_PLUS_EXPR
10078 have the same semantics as PLUS_EXPR for alignment.
10079 (build_binary_op): Add support for the semantics of
10080 POINTER_PLUS_EXPR's operands.
10081 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
10083 2007-06-11 Rafael Avila de Espindola <espindola@google.com>
10085 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
10086 of get_signed_or_unsigned_type.
10087 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
10089 2007-06-11 Bob Duff <duff@adacore.com>
10090 Thomas Quinot <quinot@adacore.com>
10092 * g-stsifd-sockets.adb (Create): Work around strange behavior of
10093 'bind' on windows that causes 'connect' to fail intermittently, by
10094 retrying the 'bind'.
10095 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
10097 2007-06-10 Duncan Sands <baldrick@free.fr>
10099 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
10100 than to void, for the fields when making a new fat pointer type.
10101 (gnat_substitute_in_type): Now substitute_in_type.
10102 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
10103 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
10104 * utils.c (update_pointer_to): Update fat pointers by updating the
10105 dummy node pointers used for the fields.
10107 2007-06-06 Thomas Quinot <quinot@adacore.com>
10108 Bob Duff <duff@adacore.com>
10110 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
10111 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
10112 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
10113 constant Thread_Blocking_IO, always True by default, set False
10114 on a per-runtime basis.
10115 (Need_Netdb_Buffer): New constant.
10117 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
10118 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
10121 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
10122 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
10123 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
10124 child package Task_Safe_NetDB
10125 (Host_Error_Messages): Add stub body.
10126 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
10128 * g-soccon-mingw.ads: Add Windows-specific constants.
10129 (Need_Netdb_Buffer): New constant.
10130 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
10131 wrapper and import inet_addr(3) from the standard sockets library
10133 (In_Addr): Add alignment clause.
10134 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
10136 2007-06-06 Robert Dewar <dewar@adacore.com>
10138 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
10139 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
10140 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
10141 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
10142 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
10143 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
10144 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
10145 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
10146 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
10147 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
10148 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
10149 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
10150 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
10151 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
10152 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
10153 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
10154 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
10155 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
10156 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
10157 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
10158 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
10159 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
10160 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
10161 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
10162 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
10163 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
10164 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
10165 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
10166 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
10167 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
10168 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
10169 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
10170 Unchecked_* by Ada.Unchecked_*
10172 2007-06-06 Robert Dewar <dewar@adacore.com>
10174 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
10175 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
10176 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
10177 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
10178 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
10179 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
10181 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
10182 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
10183 s-tasloc.adb, s-tasloc.ads: New files.
10185 2007-06-06 Bob Duff <duff@adacore.com>
10187 * g-expect-vms.adb:
10188 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
10189 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
10190 (Send_Signal, Close): Raise Invalid_Process if the process id is
10192 (Pattern_Matcher_Access): Is now a general access type to be able to
10193 use aliased string.
10195 2007-06-06 Thomas Quinot <quinot@adacore.com>
10196 Arnaud Charlet <charlet@adacore.com>
10198 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
10199 (SIGEMT is now used instead of SIGTERM on AIX).
10201 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
10202 (Time_Slice_Supported): Set to True.
10203 Use SIGEMT instead of SIGTERM as SIGADAABORT.
10205 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
10207 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
10208 (Time, Time)): Use To_Relative_Time rather than manual calculation to
10209 express the bounds of Duration as Time. Raise Time_Error when the
10210 result is greater or equal to the higher bound of Duration (on the
10212 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
10213 Ada_High_And_Leaps.
10214 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
10215 Ada_High_And_Leaps.
10216 ("-" (Time, Time)): Reorder code.
10217 (All_Leap_Seconds): Removed.
10218 (Arithmetic_Operations.Add): Remove sign related kludge.
10219 (Arithmetic_Operations.Difference): Control the leaps seconds processing
10220 with flag Leap_Support.
10221 (Arithmetic_Operations.Subtract): Remove sign related kludge.
10222 (Check_Within_Time_Bounds): New procedure.
10223 (Clock): Control the leap seconds processing with flag Leap_Support.
10224 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
10225 (Formatting_Operations.Split): Control the leap seconds processing with
10227 (Formatting_Operations.Time_Of): Control the leaps seconds processing
10228 with flag Leap_Support. Adjust the year, month and day (if applicable)
10229 when the value of day seconds designates a new day.
10230 (Split): Use parameter associations for better readability. Integrate
10232 (Time_Of): Use parameter associations for better readability. Integrate
10235 * a-calfor.adb (Split): Use parameter associations for better
10236 readability. Integrate flag Is_Ada_05.
10237 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
10238 better readability. Integrate flag Is_Ada_05.
10240 2007-06-06 Arnaud Charlet <charlet@adacore.com>
10242 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
10243 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
10244 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
10245 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
10246 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
10247 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
10248 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
10249 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
10250 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
10251 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
10252 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
10253 time when entering this routine to detect a backward clock setting
10254 (manual setting or DST adjustment), to avoid waiting for a longer delay
10256 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
10257 Remove handling of deferred priority change, and replace by setting the
10258 task priority directly, as required by AI-188.
10260 (Max_Task_Image_Length): New constant.
10261 Replace Warnings (Off) by Unreferenced pragma, cleaner.
10262 (Dynamic_Priority_Support): Removed, no longer needed.
10263 (Poll_Base_Priority_Change): Ditto.
10264 (Set_Ceiling): Add this procedure to change the ceiling priority
10265 associated to a lock. This is a dummy implementation because dynamic
10266 priority ceilings are not supported by the underlying system.
10268 * a-dynpri.adb (Set_Priority): Take into account case where Target is
10269 accepting a RV with its priority boosted.
10270 Remove handling of deferred priority change, and replace by setting the
10271 task priority directly, as required by AI-188.
10273 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
10275 Remove handling of deferred priority change, and replace by setting the
10276 task priority directly, as required by AI-188.
10277 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
10278 of Self_Id earlier.
10280 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
10281 (Poll_Base_Priority_Change): Removed.
10282 Code clean up: use SSL.Current_Target_Exception.
10284 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
10285 to run as this is a potentially dispatching point.
10286 (Call_Synchronous): Use Local_Defer_Abort.
10287 (Callable): Relax assertion.
10288 (Selective_Wait): Relax assertion in case abort is not allowed.
10289 Remove handling of deferred priority change, and replace by setting the
10290 task priority directly, as required by AI-188.
10292 * s-tasuti.adb (Make_Passive): Adjust assertions.
10293 Remove handling of deferred priority change, and replace by setting the
10294 task priority directly, as required by AI-188.
10296 2007-06-06 Arnaud Charlet <charlet@adacore.com>
10298 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
10299 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
10300 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
10301 system-vxworks-mips.ads, system-vxworks-alpha.ads,
10302 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
10303 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
10304 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
10305 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
10306 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
10307 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
10308 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
10309 This patch changes the largest non-binary modulus from 2**31-1 to
10311 (Compiler_System_Version): Removed, no longer used.
10312 Clean up system files by removing flags only used on a single target.
10313 Also remove obsolete flags, only used during bootstrap from system.ads
10314 (Address): Add a pragma Preelaborable_Initialization.
10316 * system-aix.ads: Ditto.
10317 (GCC_ZCX_Support): Set to true.
10318 Update priority range on AIX and map Ada priorities to target
10319 priorities appropriately for different scheduling policies.
10321 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
10323 2007-06-06 Vincent Celier <celier@adacore.com>
10325 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
10326 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
10328 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
10329 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
10330 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
10331 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
10332 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
10333 MLib.Tgt, containing the default versions of the exported subprograms.
10334 For each platform, create a specific version of the body of new child
10335 package MLib.Tgt.Specific that contains only the body of subprograms
10336 that are different from the default.
10337 (Archive_Builder_Append_Options): New function.
10339 2007-06-06 Matthew Gingell <gingell@adacore.com>
10341 * s-osinte-aix.adb: Map Ada priorities to target priorities
10342 appropriately for different scheduling policies.
10344 2007-06-06 Arnaud Charlet <charlet@adacore.com>
10346 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
10348 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
10349 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
10351 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
10353 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
10354 Noop on VMS, added for interface commonality.
10356 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
10357 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10358 Olivier Hainque <hainque@adacore.com>
10360 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
10361 renamed expression of a full renaming at toplevel.
10362 (gnat_to_gnu_entity, case object): If not defining, do not look inside
10363 the values the constant is initialized to if it is an N_Allocator.
10364 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
10365 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
10366 (make_aligning_type): Accept an extra ROOM argument for storage to be
10367 made available before the aligned field, and an extra BASE_ALIGN
10368 argument for callers to pass the alignment guaranteed to be honored for
10369 the whole aligning object. Avoid call to finish_record_type, which only
10370 interferes with the sizes we want to set.
10371 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
10372 make_aligning_type for super-aligned objects on stack.
10373 (components_to_record): Pass the adjusted size of the type when creating
10374 fields in the qualified union for the variant part.
10375 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
10376 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
10378 (maybe_pad_type): Set TYPE_USER_ALIGN.
10379 (make_aligning_type): Likewise.
10380 ALIGN argument is unsigned int.
10381 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
10382 (gnat_to_gnu_param): Likewise, for parameters.
10383 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
10384 if it is constant and stems from a function call.
10385 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
10386 of the record is specified. Adjust accordingly.
10387 (adjust_packed): New static function.
10388 (gnat_to_gnu_field): Use it to adjust the packedness setting.
10389 (components_to_record): Likewise.
10390 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
10391 side-effects if the object is deemed constant.
10392 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
10393 type instead of merely finalizing it. Tidy.
10394 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
10395 <E_Access_Type>: Likewise.
10396 (defer_debug_incomplete_list): Rename to defer_finalize_list.
10397 (defer_debug_level): Delete.
10398 (gnat_to_gnu_entity) <debug_deferred>: Likewise
10399 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
10401 <E_Record_Type>: Do not explicitly defer finalizing the type.
10402 Adjust for write_record_type_debug_info renaming.
10403 <E_Subprogram_Type>: Likewise.
10404 Finalize deferred types right after deferred incomplete types are
10406 (rest_of_type_decl_compilation): New global function.
10407 (components_to_record): Rename defer_debug parameter to do_not_finalize.
10408 (components_to_record): Propagate the packedness to the fields of the
10409 qualified union type if there is a variant part.
10410 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
10411 instead of inline code to adjust the XUT field offsets.
10412 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
10413 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
10414 and write the debug info if the type derives from a discriminated one.
10415 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
10416 <E_Array_Subtype>: Likewise.
10417 <E_String_Literal_Subtype>: Likewise.
10418 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
10419 an alignment clause.
10420 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
10421 before giving warning.
10422 (prepend_one_attribute_to): New function, helper to prepend an attribute
10423 to an attribute list.
10424 (gnat_to_gnu_entity) <E_Procedure>: Use it.
10425 (prepend_attributes): Likewise.
10426 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
10427 <E_Array_Type>: Declare the padding type for the element type, if any.
10428 <E_Array_Subtype>: Likewise.
10429 (defer_limited_with): New variable.
10430 (Gigi_Equivalent_Type): New function.
10431 (gnat_to_gnu_entity): Use it at start and use result throughout.
10432 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
10433 Gigi_Equivalent_Type, support Limited_With, allow two levels of
10434 indirection, precompute if unconstrained array to simplify logic, and
10435 use defer_limited_with to defer elaboration of some types from limited
10437 (finalize_from_with_types): New function.
10439 2007-06-06 Gary Dismukes <dismukes@adacore.com>
10440 Eric Botcazou <ebotcazou@adacore.com>
10441 Tristan Gingold <gingold@adacore.com>
10442 Olivier Hainque <hainque@adacore.com>
10444 * trans.c (Identifier_to_gnu): Change test for deferred constant by
10445 adding guard that the entity is an E_Constant before testing presence
10446 of Full_view (and remove unnecessary test that entity is not a type).
10447 For a CONST_DECL used by reference, manually retrieve
10448 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
10449 (struct language_function): Move from utils.c to here.
10450 (struct parm_attr): New structure.
10451 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
10452 (f_parm_attr_cache): New macro.
10453 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
10454 expressions for the 'First, 'Last and 'Length attributes of the
10455 unconstrained array IN parameters.
10456 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
10457 Allocate the information structure for the function earlier, as well
10458 as the language-specific part.
10459 If the parameter attributes cache has been populated, evaluate the
10460 cached expressions on entry.
10461 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
10462 N_Procedure_Call_Statement and N_Indexed_Component.
10463 (Pragma_to_gnu): Translate inspection_point to an asm statement
10464 containaing a comment and a reference to the object (either its address
10465 for BLKmode or its value).
10466 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
10467 to go to DECL_INITIAL. Together with the size constraint relaxation
10468 in create_var_decl, enlarges the set of situations in which an
10469 identifier may be used as an initializer without implying elaboration
10471 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
10472 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
10474 (maybe_stabilize_reference): Remove lvalues_only parameter.
10475 (gnat_stabilize_reference): Adjust for above change.
10476 (gnat_to_gnu): Do not set location information on the result
10477 if it is a reference.
10478 (add_cleanup): Add gnat_node parameter and set the location of the
10480 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
10481 (Exception_Handler_to_gnu_zcx): Likewise.
10482 (gigi): Remove the cgraph node if the elaboration procedure is empty.
10483 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
10484 the former right after the latter.
10485 (start_stmt_group): Make global.
10486 (end_stmt_group): Likewise.
10487 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
10489 (gnu_program_error_label_stack): Likewise.
10490 (gigi): Initialize them.
10491 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
10492 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
10494 (push_exception_label_stack): New function.
10495 (takes_address): New function.
10497 * utils.c (struct language_function): Move to trans.c from here.
10498 (unchecked_convert): Do not wrap up integer constants in
10499 VIEW_CONVERT_EXPRs.
10500 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
10501 the latter for aggregate types, unexpected by later passes, and relax an
10502 arbitrary size constraint on the former.
10503 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
10504 to compare the sizes.
10505 (convert_vms_descriptor): When converting to a fat pointer type, be
10506 prepared for a S descriptor at runtime in spite of a SB specification.
10507 (shift_unc_components_for_thin_pointers): New function.
10508 (write_record_type_debug_info): For variable-sized fields, cap the
10509 alignment of the pointer to the computed alignment.
10510 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
10511 If REP_LEVEL is 2, do not compute the sizes.
10512 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
10513 (build_unc_object_type): Likewise.
10514 (declare_debug_type): New function.
10516 * ada-tree.def: USE_STMT: removed (not emitted anymore).
10518 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
10519 no statement is expandable anymore.
10520 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
10521 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
10522 when the user requested it explicitely.
10523 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
10525 (get_alias_set): Return alias set 0 for a type if
10526 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
10528 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
10529 (DECL_FUNCTION_STUB): New accessor macro.
10530 (SET_DECL_FUNCTION_STUB): New setter macro.
10532 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
10534 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
10537 2007-06-06 Jose Ruiz <ruiz@adacore.com>
10539 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
10540 Rename to Abort_Task_Interrupt to be able to keep the same interface
10541 as the rest of the targets.
10543 * s-osinte-vxworks.ads s-osinte-vxworks.adb
10544 (To_VxWorks_Priority): Remove explicit "in" mode indicator
10546 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
10549 2007-06-06 Robert Dewar <dewar@adacore.com>
10551 * a-chahan.ads: Remove obsolescent pragmas
10553 * a-chlat1.ads: Minor reformatting
10555 2007-06-06 Robert Dewar <dewar@adacore.com>
10557 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
10560 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
10563 * errout.ads (Finalize): Changed interface
10564 (Output_Messages): New procedure
10565 (Compilation_Errors): New Interface
10567 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
10568 Finalize/Output_Messages interface for Errout
10569 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
10572 2007-06-06 Thomas Quinot <quinot@adacore.com>
10573 Olivier Hainque <hainque@adacore.com>
10574 Robert Dewar <dewar@adacore.com>
10576 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
10578 (Raise_Current_Excep): Call Debug_Raise_Exception just before
10579 propagation starts, to let debuggers know about the event in a reliable
10581 (Local_Raise): Moved to System.Exceptions
10582 More convenient to have this as a separate unit
10584 * s-except.adb, s-except.ads: New files.
10586 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
10587 Debug_Unhandled_Exception in System.Exceptions where it belongs
10588 together with a couple of other debug helpers.
10589 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
10590 the former Unhandled_Exception.
10592 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
10593 (Warn_No_Exception_Propagation): New procedure
10594 (Warn_If_No_Propagation): Rewritten for new warning generation
10595 (Expand_Exception_Handlers): New warning generation
10596 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
10597 (Add_Exception_Label): Use Special_Exception_Package_Used for test
10598 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
10599 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
10600 even if restriction is set (makes life easier in Check_Returns)
10601 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
10602 checking exception identities.
10603 (Expand_Local_Exception_Handlers): Do not optimize when all others case
10604 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
10605 block for handler (used by Check_Returns)
10606 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
10607 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
10608 remove all exception handlers when optimizing local raise statements.
10609 (Find_Local_Handler): Use Get_Renamed_Entity
10610 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
10611 marked analyzed after expanding exception handlers, do not generate
10612 redundant cleanup actions, because they have been constructed already.
10614 2007-06-06 Thomas Quinot <quinot@adacore.com>
10616 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
10617 presence of this categorization pragma is mandated by the language.
10618 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
10621 2007-06-06 Vincent Celier <celier@adacore.com>
10622 Robert Dewar <dewar@adacore.com>
10624 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
10625 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
10626 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
10627 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
10628 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
10629 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
10630 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
10631 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
10632 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
10633 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
10634 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
10636 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
10637 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
10638 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
10639 Use variables of types File_Name_Type and Unit_Name_Type in error
10641 (Get_Name): Add parameter Ignore_Special, and set it reading file name
10642 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
10644 Define flags Flag217-Flag230 with associated subprograms
10645 (Flag_Word5): New record type.
10646 (Flag_Word5_Ptr): New access type.
10647 (To_Flag_Word5): New unchecked conversion.
10648 (To_Flag_Word5_Ptr): Likewise.
10649 (Flag216): New function.
10650 (Set_Flag216): New procedure.
10652 2007-06-06 Arnaud Charlet <charlet@adacore.com>
10654 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
10657 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
10659 2007-06-06 Javier Miranda <miranda@adacore.com>
10661 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
10663 (Object_Specific_Data_Array): This is now internal to the package.
10664 (Object_Specific_Data): This is now internal to the package.
10665 (Select_Specific_Data_Element): This is now internal to the package.
10666 (Select_Specific_Data_Array): This is now internal to the package.
10667 (Select_Specific_Data): This is now internal to the package.
10668 (Offset_To_Top_Function_Ptr): This is now public.
10669 (To_Offset_To_Top_Function_Ptr): Removed.
10670 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
10671 local to subprogram Offset_To_Top.
10672 (Predefined_DT): Removed.
10673 (Typeinfo_Ptr): Removed.
10674 (OSD): This function is now internal to this package.
10675 (SSD): This function is now internal to this package.
10676 (DT): New function that displaces the pointer to the table of primitives
10677 to get access to the enclosing wrapper record.
10678 (IW_Membership): Code cleanup.
10679 (Offset_To_Top): Code cleanup.
10680 (Predefined_DT): Removed.
10681 (Register_Interface_Tag): Removed.
10682 (Set_Interface_Table): Removed.
10683 (Set_Offset_Index): Removed.
10684 (Set_Offset_To_Top): Code cleanup.
10685 (Set_OSD): Removed.
10686 (Set_Signature): Removed.
10687 (Set_SSD): Removed.
10688 (Set_Tagged_Kind): Removed.
10689 (Typeinfo_Ptr): Removed.
10691 (Displace): Add missing check on null actual.
10693 * exp_disp.ads, exp_disp.adb
10694 (Select_Expansion_Utilities): Removed.
10695 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
10696 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
10697 the interface requires a new parameter.
10698 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
10699 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
10700 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
10701 Done to remove package Select_Expansion_Utilities.
10702 (Make_DT): New implementation for statically allocated dispatch tables.
10703 (Make_Secondary_DT): Moved to the scope of Make_DT.
10704 (Register_Primitive): Code cleanup plus incoporate the use of the new
10705 function DT_Address_Attribute.
10706 (Expand_Interface_Thunk): The profile of this subprogram has been
10707 changed to return the Thunk_Id and the corresponding code.
10708 (Fill_DT_Entry): Removed. Its functionality is now provided by
10709 subprogram Register_Primitive.
10710 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
10711 subprogram Register_Primitive.
10712 (Register_Primitive): New subprogram that incorporates the previous
10713 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
10714 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
10715 was only required to call Make_DT_Access_Action, which is now removed.
10716 (Ada_Actions): Removed
10717 (Action_Is_Proc): Removed
10718 (Action_Nb_Arg): Removed
10719 Replace all the calls to Make_DT_Access_Action by direct calls to
10720 Make_Procedure_Call_Statement or Make_Function_Call.
10721 (Set_DTC_Entity_Value): New subprogram.
10722 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
10723 (Expand_Interface_Thunk): Add missing support for primitives that are
10724 functions with a controlling result (case in which there is no need
10725 to generate the thunk).
10727 * exp_atag.ads, exp_atag.adb
10728 (Build_DT): New subprogram that displaces the pointer to reference the
10729 base of the wrapper record.
10730 (Build_Typeinfo_Offset): Removed.
10731 (RTE_Tag_Node): Removed.
10732 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
10733 (Build_Get_RC_Offset): Removed.
10734 (Build_Inherit_Predefined_Prims): Removed.
10735 (Build_Inherit_TSD: Removed.
10736 (Build_New_TSD): Removed.
10737 (Build_Set_External_Tag): Removed.
10738 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
10739 (Build_Set_Prim_Op_Address): Add documentation.
10740 (Build_Set_TSD): Removed.
10742 * rtsfind.ads, rtsfind.adb
10743 (Load_Fail): If load fails and we are not in configurable run-time
10744 mode, then raise Unrecoverable_Error.
10745 (Text_IO_Kludge): Generate an error message if a run-time library is
10746 not available in a given run-time (ie. zfp run-time).
10747 (RTE_Record_Component): Add code to check that the component we search
10748 for is not found in two records in the given run-time package.
10749 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
10750 (RE_DT_Predef_Prims_Offset): New entity
10751 (RE_Static_Offset_To_Top): New entity
10752 (RE_HT_Link): New entity.
10753 (System_Address_Image): Addition of this run-time package.
10754 (RE_Address_Image): New entity.
10755 (RE_Abstract_Interface): Removed.
10756 (RE_Default_Prim_Op_Count): Removed.
10757 (RE_DT_Entry_Size): Removed.
10758 (RE_DT_Min_Prologue_Size): Removed.
10759 (RE_DT_Prologue_Size): Removed.
10760 (RE_Ifaces_Table_Ptr): Removed.
10761 (RE_Interface_Data_Ptr): Removed.
10762 (RE_Type_Specific_Data): Removed.
10763 (RE_Primary_DT): Removed.
10764 (RE_Register_Interface_Tag): Removed.
10765 (RE_Set_Offset_Index): Removed.
10766 (RE_Set_OSD): Removed.
10767 (RE_Set_SSD): Removed.
10768 (RE_Set_Signature): Removed.
10769 (RE_Set_Tagged_Kind): Removed.
10770 (RE_Address_Array): New entity.
10771 (RE_DT): New entity.
10772 (RE_Iface_Tag): New entity.
10773 (RE_Interfaces_Table): New entity.
10774 (RE_No_Dispatch_Table): New entity.
10775 (RE_NDT_Prims_Ptr): New entity.
10776 (RE_NDT_TSD): New entity.
10777 (RE_Num_Prims): New entity.
10778 (RE_Offset_To_Top_Function_Ptr): New entity.
10779 (RE_OSD_Table): New entity.
10780 (RE_OSD_Num_Prims): New entity.
10781 (RE_Predef_Prims): New entity
10782 (RE_Predef_Prims_Table_Ptr): New entity.
10783 (RE_Primary_DT): New entity.
10784 (RE_Signature): New entity.
10785 (RE_SSD): New entity.
10786 (RE_TSD): New entity.
10787 (RE_Type_Specific_Data): New entity.
10788 (RE_Tag_Kind): New entity.
10790 2007-06-06 Thomas Quinot <quinot@adacore.com>
10792 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
10793 C imported variable.
10794 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
10797 2007-06-06 Robert Dewar <dewar@adacore.com>
10799 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
10802 2007-06-06 Vincent Celier <celier@adacore.com>
10804 * a-tifiio.adb (Put, internal): For negative numbers, check that there
10805 is room for at least one digit and the minus sign.
10806 (Put.Put_Character): Never put a character outside of the range of
10809 2007-06-06 Olivier Hainque <hainque@adacore.com>
10810 Eric Botcazou <ebotcazou@adacore.com>
10812 * utils2.c (build_allocator): Provide the extra arguments to
10813 make_aligning_type for super-aligned objects allocated from the default
10814 pool. Leave enough room for a pointer before the aligning field, and
10815 store the system's allocator return value there.
10816 (build_call_alloc_dealloc): When releasing a super-aligned object,
10817 retrieve the system's allocator return value from where build_allocator
10818 has stored it, just ahead of the adjusted address we are passed.
10819 (build_call_raise): Handle properly the generation of line numbers when
10820 the node is marked No_Location.
10821 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
10822 by using DECL_UID on ties.
10823 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
10825 (build_call_raise): Handle converting exception into goto; support new
10827 (build_component_ref): Add new arg to build_call_raise.
10829 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
10831 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
10832 "." in the case of nnn.xxx when nnn terminates with an underscore.
10833 Parse the remaining "#" or ":" in the case of nnn#.xxx#
10835 2007-06-06 Robert Dewar <dewar@adacore.com>
10837 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
10839 2007-06-06 Arnaud Charlet <charlet@adacore.com>
10840 Vincent Celier <celier@adacore.com>
10841 Robert Dewar <dewar@adacore.com>
10843 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
10845 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
10846 ((destructor)) for adafinal, even when switch -a is used.
10847 Do not issue pragma Linker_Destructor for adafinal when switch -a is
10849 (Gen_Object_Files_Options): Add formatting of Linker Options, when
10850 Output_Linker_Option_List is set. Suppress this formatting when
10851 Zero_Formatting is set.
10852 Add case for CLI_Target.
10853 (System_Restrictions_Used): New flag, used to avoid generating with of
10854 System_Restrictions and initialization of the data unless there is
10855 some use of System.Restrictions in the partition.
10856 (Check_System_Restrictions_Used): New procedure
10858 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
10859 since we only with this unit in the binder file if it is used elsewhere
10862 2007-06-06 Vincent Celier <celier@adacore.com>
10864 * bindusg.adb: Add line for @<response file>
10865 Add lines for new switches -R and -Z
10867 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
10868 hierarchy in the list of files of the closure when -R is used
10869 (Gnatbind): Accept arguments starting with '@' to indicate response
10870 files and take the arguments from the response files.
10871 If List_Closure is set, display the referenced files
10873 2007-06-06 Javier Miranda <miranda@adacore.com>
10874 Robert Dewar <dewar@adacore.com>
10875 Ed Schonberg <schonberg@adacore.com>
10877 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
10878 which the address-clause is applied to in-mode actuals (allowed by
10880 (Apply_Discriminant_Check): Do not generate a check if the type is
10881 constrained by a current instance.
10882 (Activate_Division_Check): New procedure
10883 (Activate_Overflow_Check): New procedure
10884 (Activate_Range_Check): New procedure
10885 Call these new Activate procedures instead of setting flags directly
10886 (Apply_Array_Size_Check): Removed, no longer needed.
10887 Code clean up: remove obsolete code related to GCC 2.
10888 (Get_E_Length): Protect against bomb in case scope is standard
10889 (Selected_Range_Checks): If the node to be checked is a conversion to
10890 an unconstrained array type, and the expression is a slice, use the
10891 bounds of the slice to construct the required constraint checks.
10892 Improve NOT NULL error messages
10893 (Apply_Constraint_Check): If the context is a null-excluding access
10894 type, diagnose properly the literal null.
10896 2007-06-06 Pascal Obry <obry@adacore.com>
10898 * clean.adb (Clean_Archive): Use untouched casing for the archive name
10899 and the corresponding .deps file.
10900 (Clean_Interface_Copy_Directory): Use untouched casing for the library
10901 src directory. Minor code-clean-up. Use untouched casing for files
10902 read into the library src dir.
10903 (Clean_Library_Directory): Idem.
10904 (Parse_Cmd_Line): Accept new switch -aP
10906 2007-06-06 Javier Miranda <miranda@adacore.com>
10907 Ed Schonberg <schonberg@adacore.com>
10908 Robert Dewar <dewar@adacore.com>
10909 Eric Botcazou <ebotcazou@adacore.com>
10910 Arnaud Charlet <charlet@adacore.com>
10912 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
10913 applicable to types that have the With_Type flag set. Returns the
10914 non-limited view of the type, if available, otherwise the type itself.
10915 For class-wide types, there is no direct link in the tree, so we have
10916 to retrieve the class-wide type of the non-limited view of the Etype.
10917 New attributes Static_Initialization and Static_Elaboration_Desired.
10918 Remove the pragma Thread_Body, and the associated flag
10919 Is_Thread_Body in entities, and all related code.
10920 (Suppress_Value_Tracking_On_Call): New flag
10921 E_Exception has Esize and Alignment fields
10922 (Universal_Aliasing): New function.
10923 (Set_Universal_Aliasing): New procedure.
10924 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
10925 (Check_Nested_Access): New procedure.
10926 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
10927 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
10928 (Related_Interface): New attribute. Present in dispatch table pointer
10929 components of records. Set to point to the entity of the corresponding
10931 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
10932 (Original_Access_Type): Remove, not needed.
10933 (Root_Type): Handle properly subtypes of class-wide-types.
10936 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
10937 class-wide types visible through limited-with clauses.
10938 (Try_Primitive_Operation): When examining all primitive operations of a
10939 tagged type, do not consider subprograms labeled as hidden unless they
10940 belong to a private generic type with a tagged parent.
10941 (Try_Object_Operation): Extensive rewriting, to handle properly various
10942 overloading cases, when several ancestors may have class-wide operations
10943 that are possible candidates, and when the overloaded functions return
10944 array types and have defaulted parameters so that the call may be
10945 interpreted as an indexing.
10946 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
10947 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
10948 successive actuals before analyzing the call itself.
10949 (Try_Primitive_Operation): A primitive operation is compatible with the
10950 prefix if the prefix has a synchronized type and the type of the formal
10951 is its corresponding record, as can be the case when the primitive
10952 operation is declared outside of the body of the type.
10953 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
10954 perform homonym traversal, looking for class-wide operation matches
10955 (formerly done in statements of Try_Class_Wide_Operation). Matches on
10956 access parameters are now restricted to anonymous access types.
10957 (Mark_Allocator): An allocator with a discriminant association parent is
10959 (Try_One_Prefix_Interpretation): If the type of the object is
10960 incomplete, as can be happen when it is a limited view obtained through
10961 a limited_with_clause, the selected component is not part of a prefixed
10963 (Complete_Object_Operation): Diagnose properly an object that is not
10964 aliased when the corresponding controlling formal is an access
10966 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
10967 ambiguous calls in prefixed notation, where two primitives differ only
10968 in that the controlling argument of one is an access parameter.
10970 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
10971 whether a function that returns an unconstrained type can be inlined.
10972 (Process_Formals): Diagnose properly the illegal use of an incomplete
10973 type in the profile of an access_to_subprogram declaration.
10974 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
10975 operations are attached to the corresponding record.
10976 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
10977 When processing a primitive of a concurrent type which implements an
10978 interface change the type of all controlling formals to that of the
10979 corresponding record type.
10980 (Check_Synchronized_Overriding): Relax the conditional logic when trying
10981 to determine the tagged type to which a primitive belongs.
10982 (Check_Conventions): Capture condition to ignore a primitive operation
10983 (which is shared between the loop in Check_Conventions and the one in
10984 Check_Convention) in a new local function Skip_Check.
10985 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
10986 confusion with Check_Conventions' own Prim_Op local variable.
10987 (Create_Extra_Formals): Test for a tagged result type rather than a
10988 controlling result when determining whether to add a BIP_Alloc_Form
10989 formal and a BIP_Final_List formal to the function.
10990 (Check_Conformance); For parameters that are anonymous access types,
10991 subtype conformance requires that the not null and the constant
10992 indicators must match
10993 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
10994 to retrieve the appropriate type when processing a concurrent type
10995 declared within a generic. Minor comment reformatting. Change invocation
10996 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
10998 (Analyze_Subprogram_Body): If the return type of a function is an
10999 anonymous access to the limited view of a class-wide type, and the
11000 non-limited view of the type is available, update the type of the
11001 function so that code can be generated.
11002 (Process_Formals): In case of access-subtype itype whose designated
11003 type is also an itype (situation that happens now with access to
11004 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
11005 attribute to avoid backend problems.
11006 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
11007 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
11008 anonymous types' designated types are same before testing
11009 Subtypes_Statically_Match.
11010 (Create_Extra_Formals): Test for a named access parameter that is a
11011 controlling formal as an additional condition for adding an
11012 accessibility level formal. This can occur in the subp type created for
11013 dispatching calls in Expand_Dispatching_Call, and allows calling
11014 Create_Extra_Formals from that procedure rather than special-casing the
11015 extra formals there.
11016 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
11017 when the function has a controlling result.
11018 (Check_Returns): Add much more knowledge of the optimization of local
11019 raise statements to gotos, to retain proper warnings in this case.
11020 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
11021 nodes when looking for last statement.
11023 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
11024 class-wide types visible through limited with clauses.
11025 (Add_One_Interp): If the operands are anonymous access types, the
11026 predefined operator on universal_access is immediately visibles
11027 (Find_Unique_Type): Handle anonymous access to subprogram types just as
11028 other anonymous access types.
11029 (Disambiguate): Take into account CIL convention.
11030 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
11032 2007-06-06 Robert Dewar <dewar@adacore.com>
11034 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
11035 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
11036 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
11037 Fix lower bound of tables.
11040 * nlists.adb: Ditto.
11041 (Prev_Node, Next_Node): Change index type to Int so that it properly
11042 covers the range First_Node_Id - 1 up.
11044 2007-06-06 Javier Miranda <miranda@adacore.com>
11045 Ed Schonberg <schonberg@adacore.com>
11046 Bob Duff <duff@adacore.com>
11047 Hristian Kirtchev <kirtchev@adacore.com>
11049 * exp_aggr.ads, exp_aggr.adb:
11050 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
11051 in extension aggregates.
11052 (Flatten): Other conditions being met, an aggregate is static if the
11053 low bound given by component associations is different from the low
11054 bound of the base index type.
11055 (Packed_Array_Aggregate_Handled): If the component type is itself a
11056 packed array or record, the front-end must expand into assignments.
11057 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
11058 Init_Pr, instead of Ancestor_Is_Expression.
11059 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
11060 coextension chain root, either generate a list controller or use the
11061 already existing one.
11062 (Static_Array_Aggregate): New procedure to construct a positional
11063 aggregate that can be handled by the backend, when all bounds and
11064 components are compile-time known constants.
11065 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
11066 types covering interface types into assignments.
11067 (Replace_Type): move to Build_Record_Aggr_Code.
11068 (Expand_Record_Aggr_Code): if the target of the aggregate is an
11069 interface type, convert to the definite type of the aggregate itself,
11070 so that needed components are visible.
11071 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
11072 components and the context is an extended return statement do not
11073 create a transient block for it, to prevent premature finalization
11074 before the return is executed.
11075 (Gen_Assign): Do not generate a call to deep adjust routine if the
11076 component type is itself an array of controlled (sub)-components
11077 initialized with an inner aggregate.
11078 (Component_Check): New name for Static_Check. This name is now more
11079 appropriate, and documentation is added which was missing.
11080 (Component_Check): Add test for bit aligned component value
11081 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
11082 Tagged_Comps, name is more appropriate given added function below.
11083 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
11085 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
11086 Javier Miranda <miranda@adacore.com>
11087 Robert Dewar <dewar@adacore.com>
11089 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
11090 Terminated: Add unchecked type conversion from System.Address to
11091 System.Tasking.Task_Id when calling the predefined primitive
11093 Disable new Ada 05 accessibility check for JVM.NET targets, which
11094 cannot be implemented in a practical way.
11095 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
11096 the sources always references the tag of the actual object. Therefore,
11097 if 'Tag is applied in the sources to class-wide interface objects we
11098 generate code that displaces "this" to reference the base of the object.
11099 (Expand_N_Attribute_Reference, case Size): Return specified size if
11100 known to front end.
11101 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
11102 has code that displaces the pointer of the object to manage interface
11103 types. However this code must not be executed when the prefix is a
11104 subprogram. This bug caused the wrong expansion of the internally
11105 generated assignment that fills the dispatch table when the primitive
11106 is a function returning a class-wide interface type.
11107 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
11108 Set_Attribute_Name for Name_Unaligned_Valid.
11110 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11111 Gary Dismukes <dismukes@adacore.com>
11113 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
11114 If the initialization is the equivalent aggregate of the initialization
11115 procedure of the type, do not remove it.
11116 (Expand_N_Attribute_Definition_Clause): Exclude access variables
11117 initialized to null from having their expression reset to empty and
11118 note this exception in the comment.
11120 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
11121 Robert Dewar <dewar@adacore.com>
11122 Ed Schonberg <schonberg@adacore.com>
11123 Gary Dismukes <dismukes@adacore.com>
11125 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
11126 Add "with" and "use" clauses for Sem_Attr.
11127 (Expand_Current_Value): Do not replace occurences of attribute
11128 references where the prefix must be a simple name.
11130 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
11131 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
11132 Attribute_Requires_Simple_Name_Prefix.
11133 (Name_Modifies_Prefix): Body of new function.
11134 (Requires_Simple_Name_Prefix): Body of new function.
11135 (Resolve_Attribute, case Access): Improve error message for case of
11136 mismatched conventions.
11137 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
11139 (Analyze_Attribute, case 'Access): If the type of the prefix is a
11140 constrained subtype for a nominal unconstrained type, use its base type
11141 to check for conformance with the context.
11142 (Resolve_Attribute): Remove test of the access type being associated
11143 with a return statement from condition for performing accessibility
11144 checks on access attributes, since this case is now captured by
11145 Is_Local_Anonymous_Access.
11146 (Analyze_Access_Attribute): Set Address_Taken on entity
11147 (Analyze_Attribute, case Address): Set Address_Taken on entity
11148 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
11149 validating an access attribute whose prefix is a current instance.
11150 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
11151 applied to dispatching operations, if freezing is required then we set
11152 the attribute Has_Delayed_Freeze in the prefix's entity.
11153 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
11154 current scope if access of local subprogram taken
11155 (Analyze_Access_Attribute): Check legality of self-reference even if the
11156 expression comes from source, as when a single component association in
11157 an aggregate has a box association.
11158 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
11159 the prefix if it is a protected operation and the attribute is
11160 Unrestricted_Access.
11161 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
11162 reference to the base type of the context, to force a constraint check
11163 when the context is an access subtype with an explicit constraint.
11164 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
11165 node is rewritten as an interface conversion. leave unanalyzed after
11166 resolution, to ensure that type checking against the context will take
11169 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11170 Javier Miranda <miranda@adacore.com>
11171 Robert Dewar <dewar@adacore.com>
11173 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
11174 wrapper when the full view of the controlling type of an inherited
11175 function that dispatches on result implements interfaces.
11176 (Expand_N_Object_Declaration): In cases where the type of the
11177 declaration is anonymous access, create finalization list for it.
11178 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
11179 if the object has no explicit initialization, to match description of
11180 functionality of pragam Persistent_BSS.
11181 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
11182 new function to build static aggregates, to replace initialization call
11183 when static initialization is desired.
11184 (Freeze_Type): Generate a list controller for an access type whenever
11185 its designated type has controlled anonymous access discriminants.
11186 (Build_Equivalent_Aggregate): New procedure to compute a static
11187 aggregate to be used as default initialization for composite types,
11188 instead of a generating a call to the initialization procedure for the
11190 (Build_Initialization_Call): When available, replace a call to the
11191 initialization procedure with a copy of the equivalent static aggregate
11193 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
11194 declarations for objects of a class-wide interface type, rather than
11195 just identifiers, to prevent visibility problems.
11196 (Expand_N_Object_Declaration): When expanding the declaration for an
11197 object of a class-wide interface type, preserve the homonym chain of
11198 the original entity before exchanging it with that of the generated
11199 renaming declaration.
11200 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
11201 active, because there is no way to handle the exception.
11202 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
11203 to do a minimum decoration of the Access_Disp_Table list.
11204 (Expand_Record_Controller): Avoid the addition of the controller between
11205 the component containing the tag of a secondary dispatch table and its
11206 adjacent component that stores the offset to the base of the object.
11207 This latter component is only generated when the parent type has
11208 discriminants ---documented in Add_Interface_Tag_Components).
11209 (Apply_Array_Size_Check): Removed, no longer needed.
11210 (Expand_N_Full_Type_Declaration): If the type has anonymous access
11211 components, create a Master_Entity for it only if it contains tasks.
11212 (Build_Init_Procedure): Suppress the tag assignment compiling under
11214 (Freeze_Record_Type): Remove code associated with creation of dispatch
11216 (Init_Secondary_Tags): Update type of actuals when generating calls to
11217 Ada.Tags.Set_Offset_To_Top
11218 (Stream_Operation_OK): Disable use of streams compiling under no
11220 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
11221 if Has_Init_Expression set.
11222 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
11223 Register_Primitive, which provides the same functionality.
11224 (Requires_Init_Proc): Return false in case of interface types.
11225 (Add_Secondary_Tables): Use the new attribute Related_Interface to
11227 (Predefined_Primitive_Freeze): Do not assume that an internal entity
11228 is always associated with a predefined primitive because the internal
11229 entities associated with interface types are not predefined primitives.
11230 Therefore, the call to Is_Internal is replaced by a call to the
11231 function Is_Predefined_Dispatching_Operation.
11232 (Make_Eq_If): When generating the list of comparisons for the
11233 components of a given variant, omit the controller component that is
11234 present if the variant has controlled components.
11236 2007-06-06 Javier Miranda <miranda@adacore.com>
11237 Hristian Kirtchev <kirtchev@adacore.com>
11238 Bob Duff <duff@adacore.com>
11240 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
11241 handle the creation of finalization lists and calls for nested
11242 coextensions when the root of the chains is part of a return statement.
11243 (Inside_A_Return_Statement): New function inside Complete_Coextension_
11245 (Expand_Record_Equality): Skip components that are interface types.
11246 (Displace_Allocator_Pointer): Add missing support for interface subtypes
11247 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
11248 with Rewrite_Coextension. Change the condition for detecting coextension
11250 (Is_Local_Access_Discriminant): Removed.
11251 (Rewrite_Coextension): New routine which rewrites a static coextension
11252 as a temporary and uses its unrestricted access in the construction of
11254 (Complete_Coextension_Finalization): New routine. Generate finalization
11255 attachment calls to all delayed coextensions.
11256 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
11257 the allocator is not a coextension itself and has delayed coextensions.
11258 If the current allocator is controlled, but also a coextension, delay
11259 the generation of the finalization attachment call.
11260 Rename local variable "Node" to "Nod" in order to avoid confusion with
11262 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
11263 limited types that are not inherently limited. Such an allocator is
11264 illegal, but is generated by the expander for a return statement, to
11265 copy the result onto the secondary stack. This is the only case where a
11266 limited object can be copied. Generate code to displace the pointer
11267 to the object if the qualified expression is a class-wide interface
11268 object. Such displacement was missing and hence the copy of the object
11270 (Apply_Accessibility_Check): Handle allocated objects initialized in
11272 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
11273 and Expand_Allocator_Expression. Allocating class-wide interface objects
11274 this routine displaces the pointer to the allocated object to reference
11275 the component referencing the corresponding secondary dispatch table.
11276 Expand_Allocator_Expression): Add missing support to allocate class-wide
11277 interface objects initialized with a qualified expression.
11278 (Get_Allocator_Final_List): Test for an anonymous access type that is a
11279 function result type, and use the finalization list associated with the
11280 function scope in that case (such an anonymous type should not be
11281 treated like an access parameter's type).
11283 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11284 Gary Dismukes <dismukes@adacore.com>
11285 Javier Miranda <miranda@adacore.com>
11287 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
11288 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
11289 required exception handler.
11290 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
11291 properly the case of a function whose return type is a limited
11292 class-wide interface type. Modify the code of the accessibility
11293 check to handle class-wide interface objects. In this case we need to
11294 displace "this" to reference the primary dispatch table to get access
11295 to the TSD of the object (to evaluate its accessibility level).
11296 (Expand_N_Extended_Return_Statement): Test for a tagged result type
11297 rather than a controlling result as one of the conditions for
11298 generating tests of the implicit BIP_Alloc_Form formal. The
11299 initialization assignment is also handled according to whether the
11300 result is tagged instead of controlling.
11301 In the case where the init assignment is inserted in the "then" part of
11302 the allocation conditional, rewrite the target to be a dereference of
11303 the implicit BIP_Object_Access formal.
11304 If the returned value is unconstrained and created on the secondary
11305 stack, mark the enclosing block and function so that the secondary
11306 stack is not reclaimed on return.
11307 Treat returns from functions with controlling results similarly to
11308 returns from functions with unconstrained result subtypes.
11309 If the object returned is unconstrained, and an allocator must be
11310 created for it, analyze the allocator once the block for the extended
11311 return is installed, to ensure that finalizable components
11312 of the expression use the proper finalization list. Guard the call to
11313 Move_Final_List with a check that there is something to finalize.
11314 (Make_Tag_Ctrl_Assignment): Use "old" handling
11315 of controlled type assignment for virtual machines, since new code uses
11316 unsupported features (such as direct access to bytes in memory).
11318 2007-06-06 Gary Dismukes <dismukes@adacore.com>
11319 Ed Schonberg <schonberg@adacore.com>
11321 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
11322 accessibility actual, check for the case of an aliased object that has
11323 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
11324 we fall into processing for the attribute rather than the name of the
11326 (Expand_Inline_Call): If an actual is a literal, and the corresponding
11327 formal has its address taken in the body, create a temporary to capture
11328 value. If the return type is a limited interface, do not treat the
11329 return value as Controlled.
11330 (Is_In_Place_Function): If the return type is a limited interface,
11331 treat as returning in place. The actual returned object may not always
11332 be limited, but the caller has to assume that it is returned in place.
11333 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
11334 context of an allocator, use the correct finalization chain (that is,
11335 the chain belonging to the access type, rather than the chain belonging
11336 to the current scope).
11337 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
11338 result type rather than a controlling result as a precondition for
11339 adding an allocation form actual to a build-in-place call.
11340 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
11341 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
11342 primitive in the dispatch tables. This work is now done by Make_DT when
11343 the type is frozen.
11344 (Register_Predefined_DT_Entry): Removed.
11345 (Add_Return): If end label is not present, use sloc of last statement
11346 for generated return statement in procedure, for better gdb behavior
11348 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
11349 object address nodes to ensure proper processing by routines like
11351 (Expand_Call): Fix generation of validity check for parameter
11352 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
11353 the allocation form parameter if the result subtype is constrained,
11354 except when the function has a controlling result.
11355 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
11356 rather than Is_Controlled and Has_Controlled_Component, since we want to
11357 include class-wide result types in this treatment. Also test for a
11358 controlling result, since that also requires passing a finalization
11360 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
11361 even when the result subtype is constrained, to handle calls involving
11362 controlling results.
11363 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
11364 is now called even when the result subtype is constrained, to handle
11365 calls involving controlling results.
11366 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
11367 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
11368 now performs the test).
11369 (Make_Build_In_Place_Call_In_Object_Declaration):
11370 Add_Alloc_Form_Actual_* is now called even when the result subtype is
11371 constrained, to handle calls involving controlling results.
11372 (Add_Return): Accomodate rewritten pattern from local raise to goto
11373 transformation, so that we still recognize an transfer statement
11374 and do the right thing here in that case.
11375 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
11376 and end of subprogram code.
11377 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
11378 support for primitives that are functions (without formals) with a
11379 controlling result.
11380 (Inherited_From_Formal): If the actual subtype has not generic parent
11381 type, it is not an actual for a formal derived type, and there is no
11382 operation to inherit from the formal.
11384 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11385 Thomas Quinot <quinot@adacore.com>
11387 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
11388 inserted cleanup code appropriately for GDB use.
11389 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
11390 exception handler for Deep_Adjust or Deep_Finalize.
11391 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
11392 Raise_From_Controlled_Operation is available, use a call to that
11393 subprogram instead of a plain "raise Program_Error" node to raise
11394 Program_Error if an exception is propagated from an Adjust or Finalize
11396 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
11397 appears in the optional statement list of a triggering alternative, the
11398 scope actions can be inserted directly there, and not in the list that
11399 includes the asynchronous select itself.
11401 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11402 Robert Dewar <dewar@adacore.com>
11403 Hristian Kirtchev <kirtchev@adacore.com>
11405 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
11406 generated exception handler appropriately when debugging generated code.
11407 Deal properly with No_Exception_Propagation restriction mode.
11408 (Expand_N_Abort_Statement): Add an unchecked type conversion from
11409 System.Address to System.Tasking.Task_Id when processing the result of
11410 the predefined primitive _disp_get_task_id.
11411 (Expand_N_Asynchronous_Select): Clarify comment.
11412 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
11413 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
11414 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
11415 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
11416 privals and for generated call to Complete_Entry_Body, for better gdb
11418 (Copy_Result_Type): Utility to construct a parameter and result profile
11419 for protected functions whose return type is an anonymous access to
11421 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
11423 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
11424 point when the local-raise-to-goto transformation has taken place.
11426 2007-06-06 Javier Miranda <miranda@adacore.com>
11427 Nicolas Setton <setton@adacore.com>
11429 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
11430 functionality when the backend is generating code.
11431 Otherwise any serious error
11432 reported by the backend calling the frontend routine Error_Msg
11433 changes the Compilation_Mode to Check_Semantics, disables the
11434 functionality of this routine and causes the generation of
11435 spureous additional errors.
11437 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
11438 debugging information now generated by the compiler for fat-pointer
11440 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
11442 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
11444 2007-06-06 Thomas Quinot <quinot@adacore.com>
11446 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
11447 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
11448 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
11449 For a remote call to a function with a classwide return type, apply an
11450 E.4(18) check to the returned value.
11451 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
11452 stream attributes of the designated type of an RACW, as they are not
11453 dispatching primitive operations.
11455 2007-06-06 Geert Bosch <bosch@adacore.com>
11457 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
11459 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
11461 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
11462 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
11464 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
11466 2007-06-06 Javier Miranda <miranda@adacore.com>
11468 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
11469 attribute compiling package Ada.Tags under No_Run_Time_Mode.
11471 2007-06-06 Javier Miranda <miranda@adacore.com>
11473 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
11474 deallocation of class-wide interface objects.
11475 (Expand_Dispatching_Constructor_Call): Take into account that if the
11476 result of the dispatching constructor is an interface type, the
11477 function returns a class-wide interface type; otherwise the returned
11478 object would be actual. The frontend previously accepted returning
11479 interface types because Expand_Interface_Actuals silently performed
11480 the management of the returned type "as if" it were a class-wide
11482 (Expand_Dispatching_Constructor_Call): Replace call to
11483 Make_DT_Access_Action by direct call to Make_Function_Call.
11485 2007-06-06 Robert Dewar <dewar@adacore.com>
11486 Ed Schonberg <schonberg@adacore.com>
11488 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
11489 compute masking constant, since we now set Esize properly to the
11491 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
11492 to match the alignment.
11493 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
11494 packed arrays of 8 bits or less.
11496 * freeze.adb (Freeze_Entity): When freezing the formals of a
11497 subprogram, freeze the designated type of a parameter of an access type
11498 only if it is an access parameter.
11499 Increase size of C convention enumeration object
11500 (Freeze_Entity, array type case): Make sure Esize value is properly
11501 adjusted for the alignment if it is known.
11502 (Freeze_Entity, array type case): When checking bit packed arrays for
11503 the size being incorrect, check RM_Size, not Esize.
11504 (Freeze_Record_Type): Check for bad discriminated record convention
11505 (In_Exp_Body): Return true if the body is generated for a subprogram
11506 renaming, either an attribute renaming or a renaming as body.
11507 (Check_Itype): If the designated type of an anonymous access component
11508 is a non-protected subprogram type, indicate that it is frozen, to
11509 prevent out-of-scope freeze node at some subsequent call.
11510 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
11511 only if the subprogram is neither imported nor exported, as well as the
11512 NCA descriptor class if the subprogram is exported.
11514 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11515 Arnaud Charlet <charlet@adacore.com>
11516 Robert Dewar <dewar@adacore.com>
11517 Gary Dismukes <dismukes@adacore.com>
11519 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
11520 default initialization on an imported object, when there is no
11521 initialization call generated for it.
11522 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
11525 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
11526 Static_Elaboration_Desired.
11527 Remove pragma Thread_Body.
11528 Implement a new pragma No_Body
11529 Removes the Explicit_Overriding pragma
11530 Remove Optional_Overriding pragma
11531 (Prag): Deal with Universal_Aliasing.
11532 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
11533 Pragma_CIL_Constructor): New names.
11535 * sem_cat.adb (Validate_Object_Declaration): An initialization that
11536 uses the equivalent aggregate of a type must be treated as an implicit
11538 (Get_Categorization): Check a unit for pragma Preelaborate only if it
11539 has none of the other categories.
11540 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
11541 to apply Import to an object renaming declaration.
11543 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
11544 from a C++ class should be declared as limited and that it will be
11545 considererd limited.
11546 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
11547 should be declared as limited and that it will be considererd limited.
11548 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
11549 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
11550 (Analyze_Pragma): Deal with Universal_Aliasing.
11551 (Sig_Flags): Likewise.
11552 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
11553 (Overflow_Checks_Unsuppressed): New flag.
11554 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
11555 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
11556 case of JVM or .NET targets, and compiling user code.
11557 Add debugging convenience routine rv
11559 2007-06-06 Robert Dewar <dewar@adacore.com>
11561 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
11562 are interface type.
11563 (Build_Elementary_Input_Call): For floating-point use right type in the
11564 absence of strange size or stream size clauses.
11565 (Build_Elementary_Write_Call): Same fix
11566 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
11567 set to value that does not match base type size.
11569 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11571 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
11572 object of a limited type can be initialized with a call to a function
11573 that returns in place. If the limited type has unknown discriminants,
11574 and the underlying type is a constrained composite type, build an actual
11575 subtype from the function call, as is done for private types.
11576 (Side_Effect_Free): An expression that is the renaming of an object or
11577 whose prefix is the renaming of a object, is not side-effect free
11578 because it may be assigned through the renaming and its value must be
11579 captured in a temporary.
11580 (Has_Controlled_Coextensions): New routine.
11581 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
11582 as is done for other limited types.
11583 (Non_Limited_Designated_Type): new predicate.
11584 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
11586 Remove all handling of with_type clauses.
11588 * par-ch10.adb: Remove all handling of with_type clauses.
11590 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
11591 checksum if the main source could not be parsed.
11592 (Loat_Unit): When processing a child unit, determine properly whether
11593 the parent unit is a renaming when the parent is itself a child unit.
11594 Remove handling of with_type clauses.
11596 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
11597 (Set_Is_Static_Coextension): New procedure.
11598 (Has_Local_Raise): New function
11599 (Set_Has_Local_Raise): New procedure
11600 (Renaming_Exception): New field
11601 (Has_Init_Expression): New flag
11602 (Delay_Finalize_Attach): Remove because flag is obsolete.
11603 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
11604 Remove all handling of with_type clauses.
11605 (Exception_Junk): Can now be set in N_Block_Statement
11607 2007-06-06 Vincent Celier <celier@adacore.com>
11608 Robert Dewar <dewar@adacore.com>
11610 * frontend.adb (Frontend): Return immediately if the main source could
11611 not be parsed, because of preprocessing errors.
11613 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
11614 (Gnat1drv): Exit with errors if the main source could not be parsed,
11615 because of preprocessing errors.
11616 (Check_Rep_Info): New procedure
11618 2007-06-06 Robert Dewar <dewar@adacore.com>
11620 * g-hesorg.ads, g-heasor.ads,
11621 g-busorg.ads, g-bubsor.ads: Update documentation
11622 GNAT.Heap/Bubble_Sort_G is now pure
11624 2007-06-06 Robert Dewar <dewar@adacore.com>
11626 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
11628 2007-06-06 Robert Dewar <dewar@adacore.com>
11629 Ed Schonberg <schonberg@adacore.com>
11631 * g-comlin.ads, g-comlin.adb:
11632 Add new warning for renaming of function return objects
11634 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
11635 (Tree_Read): Use size of object instead of type'object_size, since the
11636 latter is incorrect for packed array types.
11637 (Tree_Write): Same fix
11639 * opt.ads: Add new warning for renaming of function return objects
11640 (Generating_Code): New boolean variable used to indicate that the
11641 frontend as finished its work and has called the backend to process
11642 the tree and generate the object file.
11643 (GCC_Version): Is now private
11644 (Static_Dispatch_Tables): New constant declaration.
11645 (Overflow_Checks_Unsuppressed): New flag.
11646 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
11647 (List_Closure): New flag for gnatbind (-R)
11648 Zero_Formatting: New flag for gnatbind (-Z)
11649 (Special_Exception_Package_Used): New flag.
11650 (Warn_On_Unrepped_Components): New flag.
11652 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
11653 unit is a compilation unit, rather than relying on its scope, so that
11654 Standard can be renamed.
11655 (Analyze_Object_Renaming): Add new warning for renaming of function
11657 Also reject attempt to rename function return object in Ada 83 mode.
11658 (Attribute_Renaming): In case of tagged types, add the body of the
11659 generated function to the freezing actions of the type.
11660 (Find_Type): A protected type is visible right after the reserved word
11661 "is" is encountered in its type declaration. Set the entity and type
11662 rather than emitting an error message.
11663 (New_Scope): Properly propagate Discard_Names to inner scopes
11664 (Check_Nested_Access): New procedure.
11665 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
11666 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
11668 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
11669 Add new warning for renaming of function return objects
11670 (Check_References): Suppress warnings for objects whose type or
11671 base type has Warnings suppressed.
11672 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
11673 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
11675 2007-06-06 Vincent Celier <celier@adacore.com>
11676 Emmanuel Briot <briot@adacore.com>
11677 Olivier Hainque <hainque@adacore.com>
11679 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
11680 absolute value of Header.Block_Size when displaying the freed physical
11682 (Allocate): Compute Storage_Address using Integer_Address, not
11683 Storage_Offset, because the range of Storage_Offset may not be large
11685 (Configure): New parameter Low_Level_Traces
11686 (Allocate, Deallocation, Free_Physically): Added low-level traces
11687 (Configure): new parameter Errors_To_Stdout.
11688 (Output_File): new subprogram
11689 (Deallocate, Dereference): Send error messages to the proper stream
11690 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
11691 documented. Previous code would send it to the current output file
11692 defined in GNAT.IO, which might not be stdout
11693 (Is_Valid): Adjust comment to mention that a positive reply means that
11694 Header_Of may be used to retrieve the allocation header associated with
11695 the subprogram Storage address argument. Return False early if this
11696 address argument is misaligned.
11698 2007-06-06 Vincent Celier <celier@adacore.com>
11700 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
11702 (ASIS_Main): New global variable
11703 (Get_Closure): New procedure
11704 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
11705 check, metric or pretty. Call Get_Closure in this case.
11706 (Check_Files): For GNAT LIST, check all sources of all projects when
11707 All_Projects is True.
11708 (GNATCmd): Accept -U for GNAT LIST
11710 2007-06-06 Vincent Celier <celier@adacore.com>
11712 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
11714 Correct error message when invocation of the linker fails
11715 Add explicit size clause for the C imported variables
11716 Object_List_File_Supported and Using_GNU_Linker to emphasize that
11717 we expect char size.
11718 Read target parameters earlier, since this is needed to set
11719 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
11722 2007-06-06 Vincent Celier <celier@adacore.com>
11725 Add 3 spaces before the default project directory when displaying
11726 the project search path.
11727 Add new command line switch '-l' to display license information.
11729 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
11731 * gmem.c: Add support for timestamps on memory operations.
11733 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
11734 operations (not used currently, just foundation for future
11735 enhancements). Add possibility to perform full dump of gmem.out file.
11736 (Print_Back_Traces): Declare accesses to root arrays constants since
11737 they aren't modified.
11738 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
11740 2007-06-06 Vincent Celier <celier@adacore.com>
11742 * gnatsym.adb: Update Copyright notice
11743 (Parse_Cmd_Line): Accept new switch -D
11744 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
11747 * prj.ads (Policy): New policy Direct
11748 (Yes_No_Unknown): New enumeration type
11749 (Project_Data): New component Libgnarl_Needed
11751 * prj-nmsc.adb (Check_For_Source): When recording a source file make
11752 use the untouched pathname casing.
11753 (Get_Directories): Ensure that the Display_Exec_Directory is using the
11754 proper casing on non case-sensitive platforms like Windows.
11755 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
11756 on all platforms, as it is not possible to know which one is allowed
11757 before processing the project files.
11758 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
11759 specified when symbol policy is Direct. Check that when there is a
11760 symbol file defined (either by default or with attribute
11761 Library_Symbol_File) it is not the same as the reference symbol file.
11762 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
11763 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
11764 extending projects.
11765 (Record_Ada_Source): Record a source that has been locally removed in an
11768 * symbols.ads (Policy): New policy Direct
11770 * symbols-vms.adb (Initialize): Take new policy Direct in case
11773 2007-06-06 Vincent Celier <celier@adacore.com>
11775 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
11776 Correct obvious bug (return Dir; instead of return Directory;).
11777 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
11779 2007-06-06 Thomas Quinot <quinot@adacore.com>
11781 * g-pehage.adb (Produce): Open output files in Binary mode, so that
11782 they have UNIX line endings (LF only) even on Windows, and thus pass
11783 all GNAT style checks.
11785 2007-06-06 Emmanuel Briot <briot@adacore.com>
11787 * g-regpat.adb (Quote): Fix improper quoting of '.'
11789 2007-06-06 Thomas Quinot <quinot@adacore.com>
11791 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
11792 default, set False on a per-runtime basis.
11793 (Need_Netdb_Buffer): New constant.
11795 * g-socket.ads, g-socket.adb: Import new package
11796 GNAT.Sockets.Thin.Task_Safe_NetDB.
11797 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
11798 binding to obtain proper message.
11799 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
11800 Replace various occurrences of Arry (Arry'First)'Address with the
11801 equivalent Arry'Address (GNAT always follows implementation advice from
11803 (Get_Host_By_Address, Get_Host_By_Name,
11804 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
11805 instead, rely on platform-specific task safe netdb operations provided
11808 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
11809 parameter Process_Blocking_IO.
11810 (Host_Error_Messages): Add stub body.
11811 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
11812 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
11813 Safe_Getservbyport): Move functions into new child package
11815 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
11816 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
11817 (In_Addr): Add alignment clause.
11819 2007-06-06 Robert Dewar <dewar@adacore.com>
11821 * g-trasym.ads, g-traceb.ads: Update list of supported targets
11822 Add note about symbolic traceback
11824 2007-06-06 Pascal Obry <obry@adacore.com>
11826 * hostparm.ads (Normalized_CWD): Use the host directory separator
11827 instead of the hardcoded forward slash which is not the proper
11828 character on Windows for example.
11829 (Java_VM): Removed.
11831 2007-06-06 Vincent Celier <celier@adacore.com>
11832 Arnaud Charlet <charlet@adacore.com>
11834 * a-clrefi.adb, a-clrefi.ads: New files
11836 * impunit.adb: Add s-os_lib in the list of user visible units.
11837 (Non_Imp_File_Names_95): Add a-clrefi to this list
11838 Remove obsolete run-time entries.
11839 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
11840 "a-exetim" -- Ada.Execution_Time
11841 "a-extiti" -- Ada.Execution_Time.Timers
11843 * mlib-prj.ads, mlib-prj.adb
11844 (Build_Library): Use untouched object dir and library dir. At the
11845 same time makes sure that the checks are done using the canonical
11846 form. Removes hard-coded directory separator and use the proper host
11848 (Process_Project): Do not look in object directory to check if libgnarl
11849 is needed for a library, if there is no object directory.
11850 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
11852 (Build_Library): When invoking gnatbind, use a response file if the
11853 total size of the arguments is too large.
11855 * Makefile.rtl: (g-sttsne): New object file.
11856 Add entry for a-clrefi, s-utf_32, System.Exceptions
11858 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
11859 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
11860 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
11861 Change g-string to s-string, g-os_lib to s-os_lib
11862 Change all g-utf_32 references to s-utf_32
11864 2007-06-06 Tristan Gingold <gingold@adacore.com>
11865 Olivier Hainque <hainque@adacore.com>
11867 * init.c: Do not adjust IP of an imported VMS exception of ia64.
11868 LIB$STOP is called to raise an exception and the IP of the exception
11869 is the instruction right after the call.
11870 (__gnat_adjust_context_for_raise, AIX): Implement.
11871 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
11872 adjust_context_for_raise before Raise_From_Signal_Hanler.
11873 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
11874 siginfo is passed to the handler, necessary to let the zcx propagation
11875 engine unwind past it.
11877 2007-06-06 Olivier Hainque <hainque@adacore.com>
11879 * initialize.c (__gnat_initialize for vxworks): Update documentation
11880 on the ZCX support, using different sets of crtstuff objects than with
11883 2007-06-06 Robert Dewar <dewar@adacore.com>
11885 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
11887 (Layout_Type): Fix recomputation of size from alignment.
11889 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11890 Javier Miranda <miranda@adacore.com>
11892 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
11893 association in an instance.
11894 (Copy_Generic_Node): If the node is a string literal, no need to copy
11896 (Is_Generic_Formal): For a formal subprogram, the declaration is the
11897 grandparent of the entity.
11898 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
11899 to simplify handling of formal interfaces that derive from other formal
11901 (Instantiate_Subprogram_Body): The defining unit name of the body of
11902 the instance should be a defining identifier.
11903 (Install_Formal_Packages): make global to the package, for use in
11904 instantiations of child units.
11905 (Analyze_Package_Instantiation): Do not attempt to set information on an
11906 enclosing master of an entry when expansion is disabled.
11907 (Instantiate_Type): If the actual is a tagged synchronized type and the
11908 generic ancestor is an interface, create a generic actual for the
11909 corresponding record.
11910 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
11911 declaration, to ensure that the interface list is processed correctly.
11912 (Inline_Instance_Body): If enclosing scope is an instance body, remove
11913 its entities from visibiility as well.
11914 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
11915 given with a named association, analyze the expression only, not the
11916 discriminant association itself.
11917 (Reset_Entity): If the analysis of a selected component is transformed
11918 into an expanded name in the prefix of a call with parameters, do not
11919 transform the original node into an expanded name, to prevent visibility
11920 errors in the case of nested generics.
11921 (Check_Private_View): For an array type, check whether the index types
11922 may need exchanging.
11924 2007-06-06 Arnaud Charlet <charlet@adacore.com>
11925 Vincent Celier <celier@adacore.com>
11927 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
11928 since both are separated.
11929 Add support for imported CIL packages.
11930 Add further special handling of "value_type" for CIL.
11931 Add special handling of pragma Import for CIL.
11933 * make.ads, make.adb: When switch -eS is used, direct all outputs to
11934 standard output instead of standard error, except errors.
11935 (Absolute_Path): Use untouched casing for the parent directory.
11936 (Add_Library_Search_Dir): Use the untouched directory name.
11937 (Add_Source_Search_Dir): Idem.
11938 (Change_To_Object_Directory): Update output to use proper casing.
11939 (Create_Binder_Mapping_File): Use the untouched filename to set
11941 (Gnatmake): Use untouched library and executable directory names.
11942 (Insert_Project_Sources): Use untouched filename for spec and body.
11943 (Is_In_Object_Directory): Use untouched object directory.
11944 (Mark_Directory): Idem.
11945 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
11946 contains the non-canonical filename in all cases.
11947 (Change_To_Object_Directory): In verbose mode, display the name of the
11948 object directory we're changing to.
11949 (Compile_Sources): Make sure, when a project file is used, to compile
11950 the body of the unit, when there is one, even when only the spec is
11951 recorded in an ALI file.
11952 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
11954 (Report_Compilation_Failed): New procedure
11955 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
11956 procedures moved from the spec to the body.
11957 (Extract_Failure): Removed, not used
11958 Replace explicit raises of exception Bind_Failed and Link_Failed with
11959 calls to Make_Failed with the proper message.
11960 Replace explicit raises of exception Compilation_Failed with calls to
11961 procedure Report_Compilation_Failed.
11962 (Initialize): Create mapping files unconditionally when using project
11965 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
11966 Pragma_CIL_Constructor): New names.
11968 * targparm.ads, targparm.adb
11969 (Compiler_System_Version): Removed, no longer used.
11970 (Get_Target_Parameters): Relax checks on system.ads validity. Add
11971 handling of two new system flags: JVM and CLI.
11973 2007-06-06 Jose Ruiz <ruiz@adacore.com>
11974 Arnaud Charlet <charlet@adacore.com>
11976 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
11977 time, use the default s-interr body that provides interrupt support
11979 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
11980 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
11981 g-soccon.ads, and s-taprop.adb for the marte run time.
11982 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
11983 timers are supported on marte.
11984 (EH_MECHANISM for marte): Do not use ZCX.
11985 (THREADSLIB for marte): Use -lmarte.
11986 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
11987 Add mlib-tgt-specific.o to gnatmake objects
11988 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
11989 longer of MLib.Tgt.
11990 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
11991 6, either kernel or rtp, use a specialized version of s-osinte.ads.
11993 2007-06-06 Pascal Obry <obry@adacore.com>
11995 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
11997 2007-06-06 Vincent Celier <celier@adacore.com>
11999 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
12000 separator, use instead the proper host directory separator.
12001 (Copy_ALI_Files): Make sure that an already existing ALI file in the
12002 ALI copy dir is writable, before doing the copy.
12004 * mlib-utl.ads, mlib-utl.adb:
12005 (Gcc): If length of command line is too long, put the list of object
12006 files in a response file, if this is supported by the platform.
12007 (Ar): If invocation of the archive builder is allowed to be done in
12008 chunks and building it in one shot would go above an OS dependent
12009 limit on the number of characters on the command line, build the archive
12012 2007-06-06 Vincent Celier <celier@adacore.com>
12014 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
12015 of specified object file is not equal to base name of source.
12017 2007-06-06 Javier Miranda <miranda@adacore.com>
12018 Hristian Kirtchev <kirtchev@adacore.com>
12019 Ed Schonberg <schonberg@adacore.com>
12021 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
12022 the full type declaration.
12023 (Analyze_Component_Declaration): Add local variable E to capture the
12024 initialization expression of the declaration. Replace the occurences of
12025 Expression (N) with E.
12026 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
12027 limited interface object with a function call.
12028 (Array_Type_Declaration): If the declaration lacks subtype marks for
12029 indices, create a simple index list to prevent cascaded errors.
12030 (Is_Null_Extension): Ignore internal components created for secondary
12031 tags when checking whether a record extension is a null extension.
12032 (Check_Abstract_Interfaces): Add missing support for interface subtypes
12033 and generic formals.
12034 (Derived_Type_Declaration): Add missing support for interface subtypes
12035 and generic formals.
12036 (Analyze_Object_Declaration): If an initialization expression is
12037 present, traverse its subtree and mark all allocators as static
12039 (Add_Interface_Tag_Component): When looking for components that may be
12040 secondary tags, ignore pragmas that can appear within a record
12042 (Check_Abstract_Overriding): an inherited function that dispatches on
12043 result does not need to be overriden if the controlling type is a null
12045 (Mentions_T): Handle properly a 'class attribute in an anonymous access
12046 component declaration, when the prefix is an expanded name.
12047 (Inherit_Component): If the derivation is for a private extension,
12048 inherited components remain visible and their ekind should not be set
12050 (Find_Type_Of_Object): In the case of an access definition, always set
12051 Is_Local_Anonymous_Access. We were previously not marking the anonymous
12052 access type of a return object as a local anonymous type.
12053 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
12054 range with character literal bounds.
12055 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
12056 (Access_Subprogram_Declaration): Indicate that the type declaration
12057 depends on an incomplete type only if the incomplete type is declared
12059 (Analyze_Subtype_Declaration): Handle properly subtypes of
12060 synchronized types that are tagged, and that may appear as generic
12062 (Access_Subprogram_Declaration): An anonymous access to subprogram can
12063 appear as an access discriminant in a private type declaration.
12064 (Add_Interface_Tag_Components): Complete decoration of the component
12065 containing the tag of a secondary dispatch table and the component
12066 containing the offset to the base of the object (this latter component
12067 is only generated when the parent type has discriminants --as documented
12069 (Inherit_Components): Use the new decoration of the tag components to
12070 improve the condition that avoids inheriting the components associated
12071 with secondary tags of the parent.
12072 (Build_Discriminanted_Subtype): Indicate to the backend that the
12073 size of record types associated with dispatch tables is known at
12075 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
12076 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
12077 to include task, protected, and synchronized interfaces as limited
12079 (Process_Discriminants): Remove the setting of
12080 Is_Local_Anonymous_Access on the type of (anonymous) access
12081 discriminants of nonlimited types.
12082 (Analyze_Interface_Type_Declaration): Complete the decoration of the
12083 class-wide entity it is is already present. This situation occurs if
12084 the limited-view has been previously built.
12085 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
12087 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
12090 2007-06-06 Ed Schonberg <schonberg@adacore.com>
12092 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
12093 of the type that specify the position of interface tags when the type
12094 inherits discriminated array components from the parent type.
12095 If a component is initialized with a box, check for the presence of a
12096 default expression in its declaration before using its default
12097 initialization procedure.
12098 (Resolve_Record_Aggregate): If a component is box-initialized, and the
12099 component type has a discriminants, create a partial aggregate for it
12100 by copying the discriminants of the component subtype.
12101 Reject attempt to initialize a discriminant with a box.
12102 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
12103 associated with dispatch tables is known at compile time.
12104 (Get_Value): If an association in a record aggregate has a box
12105 association, and the corresponding record component has a default
12106 expression, always copy the default expression, even when the
12107 association has a single choice, in order to create a proper
12108 association for the expanded aggregate.
12110 2007-06-06 Ed Schonberg <schonberg@adacore.com>
12111 Robert Dewar <dewar@adacore.com>
12113 * par-ch12.adb (P_Generic_Associations): The source position of an
12114 Others association is that of the others keyword, not that of the token
12115 that follows the box.
12116 (P_Formal_Type_Definition): Handle formal access types that carry a
12117 not null indicator.
12119 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
12120 multiple identifier are present, save Scan_State before scanning the
12121 colon, to ensure that separate trees are constructed for each
12123 (P_Identifier_Declarations): For object declaration, set new flag
12124 Has_Init_Expression if initialization expression present.
12125 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
12126 Improve NOT NULL error messages
12128 2007-06-06 Robert Dewar <dewar@adacore.com>
12130 * par-ch4.adb: (P_Name): Recover from literal used as name
12132 2007-06-06 Vincent Celier <celier@adacore.com>
12134 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
12135 defaulted to False.
12136 In the "not" case, recursive call with Complemented set to True.
12137 Do not allow "or" or "and" operators when Complemented is True.
12139 2007-06-06 Vincent Celier <celier@adacore.com>
12141 * prj.adb (Project_Empty): Gives default value for new component
12144 * prj-attr.ads: Minor reformatting
12146 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
12147 directory using the untouched casing.
12148 (For_All_Source_Dirs): Idem.
12150 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
12151 directories specified with switches -aP.
12152 (Add_Search_Project_Directory): New procedure
12153 (Initialize_Project_Path): Put the directories in table
12154 Search_Directories in the project search path.
12155 (Initialize_Project_Path): For VMS, transform into canonical form the
12158 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12160 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
12161 true if configurable run-time or No_Run_Time is set.
12162 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
12163 processing an unit which is not the one being compiled.
12165 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12167 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
12168 Replace UC by Ada.UC
12170 * s-bitops.adb: Get rid of System.Pure_Exceptions.
12171 Replace UC by Ada.UC
12173 2007-06-06 Robert Dewar <dewar@adacore.com>
12175 * scng.adb: (Check_End_Of_Line): Deal with very long lines
12177 2007-06-06 Robert Dewar <dewar@adacore.com>
12179 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
12180 Remove no longer used nodes.
12182 2007-06-06 Javier Miranda <miranda@adacore.com>
12183 Ed Schonberg <schonberg@adacore.com>
12184 Robert Dewar <dewar@adacore.com>
12186 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
12187 on obsolescent withed unit in case of limited-withed units.
12188 (Analyze_Compilation_Unit): Add guard to code that removed an
12189 instantiation from visibility, to prevent compiler aborts when
12190 instantiation is abandoned early on.
12191 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
12192 current unit being analyzed, and Distinguish local incomplete types
12193 from limited views of types declared elsewhere.
12194 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
12195 to state that the class-wide entity is shared by the limited-view
12197 (Analyze_With_Clause): Improve placement of flag for case of
12198 unimplemented unit.
12199 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
12200 manner similar to GNAT.Current_Exception. This is a violation of
12201 restriction (No_Exception_Propagation), and also inhibits the
12202 optimization of local raise to goto.
12203 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
12204 and if so set Most_Recent_Exception_Used flag in Opt, and also check
12205 for violation of restriction No_Exception_Propagation.
12207 2007-06-06 Javier Miranda <miranda@adacore.com>
12208 Hristian Kirtchev <kirtchev@adacore.com>
12209 Gary Dismukes <dismukes@adacore.com>
12211 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
12212 use of entity Exception_Occurrence if it is not available in the
12215 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
12216 concurrent types are declared within an Ada 2005 generic, build their
12217 corresponding record types since they are needed for overriding-related
12219 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
12220 protected type does not implement a task interface or a nonlimited
12222 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
12223 type does not implement a protected interface or a nonlimited interface.
12224 (Single_Task_Declaration, Single_Protected_Declaration): use original
12225 entity for variable declaration, to ensure that debugging information
12226 is correcty generated.
12227 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
12228 routines if the expander is not active.
12229 (Analyze_Task_Body): Mark all handlers to stop optimization of local
12230 raise, since special things happen for task exception handlers.
12232 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
12233 concurrent types declared within a generic.
12234 (Check_Dispatching_Operation): Do not emit warning about late interface
12235 operations in the context of an instance.
12236 (Check_Dispatching_Call): Remove restriction against calling a
12237 dispatching operation with a limited controlling result.
12238 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
12239 Register_Interface_DT_Entry by calls to Register_Primitive.
12240 (Check_Dispatching_Formals): Handle properly a function with a
12241 controlling access result.
12243 2007-06-06 Robert Dewar <dewar@adacore.com>
12244 Arnaud Charlet <charlet@adacore.com>
12246 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
12247 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
12248 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
12249 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
12250 message when using a VM, since this attribute is not supported.
12251 (Analyze_Record_Representation_Clause): Give unrepped component warnings
12253 * usage.adb: Add new warning for renaming of function return objects
12254 Indicate that -gnatwp and -gnatwP concern front-end inlining
12255 Add line for -gnatyg
12256 Add usage information for -gnatw.c/C
12258 2007-06-06 Robert Dewar <dewar@adacore.com>
12259 Ed Schonberg <schonberg@adacore.com>
12262 (Find_Var): Do not consider function call in test for infinite loop
12263 warning if warnings set off for function entity.
12264 (One_Bound): Do not create a temporary for a loop bound if it is a
12266 (Analyze_Assignment): Traverse the right hand side of an assignment and
12267 mark all allocators as static coextensions.
12268 (Analyze_Assignment): Exempt assignments involving a dispatching call
12269 to a function with a controlling access result from the check requiring
12270 the target to be class-wide.
12272 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
12273 Ed Schonberg <schonberg@adacore.com>
12274 Robert Dewar <dewar@adacore.com>
12275 Javier Miranda <miranda@adacore.com>
12277 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
12278 chain of coextensions when an allocator serves as the root of such a
12280 (Propagate_Coextensions): Remove the test for the root being an
12282 (Resolve_Allocator): Add condition to ensure that all future decoration
12283 occurs on an allocator node. Add processing and cleanup for static
12285 (Valid_Conversion): If the operand type is the limited view of a
12286 class-wide type, use the non-limited view is available to determine
12287 legality of operation.
12288 (Ambiguous_Character): move to spec, for use elsewhere.
12289 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
12290 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
12291 character literals.
12292 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
12293 Do_Division_Check flag explicitly.
12294 (Resolve_Actuals): If the actual is of a synchronized type, and the
12295 formal is of the corresponding record type, this is a call to a
12296 primitive operation of the type, that is declared outside of the type;
12297 the actual must be unchecked-converted to the type of the actual
12298 (Resolve_Call): Kill all current values for any subprogram call if
12299 flag Suppress_Value_Tracking_On_Call is set.
12300 (Resolve_Type_Conversion): Generate error message the the operand
12301 or target of interface conversions come from a limited view.
12302 (Check_Infinite_Recursion): Ignore generated calls
12303 (Check_Allocator_Discrim_Accessibility): New procedure for checking
12304 that an expression that constrains an access discriminant in an
12305 allocator does not denote an object with a deeper level than the
12306 allocator's access type.
12307 (Resolve_Allocator): In the case of an allocator initialized by an
12308 aggregate of a discriminated type, check that associations for any
12309 access discriminants satisfy accessibility requirements by calling
12310 Check_Allocator_Discrim_Accessibility.
12311 (Resolve_Equality_Op): Handle comparisons of anonymous access to
12312 subprogram types in the same fashion as other anonymous access types.
12313 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
12314 message that is not a continuation message.
12315 (Resolve_Type_Conversion): Add missing support for conversion to
12317 (Resolve_Actuals): Introduce a transient scope around the call if an
12318 actual is a call to a function returning a limited type, because the
12319 resulting value must be finalized after the call.
12320 (Resolve_Actuals): If the call was given in prefix notations, check
12321 whether an implicit 'Access reference or implicit dereference must be
12322 added to make the actual conform to the controlling formal.
12324 2007-06-06 Robert Dewar <dewar@adacore.com>
12325 Javier Miranda <miranda@adacore.com>
12327 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
12328 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
12329 overriding of an inherited private subprogram now there is no need to
12330 inherit its dispatching slot and reduce the size of the dispatch table.
12331 Set_All_DT_Position now ensures that the same slot is now assigned to
12332 both entities. This is required to statically build the dispatch table.
12333 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
12334 of calling Set_All_DT_Position to re-evaluate the position of the
12335 entries in the dispatch table. Such reevaluation is not desired if
12336 the tagged type is already frozen.
12338 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
12339 Gary Dismukes <dismukes@adacore.com>
12340 Robert Dewar <dewar@adacore.com>
12341 Javier Miranda <miranda@adacore.com>
12343 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
12344 reference acts as an lvalue when the attribute name modifies the prefix
12345 (Is_Coextension_Root): New routine.
12346 (Mark_Static_Coextensions): New routine.
12347 (Type_Access_Level): Revise code for checking the level of the
12348 anonymous access type of a return object.
12349 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
12350 (Matches_Prefixed_View_Profile): Remove the no longer necessary
12351 retrieval of the corresponding controlling record type.
12352 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
12353 concurrent types declared within a generic as well as class wide types.
12354 Emit a mode incompatibility error whenever a protected entry or routine
12355 override an interface routine whose first parameter is not of mode
12356 "out", "in out" or access to variable.
12357 (Overrides_Synchronized_Primitive): Rename to
12358 Find_Overridden_Synchronized_Primitive.
12359 (Collect_Interface_Components): New subprogram that collects all the
12360 components of a tagged record containing tags of secondary dispatch
12362 (Add_Global_Declaration): New procedure
12363 (Abstract_Interface_List): Handle properly the case of a subtype of a
12365 (Type_Access_Level): In the case of a type whose parent scope is a
12366 return statement, call Type_Access_Level recursively on the enclosing
12367 function's result type to determine the level of the return object's
12369 (Build_Elaboration_Entity): Build name of elaboration entity from the
12370 scope chain of the entity, rather than the unit name of the file name.
12371 (Check_Nested_Access): New procedure.
12372 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
12373 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
12374 (Get_Renamed_Entity): Utility routine for performing common operation
12375 of chasing the Renamed_Entity field of an entity.
12377 2007-06-06 Robert Dewar <dewar@adacore.com>
12379 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
12381 (Check_A_Call): Add check for entry call which was causing blowup
12383 2007-06-06 Olivier Hainque <hainque@adacore.com>
12385 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
12386 special code on ia64-vms to handle major incompatibilities between the
12387 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
12388 this routine with a very different set of arguments and expectations on
12391 2007-06-06 Thomas Quinot <quinot@adacore.com>
12393 * socket.c (__gnat_close_signalling_fd): New function.
12394 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
12395 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
12396 New supporting functions for task safe Netdb operations.
12398 2007-06-06 Thomas Quinot <quinot@adacore.com>
12399 Olivier Hainque <hainque@adacore.com>
12401 * a-except-2005.ads, a-except-2005.adb
12402 (Raise_From_Controlled_Operation): New procedure in
12403 (private part of) Ada.Exceptions (standard runtime version). Used to
12404 provide informational exception message when Program_Error is raised as
12405 a result of an Adjust or Finalize operation propagating an exception.
12406 (Rmsg_28): Fix description for E.4(18) check.
12407 (Raise_Current_Excep): Call Debug_Raise_Exception just before
12408 propagation starts, to let debuggers know about the event in a reliable
12410 Take the address of E and dereference to make sure it is homed on stack
12411 and prevent the stores from being deleted, necessary for proper
12412 debugger behavior on "break exception" hits.
12413 (Local_Raise): Moved to System.Exceptions
12415 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
12416 exception message from the current occurrence and raise Program_Error
12417 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
12419 2007-06-06 Jose Ruiz <ruiz@adacore.com>
12420 Arnaud Charlet <charlet@adacore.com>
12422 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
12425 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
12426 priority associated to a lock.
12428 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
12429 assertion to take into account case of no abort restriction.
12430 (Initialize_Protection_Entries): Add initialization for the field
12431 New_Ceiling associated to the protected object.
12432 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
12435 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
12436 since this function needs to be set consistently with Update_Exception.
12438 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
12439 since this function needs to be set consistently with Update_Exception.
12441 * s-taskin.ads: Update comments on
12442 Interrupt_Server_Blocked_On_Event_Flag.
12443 (Unbind_Handler): Fix handling of server_task wakeup
12444 (Server_Task): Set self's state so that Unbind_Handler can take
12445 appropriate actions.
12446 (Common_ATCB): Now use a constant from System.Parameters to determine
12447 the max size of the Task_Image field.
12449 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
12450 Initialize_Analyzer function.
12451 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
12452 take into account case of no abort restriction.
12453 ([Vulnerable_]Complete_Master): Modify assertion.
12455 * s-tataat.adb (Finalize): Use the nestable versions of
12456 Defer/Undefer_Abort.
12458 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
12460 * s-tpobop.ads: Update comments.
12462 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
12463 of locking the object manually, to avoid inconsistencies between
12464 Lock/Unlock_Entry assertions.
12466 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
12468 application and System.Parameters.No_Abort is True.
12469 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
12470 (Unbind_Handler): Fix handling of server_task wakeup
12471 (Server_Task): Set self's state so that Unbind_Handler can take
12472 appropriate actions.
12474 2007-06-06 Thomas Quinot <quinot@adacore.com>
12476 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
12477 declarations instead of an explicit null body, for conciseness.
12479 2007-06-06 Robert Dewar <dewar@adacore.com>
12481 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
12482 illegal aggregate and the type is still Any_Composite.
12483 (Subtypes_Statically_Match): Fix problem of empty discriminant list
12485 2007-06-06 Ed Schonberg <schonberg@adacore.com>
12487 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
12488 to prevent subsequent expansion.
12490 2007-06-06 Robert Dewar <dewar@adacore.com>
12492 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
12494 2007-06-06 Ed Schonberg <schonberg@adacore.com>
12495 Robert Dewar <dewar@adacore.com>
12497 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
12499 (Write_Itype): Handle case of string literal subtype, which
12500 comes up in this context.
12501 (Update_Itype): when debugging expanded code, update sloc of itypes
12502 associated with defining_identifiers and ranges, for gdb use.
12503 (Sprint_Node_Actual): Add static keyword to object or exception
12504 declaration output if Is_Statically_Allocated is True.
12505 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
12506 or task body, so that the tree carries the proper Sloc information for
12508 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
12510 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12512 * s-secsta.adb (Chunk): Ensure this object has a static size known at
12513 compile time, to avoid dynamic memory allocation
12514 (Elaboration code): Only use dynamic memory allocation when needed.
12516 2007-06-06 Quentin Ochem <ochem@adacore.com>
12518 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
12520 (Stack_Analyzer): Added field "Overflow_Guard"
12521 (Task_Result): Added field "Overflow_Guard".
12522 (Index_Str): New constant.
12523 (Task_Name_Str): New constant.
12524 (Actual_Size_Str): New constant.
12525 (Pattern_Array_Element_Size): New constant.
12526 (Get_Usage_Range): New subprogram.
12527 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
12528 Now align the output.
12530 (Initialize): Added value for Overflow_Guard.
12531 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
12532 Update the value of the overflow guard according to the actual
12533 beginning of the pattern array.
12534 (Initialize_Analyzer): Added parameter Overflow_Guard.
12535 Take this parameter into accound when computing the max size.
12536 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
12537 (Report_Result): Removed extra useless procedure.
12538 Updated call to Output_Result.
12539 Moved full computation of the Task_Result here.
12541 2007-06-06 Thomas Quinot <quinot@adacore.com>
12543 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
12544 Thread_Blocking_IO, always True by default, set False on a per-runtime
12546 Add Windows-specific constants
12547 Add new constant Need_Netdb_Buffer.
12548 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
12549 not, whether to use getXXXbyYYY_r.
12551 * gsocket.h: Add new constant Need_Netdb_Buffer.
12552 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
12553 not, whether to use getXXXbyYYY_r.
12555 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
12557 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
12558 than their first call.
12559 Add type Dummy_Communication_Block used in the generation of the pre-
12560 defined dispatching primitive _disp_asynchronous_select.
12561 (Storage_Element): Put Pragma Universal_Aliasing on it.
12563 2007-06-06 Vincent Celier <celier@adacore.com>
12565 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
12568 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
12569 letter if it is not followed by a '/' or a '\'.
12570 (Windows): New Boolean function
12572 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
12574 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
12576 (Containing_Directory): Raise Use_Error when the directory is a root
12578 (Extension): When returning the result, use a conversion to Result_Type,
12579 not a qualification.
12581 2007-06-06 Robert Dewar <dewar@adacore.com>
12583 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
12584 (Set_Style_Check_Options): Recognize new -gnatyg style switch
12586 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
12587 Warn_On_Non_Local_Exception to False, to turn off warnings for
12588 No_Exception_Propagation in ZFP runtime.
12589 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
12591 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
12593 2007-06-06 Vincent Celier <celier@adacore.com>
12595 * switch-b.adb (Scan_Binder_Switches): Add processing for new
12598 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
12599 (Scan_Make_Switches): Recognize new switch -aP
12601 2007-06-06 Matthew Gingell <gingell@adacore.com>
12602 Jose Ruiz <ruiz@adacore.com>
12604 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
12605 VxWorks task descriptor in the Ada run time, call a C subprogram
12606 (__gnat_get_stack_info) that extracts the required information.
12608 * sysdep.c: Back out temporary lynxos workaround.
12609 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
12610 time the stack information associated to the currently executing task.
12611 Only VxWorks systems require this function.
12613 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
12615 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
12616 add the stack bias if the offset is computed from a frame address.
12617 (__gnat_backtrace): Adjust for above change.
12619 2007-06-06 Thomas Quinot <quinot@adacore.com>
12621 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
12622 PE_Non_Transportable_Actual.
12623 (By_Descriptor_Last): New constant.
12624 (By_Copy_Return): Likewise.
12626 2007-06-06 Vincent Celier <celier@adacore.com>
12628 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
12631 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
12632 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
12633 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
12634 Add missing comment for /OPTIMIZE=SPACE
12635 Add entry for OPTIMIZE=SPACE
12636 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
12637 Add documentation for new qualifiers corresponding to -gnatw.c/.C
12639 2007-06-06 Vincent Celier <celier@adacore.com>
12640 Robert Dewar <dewar@adacore.com>
12642 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
12645 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
12646 Document gnatbind switch -a
12647 (case Constructions): Document that variables declarations are allowed
12648 for previously declared variables.
12649 Fix external lib project example
12650 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
12651 Indicate that "#if not X or Y then" is not allowed in input files to
12653 Document gnatw.x and gnatw.X warning flags
12654 Mention -Winline switch to activate warnings when back-end inlining is
12656 Add gnatcheck rule descriptions
12657 Describe how to use the GNAT driver to call a tool on a closure.
12658 Describe how to run project-wide checks or metrics.
12659 Document gnatbind's -R option
12660 Updated to account for Ada 2005 support
12662 * gnat_rm.texi (Case Construction): Allow variable declarations for
12663 previously declared variables.
12664 (Representation Clauses and Pragmas): Lift restriction on alignment
12665 clauses for record types.
12666 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
12667 Document No_Exception_Propagation restriction
12668 Document No_Body pragma
12669 Updated to account for Ada 2005 support; corrected some typos
12670 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
12672 * gnat-style.texi: Make it clear that we never use mode IN for
12673 procedures or functions
12675 * ug_words: Add entries for -gnatw.x and -gnatw.X
12676 Add entries for -gnatw.c/.C
12678 2007-06-06 Pascal Obry <obry@adacore.com>
12679 Vincent Celier <celier@adacore.com>
12681 * makegpr.adb (Add_Archive_Path): Use untouched object and library
12682 dirs and library name.
12683 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
12685 (Build_Library): Idem.
12686 (Compile_Individual_Sources): Idem.
12687 (Compile_Link_With_Gnatmake): Idem.
12688 (Compile_Sources): Idem.
12689 (Get_Imported_Directories): Idem.
12690 (Link_Executables): Idem. Same change for the executable dir.
12691 (Check_Compilation_Needed): C_Source_Path new variable containing
12692 the canonical form of Source_Path to check against the source names
12693 in the dependency file.
12694 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
12695 verbose mode, display the name of the object directory we're changing
12697 (Saved_Switches): New name of table X_Switches
12698 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
12699 (Usage): New line for switch -aP
12700 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
12701 testing if a directory should be added to the search path.
12703 2007-06-06 Javier Miranda <miranda@adacore.com>
12705 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
12706 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
12707 declaration after freezing point of all its associated tagged types;
12708 otherwise such types are frozen too early.
12710 2007-06-06 Robert Dewar <dewar@adacore.com>
12712 * a-reatim.adb: Documentation addition
12714 * g-cgideb.adb: Minor code reorganization
12716 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
12717 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
12718 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
12720 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
12721 function. Change name New_Scope to Push_Scope
12722 (Get_Debug_Flag_K): Remove unused obsolete function.
12724 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
12727 * makeusg.adb: Update Copyright notice
12728 Add line for switch -aP
12730 * makeusg.adb: Fix wording of some usage messages
12732 * s-assert.adb (Raise_Assert_Failure): Add call to
12733 Debug_Raise_Assert_Failure.
12735 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
12736 (2, Standard'Alignment) for compatibility with AAMP (where alignment
12737 is restricted to 1).
12739 * s-wchjis.adb: Remove use of System.Pure_Exceptions
12741 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
12742 node location to No_Location when we're not debugging the expanded
12745 2007-05-22 Alexandre Oliva <aoliva@redhat.com>
12747 * misc.c (enumerate_modes): Consider log2_b to always be one.
12749 2007-05-14 Rafael Avila de Espindola <espindola@google.com>
12751 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
12753 2007-05-02 Pascal Obry <obry@adacore.com>
12755 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
12756 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
12757 encoding support of Stream_IO.
12758 (Write_Unit): Idem.
12760 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
12761 filename and corresponding encoding to match the OS requirement.
12762 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
12763 routine will fail on specific devices like CON: AUX: ...
12765 PR ada/29856: Add missing braces
12767 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
12770 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
12772 2007-04-21 Jan Hubicka <jh@suse.cz>
12774 * misc.c (gnat_expand_body): Don't call target for destructors,
12775 avoid redundant check on syntax errors.
12777 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
12779 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
12780 instead of checking GIMPLE_STMT_P in chain_next.
12782 2007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
12785 * system-linux-alpha.ads: Disable constant condition warning for the
12786 Default_Bit_Order variable.
12787 * system-linux-s390.ads: Likewise.
12788 * system-linux-s390x.ads: Likewise.
12789 * system-linux-sparc.ads: Likewise.
12791 2007-04-06 Javier Miranda <miranda@adacore.com>
12792 Matt Heaney <heaney@adacore.com>
12793 Robert Dewar <dewar@adacore.com>
12795 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
12796 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
12797 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
12798 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
12799 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
12800 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
12801 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
12802 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
12803 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
12804 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
12805 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
12806 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
12807 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
12808 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
12809 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
12810 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
12811 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
12812 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
12813 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
12814 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
12815 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
12816 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
12817 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
12818 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
12819 s-taprop-tru64.adb, s-taprop-irix.adb,
12820 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
12821 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
12822 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
12823 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
12824 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
12825 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
12826 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
12827 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
12828 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
12829 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
12830 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
12831 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
12832 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
12833 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
12834 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
12835 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
12836 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
12837 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
12838 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
12839 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
12841 Update documentation.
12844 2007-04-06 Robert Dewar <dewar@adacore.com>
12846 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
12847 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
12848 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
12849 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
12850 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
12851 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
12852 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
12853 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
12854 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
12855 system-hpux-ia64.ads, targparm.adb,
12856 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
12858 * system.ads: Move Functions_Return_By_DSP to obsolete section,
12859 kept for bootstrap purposes only.
12861 2007-04-06 Arnaud Charlet <charlet@adacore.com>
12863 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
12864 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
12865 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
12866 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
12868 2007-04-06 Robert Dewar <dewar@adacore.com>
12870 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
12871 (Local_Raise): New dummy procedure called when a raise is converted
12872 to a local goto. Used for debugger to detect that the exception
12875 * debug.adb: Document new d.g flag (expand local raise statements to
12876 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
12878 * exp_sel.adb: Use Make_Implicit_Exception_Handler
12880 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
12881 suppress warnings for unused handlers.
12882 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
12883 warnings for raise statements not handled locally.
12884 (Get_RT_Exception_Entity): New function
12885 (Get_Local_Call_Entity): New function
12886 (Find_Local_Handler): New function
12887 (Warn_If_No_Propagation): New procedure
12888 (Expand_At_End_Handler): Call Make_Implicit_Handler
12889 (Expand_Exception_Handlers): Major additions to deal with local handlers
12890 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
12891 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
12894 * exp_ch11.ads (Get_RT_Exception_Entity): New function
12895 (Get_Local_Call_Entity): New function
12897 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
12898 of restrictions that the binder will never suggest adding.
12900 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
12903 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
12904 be with'ed in the presence of pragma Restriction
12905 (No_Exception_Propagation).
12907 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
12909 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
12910 parameter, then the handler is not a suitable target for a local raise,
12911 and this is a violation of restriction No_Exception_Propagation.
12912 (Analyze_Handled_Statements): Analyze choice parameters in exception
12913 handlers before analyzing statement sequence (needed for proper
12914 detection of local raise statements).
12915 (Analyze_Raise_Statement): Reraise statement is a violation of the
12916 No_Exception_Propagation restriction.
12918 * s-rident.ads: Add new restriction No_Exception_Propagation
12920 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
12921 function, like Make_Exception_Handler but sets Local_Raise_Statements
12923 (Add_Unique_Serial_Number): Deal with case where this is called during
12924 processing of configuration pragmas.
12926 2007-04-06 Thomas Quinot <quinot@adacore.com>
12927 Pat Rogers <rogers@adacore.com>
12928 Pascal Obry <obry@adacore.com>
12930 * g-stsifd-sockets.adb: New file.
12932 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
12933 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
12934 g-socthi-vms.adb: Move signalling
12935 fd management to a nested package, so that they can conveniently be
12936 moved to a subunit that is shared across Windows, VMS, and VxWorks
12937 (Ada implementation) or completed with imported bodies from socket.c
12939 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
12941 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
12942 the signalling file descriptor.
12943 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
12944 signalling file descriptor.
12945 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
12946 instead of creating a pair of sockets for signalling here.
12948 * g-socthi.adb: Ditto.
12949 Set the runtime process to ignore SIGPIPEs on platforms that support
12950 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
12952 * g-socthi-mingw.adb: Ditto.
12953 (WS_Version): Use Windows 2.2.
12954 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
12956 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
12957 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
12959 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
12960 added GNAT byte swapping facility
12961 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
12963 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
12965 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
12967 (__gnat_create_signalling_fds): New subprogram.
12968 Set the runtime process to ignore SIGPIPEs on platforms that support
12969 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
12971 2007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
12972 Vincent Celier <celier@adacore.com>
12974 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
12975 New version of Ada.Calendar which supports the new upper bound of Ada
12976 time (2399-12-31 86_399.999999999).
12977 The following modifications have been made to the package:
12978 - New representation of time as count of nanoseconds since the start of
12979 Ada time (1901-1-1 0.0).
12980 - Target independent Split and Time_Of routines which service both
12981 Ada 95 and Ada 2005 code.
12982 - Target independent interface to the Ada 2005 children of Calendar.
12983 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
12984 - Handling of non-leap centenial years.
12985 - Updated clock function.
12986 - Updated arithmetic and comparison operators.
12988 * a-caldel.adb (To_Duration): Add call to target independent routine in
12989 Ada.Calendar to handle the conversion of time to duration.
12991 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
12993 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
12995 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
12996 targets do not have a natural time zone, GMT is used as a default.
12997 (__gnat_get_task_options): New.
12999 * a-direct.adb (Modification_Time): Add with and use clauses for
13000 Ada.Calendar and Ada.
13001 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
13002 since it is no longer needed.
13003 (Duration_To_Time): Removed.
13004 (OS_Time_To_Long_Integer): Removed.
13005 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
13006 Formatting Time_Of routines which automatically handle time zones,
13007 buffer periods and leap seconds.
13009 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
13010 target independent routines in Ada.Calendar.
13012 * a-calfor.ads, a-calfor.adb:
13013 Code cleanup and addition of validity checks in various routines.
13014 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
13017 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
13018 independent routine in Ada.Calendar.
13020 2007-04-06 Olivier Hainque <hainque@adacore.com>
13023 (convert_addresses): Adjust prototype and dummy definition to expect an
13024 extra file_name argument.
13026 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
13027 filling the now expected file_name argument with the appropriate
13029 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
13030 (tracebk): Array of void * instead of char *, corresponding to what
13031 convert_addresses expects.
13032 (exename): New static global, to hold the executable file name to be
13033 used in all convert_addresses invocations.
13034 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
13036 (__gnat_gmem_a2l_initialize): Resolve exename.
13037 (__gnat_convert_addresses): Use exename as the convert_addresses
13038 file_name argument.
13040 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
13041 "convert_addresses", now expecting a filename argument. Import the
13042 necessary entities to compute the filename to use and pass it to
13045 2007-04-06 Matt Gingell <gingell@adacore.com>
13047 * system-aix.ads: Back out previous change.
13048 (Functions_Return_By_DSP): Removed
13050 2007-04-06 Pascal Obry <obry@adacore.com>
13052 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
13053 or the monotonic used by Ada.Real_Time) to compute the sleep duration
13056 2007-04-06 Jose Ruiz <ruiz@adacore.com>
13058 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
13059 function. Its value changes in different VxWorks versions, and it is
13060 now handled by the function __gnat_get_task_options.
13062 * s-taprop-vxworks.adb (Create_Task): Call the function
13063 __gnat_get_task_options to get the required options for creating a task.
13065 2007-04-06 Pascal Obry <obry@adacore.com>
13066 Thomas Quinot <quinot@adacore.com>
13068 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
13069 dealing with filename.
13070 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
13071 filename from a standard string to a wide-string depending on the
13073 (__gnat_freopen): Idem.
13074 (__gnat_current_time): New function (wrapper for time(3) standard C
13077 * g-os_lib.ads (Current_Time): New function. Returns the current
13078 system time as an OS_Time value.
13080 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
13081 (Monotonic_Clock): Same.
13083 2007-04-06 Quentin Ochem <ochem@adacore.com>
13085 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
13087 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
13089 2007-04-06 Jose Ruiz <ruiz@adacore.com>
13091 * a-retide.adb: Add elaboration code to ensure that the tasking run
13092 time is initialized when using delay operations even when no task is
13095 2007-04-06 Javier Miranda <miranda@adacore.com>
13097 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
13098 component Num_Prim_Ops.
13099 (Set_Num_Prim_Ops): Removed.
13100 Remove all the assertions because all the routines of this
13101 package are inline always.
13102 (Get_Offset_Index): Add support to primary dispatch tables.
13103 Move the documentation about the dispatch table to a-tags.ads
13104 (Set_External_Tag): Removed
13105 (Inherit_TSD): Removed.
13106 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
13107 moved to a-tags.ads
13108 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
13109 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
13110 of the TSD field "Table" because this field has been renamed to
13112 (Inherit_CPP_DT): Removed.
13113 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
13114 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
13115 declarations have been moved to a-tags.ads
13116 (Check_Size): Removed.
13117 (Expanded_Name): Updated to get access to the new field of TSD
13118 containing the address of the expanded name.
13119 (Get_Access_Level/Set_Access_Level): Removed.
13120 (Get_Predefined_Prim_Op_Address): Removed.
13121 (Set_Predefined_Prim_Op_Address): Removed.
13122 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
13123 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
13124 (Set_Expanded_Name): Removed.
13125 (Inherit_DT): Removed.
13126 (Inherit_CPP_DT): Removed.
13127 (Set_RC_Offset): Removed.
13128 (Set_TSD): Removed.
13129 (Base_Address): New function that displaces "this" to point to the base
13130 of the object (that is, to point to the primary tag of the object).
13132 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13133 Javier Miranda <miranda@adacore.com>
13135 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
13136 anonymous access component, do not create a master_id if type already
13137 has one, as may happen if the type is a subcomponent of a packed array
13139 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
13140 Initialize_Tag): Remove code associated with the old CPP pragmas.
13141 CPP_Virtual and CPP_Vtable are no longer supported.
13142 (Build_Offset_To_Top_Internal): Add support for concurrent record types
13143 (Build_Offset_To_Top_Functions): Add support for concurrent record types
13144 (Freeze_Record_Type): Remove call to
13145 Init_Predefined_Interface_Primitives.
13146 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
13147 code required to initialize the tags of the secondary dispatch tables.
13148 This leaves the algoritm more clear.
13149 (Init_Secondary_Tags): Add support for concurrent record types
13150 (Make_Predefined_Primitive_Specs): Code cleanup.
13151 (Predefined_Primitive_Bodies): Code cleanup.
13152 (Build_Master_Renaming): New local subprogram.
13153 (Expand_N_Full_Type_Declaration): Build the master_id associated with
13154 anonymous access to task type components.
13155 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
13156 subtype indication are resolved during analysis, and must not be done
13158 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
13160 2007-04-06 Geert Bosch <bosch@adacore.com>
13161 Ed Schonberg <schonberg@adacore.com>
13162 Javier Miranda <miranda@adacore.com>
13163 Bob Duff <duff@adacore.com>
13165 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
13166 for conversion of a Float_Type'Truncation to integer.
13168 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
13169 check if a node is an attribute that can be handled directly by the
13171 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
13172 attributes that can be handled directly by the back end.
13173 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
13174 use new predicate Is_Access_Protected_Subprogram_Type.
13175 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
13176 and Unchecked_Union if it is generated as part of the default Output
13177 procedure for a type with default discriminants.
13178 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
13179 if we are compiling under restriction No_Dispatching_Calls.
13180 (Constrained): Use Underlying_Type, in case the type is private without
13181 discriminants, but the full type has discriminants.
13182 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
13183 call to Build_Get_Access_Level.
13184 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
13185 interface objects requires a call to the run-time subprogram that
13186 returns the base address of the object.
13187 (Valid_Conversion): Improve error message on illegal attempt to store
13188 an anonymous access to subprogram value into a record component.
13190 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
13192 (Simplify_Type_Conversion): New procedure that performs simplification
13193 of Int_Type (Float_Type'Truncation (X)).
13194 (Resolve_Type_Conversion): Call above procedure after resolving operand
13195 and before performing checks. This replaces the existing ineffective
13197 (Set_String_Literal_Subtype): When creating the internal static lower
13198 bound subtype for a string literal, use a newly created copy of the
13199 subtree representing the lower bound.
13200 (Resolve_Call): Exclude build-in-place function calls from transient
13201 scope treatment. Update comments to describe this exception.
13202 (Resolve_Equality_Op): In case of dispatching call check violation of
13203 restriction No_Dispatching_Calls.
13204 (Resolve_Call): If the call returns an array, the context imposes the
13205 component type of the array, and the function has one non-defaulted
13206 parameter, rewrite the call as the indexing of a call with a single
13207 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
13209 (Resolve_Actuals): If an actual is an allocator for an access parameter,
13210 the master of the created object is the innermost enclosing statement.
13211 (Remove_Conversions): For a binary operator, check if type of second
13212 formal is numeric, to check if an abstract interpretation is present
13213 in the case of exponentiation as well.
13215 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13216 Bob Duff <duff@adacore.com>
13218 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
13219 copying a parameter list in a call, set properly the First_Named_Formal
13220 and Next_Named_Formal fields in the new list and in the enclosing call.
13221 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
13222 names, to ease typing in the debugger. Improve comments.
13223 (Watch_Node): New variable, intended to be set in the debugger.
13224 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
13225 called when the watched node is created.
13226 (New_Node_Debugging_Output): Combined version of local procedures
13227 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
13228 with a parameter so that conditional breakpoints like "if Node = 12345"
13230 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
13231 Add Elist1 function
13233 2007-04-06 Thomas Quinot <quinot@adacore.com>
13234 Ed Schonberg <schonberg@adacore.com>
13235 Gary Dismukes <dismukes@adacore.com>
13237 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
13238 required for a conversion between two access-to-unconstrained-array
13240 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
13241 to discriminant constraints on discriminant objects. This rule must
13242 apply as well to discriminants of protected types in private components.
13243 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
13244 object of a null-excluding access type then don't require the
13245 the object declaration to have an expression and don't emit a
13248 2007-04-06 Arnaud Charlet <charlet@adacore.com>
13249 Eric Botcazou <botcazou@adacore.com>
13251 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
13254 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
13255 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
13258 * fe.h (Compiler_Abort): Add third parameter.
13260 * misc.c (internal_error_function): Build third argument from current
13261 input location and pass it to Compiler_Abort.
13263 2007-04-06 Gary Dismukes <dismukes@adacore.com>
13265 * cstand.adb (Create_Standard): When the target's storage unit size is
13266 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
13269 2007-04-06 Nicolas Roche <roche@adacore.com>
13271 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
13272 absolute path can have the following form: device:/a/b. In this case
13273 '/' should be inserted between the path and the filename.
13275 2007-04-06 Olivier Hainque <hainque@adacore.com>
13276 Eric Botcazou <botcazou@adacore.com>
13278 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
13279 VAR_DECL to a CONST_DECL we make for a public constant when we know the
13280 corresponding definition has created the so made visible variable.
13281 Handle anonymous access to protected subprogram.
13282 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
13283 object with an address clause volatile. Re-enable original fix.
13284 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
13286 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
13287 associated with either the Equivalent or Root type, instead of the
13289 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
13290 subtree for every field of a global record type.
13291 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
13292 discriminants, invoke again variable_size on its newly computed sizes.
13294 2007-04-06 Robert Dewar <dewar@adacore.com>
13295 Thomas Quinot <quinot@adacore.com>
13296 Ed Schonberg <schonberg@adacore.com>
13297 Bob Duff <duff@adacore.com>
13299 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
13300 (Next_Component_Or_Discriminant): New function and procedure
13301 (First_Index, First_Literal, Master_Id,
13302 Set_First_Index, Set_First_Literal, Set_Master_Id):
13303 Add missing Ekind assertions.
13304 (Is_Access_Protected_Subprogram_Type): New predicate.
13305 (Has_RACW): New entity flag, set on package entities to indicate that
13306 the package contains the declaration of a remote accecss-to-classwide
13308 (E_Return_Statement): This node type has the Finalization_Chain_Entity
13309 attribute, in case the result type has controlled parts.
13310 (Requires_Overriding): Add this new flag, because "requires
13311 overriding" is subtly different from "is abstract" (see AI-228).
13312 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
13313 Is_Abstract_Type. Make sure these are called only when appropriate.
13314 (Has_Pragma_Unreferenced_Objects): New flag
13316 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
13317 class-wide, the tag of the right-hand side must be an exact match, not
13318 an ancestor of that of the object on left-hand side.
13319 (Move_Activation_Chain): New procedure to create the call to
13320 System.Tasking.Stages.Move_Activation_Chain.
13321 (Expand_N_Extended_Return_Statement): Generate code to call
13322 System.Finalization_Implementation.Move_Final_List at the end of a
13323 return statement if the function's result type has controlled parts.
13324 Move asserts to Build_In_Place_Formal.
13325 (Move_Final_List): New function to create the call statement.
13326 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
13327 tagged type, replace generation of call to the run-time subprogram
13328 CW_Membership by call to Build_CW_Membership.
13329 (Expand_N_Return_Statement): Replace generation of call to the run-time
13330 subprogram Get_Access_Level by call to Build_Get_Access_Level.
13331 (Expand_N_Simple_Function_Return): Replace generation of call to the
13332 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
13334 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
13335 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
13336 access to protected operations.
13337 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
13338 master and chain actual parameters to a build-in-place function call
13340 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
13342 (Make_Build_In_Place_Call_In_Allocator,
13343 Make_Build_In_Place_Call_In_Anonymous_Context,
13344 Make_Build_In_Place_Call_In_Assignment,
13345 Make_Build_In_Place_Call_In_Object_Declaration): Call
13346 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
13347 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
13348 stubbed procedure with a null body, replace the call with a null
13349 statement without using the full inlining machinery, for efficiency
13350 and to avoid invalid values in source file table entries.
13352 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
13353 renamings of calls to build-in-place functions.
13355 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
13356 provides the functionality of RTE_Available to record components.
13357 (RTU_Entity): The function Entity has been renamed to RTU_Entity
13358 to avoid undesired overloading.
13359 (Entity): New subprogram that returns the entity for the referened
13360 unit. If this unit has not been loaded, it returns Empty.
13361 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
13362 Remove no longer used entities.
13363 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
13364 (RE_Type_Specific_Data): New entity.
13365 (RE_Move_Any_Value): New entity.
13366 (RE_TA_A, RE_Get_Any_Type): New entities.
13367 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
13368 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
13369 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
13370 (Entity): New subprogram that returns the entity for the referened
13371 unit. If this unit has not been loaded, it returns Empty.
13372 (RTE): Addition of a new formal that extends the search to the scopes
13373 of the record types found in the chain of the package.
13375 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
13376 "abstract subprograms must be visible" message, whether or not the type
13377 is an interface; that is, remove the special case for interface types.
13378 (Analyze_Function_Return): Remove error message "return of task objects
13379 is not yet implemented" because this is now implemented.
13380 (Create_Extra_Formals): Add the extra master and activation chain
13381 formals in case the result type has tasks.
13382 Remove error message "return of limited controlled objects is not yet
13384 (Create_Extra_Formals): Add the extra caller's finalization list formal
13385 in case the result type has controlled parts.
13386 (Process_Formals): In case of access formal types there is no need
13387 to continue with the analysis of the formals if we already notified
13389 (Check_Overriding_Indicator): Add code to check overriding of predefined
13391 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
13392 flags for formals that do not require them,.
13393 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
13394 hidden entity is use visible or directly visible.
13395 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
13396 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
13397 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
13398 New_Overloaded_Entity): Split Is_Abstract flag into
13399 Is_Abstract_Subprogram and Is_Abstract_Type.
13401 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
13402 a return statement's finalization list to the caller's list, used for
13403 build-in-place functions with result type with controlled parts.
13404 Remove no longer used entities.
13406 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
13407 longer needed, because the full type is now limited, and therefore a
13408 pass-by-reference type.
13409 (Foreign_Task_Level): New constant.
13411 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
13412 move tasks from the activation chain belonging to a return statement to
13413 the one passed in by the caller, and update the master to the one
13414 passed in by the caller.
13415 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
13416 of unactivated tasks, so we don't kill the ones that are being returned
13417 by a build-in-place function.
13418 (Create_Task): Ignore AI-280 for foreign threads.
13420 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13421 Robert Dewar <dewar@adacore.com>
13422 Bob Duff <duff@adacore.com>
13423 Gary Dismukes <dismukes@adacore.com>
13425 * errout.adb (Unwind_Internal_Type): Use predicate
13426 Is_Access__Protected_Subprogram_Type.
13428 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
13429 (Freeze_Entity, packed array case): Do not override explicitly set
13430 alignment and size clauses.
13431 (Freeze_Entity): An entity declared in an outer scope can be frozen if
13432 the enclosing subprogram is a child unit body that acts as a spec.
13433 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
13434 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
13435 Remove all code for DSP option
13437 * layout.adb (Layout_Record_Type): Use First/
13438 Next_Component_Or_Discriminant
13439 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
13440 to handle properly the anonymous access case.
13442 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
13443 for all access attributes, because overload resolution should work the
13444 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
13445 causes the error message for the ambiguous "X'Access = Y'Access" and
13446 "X'Unrestricted_Access = Y'Access" and so forth to match.
13447 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
13448 now that anonymous access to protected operations have their own kind.
13449 (Resolve_Attribute): In case of dispatching call check the violation of
13450 restriction No_Dispatching_Calls.
13451 (Check_Array_Type): Check new -gnatyA array index style option
13453 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
13454 attempt to derive from a synchronized tagged type.
13455 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
13456 type, inherit the class-wide type already created, because it may
13457 already have been used in a self-referential anonymous access component.
13458 (Mentions_T): Recognize self-referential anonymous access components
13459 that use (a subtype of) the class-wide type of the enclosing type.
13460 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
13461 Derived_Type for Prev formal on call to
13462 Check_Anonymous_Access_Components rather than Empty.
13463 (Make_Incomplete_Type_Declaration): Add test for case where the type has
13464 a record extension in deciding whether to create a class-wide type,
13465 rather than just checking Tagged_Present.
13466 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
13467 to stand-alone object declarations as well as component declarations.
13468 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
13469 prevent accidental overwriting when enclosing package appears in
13470 a limited_with_clause.
13471 (Array_Type_Declaration): If the component type is an anonymous access,
13472 the associated_node for the itype is the type declaration itself.
13473 (Add_Interface_Tag_Components): Modified to support concurrent
13474 types with abstract interfaces.
13475 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
13476 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
13477 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
13478 to complete the decoration of synchronized interface types. Add also
13479 a call to Check_Abstract_Interfaces to verify the ARM rules.
13480 (Derive_Interface_Subprograms): Modified to support concurrent types
13481 with abstract interfaces.
13482 (Analyze_Subtype_Indication): Resolve the range with the given subtype
13483 mark, rather than delaying the full resolution depending on context.
13484 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
13485 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
13486 Array_Type_Declaration,Build_Derived_Record_Type,
13487 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
13488 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
13489 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
13490 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
13491 called only when appropriate.
13492 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
13494 (Analyze_Subtype_Declaration): For an access subtype declaration, create
13495 an itype reference for the anonymous designated subtype, to prevent
13496 scope anonmalies in gigi.
13497 (Build_Itype_Reference): New utility, to simplify construction of such
13500 2007-04-06 Vincent Celier <celier@adacore.com>
13502 * errutil.adb (Initialize): Initialize warnings table, if all warnings
13503 are suppressed, supply an initial dummy entry covering all possible
13506 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
13507 and start with only one, such as "-RTS=none".
13508 (Collect_Arguments): Do not check for sources outside of projects.
13509 Do not collect arguments if project is externally built.
13510 (Compile_Sources): Do nothing, not even check if the source is up to
13511 date, if its project is externally built.
13512 (Compile): When compiling a predefined source, add -gnatpg
13513 as the second switch, after -c.
13514 (Compile_Sources): Allow compilation of Annex J renames without -a
13515 (Is_In_Object_Directory): Check if the ALI file is in the object
13516 even if there is no project extension.
13517 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
13518 gnatbind if the ALI file effectively exists.
13519 (Initialize): Add the directory where gnatmake is invoked in front of
13520 the path if it is invoked from a bin directory, even without directory
13521 information, so that the correct GNAT tools will be used when spawned
13522 without directory information.
13524 * makeusg.adb: Change switch -S to -eS
13525 Add lines for new switches -we, -wn and -ws
13526 Add line for new switch -p
13528 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
13529 Treat_As_Error and there are warnings.
13531 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
13532 -gnatww Change gnatmake switch -S to -eS
13533 (Scan_Make_Switches): Code reorganisation. Process separately multi
13534 character switches and single character switches.
13535 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
13536 False when switch is not recognized by gnatmake.
13537 (Scan_Make_Switches): Set Setup_Projects True when -p or
13538 --create-missing-dirs is specified.
13540 * fname.adb (Is_Predefined_File_Name): Return True for annex J
13541 renamings Calendar, Machine_Code, Unchecked_Conversion and
13542 Unchecked_Deallocation only when Renamings_Included is True.
13544 * par.adb: Allow library units Calendar, Machine_Code,
13545 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
13546 when -gnatg is not specified.
13547 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
13548 there is no need to generate always a record_definition_node in case
13549 of synchronized interface types.
13550 (SIS_Entry_Active): Initialize global variable to False
13551 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
13552 indicate cases where AI-447 says "not null" is legal.
13554 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
13556 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
13557 files with with several lines starting with the object fileb name.
13558 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
13560 (Initialize): Add the directory where gprmake is invoked in front of the
13561 path, if it is invoked from a bin directory or with directory
13562 information, so that the correct GNAT tools will be used when invoked
13564 (Check_Compilation_Needed): Process correctly backslashes on Windows.
13566 * vms_data.ads: Update switches/qualifiers
13568 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13569 Thomas Quinot <quinot@adacore.com>
13572 If the array component is a discriminated record, the array aggregate
13573 is non-static even if the component is given by an aggregate with
13575 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
13576 (Convert_Aggr_In_Allocator): If the allocator is for an access
13577 discriminant and the type is controlled. do not place on a finalization
13578 list at this point. The proper list will be determined from the
13580 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
13581 initialize record controller if needed, before the components, to ensure
13582 that they are properly finalized.
13583 (Build_Record_Aggr_Code): For the case of an array component that has a
13584 corresponding array aggregate in the record aggregate, perform sliding
13587 2007-04-06 Javier Miranda <miranda@adacore.com>
13588 Gary Dismukes <dismukes@adacore.com>
13589 Ed Schonberg <schonberg@adacore.com>
13591 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
13592 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
13594 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
13595 accessibility on class-wide allocators if the allocator occurs at the
13596 same scope level as the allocator's type. The check is guaranteed to
13597 succeed in that case, even when the expression originates from a
13598 parameter of the containing subprogram.
13599 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
13600 under No_Dispatching_Calls restriction. During the semantic analysis
13601 we already notified such violation.
13602 (Tagged_Membership): Constant folding. There is no need to check
13603 the tag at run-time if the type of the right operand is non
13604 class-wide abstract.
13605 Replace call to Is_Ancestor by call to Is_Parent
13606 to support concurrent types with interface types.
13607 (Expand_N_Allocator): Add an assertion associated with the generation
13609 (Expand_N_Slice): Do not enable range check to nodes associated
13610 with the frontend expansion of the dispatch table.
13611 (Is_Local_Access_Discriminant): Subsidiary function to
13612 Expand_N_Allocator.
13613 (Tagged_Membership): Replace generation of call to the run-time
13614 subprogram CW_Membership by call to Build_CW_Membership.
13615 (Expand_Allocator_Expression): Replace generation of call to the
13616 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
13618 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
13619 initialize most the TSD components by means of an aggregate.
13620 Modify the declaration of the object containing the TSD
13621 because we now expand code that has a higher level of abstraction.
13622 The TSD has a discriminant containing the Inheritance Depth Level,
13623 value that is used in the membership test but also to fix the size
13624 of the table of ancestors.
13625 (Expand_Interface_Conversion): Insert function body at the closest place
13626 to the conversion expression, to prevent access-before-elaboration
13627 errors in the backend.
13628 Code improved to reduce the size of the dispatch table if
13629 compiling under restriction No_Dispatching_Calls plus code cleanup.
13630 Code reorganization plus removal of calls to Set_Num_Prim_Ops
13631 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
13632 (Expand_Dispatching_Call): Minor code reorganization plus addition of
13633 code to return immediately if compiling under No_Dispatching_Calls
13635 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
13636 CPP_Virtual and CPP_Vtable are no longer supported.
13637 (Expand_Interface_Conversion): Add missing support for interface type
13639 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
13640 Is_Parent to support concurrent types with interfaces.
13641 (Init_Predefined_Interface_Primitives): Removed.
13642 (Make_Secondary_DT): Modified to support concurrent record types.
13643 (Set_All_DT_Position): Modified to support concurrent record types.
13644 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
13645 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
13646 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
13647 with CW_Membership.
13648 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
13649 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
13650 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
13651 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
13652 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
13653 (Expand_Dispatching_Call): Replace generation of call to the run-time
13654 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
13655 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
13657 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
13658 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
13659 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
13660 Build_Set_Prim_Op_Address.
13661 (Get_Remotely_Callable): Subprogram removed.
13662 (Init_Predefined_Interface_Primitives): Replace generation of call to
13663 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
13666 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
13667 First (Parameter_Associations ()) with the call to First_Actual that
13668 returns an actual parameter expression for both named and positional
13671 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
13672 check violation of restriction No_Dispatching_Calls.
13673 (Check_Controlling_Type): A formal of a tagged incomplete type is a
13674 controlling argument.
13676 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
13677 First/Next_Component_Or_Discriminant
13678 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
13679 (Find_Implemented_Interface): Removed. All the calls to this subprogram
13680 specify Any_Limited_Interface, and this functionality is already
13681 provided by the function Has_Abstract_Interfaces.
13682 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
13683 support concurrent types implementing interfaces.
13684 (Find_Implemented_Interface): Removed. All the calls to this subprogram
13685 specify kind Any_Limited_Interface, and this functionality is already
13686 provided by the function Has_Abstract_Interfaces.
13687 (Remove_Side_Effects): replace Controlled_Type by
13688 CW_Or_Controlled_Type whenever the issue is related to
13689 using or not the secondary stack.
13691 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
13692 P_Interface_Type_Definition to fulfill the new interface (the formal
13693 Is_Synchronized is no longer required).
13695 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
13696 Update dependencies.
13698 * exp_atag.ads, exp_atag.adb: New file
13700 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13701 Bob Duff <duff@adacore.com>
13702 Cyrille Comar <comar@adacore.com>
13704 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
13705 anonymous, use finalization list of enclosing dynamic scope.
13706 (Expand_N_Package_Declaration): For a library package declaration
13707 without a corresponding body, generate RACW subprogram bodies in the
13708 spec (just as we do for the task activation call).
13709 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
13710 Is_Abstract_Type. Make sure these are called only when appropriate.
13711 Remove all code for DSP option
13712 (CW_Or_Controlled_Type): new subprogram.
13714 2007-04-06 Eric Botcazou <botcazou@adacore.com>
13715 Ed Schonberg <schonberg@adacore.com>
13716 Gary Dismukes <dismukes@adacore.com>
13718 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
13719 parameter. If it is set to true, return a result capped according to
13720 the global upper bound for the index of an entry family.
13721 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
13722 (Build_Find_Body_Index): Adjust for above change.
13723 (Entry_Index_Expression): Likewise.
13724 (Is_Potentially_Large_Family): New function extracted from...
13725 (Collect_Entry_Families): ...here. Call it to detect whether the family
13726 is potentially large.
13727 (Build_Entry_Count_Expression): If the family is potentially large, call
13728 Family_Size with 'Cap' set to true.
13729 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
13730 a protected version of an operation declared in the private part of
13731 a protected object, because they may be invoked through a callback.
13732 (Set_Privals): If the type of a private component is an anonymous access
13733 type, do not create a new itype for each protected body.
13734 If the body of a protected operation creates
13735 controlled types (including allocators for class-widetypes), the
13736 body of the corresponding protected subprogram must include a
13738 (Build_Activation_Chain_Entity): Build the chain entity for extended
13740 (Type_Conformant_Parameters): Use common predicate Conforming_Types
13741 to determine whether operation overrides an inherited primitive.
13742 (Build_Wrapper_Spec): Add code to examine the parents while looking
13743 for a possible overriding candidate.
13744 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
13745 hold an actual parameter value since its initialization is separated
13746 from the the declaration. Prevents errors on null-excluding access
13749 2007-04-06 Thomas Quinot <quinot@adacore.com>
13750 Pablo Oliveira <oliveira@adacore.com>
13752 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
13753 Do an Unchecked_Conversion to handle the passage from the Underlying
13754 Type to the Base Type when calling Build_To_Any_Call and
13755 Build_From_Any_Call.
13756 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
13757 E_Constant, depending upon Variable formal.
13758 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
13759 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
13760 parameter that requires an extra constrained parameter, declare
13761 temporary for actual as a variable, not a constant.
13762 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
13763 the unit being compiled is the one that contains the stub type.
13764 Change primitive operation name for the RACW associated with a RAS
13765 from Call to _Call so it cannot clash with any legal identifier.
13766 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
13768 (Append_RACW_Bodies): New subprogram.
13769 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
13770 Add_Receiving_Stubs_To_Declarations functions.
13771 When expanding a package body, this list correspond to the
13772 statements in the HSS at the end of the pacakge.
13773 When expanding a package spec, this list correspond to the
13775 (Add_Receiving_Stubs_To_Declarations): Append the function
13776 registering the receiving stubs at the end of the 'Stmts' list.
13777 (RCI_Package_Locator): Pass the new Version generic formal when
13778 instantiating a RCI_Locator package.
13779 (Build_From_Any_Function): To compute the High bound for an
13780 unconstrained array actual, we add the Low bound with the length.
13781 Thus we must convert the low bound and the length to an appropriate
13782 type before doing the sum.
13783 (Build_Subprogram_Receiving_Stubs, PolyORB):
13784 * Retrieve the extra formals parameters at the
13785 end of the parameter stream.
13786 * Use Move_Any_Value to write back out parameters
13787 after executing the request as it is more efficient
13788 than Copy_Any_Value.
13789 * Build the any containing Extra Formals with the
13790 appropriate typecode.
13791 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
13792 empty Component_List.
13793 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
13794 the tree the declaration for an object that serves as actual parameter
13795 in server-side stubs.
13796 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
13797 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
13798 Use Build_Actual_Object_Declaration to prepare the actuals.
13799 (Add_Parameter_To_NVList): Set the parameter mode to In for
13800 Extra Constrained Parameters.
13801 (Build_General_Calling_Stubs): Set the parameter type to boolean for
13802 Extra Constrained parameters.
13803 (Build_To_Any_Function, Build_From_Any_Function,
13804 Built_TypeCode_Function): When Typ is implicit, call the correct
13805 function with the first not implicit parent type.
13806 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
13807 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
13808 typecode from the Etype. Therefore we retrieve the correct typecode
13809 with a call to Get_Any_Type.
13810 (Copy_Specification): Do controlling formal type substitution based on
13811 Is_Controlling_Formal flag, instead of caller-provided object type.
13812 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
13813 a RACW primitive operation, we might get a subprogram declaration for an
13814 ancestor of the RACW designated type (not for the designated type
13815 itself), in the case where this operation is inherited. In this case we
13816 have no easy means of determining the original tagged type for which
13817 the primitive was declared, so instead we now rely on
13818 Copy_Specification to use the Is_Controlling_Formal flag to determine
13819 which formals require type substitution.
13821 2007-04-06 Robert Dewar <dewar@adacore.com>
13822 Ed Schonberg <schonberg@adacore.com>
13824 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
13825 GNAT.Current_Exception are not allowed if pragma Restrictions
13826 (No_Exception_Propagation) is set and in any case make the associated
13827 handler unsuitable as a target for a local raise statement.
13828 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
13829 run-time subprogram CW_Membership by call to Build_CW_Membership.
13830 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
13831 by a function call, a temporary must be created before expanding the
13832 Constructor_Call itself, to prevent out-of-order elaboration in the
13833 back-end when stack checking is enabled..
13835 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13837 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
13838 result are the bounds of the left operand, not the right.
13840 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13843 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
13844 discriminant defaults.
13845 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
13846 (Make_Component_List_Attributes): Ditto.
13848 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13849 Bob Duff <duff@adacore.com>
13851 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
13852 an association with a box as providing a value even though the
13853 initialization procedure for the type is not available.
13854 (Resolve_Record_Aggregate): Check that a choice of an association with a
13855 box corresponds to a component of the type.
13856 (Resolve_Record_Aggregate): Split Is_Abstract flag into
13857 Is_Abstract_Subprogram and Is_Abstract_Type.
13859 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
13862 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
13863 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
13864 called only when appropriate.
13866 2007-04-06 Olivier Hainque <hainque@adacore.com>
13868 * g-alleve.ads (Low Level Vector type definitions): Map each to the
13869 associated vector view instead of all to the unsigned char view.
13871 * g-altcon.adb (Generic_Conversions): New internal generic package,
13872 offering facilities for all the Vector/View conversion routines
13873 implemented by this unit.
13874 (To_View/To_Vector - all versions): Reimplemented in a systematic
13875 manner, using the internal Generic_Conversions facilities.
13877 2007-04-06 Pascal Obry <obry@adacore.com>
13879 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
13881 (Create): Free the source string before storing the new one.
13883 2007-04-06 Vincent Celier <celier@adacore.com>
13885 * g-debpoo.adb (Validity): New package with a complete new
13886 implementation of subprograms Is_Valid and Set_Valid.
13887 (Is_Valid): Move to local package Validity
13888 (Set_Valid): Move to local package Validity
13890 2007-04-06 Arnaud Charlet <charlet@adacore.com>
13891 Pablo Oliveira <oliveira@adacore.com>
13893 * g-expect.adb (Get_Command_Output): When expanding the output buffer
13894 we must ensure that there is enough place for the new data we are going
13897 2007-04-06 Thomas Quinot <quinot@adacore.com>
13899 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
13902 2007-04-06 Jose Ruiz <ruiz@adacore.com>
13903 Vincent Celier <celier@adacore.com>
13905 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
13906 (Stack_String): Add this String that contains the name of the Stack
13907 package in the project file.
13908 (Packages_To_Check_By_Stack): Add this list that contains the packages
13909 to be checked by gnatstack, which are the naming and the stack packages.
13910 (Check_Files): If no .ci files were specified for gnatstack we add all
13911 the .ci files belonging to the projects, including binder generated
13913 (Non_VMS_Usage): Document that gnatstack accept project file switches.
13914 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
13915 Add gnatstack to the list of commands that use project file related
13916 switches, and get the single attribute Switches from the stack package
13917 in a project file when calling gnatstack. Parse the -U flag for
13918 processing files belonging to all projects in the project tree.
13919 Remove all processing for command Setup
13921 * prj-attr.adb: Add new package Stack with single attribute Switches
13923 * vms_conv.ads (Command_Type): Add command Stack.
13924 Move to body declarations that are only used in the body: types Item_Id,
13925 Translation_Type, Item_Ptr, Item and its subtypes.
13927 * vms_conv.adb: (Initialize): Add data for new command Stack.
13928 Add declarations moved from the spec: types Item_Id, Translation_Type,
13929 Item_Ptr, Item and its subtypes.
13930 (Cargs_Buffer): New table
13931 (Cargs): New Boolean global variable
13932 (Process_Buffer): New procedure to create arguments
13933 (Place): Put character in table Buffer or Cargs_Buffer depending on the
13935 (Process_Argument): Set Cargs when processing qualifiers for GNAT
13937 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
13938 empty, for table Cargs_Buffer.
13939 (Initialize): Remove component Setup in Command_List
13941 2007-04-06 Vincent Celier <celier@adacore.com>
13943 * gprep.adb (Process_Files.Process_One_File): Use full file name when
13944 issuing pragma Source_Reference.
13946 2007-04-06 Emmanuel Briot <briot@adacore.com>
13948 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
13949 [[:xdigit:]] character class.
13950 Also raise an exception when an invalid character class is used.
13952 2007-04-06 Pascal Obry <obry@adacore.com>
13954 * i-cstrea.ads: (fopen): Add encoding parameter.
13956 Change reference from a-sysdep.c to sysdep.c in comment.
13957 Update copyright notice.
13958 This set of patch add support for the encoding form parameter.
13960 * mingw32.h (S2WSU): New macro to convert from a string to a
13961 wide-string using the UTF-8 encoding. The S2WS macro supports now only
13962 standard 8bits encoding.
13963 (WS2SU): As above but converting from wide-sring to string.
13964 This is needed as it is necessary to have access to both versions in the
13965 runtime for the form parameter encoding support.
13966 This set of patch add support for the encoding form parameter.
13967 (S2WS): Improve implementation to handle cases where the filename is not
13968 UTF-8 encoded. In this case we default to using the current code page
13969 for the conversion.
13971 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
13972 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
13973 the constants defined in adaint.h.
13974 (fopen): Add encoding parameter.
13977 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
13978 encoding. This is needed for the Reset routine (freopen low level-call).
13980 * s-fileio.adb (Open): Decode encoding form parameter and set the
13981 corresponding encoding value into AFCB structure.
13982 (Reset): Pass the encoding value to freopen.
13983 (Close): Move the call to Lock_Task to the beginning of the procedure.
13985 2007-04-06 Geert Bosch <bosch@adacore.com>
13986 Robert Dewar <dewar@adacore.com>
13988 * i-fortra.ads: Add Double_Complex type.
13990 * impunit.adb: (Is_Known_Unit): New function
13991 Add Gnat.Byte_Swapping
13993 Add new Ada 2005 units
13994 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
13995 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
13996 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
13997 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
13999 * impunit.ads (Is_Known_Unit): New function
14001 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
14002 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
14003 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
14004 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
14005 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
14006 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
14009 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
14011 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
14013 2007-04-06 Eric Botcazou <botcazou@adacore.com>
14014 Arnaud Charlet <charlet@adacore.com>
14016 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
14017 __gnat_adjust_context_for_raise.
14018 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
14019 implementation of floating point operations as native x86 targets.
14020 So the FPU should be initialized in the same way using finit. Fix
14021 floating point operations accuracy issues.
14022 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
14023 member in struct sigaction, so as to avoid warning for incompatible
14026 2007-04-06 Serguei Rybin <rybin@adacore.com>
14028 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
14029 switches from previously loaded tree
14031 2007-04-06 Thomas Quinot <quinot@adacore.com>
14033 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
14034 cases where a given dependency has a body or not.
14035 (Write_With_File_Names): New subprogram, common code for the two cases
14038 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14039 Javier Miranda <miranda@adacore.com>
14041 * lib-xref.ads, lib-xref.adb:
14042 Modify the loop that collects type references, to include interface
14043 types that the type implements. List each of these interfaces when
14044 building the entry for the type.
14045 (Generate_Definition): Initialize component Def and Typ of new entry
14046 in table Xrefs, to avoid to have these components unitialized.
14047 (Output_References): Split Is_Abstract flag into
14048 Is_Abstract_Subprogram and Is_Abstract_Type.
14049 (Generate_Reference): Add barrier to do not generate the warning
14050 associated with Ada 2005 entities with entities generated by the
14053 2007-04-06 Robert Dewar <dewar@adacore.com>
14054 Arnaud Charlet <charlet@adacore.com>
14055 Vincent Celier <celier@adacore.com>
14057 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
14058 Update 'Exception Handling Control' chapter which was outdated.
14059 Minor fix to documentation of -gnatwq
14060 Remove section "Adapting the Run Time to a New C++ Compiler" because
14061 it is now obsolete.
14062 Add passage on need of -nostart-files in some non-ada-main cases.
14063 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
14064 Update documentation about Interfacing with C++
14065 Add documentation for new gnatmake switch -p
14066 Add missing protocol part in URLs.
14068 Document pragma Compile_Time_Error
14069 Add documentation for Object_Size indicating that stand alone
14070 objects can have a larger size in some cases.
14071 Add node for GNAT.Byte_Swapping, GNAT.SHA1
14072 Update reference to the Ravenscar profile.
14073 Document pragma Unreferenced_Objects
14075 * gnat-style.texi: Fix typo
14077 2007-04-06 Vincent Celier <celier@adacore.com>
14079 * mlib.adb (Building_Library): Only output "building a library..." in
14082 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
14083 files in verbose mode.
14085 * mlib-utl.adb (Ar): Only output the first object files when not in
14087 (Gcc): Do not display all the object files if not in verbose mode, only
14090 2007-04-06 Robert Dewar <dewar@adacore.com>
14092 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
14093 it no longer destroys the contents of Name_Buffer or Name_Len and
14094 non-standard and invalid names are handled better.
14095 (Get_Decoded_Name_String): Improve performance by using
14096 Name_Has_No_Encodings flag in the name table.
14097 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
14098 Used for debugging printouts.
14100 2007-04-06 Robert Dewar <dewar@adacore.com>
14101 Javier Miranda <miranda@adacore.com>
14102 Bob Duff <duff@adacore.com>
14104 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
14105 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
14106 there is no need to generate always a record_definition_node in case
14107 of synchronized interface types.
14108 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
14109 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
14110 illegal in Ada 95, in cases where it is legal. Change the warnings to
14111 errors in other cases. Don't give the error unless the "not null"
14112 parses properly. Correct the source position at which the error occurs.
14113 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
14114 P_Null_Exclusion, to suppress "not null" warnings.
14115 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
14116 associated goto statements.
14118 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
14121 * scans.ads (Type_Token_Location): New flag
14123 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
14124 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
14125 P_Null_Exclusion, to suppress "not null" warnings.
14127 2007-04-06 Robert Dewar <dewar@adacore.com>
14128 Javier Miranda <miranda@adacore.com>
14129 Bob Duff <duff@adacore.com>
14130 Vincent Celier <celier@adacore.com>
14132 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
14133 (Extensions_Allowed): No longer sets Ada_Version
14134 Entry for pragma Unreferenced_Objects
14136 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
14137 system.tasking if pragma priority used in a procedure
14138 (Analyze_Pragma, case Warning): Handle dot warning switches
14139 (Process_Compile_Time_Warning_Or_Error): New procedure
14140 (Analyze_Pragma): Add processing for Compile_Time_Error
14141 Add support for extra arguments External_Name and Link_Name.
14142 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
14143 (Process_Import_Or_Interface): Add support for the use of pragma Import
14145 (Extensions_Allowed): No longer affects Ada_Version
14146 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
14147 Is_Abstract_Type. Make sure these are called only when appropriate.
14148 Add processing for pragma Unreferenced_Objects
14150 * snames.h, snames.ads, snames.adb: Add entry for pragma
14152 Add new standard name Minimum_Binder_Options for new gprmake
14153 Add new standard names for gprmake: Archive_Suffix,
14154 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
14155 Library_Support, Library_Version_Options,
14156 Shared_Library_Minimum_Options,
14157 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
14158 Change Name_Call to Name_uCall so that it cannot clash with a legal
14160 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
14161 Append C_Plus_Plus to convention identifiers as synonym for CPP
14162 Add new standard names Stack and Builder_Switches
14163 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
14164 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
14165 Run_Path_Option, Toolchain_Version.
14166 Entry for pragma Unreferenced_Objects
14168 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
14169 switches, without repetition of "eD". Make sure that last character of
14170 -gnatep= switch is not taken as -gnat switch character.
14171 Complete rewrite of circuit for handling saving compilation options
14172 Occasioned by need to support dot switchs for -gnatw, but cleans up
14174 -gnatX does not affect Ada_Version
14175 Include -gnatyA in -gnatg style switches
14177 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
14178 warnings on return objects.
14179 (Warn_On_Useless_Assignment): Exclude warnings on return objects
14180 (Set_Dot_Warning_Switch): New procedure
14181 (Check_References): Add missing case of test for
14182 Has_Pragma_Unreferenced_Objects
14183 (Output_Unreferenced_Messages): Implement effect of new pragma
14184 Unreferenced_Objects, remove special casing of limited controlled
14187 2007-04-06 Vincent Celier <celier@adacore.com>
14189 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
14190 the default project path, initially done during elaboration of the
14192 If the prefix returned by Sdefault is null, get the prefix from a call
14193 to Executable_Prefix_Path.
14194 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
14197 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
14198 canonical directory name to open the directory from which files are
14200 (Record_Other_Sources): Idem.
14201 (Locate_Directory): Add the possibility to create automatically missing
14202 directories when Setup_Projects is True.
14203 Call Locate_Directory so that the directory will be created when
14204 Setup_Projects is True, for object dir, library dir, library ALI dir,
14205 library source copy dir and exec dir.
14207 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
14210 2007-04-06 Robert Dewar <dewar@adacore.com>
14212 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
14213 Use First/Next_Component_Or_Discriminant
14214 (Analyze_Record_Representation_Clause):
14215 Use First/Next_Component_Or_Discriminant
14216 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
14217 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
14218 definition if type is unconstrained.
14219 (Adjust_Record_For_Reverse_Bit_Order): New procedure
14220 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
14221 Is_Abstract_Subprogram and Is_Abstract_Type.
14222 (Adjust_Record_For_Reverse_Bit_Order): New procedure
14224 * repinfo.adb (List_Record_Info): Use First/
14225 Next_Component_Or_Discriminant.
14227 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
14230 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
14231 Include -gnatyA in default switches
14233 * opt.ads: (Warn_On_Non_Local_Exception): New flag
14234 (Warn_On_Reverse_Bit_Order): New flag
14235 (Extensions_Allowed): Update the documentation.
14236 (Warn_On_Questionable_Missing_Parens): Now on by default
14238 * usage.adb: Add documentation of -gnatw.x/X switches
14239 Document new -gnatyA style switch
14240 -gnatq warnings are on by default
14242 2007-04-06 Ed Falis <falis@adacore.com>
14244 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
14245 full word is no longer compared twice.
14247 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14249 * sem_ch10.adb (Install_Limited_Context_Clauses.
14250 Expand_Limited_With_Clause): Use a new copy of selector name in the
14251 call to Make_With_Clause. This fixes the tree structure for ASIS
14252 purposes. Nothing is changed in the compiler behaviour.
14253 (Process_Body_Clauses): Handle properly use clauses whose prefix is
14254 a package renaming.
14255 (Install_Limited_With_Clauses): Do not install non-limited view when it
14256 is still incomplete.
14258 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14259 Gary Dismukes <dismukes@adacore.com>
14261 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
14262 when capturing size information, instead of base type, which for a
14263 formal array type will be the unconstrained type.
14264 (Analyze_Formal_Object_Declaration): Add check for illegal default
14265 expressions for a formal in object of a limited type.
14266 (Instantiate_Object): Ditto.
14267 (Check_Formal_Package_Instance): Skip entities that are formal objects,
14268 because they were defaulted in the formal package and no check applies
14270 (Check_Formal_Package_Instance): Extend conformance check to other
14271 discrete types beyond Integer.
14272 (Process_Default): Copy directly the unmatched formal. A generic copy
14273 has already been performed in Analyze_Formal_Package.
14274 (Analyze_Associations): If a formal subprogram has no match, check for
14275 partial parametrization before looking for a default, to prevent
14277 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
14278 not set the instantiation environment before analyzing the actuals.
14279 Fixes regression on 8515-003 with implementation of AI-133.
14280 Set_Instance_Env checks whether the generic unit is a predefined
14281 unit, in which case the instance must be analyzed with the latest Ada
14282 mode. This setting must take place after analysis of the actuals,
14283 because the actuals must be analyzed and frozen in the Ada mode extant
14284 outside of the current instantiation.
14285 (Save_Env, Restore_Env): Preserve and restore the configuration
14286 parameters so that predefined units can be compiled in the proper Ada
14288 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
14289 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
14290 and Is_Abstract_Type.
14291 (Analyze_Formal_Package): For better error recovery, Add exception
14292 handler to catch Instantion_Error, which can be raised in
14293 Analyze_Associations
14295 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14296 Bob Duff <duff@adacore.com>
14297 Gary Dismukes <dismukes@adacore.com>
14299 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
14300 prefix type is a discriminated subtype of the type of the formal.
14301 (Analyze_Allocator): Collect all coextensions regardless of the context.
14302 Whether they can be allocated statically is determined in exp_ch4.
14303 (Analyze_Selected_Component): If the prefix is a limited view and the
14304 non-limited view is available, use the non-limited one.
14305 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
14306 therefore illegal), suggest a qualified expression rather than a type
14307 conversion, because a type conversion would be illegal in this context.
14308 (Anayze_Allocator): Trace recursively all nested allocators so that all
14309 coextensions are on the corresponding list for the root. Do no mark
14310 coextensions if the root allocator is within a declaration for a stack-
14311 allocated object, because the access discriminants will be allocated on
14313 (Analyze_Call): Remove restriction on calls to limited functions for the
14314 cases of generic actuals for formal objects, defaults for formal objects
14315 and defaults for record components.
14316 (Analyze_Allocator): Before analysis, chain coextensions on the proper
14317 element list. Their expansion is delayed until the enclosing allocator
14318 is processed and its finalization list constructed.
14319 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
14320 for an operation with the given name among the primitive operations of
14321 the corresponding record type.
14322 (Analyze_Selected_Component): If the prefix is a task type that
14323 implements an interface, and there is no entry with the given name,
14324 check whether there is another primitive operation (e.g. a function)
14326 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
14327 properly the indexing of a function call written in prefix form, where
14328 the function returns an array type, and all parameters of the function
14329 except the first have defaults.
14330 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
14331 the original operands, rather than relocating them, for efficiency and
14332 to work properly when an operand is overloaded.
14333 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
14334 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
14335 (Analyze_Selected_Component): If the prefix is a private extension, only
14336 scan the visible components, not those of the full view.
14337 (Try_Primitive_Operation): If the operation is a procedure, collect all
14338 possible interpretations, as for a function, because in the presence of
14339 classwide parameters several primitive operations of the type can match
14340 the given arguments.
14342 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14343 Robert Dewar <dewar@adacore.com>
14345 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
14346 tag-indeterminate call to an abstract function, when the left-hand side
14348 (Analyze_Loop_Statement): Improve detection of infinite loops
14350 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14351 Thomas Quinot <quinot@adacore.com>
14353 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
14354 out of Analyze_Package_Declaration, because processing must be applied
14355 to package bodies as well, for deferred constants completed by pragmas.
14356 (Analyze_Package_Declaration): When the package declaration being
14357 analyzed does not require an explicit body, call Check_Completion.
14358 (May_Need_Implicit_Body): An implicit body is required when a package
14359 spec contains the declaration of a remote access-to-classwide type.
14360 (Analyze_Package_Body): If the package contains RACWs, append the
14361 pending subprogram bodies generated by exp_dist at the end of the body.
14362 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
14363 Is_Abstract_Subprogram and Is_Abstract_Type.
14364 (Preserve_Full_Attributes): The full entity list is not an attribute
14365 that must be preserved from full to partial view.
14367 * sem_dist.adb (Add_RAS_Dereference_TSS):
14368 Change primitive name to _Call so it cannot clash with any legal
14369 identifier, and be special-cased in Check_Completion.
14370 Mark the full view of the designated type for the RACW associated with
14371 a RAS as Comes_From_Source to get proper view switching when installing
14372 private declarations.
14373 Provite a placeholder nested package body along with the nested spec
14374 to have a place for Append_RACW_Bodies to generate the calling stubs
14375 and stream attributes.
14377 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14378 Robert Dewar <dewar@adacore.com>
14380 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
14381 that is a limited view, check the non-limited view if available.
14382 (Undefined): Refine error message for missing with of Text_IO
14383 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
14384 to distinguish real missing with cases.
14385 Fix format of all missing with messages
14386 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
14387 renaming as body when renamed entity is abstract.
14389 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14390 Javier Miranda <miranda@adacore.com>
14392 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
14393 predicate recursive, to handle complex expressions on literals whose
14394 spurious ambiguity comes from the abstract interpretation of some
14396 (Interface_Present_In_Ancestor): Add support to concurrent record
14398 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
14399 Is_Abstract_Subprogram and Is_Abstract_Type.
14401 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14402 Javier Miranda <miranda@adacore.com>
14404 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
14405 dereference of a local object R created as a reference to another
14406 object O, use the access level of O.
14407 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
14408 rather than local Same_Formal_Type, to check whether protected operation
14409 overrides an inherited one.
14410 (Same_Formal_Type): New predicate, used when matching signatures of
14411 overriding synchronized operations, to handle the case when a formal
14412 has a type that is a generic actual.
14413 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
14414 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
14415 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
14416 syntactic ambiguities involving indexing of function calls that return
14418 (Abstract_Interface_List): New subprogram that returns the list of
14419 abstract interfaces associated with a concurrent type or a
14420 concurrent record type.
14421 (Interface_Present_In_Parent): New subprogram used to check if a
14422 given type or some of its parents implement a given interface.
14423 (Collect_Abstract_Interfaces): Add support for concurrent types
14424 with interface types.
14425 (Has_Abstract_Interfaces): Add support for concurrent types with
14427 (Is_Parent): New subprogram that determines whether E1 is a parent
14428 of E2. For a concurrent type its parent is the first element of its
14429 list of interface types; for other types this function provides the
14430 same result than Is_Ancestor.
14431 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
14432 (Collect_Synchronized_Interfaces): Removed because the subprogram
14433 Collect_Abstract_Interfaces provides this functionality.
14434 (Collect_Abstract_Interfaces): Minor update to give support to
14435 concurrent types and thus avoid undesired code duplication.
14436 (Get_Subprogram_Entity): Handle entry calls.
14437 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
14439 (Enter_Name): Do not give -gnatwh hiding warning for record component
14440 entities, they never result in hiding.
14442 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14443 Robert Dewar <dewar@adacore.com>
14445 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
14446 to chain nested components that are allocators for access discriminants
14447 of the enclosing object.
14448 Add N_Push and N_Pop nodes
14449 New field Exception_Label added
14450 (Local_Raise_Statements): New field in N_Exception_Handler_Node
14451 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
14452 (Is_Coextension): New flag for allocators, to mark allocators that
14453 correspond to access discriminants of dynamically allocated objects.
14454 (N_Block_Statement): Document the fact that the corresponding entity
14455 can be an E_Return_Statement.
14456 (Is_Coextension): New flag for allocators.
14457 Remove all code for DSP option
14459 * sprint.ads, sprint.adb: Display basic information for class_wide
14460 subtypes. Add handling of N_Push and N_Pop nodes
14462 2007-04-06 Arnaud Charlet <charlet@adacore.com>
14464 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
14465 before propagating exception.
14467 2007-04-06 Olivier Hainque <hainque@adacore.com>
14469 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
14470 an address always within the call instruction from a return address.
14472 2007-04-06 Olivier Hainque <hainque@adacore.com>
14473 Eric Botcazou <botcazou@adacore.com>
14475 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
14476 expression with a COMPOUND_EXPR including the call instead of emitting
14477 the call directly here.
14478 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
14479 high bound is constant and the slice is empty. Tidy.
14480 (tree_transform, case N_Op_Not): Handle properly the case where the
14481 operation applies to a private type whose full view is a modular type.
14482 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
14483 Address_Clause, use the associated Expression as the GNAT tree
14484 representing the choice value to ensure the corresponding GCC tree is
14485 of the proper kind.
14486 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
14487 instead of just the operands, as the base GCC stabilize_reference does.
14488 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
14489 requested; otherwise fail.
14490 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
14492 2007-04-06 Thomas Quinot <quinot@adacore.com>
14494 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
14495 implementation of UI_Div.
14496 (UI_Div): Reimplement as a call to UI_Div_Rem.
14497 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
14498 remainder, avoiding the cost of a multiplication and a subtraction.
14499 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
14500 provides both quotient and remainder in a single computation.
14501 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
14502 functions for uint.
14503 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
14504 is undefined if the given n is not inversible.
14506 2007-04-06 Olivier Hainque <hainque@adacore.com>
14508 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
14509 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
14512 2007-04-06 Eric Botcazou <botcazou@adacore.com>
14513 Olivier Hainque <hainque@adacore.com>
14515 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
14516 when updating the contents of the old pointer to an unconstrained array.
14517 (end_subprog_body): Set error_gnat_node to Empty.
14518 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
14519 (unchecked_convert): For subtype to base type conversions, require that
14520 the source be a subtype if it is an integer type.
14521 (builtin_decls): New global, vector of available builtin functions.
14522 (gnat_pushdecl): Add global builtin function declaration nodes to the
14523 builtin_decls list.
14524 (gnat_install_builtins): Adjust comments.
14525 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
14526 calling gnat_pushdecl, so that it knows when it handed a builtin
14527 function declaration node.
14528 (builtin_decl_for): Search the builtin_decls list.
14530 2007-04-06 Eric Botcazou <botcazou@adacore.com>
14532 * s-stchop-vxworks.adb:
14533 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
14535 2007-04-06 Robert Dewar <dewar@adacore.com>
14536 Arnaud Charlet <charlet@adacore.com>
14538 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
14540 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
14542 Add mention of -Sev (set initialize_scalars option from environment
14543 variable at run time) in gnatbind usage message.
14545 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
14547 * fname-uf.ads: Minor comment fix
14549 * osint.ads: Change pragma Elaborate to Elaborate_All
14551 * par-load.adb: Add documentation.
14553 * sem_cat.ads, sem_cat.adb: Minor code reorganization
14555 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
14557 * s-secsta.ads: Extra comments
14559 * s-soflin.ads: Minor comment fixes
14561 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
14563 * s-wchcon.ads: Minor comment addition
14565 * treepr.adb: Minor change in message
14566 (Print_Name,Print_Node): Make these debug printouts more robust: print
14567 "no such..." instead of crashing on bad input.
14569 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
14571 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
14572 instead of gnat_signed_or_unsigned_type.
14573 * utils.c (gnat_signed_or_unsigned_type): Remove.
14574 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
14575 * gigi.h (gnat_signed_or_unsigned_type): Remove
14577 2007-03-09 Roger Sayle <roger@eyesopen.com>
14579 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
14580 fold with the result of buildN.
14581 * decl.c (gnat_to_gnu_entity): Likewise.
14582 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
14583 * utils.c (finish_record_type, merge_sizes, max_size, convert):
14585 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
14586 nonbinary_modular_operation, build_binary_op, build_unary_op,
14587 build_cond_expr): Likewise.
14589 * utils.c (convert): Use fold_build1 when casting values to void.
14590 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
14591 fold_convert instead of convert when appropriate.
14593 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
14595 * Make-lang.in: Add install-pdf target as copied from
14596 automake v1.10 rules.
14598 2007-02-28 Andreas Schwab <schwab@suse.de>
14600 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
14601 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
14602 (doc/gnat-style.info): Likewise.
14604 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
14606 * gnat-style.texi: Standardize title page.
14607 * gnat_rm.texi: Likewise.
14608 * gnat_ugn.texi: Likewise.
14610 2007-02-25 Mark Mitchell <mark@codesourcery.com>
14612 * decl.c (annotate_value): Adjust for refactoring of tree_map
14615 2007-02-24 Mark Mitchell <mark@codesourcery.com>
14617 * decl.c (annotate_value): Adjust for refactoring of tree_map
14620 2007-02-21 Ed Schonberg <schonberg@adacore.com>
14623 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
14624 untagged derived type, add hidden components to keep discriminant
14625 layout consistent, when a given discriminant of the derived type
14626 constraints several discriminants of the parent type.
14628 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
14629 Sandra Loosemore <sandra@codesourcery.com>
14631 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
14632 build the call expression.
14633 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
14634 * utils.c (max_size) <tcc_exceptional>: Delete.
14635 <tcc_vl_exp>: New case.
14636 <tcc_expression>: Delete CALL_EXPR subcase.
14637 (build_global_cdtor): Use build_call_nary instead of build3.
14638 * utils2.c (build_call_1_expr): Likewise.
14639 (build_call_2_expr): Likewise.
14640 (build_call_0_expr): Likewise.
14641 (build_call_alloc_dealloc): Likewise.
14643 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
14645 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
14646 get_action_description_for): Replace _Unwind_Word with _uleb128_t
14647 and _Unwind_SWord with _sleb128_t.
14649 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
14651 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
14652 * decl.c: Include gt-ada-decl.h.
14653 (annotate_value_cache): New.
14654 (annotate_value): Use it instead of TREE_COMPLEXITY.
14656 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
14658 * misc.c, utils2.c: Fix comment typos.
14660 2007-01-24 Roger Sayle <roger@eyesopen.com>
14662 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
14663 TREE_CONSTANT_OVERFLOW.
14664 (allocatable_size_p, annotate_value): Likewise.
14665 * trans.c (gnat_to_gnu): Likewise.
14666 * utils.c (unchecked_convert): Likewise.
14667 * utils2.c (build_simple_component_ref): Likewise.
14669 2007-01-23 Richard Guenther <rguenther@suse.de>
14672 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
14673 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
14674 (gnatboot3): Likewise.
14675 (GNATBIND): Do not define.
14676 * Makefile.in (GNATBIND): Do not define.
14678 2007-01-08 Richard Guenther <rguenther@suse.de>
14680 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
14681 * trans.c (gnat_to_gnu): Likewise.
14683 2006-12-07 Geoffrey Keating <geoffk@apple.com>
14685 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
14686 * adaint.c: Likewise.
14688 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
14690 Merge from gimple-tuples-branch:
14691 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
14693 * ada-tree.h (lang_tree_node): Handle gimple tuples.
14694 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
14695 GIMPLE_MODIFY_STMT.
14697 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
14699 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
14700 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
14703 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
14706 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
14707 if the initializer takes into account the padding.
14709 2006-11-11 Richard Guenther <rguenther@suse.de>
14711 * trans.c (maybe_stabilize_reference): Remove handling of
14712 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
14714 2006-11-05 Arnaud Charlet <charlet@adacore.com>
14717 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
14718 (To_Target_Priority): New function.
14720 2006-10-31 Robert Dewar <dewar@adacore.com>
14722 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
14723 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
14724 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
14725 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
14726 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
14727 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
14728 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
14729 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
14730 a-szbzha.adb: Minor reformatting. Fix header.
14732 * a-numaux-x86.adb: Add parentheses for use of unary minus
14733 * a-ngcefu.adb: Supply missing parentheses for unary minus
14734 * a-ngcoty.adb: Add parens for use of unary minus
14735 * a-ngelfu.adb: Add missing parens for unary minus
14736 * a-tifiio.adb: Add parentheses for uses of unary minus
14738 2006-10-31 Robert Dewar <dewar@adacore.com>
14739 Bob Duff <duff@adacore.com>
14740 Ed Schonberg <schonberg@adacore.com>
14742 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
14743 with multiplying operator.
14744 (Expected_Type_Is_Any_Real): New function to determine from the Parent
14745 pointer whether the context expects "any real type".
14746 (Resolve_Arithmetic_Op): Do not give an error on calls to the
14747 universal_fixed "*" and "/" operators when they are used in a context
14748 that expects any real type. Also set the type of the node to
14749 Universal_Real in this case, because downstream processing requires it
14750 (mainly static expression evaluation).
14751 Reword some continuation messages
14752 Add some \\ sequences to continuation messages
14753 (Resolve_Call): Refine infinite recursion case. The test has been
14754 sharpened to eliminate some false positives.
14755 Check for Current_Task usage now includes entry barrier, and is now a
14756 warning, not an error.
14757 (Resolve): If the call is ambiguous, indicate whether an interpretation
14758 is an inherited operation.
14759 (Check_Aggr): When resolving aggregates, skip associations with a box,
14760 which are priori correct, and will be replaced by an actual default
14761 expression in the course of expansion.
14762 (Resolve_Type_Conversion): Add missing support for conversion from
14763 a class-wide interface to a tagged type. Minor code cleanup.
14764 (Valid_Tagged_Converion): Add support for abstact interface type
14766 (Resolve_Selected_Component): Call Generate_Reference here rather than
14767 during analysis, and use May_Be_Lvalue to distinguish read/write.
14768 (Valid_Array_Conversion): New procedure, abstracted from
14769 Valid_Conversion, to incorporate accessibility checks for arrays of
14770 anonymous access types.
14771 (Valid_Conversion): For a conversion to a numeric type occurring in an
14772 instance or inlined body, no need to check that the operand type is
14773 numeric, since this has been checked during analysis of the template.
14774 Remove legacy test for scope name Unchecked_Conversion.
14776 * sem_res.ads: Minor reformatting
14778 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
14779 (PE_Current_Task_In_Entry_Body): New exception code
14780 (SE_Restriction_Violation): Removed, not used
14782 * a-except.ads: Update comments.
14784 * types.h, types.ads: Add definition for Validity_Check
14785 (PE_Current_Task_In_Entry_Body): New exception code
14786 (SE_Restriction_Violation): Removed, not used
14788 2006-10-31 Thomas Quinot <quinot@adacore.com>
14790 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
14793 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
14794 Jose Ruiz <ruiz@adacore.com>
14796 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
14797 part of Ada.Calendar: all subprogram raise Unimplemented.
14798 (Split_W_Offset): Temp function body, raising Unimplemented
14800 * a-calend.ads, a-calend-vms.ads:
14801 Add imported variable Invalid_TZ_Offset used to designate targets unable
14802 to support time zones.
14803 (Unimplemented): Temporary function raised by the body of new
14805 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
14806 unit provides handling of leap seconds and is used by the new Ada 2005
14807 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
14808 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
14809 version returns an extra value which is the offset to UTC.
14811 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
14812 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
14813 (Split_W_Offset): New function body.
14814 (Time_Of): When a date is close to UNIX epoch, compute the time for
14815 that date plus one day (that amount is later substracted after
14816 executing mktime) so there are no problems with time zone adjustments.
14818 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
14820 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
14821 a-catizo.ads, a-catizo.adb: New files.
14823 * impunit.adb: Add new Ada 2005 entries
14825 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
14826 Rename all occurences of "__gnat_localtime_r" to
14827 "__gnat_localtime_tzoff".
14828 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
14829 zone data and calculate the GMT offset.
14830 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
14831 Use the field "tm_gmtoff" to extract the GMT offset.
14832 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
14833 the external variable "timezone" to calculate the GMT offset.
14835 2006-10-31 Arnaud Charlet <charlet@adacore.com>
14836 Jose Ruiz <ruiz@adacore.com>
14838 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
14839 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
14840 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
14841 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
14842 System.Any_Priority to a POSIX priority on the target.
14844 * system-linux-ia64.ads:
14845 Extend range of Priority types on Linux to use the whole range made
14846 available by the system.
14848 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
14849 function maps from System.Any_Priority to a POSIX priority on the
14851 (PTHREAD_PRIO_PROTECT): Set real value.
14852 (PTHREAD_PRIO_INHERIT): Now a function.
14853 (SIGCPUFAIL): New signal.
14854 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
14855 are documented as reserved by the OS.
14857 * system-aix.ads: Use the full range of priorities provided by the
14860 * s-taprop-posix.adb: Call new function To_Target_Priority.
14861 (Set_Priority): Take into account Task_Dispatching_Policy and
14862 Priority_Specific_Dispatching pragmas when determining if Round Robin
14863 must be used for scheduling the task.
14865 * system-linux-x86_64.ads, system-linux-x86.ads,
14866 system-linux-ppc.ads: Extend range of Priority types on Linux to use
14867 the whole range made available by the system.
14869 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
14870 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
14871 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
14872 when deallocating the TCB in order to avoid potential references to
14874 (Set_Priority): Take into account Task_Dispatching_Policy and
14875 Priority_Specific_Dispatching pragmas when determining if Round Robin
14876 or FIFO within priorities must be used for scheduling the task.
14878 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
14879 the Thread field (to be used internally by the run-time system) and the
14880 kernel-level task id in the LWP field (to be used by the debugger).
14881 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
14882 instance, and propagate the current task options to the spawned task.
14883 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
14884 (Initialize): Set Round Robin dispatching when the corresponding pragma
14887 2006-10-31 Robert Dewar <dewar@adacore.com>
14889 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
14890 system-linux-hppa.ads, system-hpux-ia64.ads,
14891 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
14892 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
14893 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
14894 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
14895 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
14896 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
14897 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
14898 Default_Bit_Order) to kill constant condition warnings for references
14901 2006-10-31 Vincent Celier <celier@adacore.com>
14902 Eric Botcazou <ebotcazou@adacore.com>
14904 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
14905 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
14906 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
14907 Ext_To, when building the library file name
14909 * mlib-tgt-vxworks.adb: ditto.
14910 (Get_Target_Suffix): Add support for x86 targets.
14912 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
14914 * mlib-tgt-darwin.adb:
14915 Use Append_To, instead of Ext_To, when building the library file name
14916 (Flat_Namespace): New global variable.
14917 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
14918 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
14919 (Link_Shared_Libgcc): Delete.
14920 (Build_Dynamic_Library): Adjust for above changes.
14922 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
14924 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
14926 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
14927 (Initialize): Add type conversions required by above change.
14929 2006-10-31 Jose Ruiz <ruiz@adacore.com>
14931 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
14932 (getpid): New body for this function that uses the underlying taskIdSelf
14933 function for VxWorks 5 and VxWorks 6 in kernel mode.
14934 (unsigned_int): New type, modular to allow logical bit operations.
14935 (taskOptionsGet): New imported function.
14937 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
14938 field to be compliant with the type used by the corresponding operating
14941 2006-10-31 Pascal Obry <obry@adacore.com>
14942 Eric Botcazou <ebotcazou@adacore.com>
14943 Vincent Celier <celier@adacore.com>
14945 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
14946 ASCII version of the registry API. This is needed as the GNAT runtime
14947 is now UNICODE by default.
14949 (get_gcc_version): Do not hardcode the return value.
14950 (__gnat_file_time_name): On Windows properly set the default returned
14951 value to -1 which corresponds to Invalid_Time.
14952 (__gnat_fopen): New routine. A simple wrapper on all plateforms
14953 except on Windows where it does conversion for unicode support.
14954 (__gnat_freopen): Idem.
14955 (__gnat_locate_exec_on_path): If environment variable PATH does not
14956 exist, return a NULL pointer
14958 * adaint.h: (__gnat_fopen): Declare.
14959 (__gnat_freopen): Likewise.
14961 * mingw32.h (_tfreopen): Define this macro here for older MingW
14963 Activate the unicode support on platforms using a MingW runtime
14964 version 3.9 or newer.
14966 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
14967 This is needed for proper unicode support on Windows.
14970 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
14971 Nicolas Setton <setton@adacore.com>
14972 Olivier Hainque <hainque@adacore.com>
14973 Gary Dismukes <dismukes@adacore.com>
14975 * gigi.h: (tree_code_for_record_type): Declare.
14976 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
14977 (get_global_renaming_pointers): Rename to
14978 invalidate_global_renaming_pointers.
14979 (static_ctors): Delete.
14980 (static_dtors): Likewise.
14981 (gnat_write_global_declarations): Declare.
14982 (create_var_decl): Adjust descriptive comment to indicate that the
14983 subprogram may return a CONST_DECL node.
14984 (create_true_var_decl): Declare new function, similar to
14985 create_var_decl but forcing the creation of a VAR_DECL node.
14986 (get_global_renaming_pointers): Declare.
14987 (add_global_renaming_pointer): Likewise.
14989 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
14991 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
14992 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
14994 (gnat_to_gnu_entity): Remove From_With_Type from computation for
14996 <E_Access_Type>: Use the Non_Limited_View as the full view of the
14997 designated type if the pointer comes from a limited_with clause. Make
14998 incomplete designated type if it is in the main unit and has a freeze
15000 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
15001 Underlying_Full_View similarly. Return earlier if the full view already
15002 has an associated tree.
15003 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
15004 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
15005 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
15006 reference type built for objects with an address clause.
15007 Use create_true_var_decl with const_flag set for
15008 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
15010 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
15011 for Character and Wide_Character types. This info is read by the
15012 dwarf-2 writer, and is needed to be able to use the command "ptype
15013 character" in the debugger.
15014 (gnat_to_gnu_entity): When generating a type representing
15015 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
15016 so that debug writers can distinguish it from ordinary integers.
15017 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
15018 addition to TREE_READONLY to assert the constantness of variables for
15019 elaboration purposes.
15020 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
15021 parameters to call new Einfo function First_Formal_With_Extras.
15022 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
15023 protected type with its corresponding discriminant, to obtain a usable
15025 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
15026 for a multiple elaboration of the "equivalent" type.
15027 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
15028 into record_global_renaming_pointer.
15029 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
15030 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
15031 <E_Array_Subtype>: Likewise.
15032 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
15033 incomplete subtypes and incomplete subtypes of incomplete types visible
15034 through a limited with clause.
15035 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
15036 the base index type for the maximum size of the array only if they are
15038 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
15039 expression into a SAVE_EXPR if stabilization failed.
15041 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
15042 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
15043 by lower level compilation passes.
15044 (gnat_genericize): New function, lowering a function body to GENERIC.
15045 Turn the type of RESULT_DECL into a real reference type if the decl
15046 has been marked DECL_BY_REFERENCE, and adjust references to the latter
15048 (gnat_genericize_r): New function. Tree walking callback for
15050 (convert_from_reference, is_byref_result): New functions. Helpers for
15052 (create_type_decl): Call gnat_pushdecl before calling
15053 rest_of_decl_compilation, to make sure that field TYPE_NAME of
15054 type_decl is properly set before calling the debug information writers.
15055 (write_record_type_debug_info): The heuristics which compute the
15056 alignment of a field in a variant record might not be accurate. Add a
15057 safety test to make sure no alignment is set to a smaller value than
15058 the alignment of the field type.
15059 (make_dummy_type): Use the Non_Limited_View as the underlying type if
15060 the type comes from a limited_with clause. Do not loop on the full view.
15061 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
15062 (dummy_node_table): New global variable, moved from decl.c.
15063 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
15064 (save_gnu_tree): Use above macros.
15065 (get_gnu_tree): Likewise.
15066 (present_gnu_tree): Likewise.
15067 (init_dummy_type): New function, moved from decl.c. Use above macros.
15068 (make_dummy_type): Likewise.
15069 (tree_code_for_record_type): New function extracted from make_dummy_type
15070 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
15071 (static_ctors): Change it to a vector, make static.
15072 (static_dtors): Likewise.
15073 (end_subprog_body): Adjust for above change.
15074 (build_global_cdtor): Moved from trans.c.
15075 (gnat_write_global_declarations): Emit global constructor and
15076 destructor, and call cgraph_optimize before emitting debug info for
15077 global declarations.
15078 (global_decls): New global variable.
15079 (gnat_pushdecl): Store the global declarations in global_decls, for
15081 (gnat_write_global_declarations): Emit debug information for global
15083 (create_var_decl_1): Former create_var_decl, with an extra argument to
15084 state whether the creation of a CONST_DECL is allowed.
15085 (create_var_decl): Behavior unchanged. Now a wrapper around
15086 create_var_decl_1 allowing CONST_DECL creation.
15087 (create_true_var_decl): New function, similar to create_var_decl but
15088 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
15089 (create_field_decl): Do not always mark the field as addressable
15090 if its type is an aggregate.
15091 (global_renaming_pointers): New static variable.
15092 (add_global_renaming_pointer): New function.
15093 (get_global_renaming_pointers): Likewise.
15095 * misc.c (gnat_dwarf_name): New function.
15096 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
15097 (gnat_post_options): Add comment about structural alias analysis.
15098 (gnat_parse_file): Do not call cgraph_optimize here.
15099 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
15101 * trans.c (process_freeze_entity): Don't abort if we already have a
15102 non dummy GCC tree for a Concurrent_Record_Type, as it might
15103 legitimately have been elaborated while processing the associated
15104 Concurrent_Type prior to this explicit freeze node.
15105 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
15106 exception handler volatile if it is of variable size.
15107 (process_type): Remove bypass for types coming from a limited_with
15109 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
15110 actual, convert the corresponding gnu_actual to the real destination
15111 type when necessary.
15112 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
15113 originally TREE_READONLY but whose elaboration cannot be performed
15115 Part of fix for F504-021.
15116 (tree_transform, subprogram cases): Change loops on formal parameters to
15117 call new Einfo function First_Formal_With_Extras.
15118 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
15119 stemming from type conversion for the lhs.
15120 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
15121 number of bits per unit for components of records.
15122 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
15123 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
15124 with At_End_Proc after the SJLJ EH cleanup.
15125 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
15127 (elaborate_all_entities): Do not retest type_annotate_only.
15128 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
15129 result type of an abstract subprogram, which may be an itype associated
15130 with an anonymous access result (related to AI-318-02).
15131 (build_global_cdtor): Move to utils.c.
15132 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
15133 this choice is not a null tree nor an integer constant.
15134 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
15135 on the body of elaboration routines instead of mark_unvisited.
15136 (add_stmt): Do not mark the tree.
15137 (add_decl_expr): Tweak comment.
15138 (mark_unvisited): Delete.
15139 (unshare_save_expr): New static function.
15140 (call_to_gnu): Issue an error when making a temporary around a
15141 procedure call because of non-addressable actual parameter if the
15142 type of the formal is by_reference.
15143 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
15144 after building the elaboration routine.
15146 2006-10-31 Bob Duff <duff@adacore.com>
15148 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
15149 as finalization-started, so we can raise Program_Error on 'new'.
15151 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
15152 collection has already started.
15154 * s-finimp.ads (Collection_Finalization_Started): Added new special
15155 flag value for indicating that a collection's finalization has started.
15157 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
15158 create a task whose master has already waited for dependent tasks.
15160 2006-10-31 Robert Dewar <dewar@adacore.com>
15162 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
15164 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
15165 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
15166 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
15167 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
15168 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
15169 a-except-2005.ads: Add pragma Preelaborable_Warning
15171 2006-10-31 Robert Dewar <dewar@adacore.com>
15172 Jose Ruiz <ruiz@adacore.com>
15174 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
15176 * ali.adb (Get_Name): Properly handle scanning of wide character names
15177 encoded with brackets notation.
15178 (Known_ALI_Lines): Add S lines to this list.
15179 (Scan_ALI): Acquire S (priority specific dispatching) lines.
15180 New flag Elaborate_All_Desirable in unit table
15182 * ali.ads (Priority_Specific_Dispatching): Add this range of
15183 identifiers to be used for Priority_Specific_Dispatching table entries.
15184 (ALIs_Record): Add First_Specific_Dispatching and
15185 Last_Specific_Dispatching that point to the first and last entries
15186 respectively in the priority specific dispatching table for this unit.
15187 (Specific_Dispatching): Add this table for storing each S (priority
15188 specific dispatching) line encountered in the input ALI file.
15189 New flag Elaborate_All_Desirable in unit table
15191 * bcheck.adb: (Check_Configuration_Consistency): Add call to
15192 Check_Consistent_Dispatching_Policy.
15193 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
15194 verifying that the use of Priority_Specific_Dispatching,
15195 Task_Dispatching_Policy, and Locking_Policy is consistent across the
15198 * bindgen.adb: (Public_Version_Warning): function removed.
15199 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
15200 required information from ALI files in order to initialize the table
15201 containing the specific dispatching policy.
15202 (Gen_Adainit_Ada): Generate the variables required for priority specific
15203 dispatching entries (__gl_priority_specific_dispatching and
15204 __gl_num_specific_dispatching).
15205 (Gen_Adainit_C): Generate the variables required for priority specific
15206 dispatching entries (__gl_priority_specific_dispatching and
15207 __gl_num_specific_dispatching).
15208 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
15210 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
15211 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
15213 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
15214 a call to gnat_set_globals.
15215 Generate a string containing settings from
15216 Priority_Specific_Dispatching pragma entries.
15217 (Gen_Object_Files_Options): Do not include the runtime libraries when
15218 pragma No_Run_Time is specified.
15220 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
15221 consistency with s-intman-posix.adb.
15222 (__gnat_error_handler, case FreeBSD): Account for the fact that the
15223 handler is installed with SA_SIGINFO.
15224 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
15225 FreeBSD ZCX support, copied from Linux version.
15226 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
15227 sigfillset, and sigemptyset so the routines defined by MaRTE.
15228 (__gl_priority_specific_dispatching): Add this variable that stores the
15229 string containing priority specific dispatching policies in the
15231 (__gl_num_specific_dispatching): Add this variable that indicates the
15232 highest priority for which a priority specific dispatching pragma
15234 (__gnat_get_specific_dispatching): Add this routine that returns the
15235 priority specific dispatching policy, as set by a
15236 Priority_Specific_Dispatching pragma appearing anywhere in the current
15237 partition. The input argument is the priority number, and the result
15238 is the upper case first character of the policy name.
15239 (__gnat_set_globals): Now a dummy function.
15240 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
15241 mechargs instead of sigargs, as the latter can be retrieved from the
15242 former and sigargs is not what we want on ia64.
15243 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
15245 (__gnat_adjust_context_for_raise, ia64-vms): New function.
15246 (tasking_error): Remove unused symbol.
15247 (_abort_signal): Move this symbol to the IRIX specific part since this
15248 is the only target that uses this definition.
15249 (Check_Abort_Status): Move this symbol to the IRIX specific part since
15250 this is the only target that uses this definition.
15251 (Lock_Task): Remove unused symbol.
15252 (Unlock_Task): Remove unused symbol.
15254 * lib-writ.adb (Write_ALI): Output new S lines for
15255 Priority_Specific_Dispatching pragmas.
15256 Implement new flag BD for elaborate body desirable
15258 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
15259 (Specific_Dispatching): Add this table for storing the entries
15260 corresponding to Priority_Specific_Dispatching pragmas.
15261 Document new BD flag for elaborate body desirable
15263 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
15266 2006-10-31 Javier Miranda <miranda@adacore.com>
15268 * a-tags.ads, a-tags.adb:
15269 (Predefined_DT): New function that improves readability of the code.
15270 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
15271 Inherit_DT): Use the new function Predefined_DT to improve code
15273 (Register_Interface_Tag): Update assertion.
15274 (Set_Interface_Table): Update assertion.
15275 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
15276 determining progenitor interfaces in Tags.
15277 (Inherit_CPP_DT): New subprogram.
15279 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
15280 analysis of the thunk code.
15281 (Expand_Interface_Conversion): Handle run-time conversion of
15282 access to class wide types.
15283 (Expand_Dispatching_Call): When generating the profile for the
15284 subprogram itype for a dispatching operation, properly terminate the
15285 formal parameters chaind list (set the Next_Entity of the last formal
15287 (Collect_All_Interfaces): Removed. This routine has been moved to
15288 sem_util and renamed as Collect_All_Abstract_Interfaces.
15289 (Set_All_DT_Position): Hidden entities associated with abstract
15290 interface primitives are not taken into account in the check for
15291 3.9.3(10); this check is done with the aliased entity.
15292 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
15293 interfacing with CPP by default.
15294 (Expand_Interface_Conversion): Add missing support for static conversion
15295 from an interface to a tagged type.
15296 (Collect_All_Interfaces): Add new out formal containing the list of
15297 abstract interface types to cleanup the subprogram Make_DT.
15298 (Make_DT): Update the code to generate the table of interfaces in case
15299 of abstract interface types.
15300 (Is_Predefined_Dispatching_Alias): New function that returns true if
15301 a primitive is not a predefined dispatching primitive but it is an
15302 alias of a predefined dispatching primitive.
15303 (Make_DT): If the ancestor of the type is a CPP_Class and we are
15304 compiling under full ABI compatibility mode we avoid the generation of
15305 calls to run-time services that fill the dispatch tables because under
15306 this mode we currently inherit the dispatch tables in the IP subprogram.
15307 (Write_DT): Emit an "is null" indication for a null procedure primitive.
15308 (Expand_Interface_Conversion): Use an address as the type of the formal
15309 of the internally built function that handles the case in which the
15310 target type is an access type.
15312 2006-10-31 Robert Dewar <dewar@adacore.com>
15314 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
15316 2006-10-31 Robert Dewar <dewar@adacore.com>
15318 * bindusg.ads, bindusg.adb:
15319 Change to package and rename procedure as Display, which
15320 now ensures that it only outputs usage information once.
15322 2006-10-31 Jose Ruiz <ruiz@adacore.com>
15324 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
15327 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
15330 2006-10-31 Robert Dewar <dewar@adacore.com>
15331 Ed Schonberg <schonberg@adacore.com>
15333 * treepr.adb: Use new subtype N_Membership_Test
15335 * checks.ads, checks.adb: Add definition for Validity_Check
15336 (Range_Or_Validity_Checks_Suppressed): New function
15337 (Ensure_Valid): Test Validity_Check suppressed
15338 (Insert_Valid_Check): Test Validity_Check suppressed
15339 (Insert_Valid_Check): Preserve Do_Range_Check flag
15340 (Validity_Check_Range): New procedure
15341 (Expr_Known_Valid): Result of membership test is always valid
15342 (Selected_Range_Checks): Range checks cannot be applied to discriminants
15343 by themselves. Disabling those checks must also be done for task types,
15344 where discriminants may be used for the bounds of entry families.
15345 (Apply_Address_Clause_Check): Remove side-effects if address expression
15346 is non-static and is not the name of a declared constant.
15347 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
15348 Code cleanup and new error messages.
15349 (Enable_Range_Check): Test for some cases of suppressed checks
15350 (Generate_Index_Checks): Suppress index checks if index checks are
15351 suppressed for array object or array type.
15352 (Apply_Selected_Length_Checks): Give warning for compile-time detected
15353 length check failure, even if checks are off.
15354 (Ensure_Valid): Do not generate a check on an indexed component whose
15355 prefix is a packed boolean array.
15356 * checks.adb: (Alignment_Checks_Suppressed): New function
15357 (Apply_Address_Clause_Check): New procedure, this is a completely
15358 rewritten replacement for Apply_Alignment_Check
15359 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
15360 we request a discriminal value only in case of discriminants.
15361 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
15362 assignments where the target subtype is unconstrained and the target
15363 object is a parameter or dereference (other aliased cases are known
15364 to be unconstrained).
15366 2006-10-31 Robert Dewar <dewar@adacore.com>
15368 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
15369 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
15370 vms_conv.adb: Fix bad table increment values (much too small)
15372 * table.adb (Realloc): Make sure we get at least some new elements
15373 Defends against silly small values for table increment
15375 2006-10-31 Robert Dewar <dewar@adacore.com>
15376 Ed Schonberg <schonberg@adacore.com>
15377 Bob Duff <duff@adacore.com>
15379 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
15380 entities. Move other fields around to make this possible
15381 (Is_Derived_Type): Add missing call to Is_Type.
15382 (Extra_Formals): New function for subprograms, entries, subprogram
15384 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
15385 (First_Formal_With_Extras): New function for subprogs, entries, subp
15387 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
15388 Add node information for E_Return_Statement.
15389 (Elaborate_Body_Desirable): New flag
15390 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
15391 to be Is_Inherently_Limited_Type, because return-by-reference has
15392 no meaning in Ada 2005.
15393 (E_Return_Statement): New entity kind.
15394 (Return_Applies_To): Field of E_Return_Statement.
15395 (Is_Return_Object): New flag in object entities.
15396 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
15397 (Must_Have_Preelab_Init): New flag
15398 (Known_To_Have_Preelab_Init): New flag
15399 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
15400 (Is_Visible_Formal): New flag on entities in formal packages.
15401 (Low_Bound_Known): New flag
15402 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
15404 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
15405 output when Id is an incomplete subtype.
15407 2006-10-31 Robert Dewar <dewar@adacore.com>
15409 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
15410 Avoid abbreviation Creat
15411 (Finalize): List all sources in extended mail source if -gnatl
15413 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
15414 (Finalize): Implement new -gnatl=xxx switch to output listing to file
15415 (Set_Specific_Warning_On): New procedure
15416 (Set_Specific_Warning_Off): New procedure
15417 Add implementation of new insertion \\
15418 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
15419 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
15421 (Error_Msg_Internal): Make sure that we set Last_Killed to
15422 True when a message from another package is suppressed.
15423 Implement insertion character ~ (insert string)
15424 (First_Node): Minor adjustments to get better placement.
15427 Implement new -gnatl=xxx switch to output listing to file
15430 Implement new -gnatl=xxx switch to output listing to file
15432 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
15433 (Commands_To_Stdout): New flag
15434 Implement new -gnatl=xxx switch to output listing to file
15435 New switch Dump_Source_Text
15436 (Warn_On_Deleted_Code): New warning flag for -gnatwt
15437 Define Error_Msg_Line_Length
15438 (Warn_On_Assumed_Low_Bound): New switch
15440 * osint.ads, osint.adb
15441 (Normalize_Directory_Name): Fix bug.
15442 Implement new -gnatl=xxx switch to output listing to file
15443 (Concat): Removed, replaced by real concatenation
15444 Make use of concatenation now allowed in compiler
15445 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
15446 we find the 'lib' or 'bin' directory even when the tool has been
15447 invoked with a relative path.
15448 (Executable_Name): New function taking string parameters.
15450 * osint-c.ads, osint-c.adb:
15451 Implement new -gnatl=xxx switch to output listing to file
15453 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
15456 Implement new -gnatl=xxx switch to output listing to file
15457 Recognize new -gnatL switch
15458 (no longer keep in old warning about old style usage)
15459 Use concatenation to simplify code
15460 Recognize -gnatjnn switch
15461 (Scan_Front_End_Switches): Clean up handling of -gnatW
15462 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
15464 2006-10-31 Robert Dewar <dewar@adacore.com>
15466 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
15467 (Set_Specific_Warning_Off): New procedure
15468 (Warning_Specifically_Suppressed): New function
15469 (Validate_Specific_Warnings): New procedure
15470 (Output_Msg_Text): Complete rewrite to support -gnatjnn
15472 * err_vars.ads: Implement insertion character ~ (insert string)
15474 2006-10-31 Bob Duff <duff@adacore.com>
15475 Ed Schonberg <schonberg@adacore.com>
15477 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
15478 the parent part is a build-in-place function call, generate assignments.
15479 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
15480 are build-in-place function calls.
15481 (Replace_Self_Reference): New subsidiary of
15482 Make_OK_Assignment_Statement, to replace an access attribute that is a
15483 self-reference into an access to the appropriate component of the
15484 target object. Generalizes previous mechanism to handle self-references
15485 nested at any level.
15486 (Is_Self_Referential_Init): Remove, not needed.
15487 (Is_Self_Referential_Init): New predicate to simplify handling of self
15488 referential components in record aggregates.
15489 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
15490 check for presence of entity before checking for self-reference.
15491 (Has_Default_Init_Comps): Return True if a component association is a
15492 self-reference to the enclosing type, which can only come from a
15493 default initialization.
15494 (Make_OK_Assignment_Statement): If the expression is of the form
15495 Typ'Acc, where Acc is an access attribute, the expression comes from a
15496 default initialized self-referential component.
15497 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
15498 that has been derived from several abstract interfaces we must also
15499 initialize the tags of the secondary dispatch tables.
15501 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15502 Thomas Quinot <quinot@adacore.com>
15503 Javier Miranda <miranda@adacore.com>
15504 Robert Dewar <dewar@adacore.com>
15507 (Expand_Access_To_Protected_Op): If the context indicates that an access
15508 to a local operation may be transfered outside of the object, create an
15509 access to the wrapper operation that must be used in an external call.
15510 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
15511 target, pass the Valid attribute applied to a floating-point prefix on
15512 to the back end without expansion.
15513 (Storage_Size): Use the new run-time function Storage_Size to retrieve
15514 the allocated storage when it is specified by a per-object expression.
15515 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
15516 Nothing to do here, the attribute has been rewritten during semantic
15518 (Expand_Attribute_Reference): Handle expansion of the new Priority
15520 (Find_Fat_Info): Handle case of universal real
15521 (Expand_Access_To_Protected_Op): Fix use of access to protected
15522 subprogram from inside the body of a protected entry.
15523 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
15524 'Access and 'Unrestricted_Access, to transform the attribute reference
15525 into a fat pointer.
15526 (Is_Constrained_Aliased_View): New predicate to help determine whether a
15527 subcomponent's enclosing variable is aliased with a constrained subtype.
15528 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
15529 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
15530 an aliased prefix must be known to be constrained in order to use True
15531 for the attribute value, and now it's possible for some aliased views
15532 to be unconstrained.
15534 2006-10-31 Robert Dewar <dewar@adacore.com>
15536 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
15537 (Expand_Entity_Reference): Correct error of not handling subprogram
15538 formals in current_value processing.
15540 2006-10-31 Javier Miranda <miranda@adacore.com>
15541 Robert Dewar <dewar@adacore.com>
15542 Ed Schonberg <schonberg@adacore.com>
15543 Gary Dismukes <dismukes@adacore.com>
15545 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
15546 register in the final list objects containing class-wide interfaces;
15547 otherwise we incorrectly register the tag of the interface in the final
15549 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
15550 generate the wrapper if the parent primitive is abstract. This is
15551 required to report the correct error message.
15552 (Expand_N_Subtype_Indication): Do validity checks on range
15553 (Clean_Task_Names): If an initialization procedure includes a call to
15554 initialize a task (sub)component, indicate that the procedure will use
15555 the secondary stack.
15556 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
15557 compatibility for interfacing with CPP by default.
15558 (Expand_N_Object_Declaration): Only build an Adjust call when the
15559 object's type is a nonlimited controlled type.
15560 * exp_ch3.adb: Add with and use of Exp_Ch6.
15561 (Expand_N_Object_Declaration): Check for object initialization that is a
15562 call to build-in-place function and apply Make_Build_In_Place_Call_In_
15563 Object_Declaration to the call.
15564 (Freeze_Type): When the designated type of an RACW was not frozen at the
15565 point where the RACW was declared, validate the primitive operations
15566 with respect to E.2.2(14) when it finally is frozen.
15567 (Build_Initialization_Call,Expand_Record_Controller): Rename
15568 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
15569 return-by-reference has no meaning in Ada 2005.
15570 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
15571 to register tag of the immediate ancestor interfaces in the
15572 run-time structure.
15573 (Init_Secondary_Tags): Moved to the specification to allow the
15574 initialization of extension aggregates with abstract interfaces.
15575 (Build_Master_Renaming): Make public, for use by function declarations
15576 whose return type is an anonymous access type.
15577 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
15578 Insert_List_Before_And_Analyze after the generation of the specs
15579 associated with null procedures.
15580 (Expand_Tagged_Root): Update documentation in its specification.
15581 (Init_Secondary_Tags): Update documentation.
15582 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
15583 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
15584 then generate code to inherit the contents of the dispatch table
15585 directly from the ancestor.
15586 (Expand_Record_Controller): Insert controller component after tags of
15587 implemented interfaces.
15588 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
15589 create null procedure overridings when null procedures are inherited
15591 (Make_Null_Procedure_Specs): New procedure to generate null procedure
15592 declarations for overriding null primitives inherited from interfaces.
15593 (Is_Null_Interface_Procedure): New function in
15594 Make_Null_Procedure_Specs.
15595 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
15596 immediate ancestor of a tagged type is an abstract interface type we
15597 must generate the specification of the predefined primitives associated
15598 with controlled types (because the dispatch table of the ancestor is
15599 null and hence these entries cannot be inherited). This is required to
15600 elaborate well the dispatch table.
15602 2006-10-31 Javier Miranda <miranda@adacore.com>
15603 Ed Schonberg <schonberg@adacore.com>
15604 Bob Duff <duff@adacore.com>
15605 Gary Dismukes <dismukes@adacore.com>
15606 Robert Dewar <dewar@adacore.com>
15608 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
15610 (Expand_N_In): Do validity checks on range
15611 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
15612 (Expand_N_Allocator): For "new T", if the object is constrained by
15613 discriminant defaults, allocate the right amount of memory, rather than
15614 the maximum for type T.
15615 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
15616 when the allocator is initialized by a build-in-place call, since the
15617 allocator is already rewritten as a reference to the function result,
15618 and this prevents an unwanted duplication of the function call.
15619 Add with and use of Exp_Ch6.
15620 (Expand_Allocator_Expresssion): Check for an allocator whose expression
15621 is a call to build-in-place function and apply
15622 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
15623 untagged designated types).
15624 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
15625 optimization if source or target is biased.
15626 (Expand_N_Allocator): Add comments for case of an allocator within a
15627 function that returns an anonymous access type designating tasks.
15628 (Expand_N_Allocator): apply discriminant checks for access
15629 discriminants of anonymous access types (AI-402, AI-416)
15631 2006-10-31 Bob Duff <duff@adacore.com>
15632 Robert Dewar <dewar@adacore.com>
15633 Gary Dismukes <dismukes@adacore.com>
15634 Ed Schonberg <schonberg@adacore.com>
15636 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
15638 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
15639 (Expand_N_Assignment_Statement): Call
15640 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
15641 build-in-place function call. Currently, this can happen only for
15642 assignments that come from aggregates.
15643 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
15644 in order to alleviate the upward compatibility introduced by AI-318.
15645 (Expand_N_Extended_Return_Statement): Add support for handling the
15646 return object as a build-in-place result.
15647 (Expand_Non_Function_Return): Implement simple return statements nested
15648 within an extended return.
15649 (Enable_New_Return_Processing): Turn on the new processing of return
15651 (Expand_Non_Function_Return): For a return within an extended return,
15652 don't raise Program_Error, because Sem_Ch6 now gives a warning.
15653 (Expand_N_Extended_Return_Statement): Implement AI-318
15654 (Expand_Simple_Function_Return): Ditto.
15655 (Expand_N_If_Statement): Handle new -gnatwt warning
15656 (Expand_N_Case_Statement): Handle new -gnatwt warning
15657 (Expand_N_Assignment): Handle assignment to the Priority attribute of
15658 a protected object.
15659 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
15660 validity checking of assignments to elementary record components.
15661 (Expand_N_Return_Statement): return Class Wide types on the secondary
15662 stack independantly of their controlled status since with HIE runtimes,
15663 class wide types are not potentially controlled anymore.
15665 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
15668 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
15669 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
15670 it expects a block, procedure, or task. The return statement will get
15671 turned into a block, and Expand_Cleanup_Actions will happen then.
15673 2006-10-31 Robert Dewar <dewar@adacore.com>
15674 Ed Schonberg <schonberg@adacore.com>
15675 Bob Duff <duff@adacore.com>
15676 Gary Dismukes <dismukes@adacore.com>
15678 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
15680 (Expand_Inlined_Call): Tagged types are by-reference types, and
15681 therefore should be replaced by a renaming declaration in the expanded
15682 body, as is done for limited types.
15683 (Expand_Call): If this is a call to a function with dispatching access
15684 result, propagate tag from context.
15685 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
15687 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
15688 build-in-place when the right-hand side of an assignment is a
15689 build-in-place function call.
15690 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
15691 of the explicit dereference of the allocator to the result subtype of
15692 the build-in-place function. This is needed to satisfy type checking
15693 in cases where the caller's return object is created by an allocator for
15694 a class-wide access type and the type named in the allocator is a
15696 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
15697 conversion of the reference to the declared object to the result subtype
15698 of the build-in-place function. This is needed to satisfy type checking
15699 in cases where the declared object has a class-wide type. Also, in the
15700 class-wide case, change the type of the object entity to the specific
15701 result subtype of the function, to avoid passing a class-wide object
15702 without explicit initialization to the back end.
15703 (Register_Interface_DT_Entry): Moved outside the body of
15704 Freeze_Subprogram because this routine is now public; it is called from
15705 Check_Dispatching_Overriding to handle late overriding of abstract
15706 interface primitives.
15707 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
15708 adding an implicit access actual on a call to a build-in-place function.
15709 (Expand_Actuals): Test for an actual parameter that is a call to a
15710 build-in-place function and apply
15711 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
15712 (Is_Build_In_Place_Function): New function to determine whether an
15713 entity is a function whose calls should be handled as build-in-place.
15714 (Is_Build_In_Place_Function_Call): New function to determine whether an
15715 expression is a function call that should handled as build-in-place.
15716 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
15717 calls to build-in-place functions as the initialization of an allocator.
15718 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
15719 handling calls to build-in-place functions in contexts that do not
15720 involve init of a separate object (for example, actuals of subprogram
15722 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
15723 handling calls to build-in-place functions as the initialization of an
15724 object declaration.
15725 (Detect_Infinite_Recursion): Add explicit parameter Process to
15726 instantiation of Traverse_Body to avoid unreferenced warning.
15727 (Check_Overriding_Inherited_Interfaces): Removed.
15728 (Register_Interface_DT_Entry): Code cleanup.
15729 (Register_Predefined_DT_Entry): Code cleanup.
15730 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
15731 inlined statements if within a transient scope.
15732 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
15733 formal parameters with occurrences of actuals in inlined body, establish
15734 visibility on the proper view of the actual's subtype for the body's
15736 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
15737 compatibility mode and we have an imported CPP subprogram because
15738 for now we assume that imported CPP primitives correspond with
15739 objects whose constructor is in the CPP side (and therefore we
15740 don't need to generate code to register them in the dispatch table).
15741 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
15742 aligned selected component.
15743 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
15744 the actual of an in-mode parameter is a type conversion.
15745 (Expand_Actuals): If the call does not come from source and the actual
15746 is potentially misaligned, let gigi handle it rather than rejecting the
15747 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
15748 Class Wide types as returning by reference independantly of their
15749 controlled status since with HIE runtimes class wide types are not
15750 potentially controlled anymore.
15752 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15754 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
15755 references that are private components of the protected object.
15756 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
15757 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
15758 instantiation to deal with warnings.
15759 (Initialize_Protection): If expression for priority is non-static, use
15760 System_Priority as its expected type, in case the expression has not
15763 2006-10-31 Robert Dewar <dewar@adacore.com>
15765 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
15766 initialization of Homonym_Len.
15767 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
15768 names from fully qualified name. Fixes problem of duplicate
15769 external names differing only in the presence of such a block name.
15771 2006-10-31 Thomas Quinot <quinot@adacore.com>
15772 Pablo Oliveira <oliveira@adacore.com>
15774 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
15775 subprogram Ids, even if they are not yet assigned.
15776 (Build_Subprogram_Id): It is now this function that will take care of
15777 calling Assign_Subprogram_Ids if necessary.
15778 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
15779 should be done only once they are assigned.
15780 (Build_From_Any_Function, case of tagged types): Add missing call to
15782 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
15783 type for an RACW type.
15784 (Add_RACW_Features): When processing an RACW declaration for which the
15785 designated type is already frozen, enforce E.2.2(14) rules immediately.
15786 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
15787 special reordering of controlling formals.
15789 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
15790 associated stub type for an RACW type.
15792 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15794 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
15795 fixed-point operations in an integer context, i.e. as operands of a
15796 conversion to an integer type, indicate that result must be rounded.
15798 2006-10-31 Robert Dewar <dewar@adacore.com>
15800 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
15801 cases, pass the encoding method, since it is now required by the run
15804 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
15805 assumption that Str'First = 1.
15806 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
15807 it on to the Value_Wide_Wide_Character call.
15808 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
15809 properly handles a string of the form quote-encoded_wide_char-quote.
15811 * s-wchcnv.adb: Minor reformatting
15813 2006-10-31 Javier Miranda <miranda@adacore.com>
15815 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
15816 run-time membership test to ensure that the constructed object
15817 implements the target abstract interface.
15819 2006-10-31 Robert Dewar <dewar@adacore.com>
15821 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
15822 Machine_Attribute pragma internally to implement the user pragma.
15823 Add processing for pragma Interface so that it is now completely
15824 equivalent to pragma Import.
15826 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
15827 so that it can be applied to all entities, including record components
15828 and enumeration literals.
15829 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
15830 priority ranges are correct, verify compatibility against task
15831 dispatching and locking policies, and if everything is correct an entry
15832 is added to the table containing priority specific dispatching entries
15833 for this compilation unit.
15834 (Delay_Config_Pragma_Analyze): Delay processing
15835 Priority_Specific_Dispatching pragmas because when processing the
15836 pragma we need to access run-time data, such as the range of
15837 System.Any_Priority.
15838 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
15839 Allow pragma Unreferenced as a context item
15840 Add pragma Preelaborable_Initialization
15841 (Analyze_Pragma, case Interface): Interface is extended so that it is
15842 now syntactically and semantically equivalent to Import.
15843 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
15844 insertion characters.
15845 Add handling for Pragma_Wide_Character_Encoding
15846 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
15847 never supercedes a real restriction, and that a real restriction
15848 always supercedes a warning.
15849 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
15852 2006-10-31 Bob Duff <duff@adacore.com>
15853 Ed Schonberg <schonberg@adacore.com>
15854 Robert Dewar <dewar@adacore.com>
15856 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
15857 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
15858 Is_Inherently_Limited_Type, because return-by-reference has no meaning
15860 (Find_Node_To_Be_Wrapped): Use new method of determining the result
15861 type of the function containing a return statement, because the
15862 Return_Type field was removed. We now use the Return_Applies_To field.
15864 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
15865 (Build_Task_Image_Decl): If procedure is not called from an
15866 initialization procedure, indicate that function that builds task name
15867 uses the sec. stack. Otherwise the enclosing initialization procedure
15868 will carry the indication.
15869 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
15870 N_Object_Declaration instead.
15871 (Kill_Dead_Code): New interface to implement -gnatwt warning for
15872 conditional dead code killed, and change implementation accordingly.
15873 (Insert_Actions): Add N_Return_Object_Declaration case.
15874 Correct comment to mention N_Extension_Aggregate node.
15875 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
15876 attempts to save information for global variables which cannot be
15878 (Get_Current_Value_Condition): Handle conditions the other way round
15879 (constant on left). Also handle right operand of AND and AND THEN
15880 (Set_Current_Value_Condition): Corresponding changes
15881 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
15882 (Get_Current_Value_Condition): Handle simple boolean operands
15883 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
15884 (Get_Current_Value_Condition): If the variable reference is within an
15885 if-statement, does not appear in the list of then_statments, and does
15886 not come from source, treat it as being at unknown location.
15887 (Get_Current_Value_Condition): Enhance to allow while statements to be
15888 processed as well as if statements.
15889 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
15891 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
15892 of loop. This is safe now that we fixed Kill_Current_Values.
15893 (OK_To_Do_Constant_Replacement): Check whether current scope is
15894 Standard, before examining outer scopes.
15896 2006-10-31 Vincent Celier <celier@adacore.com>
15898 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
15899 When True, apply VMS treatment to children of packages A, G, I and S.
15902 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
15904 2006-10-31 Robert Dewar <dewar@adacore.com>
15905 Ed Schonberg <schonberg@adacore.com>
15907 * freeze.adb: Add handling of Last_Assignment field
15908 (Warn_Overlay): Supply missing continuation marks in error msgs
15909 (Freeze_Entity): Add check for Preelaborable_Initialization
15911 * g-comlin.adb: Add Warnings (Off) to prevent new warning
15913 * g-expect.adb: Add Warnings (Off) to prevent new warning
15915 * lib-xref.adb: Add handling of Last_Assignment field
15916 (Generate_Reference): Centralize handling of pragma Obsolescent here
15917 (Generate_Reference): Accept an implicit reference generated for a
15918 default in an instance.
15919 (Generate_Reference): Accept a reference for a node that is not in the
15920 main unit, if it is the generic body corresponding to an subprogram
15923 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
15925 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
15927 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
15929 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
15930 use clauses, to avoid messages on packages used to qualify, and also
15931 to avoid messages from obsolescent units.
15932 (Warn_On_Useless_Assignments): Don't generate messages for imported
15933 and exported variables.
15934 (Warn_On_Useless_Assignments): New procedure
15935 (Output_Obsolescent_Entity_Warnings): New procedure
15936 (Check_Code_Statement): New procedure
15938 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
15939 Change name Is_Ada_2005 to Is_Ada_2005_Only
15940 (Last_Assignment): New field for useless assignment warning
15942 2006-10-31 Olivier Hainque <hainque@adacore.com>
15944 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
15945 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
15947 2006-10-31 Bob Duff <duff@adacore.com>
15948 Robert Dewar <dewar@adacore.com>
15949 Ed Schonberg <schonberg@adacore.com>
15951 * g-awk.adb (Default_Session, Current_Session): Compile this file in
15952 Ada 95 mode, because it violates the new rules for AI-318.
15954 * g-awk.ads: Use overloaded subprograms in every case where we used to
15955 have a default of Current_Session. This makes the code closer to be
15956 correct for both Ada 95 and 2005.
15958 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
15959 code, relying on the fact that the compiler generates a warning
15960 instead of an error in -gnatg mode.
15962 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
15963 E_Return_Statement entity kind.
15964 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
15966 * par.adb (P_Interface_Type_Definition): Addition of one formal to
15967 report an error if the reserved word abstract has been previously found.
15968 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
15970 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
15971 parenthesized range attribute usage
15972 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
15974 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
15975 in the syntax for extended_return_statement. This is not in the latest
15976 RM, but the ARG is expected to issue an AI allowing this.
15977 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
15978 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
15979 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
15980 P_Return_Statement): Parse the new syntax for extended_return_statement.
15982 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
15983 Output_End_Missing): Add error-recovery code for the new
15984 extended_return_statement syntax; that is, the new E_Return entry on
15987 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
15988 limited to nonlimited, because otherwise we violate the new Ada 2005
15989 rules about returning limited types in function Create_AST_Handler in
15992 * sem.adb (Analyze): Add cases for new node kinds
15993 N_Extended_Return_Statement and N_Return_Object_Declaration.
15995 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
15996 type is in the same category as type of context before applying check,
15997 to prevent anomalies in instantiations.
15998 (Resolve_Aggregate): Remove test for limited components in aggregates.
15999 It's unnecessary in Ada 95, because if it has limited components, then
16000 it must be limited. It's wrong in Ada 2005, because limited aggregates
16002 (Resolve_Record_Aggregate): Move check for limited types later, because
16003 OK_For_Limited_Init requires its argument to have been resolved.
16004 (Get_Value): When copying the component default expression for a
16005 defaulted association in an aggregate, use the sloc of the aggregate
16006 and not that of the original expression, to prevent spurious
16007 elaboration errors, when the expression includes function calls.
16008 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
16009 were missing. We also didn't handle qualified expressions. Now also
16010 allow function calls. Use new common routine OK_For_Limited_Init.
16011 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
16012 with space can upper case letter).
16014 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
16015 Has_Static_Discriminants flag
16016 (Record_Type_Declaration): Diagnose an attempt to declare an interface
16017 type with discriminants.
16018 (Process_Range_Expr_In_Decl): Do validity checks on range
16019 (Build_Discriminant_Constraints): Use updated form of
16020 Denotes_Discriminant.
16021 (Process_Subtype): If the subtype is a private subtype whose full view
16022 is a concurrent subtype, introduce an itype reference to prevent scope
16024 (Build_Derived_Record_Type, Collect_Interface_Primitives,
16025 Record_Type_Declaration): The functionality of the subprograms
16026 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
16027 is now performed by a single routine.
16028 (Build_Derived_Record_Type): If the type definition includes an explicit
16029 indication of limitedness, then the type must be marked as limited here
16030 to ensure that any access discriminants will not be treated as having
16031 a local anonymous access type.
16032 (Check_Abstract_Overriding): Issue a detailed error message when an
16033 abstract subprogram was not overridden due to incorrect mode of its
16035 (Analyze_Private_Extension_Declaration): Add support for the analysis of
16036 synchronized private extension declarations. Verify that the ancestor is
16037 a limited or synchronized interface or in the generic case, the ancestor
16038 is a tagged limited type or synchronized interface and all progenitors
16039 are either limited or synchronized interfaces.
16040 Derived_Type_Declaration): Check for presence of private extension when
16041 dealing with synchronized formal derived types.
16042 Process_Full_View): Enchance the check done on the usage of "limited" by
16043 testing whether the private view is synchronized.
16044 Verify that a synchronized private view is completed by a protected or
16046 (OK_For_Limited_Init_In_05): New function.
16047 (Analyze_Object_Declaration): Move check for limited types later,
16048 because OK_For_Limited_Init requires its argument to have been resolved.
16049 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
16050 in order to alleviate the upward compatibility introduced by AI-318.
16051 (Constrain_Corresponding_Record): If the constraint is for a component
16052 subtype, mark the itype as frozen, to avoid out-of-scope references to
16053 discriminants in the back-end.
16054 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
16055 this subprogram against wrong sources.
16056 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
16057 discriminant of limited type completed with a protected type, when the
16058 discriminant is used to constrain a private component of the type, and
16059 expansion is disabled.
16060 (Find_Type_Of_Object): Do not treat a return subtype that is an
16061 anonymous subtype as a local_anonymous_type, because its accessibility
16062 level is the return type of the enclosing function.
16063 (Check_Initialization): In -gnatg mode, turn the error "cannot
16064 initialize entities of limited type" into a warning.
16065 (OK_For_Limited_Init): Return true for generated nodes, since it
16066 sometimes violates the legality rules.
16067 (Make_Incomplete_Declaration): If the type for which an incomplete
16068 declaration is created happens to be the currently visible entity,
16069 preserve the homonym chain when removing it from visibility.
16070 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
16071 inherited subprograms.
16072 (Access_Definition): If this is an access to function that is the return
16073 type of an access_to_function definition, context is a type declaration
16074 and the scope of the anonymous type is the current one.
16075 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
16076 incomplete subtype to the set of private dependents of the original
16078 (Constrain_Discriminated_Type): Emit an error message whenever an
16079 incomplete subtype is being constrained.
16080 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
16081 corresponding subtype of the full view of the original incomplete type.
16082 (Check_Incomplete): Properly detect invalid usage of incomplete types
16085 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
16087 * g-catiio.ads, g-catiio.adb (Value): New function.
16088 Given an input String, try and parse a valid Time value.
16090 2006-10-31 Vincent Celier <celier@adacore.com>
16092 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
16093 Integer_Address arithmetic, as in Set_Valid.
16095 2006-10-31 Arnaud Charlet <charlet@adacore.com>
16096 Robert Dewar <dewar@adacore.com>
16098 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
16099 handling executable extension manually and duplicating code.
16101 * make.adb: Implement new -S switch
16102 (Gnatmake): Use new function Osint.Executable_Name instead
16103 of handling executable extension manually.
16105 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
16106 is specified, the executable name ends with this suffix.
16107 Take advantage of Osint.Executable_Name instead of duplicating code.
16109 * switch-m.adb: Recognize new gnatmake -S switch
16111 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
16113 (Get_Target_Parameters): Set Executable_Extension_On_Target if
16116 * makeusg.adb: Add line for gnatmake -S switch
16118 2006-10-31 Vincent Celier <celier@adacore.com>
16120 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
16121 call it with -static-libgcc, as there are some platforms, such as
16122 Darwin, where one of these two switches is compulsory to link.
16124 2006-10-31 Vincent Celier <celier@adacore.com>
16126 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
16127 instead of ADA_PROJECT_PATH, for the project path.
16128 (Gnatls): When displaying the project path directories, use host dir
16131 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
16132 names in the project path, as absolute paths may correspond to
16133 multi-valued VMS logical names.
16135 2006-10-31 Vincent Celier <celier@adacore.com>
16137 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
16138 absolute path name.
16139 (Locate_Regular_File): Ditto
16140 (Change_Dir): Remove, no longer used
16141 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
16142 on Windows. Get it calling Get_Current_Dir.
16143 (OpenVMS): Remove imported boolean, no longer needed.
16144 (Normalize_Pathname)[VMS]: Do not resolve directory names.
16145 (Pid_To_Integer): New function to convert a Process_Id to Integer
16147 2006-10-31 Thomas Quinot <quinot@adacore.com>
16149 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
16150 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
16152 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
16155 2006-10-31 Robert Dewar <dewar@adacore.com>
16157 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
16158 initial letter o as a zero.
16160 2006-10-31 Robert Dewar <dewar@adacore.com>
16162 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
16164 2006-10-31 Robert Dewar <dewar@adacore.com>
16166 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
16168 (Layout_Variant_Record): Retrieve the discriminants from the entity
16169 rather than from the type definition, because in the case of a full
16170 type for a private type we need to take the discriminants from the
16172 (Layout_Component_List): When applying the Max operator to variants with
16173 a nonstatic size, check whether either operand is static and scale that
16174 operand from bits to storage units before applying Max.
16175 (Layout_Type): In VMS, if a C-convention access type has no explicit
16176 size clause (and does not inherit one in the case of a derived type),
16177 then the size is reset to 32 from 64.
16179 2006-10-31 Vincent Celier <celier@adacore.com>
16181 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
16182 its file has already been loaded, according to the unit being loaded,
16183 not to the current value of Multiple_Unit_Index.
16185 2006-10-31 Thomas Quinot <quinot@adacore.com>
16186 Eric Botcazou <ebotcazou@adacore.com>
16187 Arnaud Charlet <charlet@adacore.com>
16189 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
16190 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
16192 (a-except.o): Pass it to the compiler.
16193 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
16194 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
16195 a-calend-mingw.adb version.
16197 * Makefile.rtl: Added s-dsaser.
16198 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
16199 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
16200 Ada.Dispatching.Round_Robin.
16201 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
16203 * Make-lang.in: Remove all references to gt-ada-decl.h.
16204 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
16206 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
16207 Update dependencies.
16209 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
16211 2006-10-31 Vincent Celier <celier@adacore.com>
16213 * mlib-utl.adb (Initialized): Remove, no longer used
16214 (Initialize): Remove, no longer used
16215 (Ar): If Ar_Exec is null, get the location of the archive builder and,
16216 if there is one, the archive indexer. Fail if the archive builder cannot
16218 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
16221 2006-10-31 Ed Schonberg <schonberg@adacore.com>
16223 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
16224 Process_Body_Clauses): If the context of a body includes a use clause
16225 for P.Q then a with_clause for P in the same body is not redundant,
16226 even if the spec also has a with_clause on P.
16227 Add missing continuation mark to error msg
16228 (Build_Limited_Views): A limited view of a type is tagged if its
16229 declaration includes a record extension.
16230 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
16231 node, even if the subunit has errors. This avoids malfunction by
16232 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
16233 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
16234 generation of obsolescent messages for with statements (cannot do
16235 this too early, or we cannot implement avoiding the messages in the
16236 case of obsolescent units withing obsolescent units).
16237 (Install_Siblings): If the with_clause is on a remote descendant of
16238 an ancestor of the current compilation unit, find whether there is
16239 a sibling child unit that is immediately visible.
16240 (Remove_Private_With_Clauses): New procedure, invoked after completing
16241 the analysis of the private part of a nested package, to remove from
16242 visibility the private with_clauses of the enclosing package
16244 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
16245 now centralized in Generate_Reference.
16246 (Install_Limited_Context_Clauses): Remove superfluous error
16247 message associated with unlimited view visible through use
16248 and renamings. In addition, at the point in which the error
16249 is reported, we add the backslash to the text of the error
16250 to ensure that it is reported as a single error message.
16251 Use new // insertion for some continuation messages
16252 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
16253 to create implicit with_clause for parent unit mentioned in original
16254 limited_with_clause.
16255 (Install_Limited_With_Unit): Set entity of parent identifiers if the
16256 unit is a child unit. For ASIS queries.
16257 (Analyze_Subunit): If the subunit appears within a child unit, make all
16258 ancestor child units directly visible again.
16260 2006-10-31 Robert Dewar <dewar@adacore.com>
16262 * par-ch10.adb (P_Context_Clause): Minor error message fix
16264 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
16265 Javier Miranda <miranda@adacore.com>
16267 * par-ch12.adb: Grammar update and cleanup.
16268 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
16269 support for synchronized derived type definitions.
16270 Add the new actual Abstract_Present to every call to
16271 P_Interface_Type_Definition.
16272 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
16273 a formal object declaration with an access definition or a subtype mark
16274 with a null exclusion.
16275 (P_Generic_Association): Handle association with box, and others_choice
16276 with box, to support Ada 2005 partially parametrized formal packages.
16278 2006-10-31 Robert Dewar <dewar@adacore.com>
16279 Javier Miranda <miranda@adacore.com>
16281 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
16282 (P_Type_Declaration): Remove barrier against the reserved word "limited"
16283 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
16284 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
16285 private extensions.
16286 (P_Type_Declaration): Add the new actual Abstract_Present to every call
16287 to P_Interface_Type_Definition.
16288 (P_Interface_Type_Definition): Addition of one formal to report an error
16289 if the reserved word abstract has been previously found.
16290 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
16291 object renaming declaration with an access definition or subtype mark
16292 with a possible null exclusion.
16294 * par-ch9.adb: Minor error msg fix
16296 * par-load.adb: Add missing continuation mark to error msg
16298 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
16300 2006-10-31 Vincent Celier <celier@adacore.com>
16302 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
16303 unknown attribute in unknown package or in package that does not need
16305 (Parse_Package_Declaration): Do not issue warning for unknown package in
16308 2006-10-31 Vincent Celier <celier@adacore.com>
16310 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
16311 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
16314 2006-10-31 Vincent Celier <celier@adacore.com>
16316 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
16317 on VMS, change "__" to '.' before checking the name.
16318 (Record_Ada_Source): Always add the source file name in the list of
16319 of sources, even if it is not the first time, as it is for another
16321 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
16322 dot, instead of replacing only the first '_'.
16324 * prj-part.adb (Parse): Convert project file path to canonical form
16326 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
16327 extended, the project id of the project extending it is recorded in its
16328 data, even when it has already been processed as an imported project.
16330 2006-10-31 Robert Dewar <dewar@adacore.com>
16332 * repinfo.adb (List_Entities): Don't list entities from renaming
16335 2006-10-31 Arnaud Charlet <charlet@adacore.com>
16336 Robert Dewar <dewar@adacore.com>
16338 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
16339 only a restriction warning is active for the given restriction. This is
16340 desirable because we do not want to modify code in the case where only
16342 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
16343 causes overriding of real restrictions.
16344 Take advantage of new No_Restrictions constant.
16346 * raise.h: (__gnat_set_globals): Change profile.
16348 2006-10-31 Arnaud Charlet <charlet@adacore.com>
16350 * rtsfind.adb: Remove s-polint from comment as it exists no more.
16353 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
16354 Move all the entities in obsolete package System.PolyORB_Interface to
16355 System.Partition_Interface.
16356 (RE_Storage_Size): New function in System.Tasking.
16357 (RE_Get_Ceiling): New entity.
16358 (RE_Set_Ceiling): New entity.
16359 (RO_PE_Get_Ceiling): New entity.
16360 (RO_RE_Set_Ceiling): New entity.
16361 (Inherit_CPP_DT): New entity
16363 2006-10-31 Robert Dewar <dewar@adacore.com>
16365 * scng.adb (Scan, case of numeric literal): Better msg for identifier
16366 starting with a digit.
16368 2006-10-31 Ed Schonberg <schonberg@adacore.com>
16369 Thomas Quinot <quinot@adacore.com>
16370 Javier Miranda <miranda@adacore.com>
16371 Gary Dismukes <dismukes@adacore.com>
16373 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
16374 properly an attempt to apply Unchecked_Access to a protected operation.
16375 (OK_Self_Reference): New subprogram to check the legality of an access
16376 attribute whose prefix is the type of an enclosing aggregate.
16377 Generalizes previous mechanism to handle attribute references nested
16378 arbitrarily deep within the aggregate.
16379 (Analyze_Access_Attribute): An access attribute whose prefix is a type
16380 can appear in an aggregate if this is a default-initialized aggregate
16381 for a self-referential type.
16382 (Resolve_Attribute, case Access): Ditto.
16383 Add support for new implementation defined attribute Stub_Type.
16384 (Eval_Attribute, case Attribute_Stub_Type): New case.
16385 (Analyze_Attribute, case Attribute_Stub_Type): New case.
16386 (Stream_Attribute_Available): Implement using new subprogram from
16387 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
16388 Has_Specified_Stream_Attribute flag.
16389 Disallow Storage_Size and Storage_Pool for access to subprogram
16390 (Resolve_Attribute, case 'Access et al): Take into account anonymous
16391 access types of return subtypes in extended return statements. Remove
16392 accessibility checks on anonymous access types when Unchecked_Access is
16394 (Analyze_Attribute): Add support for the use of 'Class to convert
16395 a class-wide interface to a tagged type.
16396 Add support for the attribute Priority.
16397 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
16398 whether the designated type is discriminated with a constrained partial
16399 view and require static matching in that case.
16400 Add local variable Des_Btyp. The Designated_Type
16401 of an access to incomplete subtype is either its non-limited view if
16402 coming from a limited with or its etype if regular incomplete subtype.
16404 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
16405 Fix predicate to identify and allow cases of (expander-generated)
16406 references to tag of designated object of a RACW.
16407 (Validate_Static_Object_Name): In Ada 2005, a formal object is
16408 non-static, and therefore cannot appear as a primary in a preelaborable
16410 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
16411 Has_Read_Write_Attributes.
16412 (Has_Read_Write_Attributes): Reimplement in termes of
16413 Has_Stream_Attribute_Definition.
16414 (Missing_Read_Write_Attributes): When checking component types in a
16415 record, unconditionally call Missing_Read_Write_Attributes recursively
16416 (remove guard checking for Is_Record_Type / Is_Access_Type).
16418 2006-10-31 Robert Dewar <dewar@adacore.com>
16420 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
16421 useless assignments here and conditionalize it on absence of exception
16423 (Analyze_Exception_Handlers): Small code reorganization of error
16424 detection code, for new handling of formal packages.
16426 2006-10-31 Ed Schonberg <schonberg@adacore.com>
16427 Hristian Kirtchev <kirtchev@adacore.com>
16429 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
16430 that has been constant-folded, preserve information of original tree,
16432 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
16433 generated private extension declaration if the formal derived type is
16434 synchronized. Carry synchronized present over to the generated private
16436 (Validate_Derived_Type_Instance): Ensure that the actual of a
16437 synchronized formal derived type is a synchronized tagged type.
16438 (Instantiate_Formal_Package): When creating the instantiation used to
16439 validate the actual package of a formal declared without a box, check
16440 whether the formal itself depends on a prior actual.
16441 (Instantiate_Formal_Subprogram): Create new entities for the defining
16442 identifiers of the formals in the renaming declaration, for ASIS use.
16443 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
16444 a renaming declaration or a subtype declaration for an actual in an
16445 instance, capture location information of declaration in generic, for
16447 (Instantiate_Formal_Package): Add comments on needed additional tests.
16448 AI-317 (partial parametrization) is fully implemented.
16449 (Validate_Private_Type_Instance): Add check for actual which
16450 must have preelaborable initialization
16451 Use new // insertion for some continuation messages
16452 (Analyze_Formal_Object_Declaration): Change usage of Expression to
16453 Default_Expression. Add type retrieval when the declaration has an
16454 access definition. Update premature usage of incomplete type check.
16455 (Check_Access_Definition): New subsidiary routine. Check whether the
16456 current compilation version is Ada 05 and the supplied node has an
16458 (Instantiate object): Alphabetize local variables. Handle the creation
16459 of new renaming declarations with respect to the kind of definition
16460 used - either an access definition or a subtype mark. Guard against
16461 unnecessary error message in the context of anonymous access types after
16462 they have been resolved. Add check for required null exclusion in a
16463 formal object declaration.
16464 (Switch_View): A private subtype of a non-private type needs to be
16465 switched (the base type can have been switched without its private
16466 dependents because of the last branch of Check_Private_View.
16467 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
16469 (Instantiate_Type): Emit an error message whenever a class-wide type of
16470 a tagged incomplete type is used as a generic actual.
16471 (Find_Actual_Type): Extend routine to handle a component type in a child
16472 unit that is imported from a formal package in a parent.
16473 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
16474 agree on constrainedness, rather than checking against ultimate ancestor
16475 (Instantiate_Subprogram_Body): Create a cross-reference link to the
16476 generic body, for navigation purposes.
16478 2006-10-31 Robert Dewar <dewar@adacore.com>
16479 Thomas Quinot <quinot@adacore.com>
16481 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
16483 (New_Stream_Subprogram): When processing an attribute definition clause
16484 for a stream-oriented subprogram, record an entity node occurring at
16485 the point of clause to use for checking the visibility of the clause,
16486 as defined by 8.3(23) as amended by AI-195.
16487 (New_Stream_Subprogram): New procedure, factoring behaviour from both
16488 New_Stream_Function and New_Stream_Procedure.
16489 (New_Stream_Function, New_Stream_Procedure): Removed.
16490 (Analyze_Attribute_Definition_Clause, case Address): Check new
16491 Alignment_Check check
16493 2006-10-31 Ed Schonberg <schonberg@adacore.com>
16494 Javier Miranda <miranda@adacore.com>
16495 Robert Dewar <dewar@adacore.com>
16497 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
16498 generate the same errors compiling under -gnatc.
16499 (Try_Object_Operation): If no candidate interpretation succeeds, but
16500 there is at least one primitive operation with the right name, report
16501 error in call rather than on a malformed selected component.
16502 (Analyze_Selected_Component): If the prefix is an incomplete type from
16503 a limited view, and the full view is available, use the full view to
16504 determine whether this is a prefixed call to a primitive operation.
16505 (Operator_Check): Verify that a candidate interpretation is a binary
16506 operation before checking the type of its second formal.
16507 (Analyze_Call): Add additional warnings for function call contexts not
16509 (Analyze_Allocator): Move the check for "initialization not allowed for
16510 limited types" after analyzing the expression. This is necessary,
16511 because OK_For_Limited_Init looks at the structure of the expression.
16512 Before analysis, we don't necessarily know what sort of expression it
16513 is. For example, we don't know whether F(X) is a function call or an
16514 indexed component; the former is legal in Ada 2005; the latter is not.
16515 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
16516 were missing. We also didn't handle qualified expressions. Now also
16517 allow function calls. Use new common routine OK_For_Limited_Init.
16518 (Analyze_Type_Conversion): Do not perform some legality checks in an
16519 instance, because the error message will be redundant or spurious.
16520 (Analyze_Overloaded_Selected_Component): Do not do style check when
16521 setting an entity, since we do not know it is the right entity yet.
16522 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
16523 (Analyze_Overloaded_Selected_Component): Same change
16524 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
16525 since regular incomplete subtypes are transformed into corresponding
16526 subtypes of their full views.
16527 (Complete_Object_Operation): Treat name of transformed subprogram call
16528 as coming from source, for browsing purposes.
16529 (Try_Primitive_Operation): If formal is an access parameter, compare
16530 with base type of object to determine whether it is a primitive
16532 (Operator_Check): If no interpretation of the operator matches, check
16533 whether a use clause on any candidate might make the operation legal.
16534 (Try_Class_Wide_Operation): Check whether the first parameter is an
16535 access type whose designated type is class-wide.
16537 2006-10-31 Robert Dewar <dewar@adacore.com>
16538 Ed Schonberg <schonberg@adacore.com>
16539 Gary Dismukes <dismukes@adacore.com>
16541 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
16542 warn on infinite loops.
16543 Add \\ to some continuation messages
16544 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
16545 (Process_Bounds): If the bounds are integer literals that result from
16546 constant-folding, and they carry a user-defined type, preserve that type
16547 rather than treating this as an integer range.
16548 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
16549 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
16550 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
16551 left hand side of assignment.
16552 (Analyze_Assignment): Add suport to manage assigments to the attribute
16553 priority of a protected object.
16554 (Check_Possible_Current_Value_Condition): Allow fully qualified names
16555 not just identifiers.
16556 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
16557 or AND THEN for possible tracking.
16558 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
16559 case of while loops so we can track values in the loop body.
16561 2006-10-31 Ed Schonberg <schonberg@adacore.com>
16562 Hristian Kirtchev <kirtchev@adacore.com>
16563 Bob Duff <duff@adacore.com>
16565 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
16566 procedure cannot be a protected operation (it is a basic_declaration,
16567 not a subprogram_declaration).
16568 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
16569 Subp. Add logic for entry processing.
16570 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
16571 Determine whether an entry or subprogram of a protected or task type
16572 override an inherited primitive of an implemented interface.
16573 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
16574 Update the actual used in calls to Check_Overriding_Indicator.
16575 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
16576 generate the proper reference to the parent unit, for cross-reference.
16577 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
16579 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
16580 (Add_Extra_Formal): Revise procedure to allow passing in associated
16581 entity, scope, and name suffix, and handle setting of the new
16582 Extra_Formals field.
16583 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
16584 pass new parameters. Add support for adding the new extra access formal
16585 for functions whose calls are treated as build-in-place.
16586 (Analyze_A_Return_Statement): Correct casing in error message.
16587 Move Pop_Scope to after Analyze_Function_Return, because an extended
16588 return statement really is a full-fledged scope. Otherwise, visibility
16589 doesn't work right. Correct use of "\" for continuation messages.
16590 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
16591 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
16592 the node doesn't get properly marked as analyzed.
16593 (Analyze_Subprogram_Body): If subprogram is a function that returns
16594 an anonymous access type that denotes a task, build a Master Entity
16596 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
16597 proper usage of null exclusion in a result definition.
16598 (Process_Formals): Code cleanup and new error message.
16599 (Process_Formals): Detect incorrect application of null exclusion to
16601 (Conforming_Types): Handle conformance between [sub]types and itypes
16602 generated for entities that have null exclusions applied to them.
16603 (Maybe_Primitive_Operation): Add an additional type retrieval when the
16604 base type is an access subtype. This case arrises with null exclusions.
16605 (New_Overloaded_Entity): Do not remove the overriden entity from the
16606 homonym chain if it corresponds with an abstract interface primitive.
16607 (Process_Formals): Replace membership test agains Incomplete_Kind with a
16608 call to the synthesized predicate Is_Incomplete_Type.
16609 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
16611 (Analyze_Subprogram_Declaration): Check that abstract interface
16612 primitives are abstract or null.
16613 (Analyze_Subprogram_Specification): Remove previous check for abstract
16614 interfaces because it was not complete.
16615 (Has_Interface_Formals): Removed.
16617 2006-10-31 Ed Schonberg <schonberg@adacore.com>
16618 Javier Miranda <miranda@adacore.com>
16620 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
16621 of Analyze_Package_Body, to create Itype references for anonymous
16622 access types created in the package declaration, whose designated types
16623 may have only a limited view.
16624 (Analyze_Package_Specification): For the private part of a nested
16625 package, install private_with_clauses of enclosing compilation unit if
16626 we are in its visible part.
16627 (Declare_Inherited_Private_Subprograms): Complete barrier
16628 to ensure that the primitive operation has an alias to some parent
16629 primitive. This is now required because, after the changes done for the
16630 implementation of abstract interfaces, the contents of the list of
16631 primitives has entities whose alias attribute references entities of
16632 such list of primitives.
16633 (Analyze_Package_Specification): Simplify code that handles parent units
16634 of instances and formal packages.
16635 (Uninstall_Declarations): Check the convention consistency among
16636 primitive overriding operations of a tagged record type.
16638 2006-10-31 Robert Dewar <dewar@adacore.com>
16639 Hristian Kirtchev <kirtchev@adacore.com>
16640 Javier Miranda <miranda@adacore.com>
16641 Ed Schonberg <schonberg@adacore.com>
16643 * sem_ch8.adb: Minor error msg rewording
16644 (Undefined): When checking for misspellings, invert arguments (to get
16645 expected and found set right)
16646 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
16647 (Analyze_Generic_Renaming): Same fix
16648 (Use_One_Package): Do not take into account the internal entities of
16649 abstract interfaces during the analysis of entities that are marked
16650 as potentially use-visible.
16651 (Find_Type): Handle the case of an attribute reference for
16652 implementation defined attribute Stub_Type (simply let the analysis of
16653 the attribute reference rewrite it).
16654 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
16655 type that appears in a Use_Type clause.
16656 (Analyze_Object_Renaming): Add support for renaming of the Priority
16658 (Find_Type): In Ada 2005, a task type can be used within its own body,
16659 when it appears in an access definition.
16660 (Analyze_Object_Renaming): Remove warning on null_exclusion.
16661 (Analyze_Object_Renaming): Introduce checks for required null exclusion
16662 in a formal object declaration or in a subtype declaration.
16663 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
16664 (Check_Null_Exclusion): New local routine to
16665 Analyze_Subprogram_Renaming. Check whether the formals and return
16666 profile of a renamed subprogram have required null exclusions when
16667 their counterparts of the renaming already impose them.
16668 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
16669 Determine whether an entity is inside a generic scope.
16670 (In_Open_Scope): First pass of documentation update.
16671 (Find_Expanded_Name): Add support for shadow entities associated with
16672 limited withed packages. This is required to handle nested packages.
16673 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
16674 that makes a renaming of a limited withed package illegal.
16676 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
16677 Ed Schonberg <schonberg@adacore.com>
16679 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
16680 Check_Overriding_Indicator.
16681 (Analyze_Task_Definition): Ditto.
16682 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
16683 (Check_Overriding_Indicator): To find overridden interface operation,
16684 examine only homonyms that have an explicit subprogram declaration, not
16685 inherited operations created by an unrelated type derivation.
16686 (Check_Overriding_Indicator): When checking for the presence of "null"
16687 in a procedure, ensure that the queried node is a procedure
16689 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
16690 type when the formal is an access to variable.
16691 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
16692 (Analyze_Task_Type): Same addition
16693 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
16694 provide navigation capabilities for entries.
16696 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
16697 Ed Schonberg <schonberg@adacore.com>
16698 Javier Miranda <miranda@adacore.com>
16699 Gary Dismukes <dismukes@adacore.com>
16701 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
16702 inherited from an interface ancestor by another interface in the
16703 context of an instance as 'late'.
16704 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
16705 of a call to a function that dispatches on access result.
16706 (Check_Dispatching_Operation): In case of late overriding of a primitive
16707 that covers abstract interface subprograms we register it in all the
16708 secondary dispatch tables associated with abstract interfaces.
16709 (Check_Dispatching_Call): Add check that a dispatching call is not made
16710 to a function with a controlling result of a limited type. This is a
16711 current implementation restriction.
16712 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
16713 (Check_Dispatching_Operation): Do no emit a warning if the controlling
16714 argument is an interface type that is a generic formal.
16715 (Is_Interface_Subprogram): Removed.
16716 (Check_Dispatching_Operation): If the subprogram is not a dispatching
16717 operation, check the formals to handle the case in which it is
16718 associated with an abstract interface type.
16720 2006-10-31 Robert Dewar <dewar@adacore.com>
16721 Ed Schonberg <schonberg@adacore.com>
16723 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
16724 Add new calls to this procedure during traversal
16725 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
16726 another unit if expansion is disabled.
16728 2006-10-31 Robert Dewar <dewar@adacore.com>
16730 * sem_eval.adb (Compile_Time_Compare): Make use of information from
16731 Current_Value in the conditional case, to evaluate additional
16732 comparisons at compile time.
16734 2006-10-31 Ed Schonberg <schonberg@adacore.com>
16735 Hristian Kirtchev <kirtchev@adacore.com>
16736 Javier Miranda <miranda@adacore.com>
16738 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
16739 subprogram type to provide better diagnostics in case of ambiguity.
16740 (Covers): Handle coverage of formal and actual anonymous access types in
16741 the context of generic instantiation.
16742 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
16743 abstract interface types; this is required to handle concurrent types
16744 with discriminants and abstract interface types.
16745 (Covers): Include type coverage of both regular incomplete subtypes and
16746 incomplete subtypes of incomplete type visibles through a limited with
16749 2006-10-31 Robert Dewar <dewar@adacore.com>
16750 Hristian Kirtchev <kirtchev@adacore.com>
16751 Ed Schonberg <schonberg@adacore.com>
16753 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
16754 messages for entities in packages which are not used.
16755 (Collect_Synchronized_Interfaces): New procedure.
16756 (Overrides_Synchronized_Primitive): New function.
16757 (Denotes_Discriminant): Extend predicate to apply to task types.
16758 Add missing continuation marks in error msgs
16759 (Unqualify): New function for removing zero or more levels of
16760 qualification from an expression. There are numerous places where this
16761 ought to be used, but we currently only deal properly with zero or one
16763 (In_Instance); The analysis of the actuals in the instantiation of a
16764 child unit is not within an instantiation, even though the parent
16765 instance is on the scope stack.
16766 (Safe_To_Capture_Value): Exclude the case of variables that are
16768 (Check_Obsolescent): Removed
16769 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
16770 is an aliased view, even when rewritten as a reference to the target
16771 object in an assignment.
16772 (Get_Subprogram_Entity): New function
16773 (Known_To_Be_Assigned): New function
16774 (Type_Access_Level): Compute properly the access level of a return
16775 subtype that is an anonymous access type.
16776 (Explain_Limited_Type): Correct use of "\" for continuation messages.
16777 (Is_Transfer): The new extended_return_statement causes a transfer of
16779 (Has_Preelaborable_Initialization): New function
16780 (Has_Null_Exclusion): New function. Given a node N, determine whether it
16781 has a null exclusion depending on its Nkind.
16782 Change Is_Lvalue to May_Be_Lvalue
16783 (May_Be_Lvalue): Extensive additional code to deal with subprogram
16784 arguments (IN parameters are not Lvalues, IN OUT parameters are).
16785 (Safe_To_Capture_Value): Extend functionality so it can be used for
16786 the current value condition case.
16787 (Has_Compatible_Alignment): New function
16788 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
16789 objects to handle the Ada 2005 case, where aliasedness no longer implies
16790 that the object is constrained. In particular, for dereferenced names,
16791 the designated object must be assumed to be unconstrained.
16792 (Kill_Current_Values): Properly deal with the case where we encounter
16793 a loop in the scope chain.
16794 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
16796 (Compile_Time_Constraint_Error): Improve error message in error case
16798 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
16799 associated with entities of abstract interface primitives.
16800 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
16802 2006-10-31 Robert Dewar <dewar@adacore.com>
16804 * s-osinte-tru64.adb:
16805 Mark Asm statements Volatile to prevent warnings (seems a
16806 reasonable change anyway)
16809 * s-mastop-irix.adb: Add Volatile to Asm statements
16810 Suppresses warning, and seems appropriate in any case
16812 * s-osinte-vms.adb: Add Volatile to Asm statement
16814 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
16816 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
16818 Add call to Check_Code_Statement
16820 2006-10-31 Robert Dewar <dewar@adacore.com>
16821 Ed Schonberg <schonberg@adacore.com>
16822 Bob Duff <duff@adacore.com>
16824 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
16825 Synchronized_Present): Add Formal_Derived_Type_Definition and
16826 Private_Extension_Declaration to the list of assertions.
16827 (Is_Entry_Barrier_Function): New flag
16828 (Has_Self_Reference): New flag on aggregates, to indicate that they
16829 contain a reference to the enclosing type, inserted through a default
16831 (Next_Rep_Item): Move from Node4 to Node5.
16832 (Entity): Add this field for N_Attribute_Definition_Clause.
16833 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
16834 (N_Return_Object_Declaration): Remove this node kind. We now use
16835 N_Object_Declaration instead.
16836 (Actual_Designated_Subtype): Move to a different place to make room in
16837 N_Extended_Return_Statement.
16838 (Procedure_To_Call): Move to a different place to make room in
16839 N_Extended_Return_Statement.
16840 (Return_Type): Removed this field to make room in return statements
16842 (Return_Statement_Entity): New field in return statements, in part to
16843 replace Return_Type, and in part to support the fact that return
16844 statements are now pushed on the scope stack during semantic analysis.
16845 (Return_Object_Declarations): New field to support extended return
16847 (N_Extended_Return_Statement): New node for extended_return_statement
16849 (N_Return_Object_Declaration): New node for part of
16850 extended_return_statement nonterminal. Needed because all the necessary
16851 fields won't fit in N_Extended_Return_Statement.
16852 Generic_associations now carry the Box_Present flag, to indicate a
16853 default for an actual in a partially parametrized formal package.
16855 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
16856 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
16857 and for the new predefined dispatching policies: EDF_Across_Priorities,
16858 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
16859 Introduce new name Stub_Type for implementation defined attribute.
16860 Add pragma Preelaborable_Initialization
16861 Add entry for Priority attribute.
16862 Add Pragma_Wide_Character_Encoding
16863 (Get_Convention_Name): Given a convention id, this function returns the
16864 corresponding name id from the names table.
16866 2006-10-31 Ed Schonberg <schonberg@adacore.com>
16867 Robert Dewar <dewar@adacore.com>
16868 Bob Duff <duff@adacore.com>
16870 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
16871 print null exclusion twice in the case of an access definition,
16872 Implement new -gnatL switch
16873 Remove N_Return_Object_Declaration. We now use
16874 N_Object_Declaration instead. Implement the case for
16875 N_Extended_Return_Statement. Alphabetize the cases.
16876 Add cases for new nodes N_Extended_Return_Statement and
16877 N_Return_Object_Declaration. The code is not yet written.
16878 Update the output for N_Formal_Object_Declaration
16879 and N_Object_Renaming_Declaration.
16880 (Write_Itype): Account for the case of a modular integer subtype whose
16881 base type is private.
16883 2006-10-31 Arnaud Charlet <charlet@adacore.com>
16885 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
16886 Remove elaboration code, now done in the binder.
16888 * s-rident.ads: Make this unit Preelaborate.
16889 (No_Restrictions): New constant used to clean up code and follow
16890 preelaborate constraints.
16893 Add System.Restrictions dependence, referenced directly from the
16894 binder generated file.
16896 2006-10-31 Gary Dismukes <dismukes@adacore.com>
16898 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
16899 True when AAMP extended floating-point is in use (48-bit). Change type
16900 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
16901 the two byte array types on AFloat. Change type of IV_Ilf overlay
16902 variable from Byte8 to ByteLF. Add appropriate initializations of
16903 floating-point overlays for AAMP cases.
16905 2006-10-31 Javier Miranda <miranda@adacore.com>
16907 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
16908 (Get_Ceiling): New subprogram that returns
16909 the ceiling priority of the protected object.
16910 (Set_Ceiling): New subprogram that sets the new ceiling priority of
16911 the protected object.
16913 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
16915 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
16917 2006-10-31 Jose Ruiz <ruiz@adacore.com>
16919 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
16920 requeuing to the same protected object to give higher priority tasks
16921 the opportunity to execute.
16923 2006-10-31 Robert Dewar <dewar@adacore.com>
16925 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
16926 add more precise check for the character sequence that follows '[' to
16927 avoid possible confusion in case if '[' is the last character of a
16929 (Scan_Wide): Always allow brackets encoding
16931 2006-10-31 Olivier Hainque <hainque@adacore.com>
16933 * s-stchop.ads: make this unit preelaborate. This is desirable in
16934 general and made mandatory by the use of this unit by s-taprop which
16935 is itself preelaborate.
16937 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
16938 Td_Events component.
16940 2006-10-31 Vincent Celier <celier@adacore.com>
16942 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
16945 2006-10-31 Vincent Celier <celier@adacore.com>
16947 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
16949 2006-10-31 Vincent Celier <celier@adacore.com>
16951 * makegpr.adb (Check_Compilation_Needed): Take into account path names
16953 (Check_Compilation_Needed): When checking a C or C++ source, do not
16954 resolve symbolic links.
16955 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
16956 When not in verbose mode and Ellipse is True, display "..." for the
16957 first argument with Display set to False.
16958 (Build_Global_Archive): Always set Display True for the first object
16959 file. Call Display_Command with Ellipse set to True.
16961 2006-10-31 Matt Heaney <heaney@adacore.com>
16963 * a-crbtgo.ads: Commented each subprogram
16965 * a-crbtgo.adb: Added reference to book from which algorithms were
16968 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
16969 indicate which child.
16970 (Generic_Conditional_Insert): changed parameter name from "Success" to
16972 (Generic_Unconditional_Insert_With_Hint): improved algorithm
16974 * a-coorse.adb (Replace_Element): changed parameter name in call to
16975 conditional insert operation.
16977 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
16979 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
16982 * a-ciorse.adb (Replace_Element): changed parameter name in call to
16983 conditional insert operation.
16985 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
16988 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
16989 instead of mode inout.
16991 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
16993 (Generic_Read): preserve existing buckets array if possible
16994 (Generic_Write): don't send buckets array length anymore
16996 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
16997 instead of mode inout.
16999 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
17000 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
17002 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
17003 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
17004 (Replace_Element): local operation is now an instantiation
17006 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
17007 check current length.
17008 (Generic_Replace_Element): new operation
17010 2006-10-31 Doug Rupp <rupp@adacore.com>
17012 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
17013 Call TBK$SYMBOLIZE without omitting parameters.
17015 2006-10-31 Vincent Celier <celier@adacore.com>
17017 * symbols-processing-vms-ia64.adb,
17018 symbols-processing-vms-alpha.adb (Process): Do not include symbols
17019 that come from generic instantiations in bodies.
17021 2006-10-31 Pat Rogers <rogers@adacore.com>
17023 * a-rttiev.ads, a-rttiev.adb:
17024 This is a significant redesign primarily for the sake of automatic
17025 timer task termination but also to fix a design flaw.
17026 Therefore we are now using an RTS lock, instead of a protected
17027 object, to provide mutual exclusion to the queue of pending events
17028 and the type Timing_Event is no longer a protected type.
17030 2006-10-31 Robert Dewar <dewar@adacore.com>
17031 Cyrille Comar <comar@adacore.com>
17032 Ben Brosgol <brosgol@adacore.com>
17034 * debug.adb: Update flags documentation
17036 * gnat_ugn.texi: Add documentation for new -gnatwq switch
17037 Clean up documentation for several other warning switches
17038 Clarify how task stack size can be specified with various
17039 versions of Windows.
17040 Add note that -gnatVo includes ranges including loops
17041 Add documentation for -gnatL switch
17042 Add note on elaboration warning for initializing variables
17043 Add documentation for new -gnatwt warning switch
17044 Document new form of pragma Warnings (On|Off, string)
17045 Add comment on use of pragma Warnings to control warnings
17046 Add documentation for -gnatjnn switch
17047 Modify section on interfacing with C for VMS 64-bit.
17048 Add doc for -gnatVe/E
17049 Add documentation of new warning flags -gnatww/-gnatwW
17050 Add warnings about address clause overlays to list of warnings
17051 (Exception Handling Control): Document that the option --RTS must be
17052 used consistently for gcc and gnatbind.
17053 Clarify that inlining is not always possible
17054 Update documentation on pragma Unchecked_Union.
17057 Add documentation for new extended version of pragma Obsolescent
17058 Add documentation for implementation defined attribute 'Stub_Type.
17059 Add note on use of Volatile in asm statements
17060 Add documentation on use of pragma Unreferenced in context clause
17061 Document new form of pragma Warnings (On|Off, pattern)
17062 Document pragma Wide_Character_Encoding
17063 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
17064 enforced if code generation is active.
17065 Add section on pragma Suppress to document GNAT specific check
17067 Clarify difference between No_Dispatching_Calls & No_Dispatch.
17068 Add documentation for pragma Restrictions (No_Elaboration_Code)
17071 Add comments on layout of subprogram local variables in the
17072 presence of nested subprograms.
17074 * ug_words: Resync.
17076 * elists.ads: Minor reformatting
17077 Node returns Node_Or_Entity_Id (doc change only)
17079 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
17081 * g-arrspl.ads (Create): Update comments.
17083 * sem.ads: Add details on the handling of the scope stack.
17085 * usage.adb: Update documentation.
17087 * validsw.ads, validsw.adb:
17088 Add definition of Validity_Check_Components and implement -gnatVe/E
17090 * vms_data.ads: Add missing VMS qualifiers.
17092 * s-addope.ads: Add documentation on overflow and divide by zero
17094 2006-10-31 Robert Dewar <dewar@adacore.com>
17095 Thomas Quinot <quinot@adacore.com>
17096 Arnaud Charlet <charlet@adacore.com>
17098 * fmap.adb: Put routines in alpha order
17100 * g-boumai.ads: Remove redundant 'in' keywords
17102 * g-cgi.adb: Minor reformatting
17104 * g-cgi.ads: Remove redundant 'in' keywords
17106 * get_targ.adb: Put routines in alpha order
17108 * prj-attr.ads: Minor reformatting
17110 * s-atacco.ads: Minor reformatting
17112 * scn.adb: Put routines in alpha order
17114 * sinput-l.adb: Minor comment fix
17116 * sinput-p.adb: Minor comment fix
17118 * s-maccod.ads: Minor reformatting
17120 * s-memory.adb: Minor reformatting
17122 * s-htable.adb: Fix typo in comment.
17124 * s-secsta.adb: Minor comment update.
17126 * s-soflin.adb: Minor reformatting
17129 Add comment about odd qualification in Storage_Offset declaration
17132 Remove unnecessary 'in' keywords for formal parameters.
17134 * treeprs.adt: Minor reformatting
17136 * urealp.adb: Put routines in alpha order
17138 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
17141 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
17143 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
17145 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
17146 workaround as on other platforms.
17148 * g-eacodu-vms.adb: Remove redundant 'in' keywords
17149 * g-expect-vms.adb: Remove redundant 'in' keywords
17151 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
17152 clear error message if the list-of-files file cannot be opened.
17154 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
17155 equality operator is always visible.
17157 * lang.opt: Woverlength-strings: New option.
17160 Update copyright, since nmake.ads and nmake.adb have changed.
17162 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
17163 (Binder_Output_Time_Stamps_Set): removed.
17164 (Old_Binder_Output_Time_Stamp): idem.
17165 (New_Binder_Output_Time_Stamp): idem.
17166 (Recording_Time_From_Last_Bind): idem.
17167 (Recording_Time_From_Last_Bind): Make constant.
17169 * output.ads, output.adb (Write_Str): Allow LF characters
17170 (Write_Spaces): New procedure
17172 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
17174 * inline.adb: Minor reformatting
17176 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
17178 * s-mastop-vms.adb: Remove redundant 'in' keywords
17180 * s-osprim-vms.adb: Remove redundant 'in' keywords
17182 * s-trafor-default.adb: Remove redundant 'in' keywords
17184 * 9drpc.adb: Remove redundant 'in' keywords
17186 * s-osinte-mingw.ads: Minor reformatting
17188 * s-inmaop-posix.adb: Minor reformatting
17190 * a-direio.ads: Remove quotes from Compile_Time_Warning message
17192 * a-exexda.adb: Minor code reorganization
17194 * a-filico.adb: Minor reformatting
17196 * a-finali.adb: Minor reformatting
17198 * a-nudira.ads: Remove quote from Compile_Time_Warning message
17200 * a-numeri.ads: Minor reformatting
17202 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
17204 * exp_pakd.ads: Fix obsolete comment
17206 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
17207 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
17208 Probably not a bug, but certainly neater and more efficient.
17210 * a-tienio.adb: Minor reformatting
17212 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
17213 Avoid assuming low bound of string is 1.
17215 * gnatbind.adb: Change Bindusg to package and rename procedure as
17216 Display, which now ensures that it only outputs usage information once.
17217 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
17219 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
17222 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
17224 (Match): Add pragma Assert to ensure that Matches'First is zero
17226 * g-regpat.ads (Match): Document that Matches lower bound must be zero
17228 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
17229 documented preconditions (also kills warnings about bad indexes).
17231 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
17233 (Build_Import_Library): Ditto;
17235 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
17237 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
17239 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
17240 lower bound of choice table is 1.
17242 * sem_case.ads (Analyze_Choices): Document that lower bound of
17245 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
17248 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
17249 and add appropriate Assert pragma to suppress warnings.
17251 * atree.h, atree.ads, atree.adb
17252 Change Elist24 to Elist25
17253 Add definitions of Field28 and Node28
17254 (Traverse_Field): Use new syntactic parent table in sinfo.
17256 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
17258 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
17260 * exp_tss.adb: Put routines in alpha order
17262 * fe.h: Remove redundant declarations.
17264 2006-10-23 Rafael Avila de Espindola <rafael.espindola@gmail.com>
17266 * utils.c (builtin_function): Rename to gnat_builtin_function.
17267 Move common code to add_builtin_function.
17268 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
17269 gnat_builtin_function.
17270 * gigi.h (builtin_function): Rename to gnat_builtin_function.
17271 Change the signature.
17273 2006-10-16 Brooks Moses <bmoses@stanford.edu>
17275 * Makefile.in: Add TEXI2PDF definition.
17276 * Make-lang.in: Add "ada.pdf" target.
17278 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
17280 * decl.c, utils.c: Fix comment typos.
17281 * utils.c: Fix a typo.
17283 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
17285 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
17286 on "pure" Ada subprograms if SJLJ exceptions are used.
17287 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
17288 on the declaration node of JMPBUF_SAVE.
17289 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
17290 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
17291 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
17293 2006-08-20 Laurent Guerby <laurent@guerby.net>
17296 g-socket.adb (Bind_Socket): Call Set_Address.
17298 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
17301 * decl.c (same_discriminant_p): New static function.
17302 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
17303 subtype and we have discriminants, fix up the COMPONENT_REFs
17304 for the discriminants to make them reference the corresponding
17305 fields of the parent subtype after it has been built.
17307 2006-09-15 Roger Sayle <roger@eyesopen.com>
17310 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
17311 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
17313 2006-09-13 Olivier Hainque <hainque@adacore.com>
17316 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
17317 of a SAVE_EXPR, just make the operand addressable/not-readonly and
17318 let the common gimplifier code make and propagate a temporary copy.
17319 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
17320 out/in-out actuals and defer setting the addressable/readonly bits
17323 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
17326 * decl.c (components_to_record): Defer emitting debug info for the
17327 record type associated with the variant until after we are sure to
17330 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
17333 * gigi.h (gnat_internal_attribute_table): Declare.
17334 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
17335 * utils.c (gnat_internal_attribute_table): New global variable.
17336 (builtin_function): Always call decl_attributes on the builtin.
17337 (handle_const_attribute): New static function.
17338 (handle_nothrow_attribute): Likewise.
17340 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
17342 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
17344 2006-06-23 Olivier Hainque <hainque@adacore.com>
17346 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
17347 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
17349 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
17350 Eric Botcazou <ebotcazou@adacore.com>
17353 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
17354 check-gnat into check-acats.
17356 2006-06-17 Karl Berry <karl@gnu.org>
17358 * gnat-style.texi (@dircategory): Use "Software development"
17359 instead of "Programming", following the Free Software Directory.
17361 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17364 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
17366 2006-06-06 Laurent Guerby <laurent@guerby.net>
17369 mlib-utl.adb: Use Program_Name.
17371 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
17373 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
17374 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
17375 trans.c, utils.c: Fix comment typos. Follow spelling
17377 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
17380 2006-05-19 Nicolas Setton <setton@adacore.com>
17382 * misc.c (gnat_dwarf_name): New function.
17383 (LANG_HOOKS_DWARF_NAME): Define to it.
17385 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
17387 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
17388 (ada/misc.o): Likewise.
17389 (ada/utils.o): Likewise.
17391 2006-04-08 Aurelien Jarno <aurel32@debian.org>
17393 * Makefile.in: Add Ada support for GNU/kFreeBSD.
17394 * s-osinte-kfreebsd-gnu.ads: New file.
17396 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
17398 * Make-lang.in: Rename docdir to gcc_docdir.
17400 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
17402 * gigi.h (get_ada_base_type): Delete.
17403 * utils2.c (get_ada_base_type): Likewise.
17404 * trans.c (convert_with_check): Operate in the real base type.
17406 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17408 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
17410 2006-03-02 Richard Sandiford <richard@codesourcery.com>
17412 * utils.c (create_var_decl): Use have_global_bss_p when deciding
17413 whether to make the decl common.
17415 2006-02-20 Rafael �vila de Esp�ndola <rafael.espindola@gmail.com>
17417 * Make-lang.in (Ada): Remove.
17418 (.PHONY): Remove Ada
17420 2006-02-17 Ed Schonberg <schonberg@adacore.com>
17422 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
17423 aggregate, check the interpretations of the other operand to find one
17424 that may be a boolean array.
17426 (Analyze_Selected_Component): Fix flow-of-control typo in case where
17427 the prefix is a private extension.
17429 2006-02-17 Eric Botcazou <botcazou@adacore.com>
17432 * utils2.c (find_common_type): If both input types are BLKmode and
17433 have the same constant size, keep using the first one.
17435 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
17437 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
17439 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
17441 2006-02-17 Jose Ruiz <ruiz@adacore.com>
17443 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
17444 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
17445 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
17446 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
17447 Abort_Defer/Undefer pairs to avoid the possibility of a task being
17448 aborted while owning a lock.
17450 2006-02-17 Javier Miranda <miranda@adacore.com>
17451 Robert Dewar <dewar@adacore.com>
17453 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
17454 through an access to class-wide interface we force the displacement of
17455 the pointer to the allocated object to reference the corresponding
17456 secondary dispatch table.
17457 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
17458 if Long_Shifts are supported on the target, even if 64 bit divides
17459 are not supported (configurable run time mode).
17460 (Expand_N_Type_Conversion): Do validity check if validity checks on
17461 operands are enabled.
17462 (Expand_N_Qualified_Expression): Do validity check if validity checks
17463 on operands are enabled.
17465 2006-02-17 Ed Schonberg <schonberg@adacore.com>
17467 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
17468 must be materialized when the renamed expression is an explicit
17471 2006-02-17 Ed Schonberg <schonberg@adacore.com>
17473 * freeze.adb (Statically_Discriminated_Components): Return false if
17474 the bounds of the type of the discriminant are not static expressions.
17476 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
17477 the bounds of the discriminant type are not static.
17479 2006-02-17 Robert Dewar <dewar@adacore.com>
17481 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
17482 then we close To if it is valid.
17484 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
17486 * init.c (facility_resignal_table): new array
17487 (__gnat_default_resignal_p): enhance default predicate to resignal if
17488 VMS condition has one of the predefined facility codes.
17490 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
17492 * Makefile.in: Use VMS64 specialized versions of several units in
17493 Interfaces.C hierarchy to be compatible with HP C default size choices.
17494 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
17496 2006-02-17 Ed Schonberg <schonberg@adacore.com>
17498 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
17499 instantiation, the corresponding entity is the related_instance of the
17500 wrapper package created for the instance.
17502 2006-02-17 Ed Schonberg <schonberg@adacore.com>
17504 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
17505 the current instance is nested within another instance in a child unit.
17507 2006-02-17 Javier Miranda <miranda@adacore.com>
17508 Ed Schonberg <schonberg@adacore.com>
17510 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
17511 type we cannot inherit the primitive operations; we inherit the
17512 Corresponding_Record_Type (which has the list of primitive operations).
17513 (Check_Anonymous_Access_Types): When creating anonymous access types for
17514 access components, use Rewrite in order to preserve the tree structure,
17516 (Analyze_Object_Declaration): For limited types with access
17517 discriminants with defaults initialized by an aggregate, obtain
17518 subtype from aggregate as for other mutable types.
17519 (Derived_Type_Declaration): If the derived type is a limited interface,
17520 set the corresponding flag (Is_Limited_Record is not sufficient).
17522 2006-02-17 Ed Schonberg <schonberg@adacore.com>
17524 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
17525 to inline a function that returns an unconstrained type, the return
17526 expression must be the first variable declared in the body of the
17529 2006-02-17 Javier Miranda <miranda@adacore.com>
17531 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
17532 abstract interface type, the static analysis is not enough to know if
17533 the interface is implemented or not by the source tagged type. Hence
17534 we must pass the work to the expander to generate the required code to
17535 evaluate the conversion at run-time.
17536 (Resolve_Equality_Op): Do not apply previous
17537 transformation if expansion is disasbled, to prevent anomalies when
17538 locating global references in a generic unit.
17540 2006-02-17 Vincent Celier <celier@adacore.com>
17542 * snames.ads, snames.adb: New standard names for new project attributes:
17543 archive_builder, archive_indexer, compiler_pic_option,
17544 config_body_file_name, config_body_file_name_pattern,
17545 config_file_switches, config_file_unique, config_spec_file_name,
17546 config_spec_file_name_pattern, default_builder_switches,
17547 default_global_compiler_switches, default_language,
17548 dependency_file_kind, global_compiler_switches, include_path,
17549 include_path_file, language_kind, linker_executable_option,
17550 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
17551 roots, runtime_project.
17553 2006-02-17 Matthew Heaney <heaney@adacore.com>
17555 * a-convec.ads, a-convec.adb:
17556 (operator "&"): handle potential overflow for large index types
17557 (Insert): removed Contraint_Error when using large index types
17558 (Insert_Space): removed Constraint_Error for large index types
17559 (Length): moved constraint check from Length to Insert
17561 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
17562 as not null access.
17563 Explicit raise statements now include an exception message.
17564 (operator "&"): handle potential overflow for large index types
17565 (Insert): removed Contraint_Error when using large index types
17566 (Insert_Space): removed Constraint_Error for large index types
17567 (Length): moved constraint check from Length to Insert
17569 2006-02-17 Robert Dewar <dewar@adacore.com>
17571 * s-wchcnv.adb: Document handling of [ on output (we do not change
17572 this to ["5B"] and the new comments say why not.
17575 Add note for -gnatVo that this now includes the cases of type
17576 conversions and qualified expressions.
17577 Add comments on handling of brackets encoding for Text_IO
17579 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
17580 Thomas Quinot <quinot@adacore.com>
17581 Robert Dewar <dewar@adacore.com>
17582 Javier Miranda <miranda@adacore.com>
17584 * expander.adb: Fix typo in comment
17586 * exp_pakd.adb: Fix typo
17587 Minor comment reformatting.
17589 * g-dyntab.adb: Minor reformatting
17591 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
17592 aliased subprograms to look for the abstract interface subprogram.
17594 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
17596 * env.c (__gnat_setenv): Use size_t.
17597 (__gnat_unsetenv): Likewise.
17598 (__gnat_clearenv): Likewise.
17600 2006-02-16 Arnaud Charlet <charlet@adacore.com>
17602 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
17604 2006-02-13 Arnaud Charlet <charlet@adacore.com>
17606 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
17607 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
17608 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
17609 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
17610 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
17611 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
17612 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
17613 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
17614 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
17617 2006-02-13 Jose Ruiz <ruiz@adacore.com>
17619 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
17620 protection against race conditions is not needed.
17621 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
17623 (Set_Specific_Handler): Add mutual exclusive access to the specific
17625 (Specific_Handler): Add mutual exclusive access for retrieving the
17628 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
17631 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
17632 Fall_Back_Handler and Specific_Handler.
17634 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
17635 termination handlers.
17636 Set two different owerflow depending on the maximal stack size.
17638 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
17639 protection against race conditions is not needed when executing the
17640 task termination handler.
17642 2006-02-13 Robert Dewar <dewar@adacore.com>
17644 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
17645 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
17646 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
17647 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
17648 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
17649 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
17650 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
17651 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
17652 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
17653 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
17654 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
17655 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
17656 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
17657 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
17658 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
17659 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
17660 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
17661 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
17662 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
17663 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
17664 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
17665 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
17666 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
17667 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
17668 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
17669 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
17670 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
17671 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
17672 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
17673 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
17674 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
17675 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
17676 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
17677 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
17680 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
17682 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
17683 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
17684 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
17685 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
17686 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
17687 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
17688 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
17689 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
17690 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
17692 2006-02-13 Arnaud Charlet <charlet@adacore.com>
17694 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
17695 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
17696 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
17697 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
17698 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
17699 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
17700 replaced by anonymous access type.
17701 (pthread_sigmask): Now take an access sigset_t
17703 * s-osinte-hpux.ads: Ditto.
17704 (pthread_mutex_t, pthread_cond_t): Update definitions to support
17705 properly 32 and 64 bit ABIs.
17707 2006-02-13 Pascal Obry <obry@adacore.com>
17709 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
17710 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
17711 s-taprop-linux.adb, s-taprop-solaris.adb,
17712 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
17713 adjustement is already done when calling this routine.
17715 2006-02-13 Pascal Obry <obry@adacore.com>
17717 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
17718 table to take advantage of the 16 priority levels available on Windows
17719 2000 and XP. On NT4 there are only 7 priority levels, this is properly
17720 supported by this new mapping.
17722 2006-02-13 Nicolas Setton <setton@adacore.com>
17724 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
17725 (get_encoding): New subprogram. Extracts the encodings from an encoded
17728 2006-02-13 Pascal Obry <obry@adacore.com>
17729 Nicolas Roche <roche@adacore.com>
17730 Arnaud Charlet <charlet@adacore.com>
17732 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
17734 (__gnat_try_lock): Add unicode support by using a specific section on
17736 (__gnat_get_current_dir): Idem.
17737 (__gnat_open_read): Idem.
17738 (__gnat_open_rw): Idem.
17739 (__gnat_open_create): Idem.
17740 (__gnat_create_output_file): Idem.
17741 (__gnat_open_append): Idem.
17742 (__gnat_open_new): Idem.
17743 (__gnat_file_time_name): Idem.
17744 (__gnat_set_file_time_name): Idem.
17745 (__gnat_stat): Idem.
17746 (win32_no_block_spawn): Idem.
17747 (__gnat_locate_exec_on_path): Idem.
17748 (__gnat_opendir): New routine.
17749 (__gnat_closedir): Idem.
17750 (__gnat_readdir): Add new parameter length (pointer to int). Update
17751 implementation to use it and add specific Win32 code for Unicode
17753 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
17754 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
17755 (convert_addresses): Do not define this dummy routine on VMS.
17757 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
17758 runtime Unicode support will be activated.
17759 (S2WS): String to Wide-String conversion. This version just copy a
17760 string in non Unicode version.
17761 (WS2S): Wide-String to String conversion. This version just copy a
17762 string in non Unicode version.
17764 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
17765 (Open): Now import __gnat_opendir from adaint.c.
17766 (Read): Change the implementation to support unicode characters. It is
17767 not possible to use strlen() on Windows as this version supports only
17768 standard ASCII characters. So the length of the directory entry is now
17769 returned from the imported __gnat_readdir routine.
17770 Update copyright notice.
17772 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
17773 (opendir): Moved to adaint.c.
17775 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
17776 (Get_Directory): Fix wrong indexing.
17777 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
17778 __gnat_getenv from env.c
17779 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
17782 * env.h, env.c: New file.
17784 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
17785 adaint.c by __gnat_getenv from env.c
17787 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
17788 adaint.c by __gnat_getenv from env.c
17790 * Make-lang.in: Add env.o in the list of C object needed by gnat1
17792 Update dependencies.
17794 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17795 Olivier Hainque <hainque@adacore.com>
17796 Eric Botcazou <ebotcazou@adacore.com>
17798 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
17800 * gigi.h (value_factor_p): Add prototype and description, now public.
17802 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
17803 promotion for field with rep clause if the associated size was proven
17805 Expand comments describing attempts to use a packable type.
17806 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
17807 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
17808 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
17809 necessary since these are not different types and pointers may
17810 actually designate any subtype in this hierarchy.
17811 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
17812 discriminants but put them into record only if not Unchecked_Union;
17813 pass flag to components_to_record showing Unchecked_Union.
17814 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
17815 components before variants; don't set TYPE_UNCHECKED_UNION_P.
17816 (components_to_record): New argument UNCHECKED_UNION.
17817 Remove special case code for Unchecked_Union and instead use main code
17818 with small changes.
17821 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
17822 variable with the expression being built, only its inner field.
17824 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
17825 emit_sequence_entry_statements.
17826 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
17827 (establish_gnat_vms_condition_handler): Move before
17828 Subprogram_Body_to_gnu.
17829 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
17830 for a subprogram if it has a foreign convention or is exported.
17831 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
17832 substituted for a CONST_DECL.
17833 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
17834 Etype to assoc_to_constructor.
17835 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
17836 discriminants of Unchecked_Union.
17837 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
17838 don't need cluttering preprocessor directives.
17839 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
17840 condition handler as current in the compiled function.
17841 (body_with_handlers_p): New function. Tell whether a given sequence of
17842 statements node is attached to a package or subprogram body and involves
17843 exception handlers possibly nested within inner block statements.
17844 (emit_sequence_entry_statements): New function, to emit special
17845 statements on entry of sequences when necessary. Establish GNAT
17846 condition handler in the proper cases for VMS.
17847 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
17848 emit_sequence_entry_statements.
17850 * utils2.c (find_common_type): If both input types are BLKmode and
17851 have a constant size, use the smaller one.
17852 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
17855 * utils.c (value_factor_p): Make public, to allow uses from other gigi
17857 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
17858 (convert, case UNION_TYPE): Remove special treatment for unchecked
17862 (update_pointer_to): Update variants of pointer types to unconstrained
17863 arrays by attaching the list of fields of the main variant.
17865 2006-02-13 Arnaud Charlet <charlet@adacore.com>
17866 Robert Dewar <dewar@adacore.com>
17868 * a-exexpr.adb, a-exexpr-gcc.adb
17869 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
17870 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
17871 Remove code unused for exception propagation for the compiler itself
17872 from a-except.adb and update to still share separate packages.
17874 * a-except.ads, a-except.adb: Ditto.
17875 Add comments that this version is now used only by the compiler and
17876 other basic tools. The full version that includes the Ada 2005 stuff
17877 is in separate files a-except-2005.ads/adb. The reason is that we do
17878 not want to cause bootstrap problems with compilers not recognizing
17880 Add exception reason code PE_Implicit_Return
17881 Add new exception reason code (Null Exception_Id)
17883 * a-except-2005.adb, a-except-2005.ads: New files.
17885 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
17887 * s-wchcon.adb: New file.
17889 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
17890 (traceback.o deps): Likewise.
17891 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
17892 Activate build of GMEM instrumentation library on VMS targets.
17893 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
17894 Use a-except-2005.ads/adb for all run-time library builds unless
17895 specified otherwise.
17896 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
17897 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
17898 Use s-parame.adb on all native platforms.
17899 Use s-parame-vxworks.adb on all vxworks platforms.
17900 Add env.c env.h in LIBGNAT_SRCS
17901 Add env.o in LIBGNAT_OBJS
17902 (GNATMAKE_OBJS): Remove ctrl_c.o object.
17903 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
17904 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
17905 supports VxWorks 6 RTPs.
17906 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
17907 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
17909 * types.h, types.ads (Terminate_Program): New exception
17910 Add comment on modifying multiple versions of a-except.adb when the
17911 table of exception reasons is modified.
17912 Add exception reason code PE_Implicit_Return
17913 Add new exception reason code (Null Exception_Id)
17915 * clean.adb (Initialize): Get the target parameters before checking
17916 if target is OpenVMS. Move the OpenVMS specific code here from package
17917 body elaboration code.
17919 2006-02-13 Thomas Quinot <quinot@adacore.com>
17920 Vincent Celier <celier@adacore.com>
17921 Robert Dewar <dewar@adacore.com>
17923 * ali-util.adb (Get_File_Checksum): Update to account for change in
17924 profile of Initialize_Scanner.
17926 * gprep.adb (Gnatprep): Update to account for change in profile of
17927 Initialize_Scanner.
17928 (Process_One_File): Same.
17930 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
17931 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
17932 that behaviour using the new Unit information recorded in the source
17933 files table, rather than going through all units every time.
17934 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
17935 (Get_Source_Unit): Same.
17937 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
17938 change in profile of Initialize_Scanner.
17939 (Prepare_To_Preprocess): Same.
17941 * lib.ads: Fix typo in comment (templace -> template).
17943 * prj-part.adb (Parse_Single_Project): Update to account for change in
17944 profile of Initialize_Scanner.
17946 * scn.adb (Initialize_Scanner): Account for change in profile of
17947 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
17948 Also record the association of the given Source_File_Index to the
17949 corresponding Unit_Number_Type.
17951 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
17953 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
17954 Remove Unit formal for generic scanner: this formal
17955 is only relevant to Scn (the scanner instance used to parse Ada source
17956 files), not to other instances. Update comment accordingly.
17957 (Scan): Use new function Snames.Is_Keyword_Name.
17959 * sinfo-cn.adb: Fix typo in comment.
17961 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
17964 * sinput.ads (Source_File_Record): New component Unit, used to capture
17965 the unit identifier (if any) associated to a source file.
17967 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
17968 Unit in Source_File_Record.
17970 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
17971 in profile of Initialize_Scanner.
17973 * scans.adb (Initialize_Ada_Keywords): New procedure
17975 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
17976 Ada keywords in the Namet table, without the need to call
17977 Initialize_Scanner.
17979 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
17980 (Is_Keyword_Name): New function
17982 * snames.ads: Add subtype Configuration_Pragma_Names
17983 Add pragma Ada_2005 (synonym for Ada_05)
17984 (Is_Keyword_Name): New function
17986 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
17988 2006-02-13 Arnaud Charlet <charlet@adacore.com>
17990 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
17993 * a-stwima.adb (To_Set): Add extra check when N = 0.
17995 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
17997 2006-02-13 Arnaud Charlet <charlet@adacore.com>
17999 * s-parame-mingw.adb, s-parame-linux.adb,
18000 s-parame-solaris.adb: Removed, replaced by s-parame.adb
18002 * s-parame-vxworks.ads: Fix typo.
18004 * s-parame-vxworks.adb: New file.
18006 * s-parame.adb: Version now used by all native platforms.
18007 (Default_Stack_Size): Use 2 megs for default stack size and use
18008 __gl_default_stack_size when available.
18009 (Minimum_Stack_Size): Use 12K.
18011 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
18012 (Create_Task): Refine implementation taking advantage of the XP stack
18013 size support. On XP, we now create the thread using the flag
18014 STACK_SIZE_PARAM_IS_A_RESERVATION.
18016 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
18018 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
18019 XP and 0 on older Windows versions.
18021 * interfac-vms.ads: Removed, no longer used.
18023 2006-02-13 Matthew Heaney <heaney@adacore.com>
18025 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
18026 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
18027 a-cohase.adb: All explicit raise statements now include an exception
18030 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
18031 (Update_Element_Preserving_Key): renamed op to just Update_Element.
18032 Explicit raise statements now include an exception message
18034 * a-cihase.ads, a-cohase.ads: Removed comment.
18036 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
18037 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
18038 a-szbzha.adb, a-szfzha.ads: New files.
18040 2006-02-13 Matthew Heaney <heaney@adacore.com>
18042 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
18045 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
18047 * lang.opt: Wvariadic-macros: New option.
18048 Wold-style-definition: Likewise.
18049 Wmissing-format-attribute: Likewise.
18051 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
18052 -Wold-style-definition and -Wmissing-format-attribute.
18054 2006-02-13 Robert Dewar <dewar@adacore.com>
18056 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
18058 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
18060 2006-02-13 Nicolas Roche <roche@adacore.com>
18062 * a-envvar.adb, a-envvar.ads: New files.
18064 2006-02-13 Douglas Rupp <rupp@adacore.com>
18066 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
18068 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
18070 2006-02-13 Pat Rogers <rogers@adacore.com>
18072 * a-rttiev.adb, a-rttiev.ads: New files.
18074 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
18076 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
18077 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
18079 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
18081 2006-02-13 Robert Dewar <dewar@adacore.com>
18083 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
18084 sem_case.adb: Minor code reorganization (not Present should be No)
18086 2006-02-13 Geert Bosch <bosch@adacore.com>
18087 Gary Dismukes <dismukes@adacore.com>
18089 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
18090 0, since the lower bound of the actual string may be greater than one.
18093 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
18094 layout is requested.
18096 2006-02-13 Vincent Celier <celier@adacore.com>
18098 * back_end.adb (Scan_Compiler_Arguments): Check if
18099 Search_Directory_Present is True and, if it is, add the argument in
18100 the source search directory path.
18102 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
18103 Search_Directory_Present to True.
18105 2006-02-13 Joel Brobecker <brobecke@adacore.com>
18107 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
18108 volatile, to tell the compiler to preserve this variable at any level
18110 (Gen_Versions_Ada): Temporarily work around codegen bug.
18112 2006-02-13 Vincent Celier <celier@adacore.com>
18114 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
18115 gcc to link with option -shared-libgcc.
18116 (Gnatlink): Remove duplicate switches -shared-libgcc
18118 2006-02-13 Robert Dewar <dewar@adacore.com>
18120 * gnatvsn.ads (Current_Year): New constant, used to easily update
18121 copyright on all GNAT tools.
18123 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
18126 2006-02-13 Robert Dewar <dewar@adacore.com>
18128 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
18129 after hyphen (small aesthetic change useful for a range of numbers
18131 Suppress range checks for a couple of assignments which otherwise
18132 cause validity checks with validity checking turned on.
18134 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
18135 Improvement in error message for object.
18136 (Rep_Item_Too_Late): Remove '!' in warning message.
18138 2006-02-13 Robert Dewar <dewar@adacore.com>
18139 Eric Botcazou <ebotcazou@adacore.com>
18141 * err_vars.ads: Suppress range checks for a couple of assignments
18142 which otherwise cause validity checks with validity checking turned on.
18145 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
18146 Make message unconditional if it is a warning.
18147 (Error_Msg_NEL): Always output warning messages.
18148 Suppress range checks for a couple of assignments which otherwise
18149 cause validity checks with validity checking turned on.
18151 * errout.ads (Message Insertion Characters): Document that '!' is
18152 implied by '?' in error messages.
18154 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
18155 (Gnat1drv): Use a goto to end of main subprogram instead of
18156 Exit_Program (E_Success) so that finalization can occur normally.
18158 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
18160 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
18163 2006-02-13 Vincent Celier <celier@adacore.com>
18165 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
18166 Unchecked_Conversion functions.
18167 (Modification_Time): Use direct conversion of OS_Time to Calendar time
18168 when OpenVMS returns False.
18170 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
18171 a-dirval.adb (OpenVMS): New Boolean function
18173 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18174 Thomas Quinot <quinot@adacore.com>
18176 * checks.adb (Build_Discriminant_Checks): If the expression being
18177 checks is an aggregate retrieve the values of its discriminants to
18178 generate the check, rather than creating a temporary and a reference
18180 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
18181 (Install_Null_Excluding_Check): Ditto
18182 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
18183 not for the renamed object, so that the actual itype is attached in the
18186 2006-02-13 Robert Dewar <dewar@adacore.com>
18187 Vincent Celier <celier@adacore.com>
18189 * debug.adb: Eliminate numeric switches for binder/gnatmake
18191 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
18192 switches for the compiler.
18193 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
18194 (Scan_Make_Switches): When failing with an illegal switch, output an
18195 error message with the full switch.
18196 Eliminate numeric switches for binder/gnatmake
18198 * switch.ads, switch.adb (Bad_Switch): New procedure
18200 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
18201 Remove 0-9 as debug flag character possibilities
18202 -d is now controlling the primary stack size when its value is a
18203 positive. Also add checks against invalid values, and support for kb,
18204 mb. Ditto for -D switch.
18206 2006-02-13 Robert Dewar <dewar@adacore.com>
18207 Serguei Rybin <rybin@adacore.com>
18209 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
18210 save/restore routines.
18211 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
18212 were not always properly handled previously.
18213 Since we are changing the tree format anyway, also get rid of the
18214 junk obsolete Immediate_Errors flag.
18215 (Tree_Read): Change the way of reading Tree_Version_String - now we
18216 read the version string from the tree even if its length is not the
18217 same as the length of the version string computed from Gnatvsn.
18218 (Search_Directory_Present): New Boolean flag for the compiler.
18219 Define Tree_Version_String as a dynamic string.
18220 (Default_Stack_Size): new variable, used to handle switch -d.
18223 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
18224 only for main unit.
18225 Add pragma Ada_2005 (synonym for Ada_05)
18226 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
18227 were not always properly handled previously.
18229 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
18230 explicit Ada_95 to Ada_2005.
18232 2006-02-13 Javier Miranda <miranda@adacore.com>
18233 Robert Dewar <dewar@adacore.com>
18234 Ed Schonberg <schonberg@adacore.com>
18236 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
18237 against errors in the source program: a private types for which the
18238 corresponding full type declaration is missing and pragma CPP_Virtual
18240 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
18241 (Is_Known_Null): New flag
18242 (Has_Pragma_Pure): New flag
18243 (No_Return): Present in all entities, set only for procedures
18244 (Is_Limited_Type): A type whose ancestor is an interface is limited if
18245 explicitly declared limited.
18246 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
18247 entities. Only used for component marked Is_Tag. If present it stores
18248 the Offset_To_Top function used to provide this value in tagged types
18249 whose ancestor has discriminants.
18251 * exp_ch2.adb: Update status of new Is_Known_Null flag
18253 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
18255 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
18256 the categorization sense if Is_Pure was set by pragma Pure_Function.
18258 2006-02-13 Quentin Ochem <ochem@adacore.com>
18259 Olivier Hainque <hainque@adacore.com>
18261 * bindusg.adb: Updated documentation for -d and -D switches.
18263 * raise.h (__gnat_set_globals): added new parameter for
18264 Default_Stack_Size.
18266 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
18267 (__gnat_handle_vms_condition): Adjust context before raise.
18268 (__gnat_install_handler): Restore the global vector setup for GCC
18269 versions before 3.4, as the frame based circtuitry is not available
18271 (__gnat_set_globals): added a parameter default_stack_size
18272 (__gl_default_stack_size): new variable.
18274 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18276 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
18277 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
18278 does not exist in the Ada RM.
18279 (Compatible_Int_Bounds): Determine whether two integer range bounds
18280 are of equal length and have the same start and end values.
18281 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
18282 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
18283 aggregate when it is part of an object declaration.
18284 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
18285 constrains discriminants of its parent, add explicitly the discriminant
18286 constraints of the ancestor by retrieving them from the
18287 stored_constraint of the parent.
18289 2006-02-13 Robert Dewar <dewar@adacore.com>
18291 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
18292 attribute Mechanism_Code is applied to renamed subprogram, modify
18293 prefix to point to base subprogram.
18294 Max/Min attributes now violate Restriction No_Implicit_Conditionals
18296 * sinfo.ads: Document that Mechanism_Code cannot be applied to
18297 renamed subprograms so that the front-end must replace the prefix
18300 2006-02-13 Javier Miranda <miranda@adacore.com>
18301 Gary Dismukes <dismukes@adacore.com>
18303 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
18304 availability of RE_Interface_Tag.
18305 (Build_Initialization_Call): Fix wrong access to the discriminant value.
18306 (Freeze_Record_Type): Do not generate the tables associated with
18307 timed and conditional dispatching calls through synchronized
18308 interfaces if compiling under No_Dispatching_Calls restriction.
18309 When compiling for Ada 2005, for a nonabstract
18310 type with a null extension, call Make_Controlling_Function_Wrappers
18311 and insert the wrapper function declarations and bodies (the latter
18312 being appended as freeze actions).
18313 (Predefined_Primitive_Bodies): Do not generate the bodies of the
18314 predefined primitives associated with timed and conditional
18315 dispatching calls through synchronized interfaces if we are
18316 compiling under No_Dispatching_Calls.
18317 (Build_Init_Procedure): Use RTE_Available to check if a run-time
18318 service is available before generating a call.
18319 (Make_Controlling_Function_Wrappers): New procedure.
18320 (Expand_N_Full_Type_Declaration): Create a class-wide master for
18321 access-to-limited-interfaces because they can be used to reference
18322 tasks that implement such limited interface.
18323 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
18324 procedure spec and body of the Offset_To_Top function that is generated
18325 when the parent of a type with discriminants has secondary dispatch
18327 (Init_Secondary_Tags): Handle the case in which the parent of the type
18328 containing secondary dispatch tables has discriminants to generate the
18329 correct arguments to call Set_Offset_To_Top.
18330 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
18332 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
18333 Add Wide_[Wide_]Expanded_Name.
18334 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
18335 the same functionality of Get_Prim_Op_Address but applied to predefined
18336 primitive operations because the pointers to the predefined primitives
18337 are now saved in a separate table.
18338 (Parent_Size): Modified to get access to the separate table of primitive
18339 operations or the parent type.
18340 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
18341 functionality of Set_Prim_Op_Address but applied to predefined primitive
18343 (Set_Signature): New subprogram used to store the signature of a DT.
18344 (Displace): If the Offset_To_Top value is not static then call the
18345 function generated by the expander to get such value; otherwise use
18346 the value stored in the table of interfaces.
18347 (Offset_To_Top): The type of the actual has been changed to Address to
18348 give the correct support to tagged types with discriminants. In this
18349 case this value is stored just immediately after the tag field.
18350 (Set_Offset_To_Top): Two new formals have been added to indicate if the
18351 offset_to_top value is static and hence pass this value to the run-time
18352 to store it in the table of interfaces, or else if this value is dynamic
18353 and then pass to the run-time the address of a function that is
18354 generated by the expander to provide this value for each object of the
18357 * rtsfind.ads (Default_Prin_Op_Count): Removed.
18358 (Default_Prim_Op_Count): New entity
18359 (Get_Predefined_Prim_Op_Address): New entity
18360 (Set_Predefined_Prim_Op_Address): New entity
18361 (RE_Set_Signature): New entity
18363 2006-02-13 Thomas Quinot <quinot@adacore.com>
18364 Ed Schonberg <schonberg@adacore.com>
18366 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
18367 Make_Adjust_Call done for a newly-allocated object.
18369 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
18370 in a subprogram are wrapped in a cleanup block, indicate that the
18371 subprogram contains an inner block with an exception handler.
18372 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
18373 Adjust call is for a newly-allocated object. In that case we must not
18374 assume that the finalization list chain pointers are correct (since they
18375 come from a bit-for-bit copy of the original object's pointers) so if
18376 the attach level would otherwise be zero (no change), we set it to 4
18377 instead to cause the pointers to be reset to null.
18379 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
18380 reset chain pointers to null.
18382 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18384 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
18385 string, and the context requires a loop for the assignment (e.g.
18386 because the left-hand side is packed), generate a unique name for the
18387 temporary that holds the string, to prevent spurious name clashes.
18389 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18390 Javier Miranda <miranda@adacore.com>
18391 Robert Dewar <dewar@adacore.com>
18392 Gary Dismukes <dismukes@adacore.com>
18394 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
18395 return unconstrained arrays.
18397 (Expand_Call): An indirect call through an access parameter of a
18398 protected operation is not a protected call.
18399 Add circuit to raise CE in Ada 2005 mode following call
18400 to Raise_Exception.
18401 (Register_DT_Entry): Do nothing if
18402 the run-time does not give support to abstract interfaces.
18403 (Freeze_Subprogram): In case of dispatching operations, do not generate
18404 code to register the operation in the dispatch table if the source
18405 is compiled with No_Dispatching_Calls.
18406 (Register_Predefined_DT_Entry): Generate code that calls the new
18407 run-time subprogram Set_Predefined_Prim_Op_Address instead of
18408 Set_Prim_Op_Address.
18410 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
18411 on array assignments if the right-hand side is a function call that has
18412 been inlined. Check is performed on the assignment in the block.
18413 (Process_Bounds): If bounds and range are overloaded, apply preference
18414 rule for root operations to disambiguate, and diagnose true ambiguity.
18415 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
18416 a tag-indeterminate right-hand side even when Expander_Active is True.
18417 Needed to ensure that dispatching calls to T'Input are allowed and
18418 get the tag of the target class-wide object.
18420 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
18421 an inherited primitive operation that already overrides several
18422 abstract interface primitives. For transitivity, the new entity must
18423 also override all the abstract interface primitives covered by the
18424 inherited overriden primitive.
18425 Emit warning if new entity differs from homograph in same scope only in
18426 that one has an access parameter and the other one has a parameter of
18427 a general access type with the same designated type, at the same
18428 position in the signature.
18429 (Make_Inequality_Operator): Use source locations of parameters and
18430 subtype marks from corresponding equality operator when creating the
18431 tree structure for the implicit declaration of "/=". This does not
18432 change anything in behaviour except that the decoration of the
18433 components of the subtree created for "/=" allows ASIS to get the
18434 string images of the corresponding identifiers.
18435 (Analyze_Return_Statement): Remove '!' in warning message.
18436 (Check_Statement_Sequence): Likewise.
18437 (Analyze_Subprogram_Body): For an access parameter whose designated type
18438 is an incomplete type imported through a limited_with clause, use the
18439 type of the corresponding formal in the body.
18440 (Check_Returns): Implicit return in No_Return procedure now raises
18441 Program_Error with a compile time warning, instead of beging illegal.
18442 (Has_Single_Return): Function returning unconstrained type cannot be
18443 inlined if expression in unique return statement is not an identifier.
18444 (Build_Body_To_Inline): It is possible to inline a function call that
18445 returns an unconstrained type if all return statements in the function
18446 return the same local variable. Subsidiary procedure Has_Single_Return
18447 verifies that the body conforms to this restriction.
18449 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
18450 same type, and one of them is of an anonymous access type, convert
18451 the other operand to it, so that this is a valid binary operation for
18453 (Resolve_Type_Conversion): Handle subtypes of protected types and
18454 task types when accessing to the corresponding record type.
18455 (Resolve_Allocator): Add '\' in 2-line warning message.
18456 Remove '!' in warning message.
18457 (Resolve_Call): Add '\' in 2-line warning message.
18458 (Valid_Conversion): Likewise.
18459 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
18460 resulting type may be an access type with an implicit dereference.
18461 Obtain the proper component from the designated type.
18462 (Make_Call_Into_Operator): Handle properly a call to predefined equality
18463 given by an expanded name with prefix Standard, when the operands are
18464 of an anonymous access type.
18465 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
18466 Explicit_Dereference and Resolve_Selected_Component, to verify that the
18467 prefix of the expression is not of an incomplete type. Allows full
18468 diagnoses of all semantic errors.
18469 (Resolve_Actuals): If the actual is an allocator whose directly
18470 designated type is a class-wide interface we build an anonymous
18471 access type to use it as the type of the allocator. Later, when
18472 the subprogram call is expanded, if the interface has a secondary
18473 dispatch table the expander will add a type conversion to force
18474 the displacement of the pointer.
18475 (Resolve_Call): If a function that returns an unconstrained type is
18476 marked Inlined_Always and inlined, the call will be inlined and does
18477 not require the creation of a transient scope.
18478 (Check_Direct_Boolean_Op): Removed
18479 (Resolve_Comparison_Op): Remove call to above
18480 (Resolve_Equality_Op): Remove call to above
18481 (Resolve_Logical_Op): Inline above, since this is only call.
18482 (Valid_Conversion): Handle properly conversions between arrays of
18483 convertible anonymous access types.
18486 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
18487 the literal in an unchecked conversion, because GCC 4.x needs a static
18488 value for a string bound.
18490 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18491 Hristian Kirtchev <kirtchev@adacore.com>
18493 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
18494 components of the corresponding record, take into account component
18495 definitions that are access definitions.
18496 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
18497 procedure is not considered a dispatching call and will be expanded
18500 2006-02-13 Javier Miranda <miranda@adacore.com>
18502 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
18503 controlling argument of the dispatching call is an abstract interface
18504 class-wide type then we use it directly.
18505 Check No_Dispatching_Calls restriction.
18506 (Default_Prim_Op_Position): Remove the code that looks for the last
18507 entity in the list of aliased subprograms. This code was wrong in
18509 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
18510 when the source is compiled with the No_Dispatching_Calls restriction.
18511 (Init_Predefined_Interface_Primitives): No need to inherit primitives
18512 if we are compiling with restriction No_Dispatching_Calls.
18513 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
18514 subprograms if we are compiling under No_Dispatching_Calls restriction.
18515 (Make_DT): Generate a dispatch table with a single dummy entry if
18516 we are compiling with the No_Dispatching_Calls restriction. In
18517 addition, in this case we don't generate code that calls to the
18518 following run-time subprograms: Set_Type_Kind, Inherit_DT.
18519 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
18520 of this subprogram if compiling with the No_Dispatching_Calls
18522 (Expand_Type_Conversion): Instead of using the actual parameter,
18523 the argument passed as parameter to the conversion function was
18524 erroneously referenced by the expander.
18525 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
18526 Set_Predefined_Primitive_Op_Address and Set_Signature.
18527 (Expand_Dispatching_Call): Generate call to
18528 Get_Predefined_Prim_Op_Address for predefined primitives.
18529 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
18530 predefined primitives.
18531 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
18532 primitives we reserve one dummy entry to ensure that the tag does not
18533 point to some memory that is associated with some other object. In
18534 addition, remove all the old code that generated the assignments
18535 associated with the signature of the dispatch table and replace them
18536 by a call to the new subprogram Set_Signature.
18537 (Set_All_DT_Position): Change the algorithm because now we have a
18538 separate dispatch table associated with predefined primitive operations.
18539 (Expand_Interface_Conversion): In case of non-static offset_to_top
18540 add explicit dereference to get access to the object after the call
18541 to displace the pointer to the object.
18542 (Expand_Interface_Thunk): Modify the generation of the actual used
18543 in the calls to the run-time function Offset_To_Top to fulfil its
18545 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
18547 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18549 * exp_dist.adb (Copy_Specification): For access parameters, copy
18550 Null_Exclusion flag, which will have been set for stream subprograms
18553 2006-02-13 Pascal Obry <obry@adacore.com>
18555 * expect.c (__gnat_expect_portable_execvp): New implementation. The
18556 previous implementation was using the C runtime spawnve routine but
18557 the corresponding wait was using directly the Win32 API. This was
18558 causing some times a lock when waiting for an event using
18559 WaitForSingleObject in __gnat_waitpid. This new implementation uses
18560 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
18561 API fixes this problem.
18563 2006-02-13 Robert Dewar <dewar@adacore.com>
18565 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
18568 2006-02-13 Thomas Quinot <quinot@adacore.com>
18570 * exp_pakd.ads: Fix typos in comments.
18572 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
18573 array reference that is an explicit dereference, mark the converted
18574 (packed) array reference as analyzed to prevent a forthcoming
18575 reanalysis from resetting its type to the original (non-packed) array
18578 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18579 Javier Miranda <miranda@adacore.com>
18580 Eric Botcazou <ebotcazou@adacore.com>
18582 * exp_util.ads, exp_util.adb (Find_Prim_Op,
18583 Is_Predefined_Primitive_Operation): When
18584 searching for the predefined equality operator, verify that operands
18585 have the same type.
18586 (Is_Predefined_Dispatching_Operation): Remove the code that looks
18587 for the last entity in the list of aliased subprograms. This code
18588 was wrong in case of renamings.
18589 (Set_Renamed_Subprogram): New procedure
18590 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
18591 Exp_Type constant computed when entering this subprogram.
18592 (Known_Null): New function
18593 (OK_To_Do_Constant_Replacement): New function
18594 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
18595 (Side_Effect_Free): An attribute reference 'Input is not free of
18596 side effect, unlike other attributes that are functions. (from code
18598 (Remove_Side_Effects): Expressions that involve packed arrays or records
18599 are copied at the point of reference, and therefore must be marked as
18600 renamings of objects.
18601 (Is_Predefined_Dispatching_Operation): Return false if the operation is
18602 not a dispatching operation.
18605 (Remove_Side_Effects): Lift enclosing type conversion nodes for
18606 elementary types in all cases.
18608 2006-02-13 Javier Miranda <miranda@adacore.com>
18610 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
18611 task types when accessing to the corresponding record type.
18612 Remove '!' in warning message.
18614 2006-02-13 Olivier Hainque <hainque@adacore.com>
18616 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
18617 to avoid useless and space inefficient overalignments on targets where
18618 Max_Alignment is larger than 16.
18620 2006-02-13 Pascal Obry <obry@adacore.com>
18622 * g-catiio.adb (Sec_Number): New type used to compute the number of
18623 seconds since 1-1-1970.
18624 (Image) [Natural]: The parameter was an Integer, as we can't deal with
18625 negative numbers (years, months...) it is better to have a Natural here.
18627 (Image) [Number]: Change parameter from Long_Integer to Number.
18628 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
18629 overflow for dates past year 2038.
18631 2006-02-13 Matthew Heaney <heaney@adacore.com>
18633 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
18636 2006-02-13 Arnaud Charlet <charlet@adacore.com>
18638 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
18640 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
18641 finalization can occur normally.
18643 2006-02-13 Vincent Celier <celier@adacore.com>
18645 * gnatcmd.adb (Rules_Switches): New table
18646 (Add_To_Rules_Switches): New procedure
18647 (GNATCmd): For command CHECK, put all options following "-rules" in the
18648 Rules_Switches table. Append these -rules switches after the -cargs
18651 2006-02-13 Robert Dewar <dewar@adacore.com>
18653 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
18654 These two cases were generating incorrect output, and if this unit
18655 was built with checks on, generated a discriminant mismatch constraint
18658 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18659 Robert Dewar <dewar@adacore.com>
18661 * lib-xref.adb (Get_Type_Reference): For a private type whose full
18662 view is an array type, indicate the component type as well, for
18663 navigation purposes.
18664 (Generate_Reference): Don't consider array ref on LHS to be a case
18665 of violating pragma Unreferenced.
18666 Do not give Ada 2005 warning except on real reference.
18668 2006-02-13 Vincent Celier <celier@adacore.com>
18670 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
18671 main source, add switch -mdebug-main=_ada_ so that the executable can
18672 be debugged by the standard VMS debugger.
18673 (Gnatmake): Set No_Main_Subprogram to True when there is no main
18674 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
18675 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
18676 of the last source, as the binding and linking phases are never
18678 Set all executable obsolete when rebuilding a library.
18680 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
18683 2006-02-13 Javier Miranda <miranda@adacore.com>
18686 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
18687 code to improve the error message reported when the program has
18688 declarations of abstract interface types and it is not compiled with
18689 the -gnat05 switch.
18690 (P_Access_Definition): Reorganize the code to improve the error
18691 message reported when the new Ada 2005 syntax for anonymous
18692 access types is used and the program is not compiled with the
18695 2006-02-13 Robert Dewar <dewar@adacore.com>
18697 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
18698 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
18701 2006-02-13 Javier Miranda <miranda@adacore.com>
18703 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
18704 against source containing syntax errors.
18706 2006-02-13 Vincent Celier <celier@adacore.com>
18708 * prj.adb (Reset): Initialize the first element of table Namings with
18709 the standard naming data.
18711 2006-02-13 Vincent Celier <celier@adacore.com>
18713 * prj.ads (Error_Warning): New enumeration type
18715 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
18716 unknown, use the location of the project to report the error.
18717 (When_No_Sources): New global variable
18718 (Report_No_Ada_Sources): New procedure
18719 (Check): New parameter When_No_Sources. Set value of global variable
18721 (Find_Sources): Call Report_No_Ada_Sources when appropriate
18722 (Get_Sources_From_File): Ditto
18723 (Warn_If_Not_Sources): Better warning messages indicating the unit name
18726 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
18727 Call Prj.Proc.Process with parameter When_No_Sources.
18729 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
18730 Call Recursive_Check with parameter When_No_Sources.
18731 (Recursive_Check): New parameter When_No_Sources. Call itself and
18732 Prj.Nmsc.Check with parameter When_No_Sources.
18733 (Process): New parameter When_No_Sources. Call Check with parameter
18735 (Copy_Package_Declarations): New procedure to copy renamed parameters
18736 and setting the location of the declared attributes to the location
18737 of the renamed package.
18738 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
18741 2006-02-13 Vincent Celier <celier@adacore.com>
18743 * prj-makr.adb (Make): Preserve the comments from the original project
18745 When removing nodes (attributes Source_Dirs, Source_Files,
18746 Source_List_File and package Naming), save the comments and attach the
18747 saved comments to the newly created nodes.
18748 Do not add a with clause for the naming package if one already exists.
18750 2006-02-13 Javier Miranda <miranda@adacore.com>
18751 Gary Dismukes <dismukes@adacore.com>
18752 Robert Dewar <dewar@adacore.com>
18754 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
18756 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
18757 aliased entities to look for the overriden abstract interface
18759 (Is_Interface_Subprogram): Complete documentation.
18760 (Check_Dispatching_Operation): Do not generate code to register the
18761 operation in the dispatch table if the source is compiled with
18762 restriction No_Dispatching_Calls.
18763 (Override_Dispatching_Operation): Check for illegal attempt to override
18764 No_Return procedure with procedure that is not No_Return
18765 (Check_Dispatching_Call): Suppress the check for an abstract operation
18766 when the original node of an actual is a tag-indeterminate attribute
18767 call, since the attribute, which must be 'Input, can never be abstract.
18768 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
18769 call to the Input attribute (even when rewritten).
18770 (Propagate_Tag): Augment comment to indicate the possibility of a call
18771 to an Input attribute.
18773 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
18774 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
18776 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
18777 No_Wide_Characters is no longer partition-wide
18778 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
18781 2006-02-13 Douglas Rupp <rupp@adacore.com>
18783 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
18785 2006-02-13 Javier Miranda <miranda@adacore.com>
18787 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
18788 handles default-initialized components to keep separate the management
18789 of this feature but also avoid the unrequired resolution and
18790 expansion of components that do not have partially initialized
18792 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
18793 (Check_Bounds): Likewise.
18794 (Check_Length): Likewise.
18796 2006-02-13 Javier Miranda <miranda@adacore.com>
18797 Ed Schonberg <schonberg@adacore.com>
18799 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
18800 abstract interface type call analyze_and_resolve to expand the type
18801 conversion into the corresponding displacement of the
18802 reference to the base of the object.
18803 (Eval_Attribute, case Width): For systems where IEEE extended precision
18804 is supported, the maximum exponent occupies 4 decimal digits.
18805 (Accessibility_Message): Add '\' in 2-line warning message.
18806 (Resolve_Attribute): Likewise.
18807 (case Attribute_Access): Significantly revise checks
18808 for illegal access-to-subprogram Access attributes to properly enforce
18809 the rules of 3.10.2(32/2).
18810 Diagnose use of current instance with an illegal attribute.
18812 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
18814 (Enclosing_Generic_Unit): New function to return a node's innermost
18815 enclosing generic declaration node.
18816 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
18817 (Type_Access_Level): The accessibility level of anonymous acccess types
18818 associated with discriminants is that of the current instance of the
18819 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
18820 (Compile_Time_Constraint_Error): Handle case of conditional expression.
18821 (Kill_Current_Values_For_Entity): New function
18822 (Enter_Name): Change formal type to Entity_Id
18824 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
18825 Ed Schonberg <schonberg@adacore.com>
18826 Gary Dismukes <dismukes@adacore.com>
18828 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
18829 Analyze_Compilation_Unit.
18830 Detect and warn on redundant with clauses detected in a package spec
18831 and/or body when -gnatwr is used.
18832 (Analyze_Context): Analyze config pragmas before other items
18833 (Install_Context_Items): Don't analyze config pragmas here
18834 (Install_Limited_Withed_Unit): Set limited entity of package in
18835 with_clause so that cross-reference information or warning messages on
18836 unused packages can be properly generated
18837 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
18838 has Error_Posted set. Prevent infinite loops in illegal programs.
18839 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
18840 to the point of the error test requiring the current unit to be private.
18841 This ensures that private with clauses are not exempted from the basic
18842 checking for being a descendant of the same library unit parent as a
18843 withed private descendant unit.
18844 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
18845 handle private with clauses properly, as well as to account for cases
18846 where the withed unit is a public descendant of a private ancestor
18847 (in which case the current unit must be a descendant of the private
18848 ancestor's parent). The spec comments were updated accordingly. Also,
18849 the old error message in this subprogram was replaced with error
18850 messages that mirror the errors tested and reported by
18851 Check_Private_Child_Unit.
18852 Parameter and variable names improved for readability.
18853 (Install_Limited_Context_Clauses): Remove test for a withed unit being
18854 private as the precondition for calling
18855 Check_Private_Limited_Withed_Unit since that subprogram has been
18856 revised to test public units as well as private units.
18858 2006-02-13 Thomas Quinot <quinot@adacore.com>
18859 Robert Dewar <dewar@adacore.com>
18860 Ed Schonberg <schonberg@adacore.com>
18861 Javier Miranda <miranda@adacore.com>
18863 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
18864 that Scope_Stack.First = 1.
18865 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
18866 were not always properly handled previously.
18867 (Formal_Entity): Complete rewrite, to handle properly some complex case
18868 with multiple levels of parametrization by formal packages.
18869 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
18870 to the corresponding derived type declaration for proper semantics.
18872 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
18873 (Check_Component): Enforce restriction on components of
18874 unchecked_unions: a component in a variant cannot contain tasks or
18876 (Unchecked_Union): Allow nested variants and multiple discriminants, to
18878 Add pragma Ada_2005 (synonym for Ada_05)
18879 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
18880 were not always properly handled previously.
18881 Document that pragma Propagate_Exceptions has no effect
18882 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
18883 (Set_Convention_From_Pragma): Check that if a convention is
18884 specified for a dispatching operation, then it must be
18885 consistent with the existing convention for the operation.
18886 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
18887 longer required to specify an vtable-ptr component in the record. For
18888 compatibility reasons we leave the support for the previous definition.
18889 (Analyze_Pragma, case No_Return): Allow multiple arguments
18891 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
18892 non-overrideen inherited operation with a controlling result as
18893 illegal only its implicit declaration comes from the derived type
18894 declaration of its result's type.
18895 (Check_Possible_Deferred_Completion): Relocate the object definition
18896 node of the subtype indication of a deferred constant completion rather
18897 than directly analyzing it. The analysis of the generated subtype will
18898 correctly decorate the GNAT tree.
18899 (Record_Type_Declaration): Check whether this is a declaration for a
18900 limited derived record before analyzing components.
18901 (Analyze_Component_Declaration): Diagnose record types not explicitly
18902 declared limited when a component has a limited type.
18903 (Build_Derived_Record_Type): Code reorganization to check if some of
18904 the inherited subprograms of a tagged type cover interface primitives.
18905 This check was missing in case of a full-type associated with a private
18907 (Constant_Redeclaration): Check that the subtypes of the partial and the
18908 full view of a constrained deferred constant statically match.
18909 (Mentions_T): A reference to the current type in an anonymous access
18910 component declaration must be an entity name.
18911 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
18912 class_wide type to refer to full type, not to the incomplete one.
18913 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
18914 available. Required to give support to the certified run-time.
18915 (Analyze_Component_Declaration): In case of anonymous access components
18916 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
18917 (Process_Discriminants): For an access discriminant, use the
18918 discriminant specification as the associated_node_for_itype, to
18919 simplify accessibility checks.
18921 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18922 Javier Miranda <miranda@adacore.com>
18924 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
18925 abstract interpretations on an operator, remove interpretations that
18926 yield Address or a type derived from it, if one of the operands is an
18928 (Try_Object_Operation.Try_Primitive_Operation,
18929 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
18930 location when creating the new reference to a primitive or class-wide
18931 operation as a part of rewriting a subprogram call.
18932 (Try_Primitive_Operations): If context requires a function, collect all
18933 interpretations after the first match, because there may be primitive
18934 operations of the same type with the same profile and different return
18935 types. From code reading.
18936 (Try_Primitive_Operation): Use the node kind to choose the proper
18937 operation when a function and a procedure have the same parameter
18939 (Complete_Object_Operation): If formal is an access parameter and prefix
18940 is an object, rewrite as an Access reference, to match signature of
18941 primitive operation.
18942 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
18943 by an expanded name with prefix Standard, when the operands are of an
18944 anonymous access type.
18945 (Remove_Abstract_Operations): If the operation is abstract because it is
18946 inherited by a user-defined type derived from Address, remove it as
18947 well from the set of candidate interpretations of an overloaded node.
18948 (Analyze_Membership_Op): Membership test not applicable to cpp-class
18951 2006-02-13 Bob Duff <duff@adacore.com>
18953 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
18954 redundant use clauses.
18955 In particular, if the scope of two use clauses overlaps, but one is not
18956 entirely included in the other, we should not warn. This can happen
18957 with nested packages.
18958 (Analyze_Subprogram_Renaming): Protect the compiler against previously
18959 reported errors. The bug was reported when the compiler was built
18960 with assertions enabled.
18961 (Find_Type): If the node is a 'Class reference and the prefix is a
18962 synchronized type without a corresponding record, return the type
18965 2006-02-13 Javier Miranda <miranda@adacore.com>
18967 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
18968 if this is the full-declaration associated with a private declaration
18969 that implement interfaces, then the private type declaration must be
18971 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
18972 as aliased. The use of the 'access attribute is not available for such
18973 object (for this purpose the object should be explicitly marked as
18974 aliased, but being an anonymous type this is not possible).
18976 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18977 Robert Dewar <dewar@adacore.com>
18979 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
18980 compilation unit is an elaboration scope.
18981 (Add_Task_Proc): Add '\' in 2-line warning message.
18982 (Activate_All_Desirable): Deal with case of unit with'ed by parent
18984 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18985 Javier Miranda <miranda@adacore.com>
18987 * sem_type.adb (Write_Overloads): Improve display of candidate
18989 (Add_One_Interp): Do not add to the list of interpretations aliased
18990 entities corresponding with an abstract interface type that is an
18991 immediate ancestor of a tagged type; otherwise we have a dummy
18992 conflict between this entity and the aliased entity.
18993 (Disambiguate): The predefined equality on universal_access is not
18994 usable if there is a user-defined equality with the proper signature,
18995 declared in the same declarative part as the designated type.
18996 (Find_Unique_Type): The universal_access equality operator defined under
18997 AI-230 does not cover pool specific access types.
18998 (Covers): If one of the types is a generic actual subtype, check whether
18999 it matches the partial view of the other type.
19001 2006-02-13 Thomas Quinot <quinot@adacore.com>
19003 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
19004 line. This is necessary to allow In_Extended_Main_Unit to provide
19005 correct results for itypes while writing out expanded source.
19006 (Close_File): No need to update the source_index_table here since it's
19007 now done for each line.
19009 2006-02-13 Ed Schonberg <schonberg@adacore.com>
19010 Robert Dewar <dewar@adacore.com>
19012 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
19013 preserve the source unit where the itype is declared, and prevent a
19015 (Note_Implicit_Run_Time_Call): New procedure
19016 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
19019 * sprint.ads: Document use of $ for implicit run time routine call
19021 2006-02-13 Quentin Ochem <ochem@adacore.com>
19023 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
19026 2006-02-13 Bob Duff <duff@adacore.com>
19028 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
19029 Scan_Unsigned, so we do not scan leading blanks and sign twice.
19030 Integer'Value("- 5") and Integer'Value("-+5") now correctly
19031 raise Constraint_Error.
19033 * s-vallli.adb (Scan_Long_Long_Integer): Call
19034 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
19035 do not scan leading blanks and sign twice.
19036 Integer'Value("- 5") and Integer'Value("-+5") now correctly
19037 raise Constraint_Error.
19039 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
19040 Scan_Long_Long_Unsigned): Split out most of the processing from
19041 Scan_Long_Long_Unsigned out into
19042 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
19043 This prevents scanning leading blanks and sign twice.
19044 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
19047 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
19048 out most of the processing from Scan_Unsigned out into
19049 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
19050 This prevents scanning leading blanks and sign twice.
19052 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
19053 use with Modular'Value attribute.
19054 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
19057 2006-02-13 Robert Dewar <dewar@adacore.com>
19059 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
19061 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
19063 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
19064 (PPC VxWorks): Likewise.
19065 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
19066 (forced_callee): Make non-inlinable and non-pure.
19067 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
19069 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19070 Ben Brosgol <brosgol@adacore.com>
19071 Robert Dewar <dewar@adacore.com>
19073 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
19075 Document that gnatbind -M option is for cross environments only.
19076 Added description of using gnatmem to trace gnat rtl allocs and deallocs
19077 Add note on use of $ to label implicit run time calls
19078 Add documentation for -gnatyI (check mode IN)
19079 Updated chapter on compatibility with HP Ada
19080 VMS-oriented edits.
19081 Ran spell and corrected errors
19082 Add documentation for gnatbind -d and rework documentation of -D
19084 Add subprogram/data elimination section.
19085 Minor editing of annex A.
19086 Add section for gnatcheck.
19087 Add documentation for restriction No_Dispatching_Calls
19088 Add documentation for pragma Ada_2005
19089 Remove mention of obsolete pragma Propagate_Exceptions
19090 Document that pragma Unreferenced can appear after DO in ACCEPT
19091 Clarify Pure_Function for library level units
19092 Mention Max/Min in connection with No_Implicit_Conditionals
19093 No_Wide_Characters restriction is no longer partition-wide
19094 Add a nice example for Universal_Literal_String attribute
19095 Document that pragma No_Return can take multiple arguments
19097 * ug_words: Added entry for gnatcheck
19099 * g-ctrl_c.ads (Install_Handler): Enhance comments
19101 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
19103 * g-trasym.ads: Add documentation on how to do off line symbolic
19104 traceback computation.
19106 * s-fatgen.adb: Add comments for Unaligned_Valid
19108 * stand.ads: Fix typo in comment
19110 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
19112 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
19114 2006-02-06 Roger Sayle <roger@eyesopen.com>
19116 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
19118 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19121 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
19122 implementation that calls __main.
19124 2006-01-25 Peter O'Gorman <peter@pogma.com>
19127 * Makefile.in (GCC_LINK): Remove quotes.
19128 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
19131 (powerpc-darwin): Pass -shared-libgcc when building shared library.
19133 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19136 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
19138 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19140 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
19142 2005-12-12 Arnaud Charlet <charlet@adacore.com>
19144 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
19147 2005-12-12 Arnaud Charlet <charlet@adacore.com>
19149 * Make-lang.in: Update dependencies
19151 2005-12-12 Arnaud Charlet <charlet@adacore.com>
19153 * Make-lang.in: Add rule for ada/exp_sel.o
19155 2005-12-12 Arnaud Charlet <charlet@adacore.com>
19157 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
19159 2005-12-09 Arnaud Charlet <charlet@adacore.com>
19161 * gnatvsn.ads (Library_Version): Bump to version 4.2
19162 (ASIS_Version_Number): Bumped.
19164 2005-12-09 Doug Rupp <rupp@adacore.com>
19166 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
19167 Ada bind file prefix on VMS from b$ to b__.
19168 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
19171 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
19172 Targparm.OpenVMS_On_Target.
19173 (Object_Suffix): Initialize with target object suffix.
19174 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
19176 * butil.adb: Change some Hostparm.OpenVMS checks to
19177 Targparm.OpenVMS_On_Target.
19179 * clean.adb: Change some Hostparm.OpenVMS checks to
19180 Targparm.OpenVMS_On_Target.
19181 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
19182 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
19183 Ada bind file prefix on VMS from b$ to b__.
19185 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
19186 --GCC so that Get_Target_Parameters can find system.ads.
19187 (Gnatlink): Call Get_Target_Parameters in mainline.
19188 Initialize standard packages for Targparm.
19189 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
19190 (Process_Args): Also Check for object files with target object
19192 (Make_Binder_File_Names): Create with target object extension.
19193 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
19196 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
19197 Targparm.OpenVMS_On_Target.
19198 ({declaration},Build_Library,Check_Library): Change Ada bind file
19199 prefix on VMS from b$ to b__.
19201 * osint-b.adb: Change some Hostparm.OpenVMS checks to
19202 Targparm.OpenVMS_On_Target.
19203 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
19206 * targext.c: New file.
19208 * Makefile.in: add support for vxworks653 builds
19209 (../../vxaddr2line): gnatlink with targext.o.
19210 (TOOLS_LIBS): Move targext.o to precede libgnat.
19211 (init.o, initialize.o): Minor clean up in dependencies.
19212 (GNATLINK_OBJS): Add targparm.o, snames.o
19213 Add rules fo building targext.o and linking it explicitly with all
19215 Also add targext.o to gnatlib.
19217 * Make-lang.in: Add rules for building targext.o and linking it in
19218 with gnat1 and gnatbind.
19219 Add entry for exp_sel.o.
19221 * osint.adb Change some Hostparm.OpenVMS checks to
19222 Targparm.OpenVMS_On_Target.
19223 (Object_File_Name): Use target object suffix.
19225 * osint.ads (Object_Suffix): Remove, no longer used.
19226 (Target_Object_Suffix): Initialize with target object suffix.
19228 * rident.ads: Add special exception to license.
19230 * targparm.adb (Get_Target_Parameters): Set the value of
19231 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
19233 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
19235 * targparm.ads: Add special exception to license.
19237 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
19239 (Copy_File): Make sure from file is closed if error on to file
19240 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
19242 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
19243 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
19245 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
19246 target object suffix.
19248 2005-12-09 Jose Ruiz <ruiz@adacore.com>
19249 Quentin Ochem <ochem@adacore.com>
19250 Florian Villoing <villoing@adacore.com>
19252 * a-taster.ads, a-taster.adb: New files.
19254 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
19255 link to the version that does nothing. This way the task termination
19256 routine is not executed twice for the environment task when finishing
19257 because of an unhandled exception.
19259 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
19260 handler because of an unhandled exception.
19262 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
19263 System.Tasking.Utilities instead of that in System.Tasking.Stages.
19265 * s-finimp.adb (initialization code): Modify the soft link for the
19266 finalization of the global list instead of Adafinal.
19268 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
19269 non-tasking version of the soft link for task termination. We do
19270 nothing since if we are using the non-tasking version it
19271 means that the task termination functionality is not used.
19272 (Null_Finalize_Global_List): Add this null version for the procedure
19273 in charge of finalizing the global list for controlled objects.
19274 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
19275 instead for handling run-time termination in a more flexible way.
19276 (Adafinal_NT): This new procedure will take care of finalizing the
19277 global list for controlled objects if needed, but no tasking
19280 * s-tarest.adb (Task_Lock): Do not try to lock again the
19281 Global_Task_Lock if we already own it. Otherwise, we get blocked in
19282 some run-time operations.
19283 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
19284 until all nested locks have been released.
19285 (Task_Wrapper): Call the fall-back task termination handler. It
19286 applies to all tasks but the environment task.
19287 (Finalize_Global_Tasks): Add the call for the task termination
19288 procedure for the environment task.
19289 (Task_Wrapper): suppress warnings around declaration of
19290 Secondary_Stack_Address.
19292 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
19293 moved to the Common_ATCB record.
19294 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
19295 Common_ATCB record.
19296 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
19297 Common_ATCB record.
19299 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
19300 Fall_Back_Handler, and Specific_Handler.
19302 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
19303 defined in Ada.Task_Termination, to avoid circular dependencies.
19304 (Termination_Handler): Redefine this type here, alredy defined in
19305 Ada.Task_Termination, for avoiding circular dependencies.
19306 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
19307 for storing task termination handlers. In addition,
19308 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
19309 Common_ATCB because it is used by both the regular and the restricted
19311 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
19312 Common_ATCB because it is used by both the regular and the restricted
19314 (Common_ATCB): Added a dynamic task analyzer field.
19316 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
19317 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
19318 (Task_Wrapper): Call the task termination handler. It applies to all
19319 tasks but the environment task.
19320 (Finalize_Global_Tasks): Call the task termination procedure for the
19321 environment task. The call to Finalize_Global_List is now performed
19322 using the soft links mechanism.
19323 (Task_Wrapper): added dynamic stack analysis.
19325 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
19326 potentially blocking operations has been moved from
19327 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
19328 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
19329 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
19330 this run-time check.
19332 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
19333 of task termination procedure.
19334 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
19335 link for the task termination procedure.
19337 * bindusg.adb: (Bindusg): Added documentation for -u option.
19339 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
19340 (Get_Main_C): Add handling of dynamic stack analysis.
19341 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
19343 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
19344 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
19345 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
19347 * opt.ads: Added flags used by dynamic stack measurement.
19348 (Max_Line_Length): Remove (not used anymore)
19350 * s-io.ads, s-io.adb (Standard_Error): new subprogram
19351 (Standart_Output): new subprogram
19352 (Set_Output): new subprogram
19353 (Put): now uses the value of Current_Out to know if the output has to be
19354 send to stderr or stdout.
19356 * s-stausa.ads: Complete implementation.
19358 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
19360 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
19361 list of Ada 05 files.
19362 (GNAT Library Units): Add AltiVec files.
19364 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
19365 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
19366 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
19368 2005-12-09 Nicolas Setton <setton@adacore.com>
19370 * adaint.c (__gnat_locate_regular_file): Return immediately if
19371 file_name is empty.
19373 2005-12-09 Javier Miranda <miranda@adacore.com>
19374 Hristian Kirtchev <kirtchev@adacore.com>
19376 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
19377 to the specification because the frontend generates code that uses this
19379 (Set_Interface_Table): Add missing assertion.
19380 Update documentation describing the run-time structure.
19381 (Displace): New subprogram that displaces the pointer to the object
19382 to reference one of its secondary dispatch tables.
19383 (IW_Membership): Modified to use the new table of interfaces.
19384 (Inherit_TSD): Modified to use the new table of interfaces.
19385 (Register_Interface_Tag): Use the additional formal to fill the
19386 contents of the new table of interfaces.
19387 (Set_Interface_Table): New subprogram that stores in the TSD the
19388 pointer to the table of interfaces.
19389 (Set_Offset_To_Top): Use the additional formal to save copy of
19390 the offset value in the table of interfaces.
19391 Update structure of GNAT Primary and Secondary dispatch table diagram.
19392 Add comment section on GNAT dispatch table prologue.
19393 (Offset_To_Signature): Update the constant value of the Signature field.
19394 (Dispatch_Table): Update comment on hidden fields in the prologue.
19395 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
19396 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
19397 the type of formal parameter T to Tag, introduce additional assertions.
19398 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
19400 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
19402 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
19403 in all the calls to Expand_Interface_Thunk. Instead of referencing the
19404 record component containing the tag of the secondary dispatch table we
19405 have to use the Offset_To_Top run-time function to get this information;
19406 otherwise if the pointer to the base of the object has been displace
19407 we get a wrong value if we use the 'position attribute.
19409 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
19410 all the calls to Expand_Interface_Thunk.
19411 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
19412 interfaces; hence the call to Set_Interface_Table was clearly wrong.
19413 (Collect_All_Interfaces): Modify the internal subprogram Collect to
19414 ensure that the interfaces implemented by the ancestors are placed
19415 at the header of the generated list.
19416 (Expand_Interface_Conversion): Handle the case in which the displacement
19417 associated with the interface conversion is not statically known. In
19418 this case we generate a call to the new run-time subprogram Displace.
19419 (Make_DT): Generate and fill the new table of interfaces.
19420 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
19421 Get_Tagged_Kind and Set_Tagged_Kind.
19422 (Tagged_Kind): New function that determines the tagged kind of a type
19423 with respect to limitedness and concurrency and returns a reference to
19425 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
19426 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
19427 primary dispatch table for a type.
19428 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
19429 secondary dispatch table respectively of a tagged type.
19431 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
19432 (Expand_Interface_Conversion): New subprogram to indicate if the
19433 displacement of the type conversion is statically known.
19434 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
19436 * rtsfind.ads (RE_Offset_To_Top): New entity
19437 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
19438 accessible to users.
19439 (Re_Displace): New entity
19440 (RE_Interface_Data): New entity
19441 (RE_Set_Interface_Data): New_Entity
19442 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
19443 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
19444 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
19445 RE_TK_Tagged, RE_TK_Task.
19447 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
19448 Init_Secondary_Tags_Internal to allow its use with interface types and
19449 also to generate the code for the new additional actual required
19450 by Set_Offset_To_Top.
19451 (Build_Init_Statements): In case of components associated with abstract
19452 interface types there is no need to generate a call to its IP.
19453 (Freeze_Record_Type): Generate Select Specific Data tables only for
19455 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
19456 the bodies and specifications of the predefined primitive operations
19457 dealing with dispatching selects and abort, 'Callable, 'Terminated only
19458 for concurrent types.
19460 * exp_sel.ads, exp_sel.adb: New files.
19462 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
19463 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
19464 properly protected objects and attach handler in the case of the
19465 restricted profile.
19466 Move embeded package Select_Expansion_Utilities into a separate external
19468 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
19469 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
19470 (Build_K, Build_S_Assignment): New subprograms, part of the select
19471 expansion utilities.
19472 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
19473 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
19474 where the trigger is a dispatching procedure of a limited tagged type.
19476 2005-12-09 Olivier Hainque <hainque@adacore.com>
19478 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
19479 pointer initialization values. Make a SAVE_EXPR instead. Add comments
19480 about the use and expansion of SAVE_EXPRs in the various possible
19481 renaming handling cases.
19482 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
19483 abusing DECL_FCONTEXT.
19485 2005-12-09 Matthew Heaney <heaney@adacore.com>
19487 * a-convec.adb (Merge): Added assertions to check whether vector params
19490 * a-coinve.adb (Merge): Added assertions to check whether vector params
19493 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
19495 (Cursor'Read): raises PE
19497 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
19498 to its default value.
19500 * a-cihama.adb: Manually check whether cursor's key and elem are
19503 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
19504 (Merge): Assert that target and source lists are in order
19505 (Swap): Declare non-const temporaries, to pass to Splice
19507 * a-cdlili.ads: (Splice): Changed param name and param mode
19509 * a-cdlili.adb: (Splice): Changed param name and param mode
19510 (Merge): Assert that target and source lists are in order
19511 (Swap): Declare non-const temporaries, to pass to Splice
19513 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
19514 (Write): declare Stream param as not null
19516 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
19517 an exception message.
19519 2005-12-09 Thomas Quinot <quinot@adacore.com>
19520 Robert Dewar <dewar@adacore.com>
19522 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
19523 which is the absolute maximum length we can support.
19525 * frontend.adb: For the processing of configuration pragma files,
19526 remove references to Opt.Max_Line_Length, which is not checked anymore.
19528 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
19531 * scn.adb, scng.adb:
19532 Always check line length against the absolute supported maximum,
19533 Hostparm.Max_Line_Length.
19535 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
19536 value for the maximum line length is Max_Line_Length (not
19537 Column_Number'Last).
19538 Minor error msg update
19539 (Set_Style_Check_Options): New interface returning error msg
19540 Minor code reorganization (processing for 'M' was out of alpha order)
19542 * switch-c.adb: New interface for Set_Style_Check_Options
19544 * stylesw.ads (Set_Style_Check_Options): New interface returning error
19547 2005-12-09 Javier Miranda <miranda@adacore.com>
19549 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
19550 with IP subprogram were only supported if there were limited types.
19552 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
19553 records with IP subprogram were only supported if there were limited
19556 2005-12-09 Olivier Hainque <hainque@adacore.com>
19557 Eric Botcazou <ebotcazou@adacore.com>
19559 * trans.c (tree_transform, emit_check): Adjust calls to
19560 build_call_raise, passing the now expected GNAT_NODE argument.
19562 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
19563 source line information than what the current global locus indicates
19566 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
19567 field has overflowed.
19568 (build_call_raise): Add a GNAT_NODE argument to convey better source
19569 line information than what the current global locus indicates when
19571 (build_component_ref): Adjust call to build_call_raise.
19573 2005-12-09 Pascal Obry <obry@adacore.com>
19575 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
19576 the iterator is quitting iteration on parent directory.
19578 2005-12-09 Javier Miranda <miranda@adacore.com>
19580 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
19581 and the assignment to a class-wide object, before the assignment we
19582 generate a run-time check to ensure that the tag of the Target is
19583 covered by the tag of the source.
19585 2005-12-09 Robert Dewar <dewar@adacore.com>
19587 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
19588 parameter in call to Image_Wide_Character.
19590 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
19591 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
19592 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
19593 annoying FFFE/FFFF inconsistency.
19595 2005-12-09 Robert Dewar <dewar@adacore.com>
19596 Javier Miranda <miranda@adacore.com>
19597 Ed Schonberg <schonberg@adacore.com>
19599 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
19600 of type conversion.
19601 (Find_Interface): New subprogram that given a tagged type and one of its
19602 component associated with the secondary table of an abstract interface
19603 type, return the entity associated with such abstract interface type.
19604 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
19605 base type to create anonymous subtype, because entity may be a locally
19606 declared subtype or generic actual.
19607 (Find_Interface): New subprogram that given a tagged type and one of its
19608 component associated with the secondary table of an abstract interface
19609 type, return the entity associated with such abstract interface type.
19611 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
19612 conversion cannot be handled at compile time. In this case we pass this
19613 information to the expander to generate the appropriate code.
19615 2005-12-09 Robert Dewar <dewar@adacore.com>
19616 Ed Schonberg <schonberg@adacore.com>
19617 Gary Dismukes <dismukes@adacore.com>
19618 Javier Miranda <miranda@adacore.com>
19619 Hristian Kirtchev <kirtchev@adacore.com>
19621 * einfo.adb (Itype_Printed): New flag
19622 (Is_Limited_Type): Derived types do not inherit limitedness from
19623 interface progenitors.
19624 (Is_Return_By_Reference_Type): Predicate does not apply to limited
19627 * einfo.ads (Itype_Printed): New flag
19628 Move Is_Wrapper_Package to proper section
19629 Add missing Inline for Is_Volatile
19631 * output.ads, output.adb (Write_Erase_Char): New procedure
19632 (Save/Restore_Output_Buffer): New procedures
19633 (Save/Restore_Output_Buffer): New procedures
19635 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
19636 Add missing support for anonymous access type
19637 (Write_Id): Insert calls to Write_Itype
19638 (Write_Itype): New procedure to output itypes
19640 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
19641 use of "limited" in declaration.
19643 * sinfo.ads, sinfo.adb:
19644 Formal derived types can carry an explicit "limited" indication.
19646 * sem_ch3.adb: Add with and use of Targparm.
19647 (Create_Component): If Frontend_Layout_On_Target is True and the
19648 copied component does not have a known static Esize, then reset
19649 the size and positional fields of the new component.
19650 (Analyze_Component_Declaration): A limited component is
19651 legal within a protected type that implements an interface.
19652 (Collect_Interfaces): Do not add to the list the interfaces that
19653 are implemented by the ancestors.
19654 (Derived_Type_Declaration): If the parent of the full-view is an
19655 interface perform a transformation of the tree to ensure that it has
19656 the same parent than the partial-view. This simplifies the job of the
19657 expander in order to generate the correct object layout, and it is
19658 needed because the list of interfaces of the full-view can be given in
19660 (Process_Full_View): The parent of the full-view does not need to be
19661 a descendant of the parent of the partial view if both parents are
19663 (Analyze_Private_Extension_Declaration): If declaration has an explicit
19664 "limited" the parent must be a limited type.
19665 (Build_Derived_Record_Type): A derived type that is explicitly limited
19666 must have limited ancestor and progenitors.
19667 (Build_Derived_Type): Ditto.
19668 (Process_Full_View): Verify that explicit uses of "limited" in partial
19669 and full declarations are consistent.
19670 (Find_Ancestor_Interface): Remove function.
19671 (Collect_Implemented_Interfaces): New procedure used to gather all
19672 implemented interfaces by a type.
19673 (Contain_Interface): New function used to check whether an interface is
19675 (Find_Hidden_Interface): New function used to determine whether two
19676 lists of interfaces constitute a set equality. If not, the first
19677 differing interface is returned.
19678 (Process_Full_View): Improve the check for the "no hidden interface"
19679 rule as defined by AI-396.
19681 2005-12-09 Robert Dewar <dewar@adacore.com>
19683 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
19684 types, not on record subtypes.
19685 (Freeze_Entity): Code cleanup. Add barrier to the loop
19686 that generates the references for primitive operations. This allows to
19687 remove an unnecessary exception handler.
19688 Code reformatting and comment clean ups.
19690 2005-12-09 Vincent Celier <celier@adacore.com>
19692 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
19693 If GNAT CHECK is called with a project file, but with no
19694 source on the command line, call gnatcheck with all the compilable
19695 sources of the project.
19696 Take into account the new command Check, for gnatcheck. Treat as for
19697 other ASIS tools: take into account project, specific package Check and
19699 For ASIS tools, add the switches in package Compiler for
19700 the invocation of the compiler.
19702 * prj-attr.adb: Add package Check and its attributes
19704 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
19706 * vms_conv.adb (Initialize): Change Params of command Check to
19708 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
19709 Add data for new command Check
19711 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
19713 Add qualifiers for Check command options
19714 (Command_Type): New command Check
19716 2005-12-09 Thomas Quinot <quinot@adacore.com>
19718 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
19719 command line switch overruns the output buffer.
19721 2005-12-09 Robert Dewar <dewar@adacore.com>
19723 * sem_prag.adb: Processing for new pragma Complete_Representation
19724 (Analyze_Pragma, case Debug): Implement two argument form.
19726 * par-prag.adb: Entry for new pragma Complete_Representation
19727 (Prag, case Debug): Recognize two argument form of pragma Debug
19728 New interface for Set_Style_Check_Options.
19730 * sem_ch13.adb: Implement new pragma Complete_Representation.
19732 * snames.adb, snames.ads, snames.h: Entry for new pragma
19733 Complete_Representation.
19735 2005-12-09 Gary Dismukes <dismukes@adacore.com>
19737 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
19738 available user-specified stream attributes on limited parameters to
19739 also test the type directly rather than only its underlying type (for
19740 Ada 95) and, in the case of Ada 2005, to check that the user-specified
19741 attributes are visible at the point of the subprogram declaration.
19742 For Ada 2005, the error message is modified to indicate that the
19743 type's stream attributes must be visible (again, only for -gnat05).
19745 2005-12-09 Ed Schonberg <schonberg@adacore.com>
19747 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
19748 anonymous access types.
19750 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
19751 matching of anonymous access types and anonymous access to subprogram
19752 types. 'R'M 4.9.1 (2/2).
19754 2005-12-09 Ed Schonberg <schonberg@adacore.com>
19756 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
19757 rule prematurely when operands are universal, remaining ambiguities
19758 will be removed during resolution.
19761 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
19762 that are Ada 2005 functions.
19763 (Has_Abstract_Interpretation): Subsidiary to
19764 Remove_Conversions, to remove ambiguities caused by abstract operations
19765 on numeric types when operands are universal.
19767 2005-12-09 Robert Dewar <dewar@adacore.com>
19769 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
19770 for case where spec is categorized.
19772 2005-12-09 Javier Miranda <miranda@adacore.com>
19774 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
19775 types use the corresponding record type. This was not needed before
19776 the implementation of Ada 2005 synchronized types because
19777 concurrent types were never tagged types in Ada 95.
19779 2005-12-09 Ed Schonberg <schonberg@adacore.com>
19781 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
19782 first subtype of the type of the expression to verify that it is a
19785 2005-12-09 Robert Dewar <dewar@adacore.com>
19787 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
19790 2005-12-09 Quentin Ochem <ochem@adacore.com>
19791 Robert Dewar <dewar@adacore.com>
19792 Ed Falis <falis@adacore.com>
19793 Florian Villoing <villoing@adacore.com>
19794 Thomas Quinot <quinot@adacore.com>
19795 Arnaud Charlet <charlet@adacore.com>
19797 * gnat_ugn.texi: Created section "Stack Related Tools"
19798 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
19799 "Stack Related Tools"
19800 Added subsection "Static Stack Usage Analysis"
19801 Added subsection "Dynamic Stack Usage Analysis"
19802 Include documentation of itypes in sprint listing (-gnatG)
19803 Documented gnatbind -D switch (default sec stack size for fixed sec
19805 Added Interrupt_State and Persistent_BSS to list of configuration
19807 Add missing doc for maximum value of nnn in -gnatyMnnn
19809 * gnat_rm.texi: Document the AltiVec binding.
19810 Add documentation for pragma Complete_Representation
19811 Shortened an overly long line (> 79 chars)
19812 Clarify documentation of unchecked conversion in implementation
19814 Document two argument form of pragma Debug
19816 * types.ads (Column_Number): Update documentation.
19818 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
19819 library level Finalize_Storage_Only objects (these are not attached to
19820 any finalization list).
19822 * system-mingw.ads: (Underlying_Priorities): Update comment.
19824 2005-12-09 Robert Dewar <dewar@adacore.com>
19826 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
19827 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
19828 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
19829 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
19830 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
19831 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
19832 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
19833 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
19836 2005-12-09 Robert Dewar <dewar@adacore.com>
19838 * s-vaflop-vms-alpha.adb: (Ne_F): New function
19839 (Ne_G): New function
19841 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
19842 for tag assignment.
19843 (Rewrite_Comparison): Handle case where operation is not a comparison
19844 and ignore, and also handle type conversion case.
19846 2005-12-09 Thomas Quinot <quinot@adacore.com>
19848 * exp_aggr.ads: Fix typo in comment.
19849 ???-mark Convert_Aggr_In_Assignment as needing documentation.
19851 2005-12-09 Gary Dismukes <dismukes@adacore.com>
19853 * layout.adb: Replace various uses of byte by storage unit throughout.
19854 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
19855 static size, convert to storage units before returning, to conform to
19858 2005-12-09 Matthew Gingell <gingell@adacore.com>
19860 * g-exctra.ads: Fix typo in comment.
19862 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19864 * utils.c: Minor reformatting.
19866 2005-12-09 Robert Dewar <dewar@adacore.com>
19869 Further comment fixes to make the status of the default file clear
19871 * s-bitops.adb: Clarify comment for Bits_Array
19873 2005-12-07 Rafael �vila de Esp�ndola <rafael.espindola@gmail.com>
19875 * Make-lang.in (ada.install-normal): Remove.
19877 2005-12-07 Rafael �vila de Esp�ndola <rafael.espindola@gmail.com>
19879 * Make-lang.in: Remove all dependencies on s-gtype.
19881 2005-12-05 Richard Guenther <rguenther@suse.de>
19883 * utils.c (convert): Use fold_convert where appropriate.
19885 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
19887 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
19890 2005-12-02 Richard Guenther <rguenther@suse.de>
19892 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
19894 2005-12-01 Roger Sayle <roger@eyesopen.com>
19896 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
19899 2005-11-23 Laurent Guerby <laurent@guerby.net>
19901 * mlib-prj.adb (Build_Library): Initialize Delete.
19903 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
19905 * socket.c: Add extern int h_errno for rtems since networking header
19906 files are not available at this point in a tool bootstrap. Newlib
19907 only has basic C library header files.
19909 2005-11-19 Richard Guenther <rguenther@suse.de>
19910 Roger Sayle <roger@eyesopen.com>
19913 * misc.c (internal_error_function): Don't use vsprintf to format
19914 the error message text, instead use pp_format_text and the new
19915 pretty printer APIs. This allows handling of %qs, %w, etc.
19917 2005-11-18 Laurent Guerby <laurent@guerby.net>
19920 * Makefile.in: Use s-auxdec-empty for RTEMS.
19922 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19925 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
19926 a temporary if taking the address of something that is neither
19927 reference, declaration, or constant, since the gimplifier
19928 can't handle that case.
19930 2005-11-17 Laurent Guerby <laurent@guerby.net>
19933 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
19935 2005-11-16 Richard Guenther <rguenther@suse.de>
19937 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
19939 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
19942 * raise-gcc.c: Add missing stdarg.h include.
19944 2005-11-16 Richard Guenther <rguenther@suse.de>
19946 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
19947 (ada/misc.o): Likewise.
19949 2005-11-14 Thomas Quinot <quinot@adacore.com>
19951 * g-soccon.ads: Minor reformatting. Update comments.
19953 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
19954 gain visibility on the declaration of struct timeval.
19956 * g-soccon-freebsd.ads,
19957 g-soccon-darwin.ads,
19958 g-soccon-tru64.ads,
19962 g-soccon-solaris.ads,
19964 g-soccon-mingw.ads,
19965 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
19967 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
19968 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
19969 g-soccon-linux-x86.ads: New files.
19971 * g-socthi-mingw.adb:
19972 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
19974 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
19975 (time_t, suseconds_t): New types constructed to match the tv_sec
19976 and tv_usec fields of C struct timeval.
19977 (Timeval): Construct structure in terms of the new types.
19978 (Host_Errno): New function (imported from socket.c), returns last hosts
19981 * g-socthi-vxworks.adb: Add error handling circuitry.
19983 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
19984 components of struct timeval.
19985 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
19986 (Check_Selector): In error conditions, clear internal socket sets to
19987 avoid a memory leak.
19988 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
19989 Send_Timeout, Receive_Timeout.
19991 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
19992 the tv_sec and tv_usec fields of C struct timeval.
19993 (Timeval): Construct structure in terms of the new types.
19994 (Host_Errno): New function (imported from socket.c), returns last hosts
19997 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
19998 hosts database last error code.
20000 * gen-soccon.c: Complete value expansion should not be performed on
20001 TARGET, as it has the form of a math expression, and some components
20002 may be platform-defined macros.
20003 For VxWorks, generate the OK and ERROR values.
20004 New constants giving the sizes of the components of C struct timeval.
20006 2005-11-14 Robert Dewar <dewar@adacore.com>
20007 Ed Schonberg <schonberg@adacore.com>
20010 * types.ads: Include All_Checks in Suppress_Array
20012 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
20013 not(a=b), since we no longer do this rewriting, and hence it is not
20015 (Elaboration_Checks_Suppressed): Add special casing to
20016 deal with different cases of static and dynamic elaboration checks (all
20017 checks does not count in the first case, but does in the second).
20018 (Expr_Known_Valid): Do not assume that the result of any arbitrary
20019 function call is valid, since this is not the case.
20020 (Ensure_Valid): Do not apply validity check to a real literal
20021 in a universal or fixed context
20023 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
20024 elementary types using the operator in standard. It is cleaner not to
20025 modify the programmers intent, especially in the case of floating-point.
20026 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
20027 it did not matter because we always rewrote a/=b to not(a=b).
20028 (Expand_Allocator_Expression): For an allocator expression whose nominal
20029 subtype is an unconstrained packed type, convert the expression to its
20030 actual constrained subtype.
20031 Implement warning for <= or >= where < or > not possible
20032 Fix to Vax_Float tests (too early in many routines, causing premature
20033 Vax_Float expansions.
20035 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
20036 to be used with packages and generic packages as well as with
20038 (Suppress): Set All_Checks, but not Elaboration_Check, for case
20039 of pragma Suppress (All_Checks)
20040 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
20041 a string literal for precise control over warnings.
20042 Avoid raise of pragma in case of unrecognized pragma and just return
20045 * sem_prag.ads: Minor reformatting
20047 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
20048 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
20049 Switch. Do not handle any exception.
20050 Include -gnatwx as part of -gnatg (warn on redundant parens)
20051 Allow optional = after -gnatm
20052 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
20053 longer sets Elaboration_Checks.
20054 Code to set warning mode moved to Sem_Warn
20055 so that it can be shared by pragma processing.
20057 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
20060 * s-taprop-solaris.adb:
20061 Change some <= to =, to avoid new warning
20063 * a-exexda.adb, prj-proc.adb:
20064 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
20065 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
20067 2005-11-14 Robert Dewar <dewar@adacore.com>
20069 * exp_vfpt.adb: Handle /= case
20070 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
20071 so that we do not get duplicate scaling for fixed point conversions.
20073 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
20075 2005-11-14 Matthew Gingell <gingell@adacore.com>
20077 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
20078 Increase default priority on Lynx from 15 to 17, and meet the Ada
20079 requirement that Default_Priority be ((Priority'First +
20080 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
20082 2005-11-14 Vincent Celier <celier@adacore.com>
20084 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
20085 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
20086 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
20087 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
20088 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
20089 mlib-tgt-lynxos.adb (DLL_Prefix): New function
20091 2005-11-14 Doug Rupp <rupp@adacore.com>
20093 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
20096 2005-11-14 Arnaud Charlet <charlet@adacore.com>
20098 * s-traces-default.adb, s-trafor-default.ads,
20099 s-tratas-default.adb: Fix compilation errors.
20101 2005-11-14 Jose Ruiz <ruiz@adacore.com>
20103 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
20104 raising the exception so the memory used is freed.
20106 2005-11-14 Arnaud Charlet <charlet@adacore.com>
20108 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
20109 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
20110 (convert_address): Update comments and list of platforms using this.
20112 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
20115 2005-11-14 Pascal Obry <obry@adacore.com>
20116 Vincent Celier <celier@adacore.com>
20118 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
20121 * memroot.adb: Remove redundant with/use clause on
20122 System.Storage_Elements.
20124 2005-11-14 Arnaud Charlet <charlet@adacore.com>
20126 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
20127 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
20128 related code to a-exexpr.adb
20129 (Save_Occurrence_And_Private): Move GCC EH related code to
20131 (Raise_Current_Excep): Add new variable Id with pragma
20132 volatile, to ensure that the variable lives on stack.
20134 * a-exexpr-gcc.adb, raise-gcc.c: New file.
20136 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
20138 Move GCC EH related code to a-exexpr-gcc.adb
20140 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
20142 Split the Linux version of g-soccon into separate variants for 32 and 64
20144 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
20145 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
20146 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
20147 of host variable $(RANLIB_FLAGS).
20148 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
20149 Code clean up: remove unused/obsolete targets.
20150 (EH_MECHANISM): New variable introduced to differenciate between the
20151 two EH mechanisms statically.
20152 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
20153 (LIBGNAT_OBJS): Add raise-gcc.o
20154 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
20155 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
20156 supports VxWorks 6 RTPs.
20157 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
20158 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
20160 * raise.c: Move all GCC EH-related routines to raise-gcc.c
20162 2005-11-14 Jose Ruiz <ruiz@adacore.com>
20164 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
20165 deferral level, when abort is not allowed, to a later stage (the
20167 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
20168 it will not get changed by the generated code. It was previously done
20171 2005-11-14 Thomas Quinot <quinot@adacore.com>
20172 Olivier Hainque <hainque@adacore.com>
20173 Eric Botcazou <ebotcazou@adacore.com>
20176 Factor common code to build a storage type for an unconstrained object
20177 from a fat or thin pointer type and a constrained object type.
20178 (annotate_value): Handle BIT_AND_EXPR.
20179 (annotate_rep): Don't restrict the back annotation of inherited
20180 components to the type_annotate_only case.
20181 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
20182 we are not defining the type.
20183 <E_Record_Type>: Likewise.
20184 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
20185 to get advantage of the new maybe_stabilize_reference interface, to
20186 ensure that what we reference is indeed stabilized instead of relying
20187 on assumptions on what the stabilizer does.
20188 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
20189 type imported through a limited_with clause, use its non-limited view.
20190 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
20192 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
20193 of #if sections + explicit comparisons of convention identifiers.
20194 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
20195 before early-returning for certain types when code generation is
20197 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
20198 nullification of gnu_expr we do for objects with address clause and
20199 that we are not defining.
20200 (elaborate_expression_1): Do not create constants when creating
20201 variables needed by the debug info: the dwarf2 writer considers that
20202 CONST_DECLs is used only to represent enumeration constants, and emits
20204 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
20205 object with an address clause into an indirect reference, drop the
20206 initializing expression.
20208 (STACK_CHECK_BUILTIN): Delete.
20209 (STACK_CHECK_PROBE_INTERVAL): Likewise.
20210 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
20211 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
20212 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
20213 corresponding to the renamed object as ignored for debugging purposes.
20215 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
20216 related): For a prefix that is a dereference of a fat or thin pointer,
20217 if there is an actual subtype provided by the front-end, use that
20218 subtype to build an actual type with bounds template.
20219 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
20220 is provided by the front-end, use that subtype to compute the size of
20221 the deallocated object.
20222 (gnat_to_gnu): When adding a statement into an elaboration procedure,
20223 check for a potential violation of a No_Elaboration_Code restriction.
20224 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
20225 with extra arguments to control whether to recurse through non-values
20226 and to let the caller know if the stabilization has succeeded.
20227 (gnat_stabilize_reference): Now a simple wrapper around
20228 maybe_stabilize, for common uses without restriction on lvalues and
20229 without need to check for the success indication.
20230 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
20231 pass false instead of 0 as the FORCE argument which is a bool.
20232 (Identifier_to_gnu): Remove checks ensuring that an renamed object
20233 attached to a renaming pointer has been properly stabilized, as no such
20234 object is attached otherwise.
20235 (call_to_gnu): Invoke create_var_decl to create the temporary when the
20236 function uses the "target pointer" return mechanism.
20237 Reinstate conversion of the actual to the type of the formal
20238 parameter before any other specific treatment based on the passing
20239 mechanism. This turns out to be necessary in order for PLACEHOLDER
20240 substitution to work properly when the latter type is unconstrained.
20242 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
20244 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
20245 with extra arguments to control whether to recurse through non-values
20246 and to let the caller know if the stabilization has succeeded.
20248 * utils2.c (gnat_build_constructor): Only sort the fields for possible
20249 static output of record constructor if all the components are constant.
20250 (gnat_build_constructor): For a record type, sort the list of field
20251 initializers in increasing bit position order.
20252 Factor common code to build a storage type for an unconstrained object
20253 from a fat or thin pointer type and a constrained object type.
20254 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
20255 types variants, and process special cases of VIEW_CONVERT expressions
20256 as their NOP_EXPR counterpart to ensure we get to the
20257 CORRESPONDING_VARs associated with CONST_DECls.
20258 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
20259 on the right-hand side.
20261 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
20263 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
20264 are converting back to its original type.
20265 (convert) <JM input>: Fallthrough regular conversion code instead of
20266 extracting the object if converting to a type variant.
20267 (create_var_decl): When a variable has an initializer requiring code
20268 generation and we are at the top level, check for a potential violation
20269 of a No_Elaboration_Code restriction.
20270 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
20271 SIZE and SIZE_UNIT which we need for later back-annotations.
20272 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
20273 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
20274 is an unchecked union.
20275 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
20276 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
20277 main variant, just replace the VIEW_CONVERT_EXPR.
20278 <UNION_TYPE>: Revert 2005-03-02 change.
20280 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
20282 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
20284 2005-11-14 Matthew Heaney <heaney@adacore.com>
20286 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
20287 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
20288 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
20289 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
20290 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
20291 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
20292 Compiles against the spec for ordered maps described in sections
20293 A.18.6 of the most recent (August 2005) AI-302 draft.
20295 2005-11-14 Olivier Hainque <hainque@adacore.com>
20297 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
20298 to ensure bias adjustments take place when need be and to prevent
20299 occurrences of intermediate overflows.
20301 2005-11-14 Matthew Gingell <gingell@adacore.com>
20302 Olivier Hainque <hainque@adacore.com>
20304 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
20307 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
20308 tracebacks on ia64 HP-UX and provide explanatory comment.
20309 Enable backtraces on ia64 GNU/Linux.
20310 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
20311 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
20313 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
20314 Javier Miranda <miranda@adacore.com>
20316 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
20317 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
20318 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
20319 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
20321 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
20322 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
20325 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
20326 subprogram that generates the external name associated with a
20327 secondary dispatch table.
20328 (Get_Secondary_DT_External_Name): New subprogram that generates the
20329 external name associated with a secondary dispatch table.
20331 2005-11-14 Emmanuel Briot <briot@adacore.com>
20333 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
20334 line in the ALI file to include both an instantiation reference, and a
20337 2005-11-14 Vincent Celier <celier@adacore.com>
20339 * clean.adb (Check_Project): Look for Ada code in extending project,
20340 even if Ada is not specified as a language.
20341 Use new function DLL_Prefix for DLL_Name
20342 (Clean_Interface_Copy_Directory): New procedure
20343 (Clean_Library_Directory): New procedure
20344 (Clean_Directory): Remove procedure, no longer used
20345 (Clean_Project): Do not delete any file in an externally built project
20347 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
20348 directory of an extending project, even when there are no Ada source
20350 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
20351 (Set_Ada_Paths.Add.Recursive_Add): Ditto
20353 * mlib-prj.adb (Check_Library): For all library projects, get the
20354 library file timestamp.
20355 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
20356 (Build_Library): Use new function DLL_Prefix for the DLL_Name
20357 (Clean): Remove procedure, no longer used
20358 (Ultimate_Extension_Of): New function
20359 (Build_Library): When cleaning the library directory, only remove an
20360 existing library file and any ALI file of a source of the project.
20361 When cleaning the interface copy directory, remove any source that
20362 could be a source of the project.
20364 * prj.ads, prj.adb (Project_Empty): Add values of new components
20365 Library_TS and All_Imported_Projects.
20366 (Project_Empty): Add values for new components of Project_Data:
20367 Library_ALI_Dir and Display_Library_ALI_Dir
20369 * prj-attr.adb: New project level attribute name Library_ALI_Dir
20371 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
20372 attribute Library_ALI_Dir.
20373 (Check_Library_Attributes): The library directory cannot be the same as
20374 any source directory of the project tree.
20375 (Check_Stand_Alone_Library): The interface copy directory cannot be
20376 the same as any source directory of the project tree.
20378 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
20379 all temporary files.
20381 2005-11-14 Robert Dewar <dewar@adacore.com>
20382 Ed Schonberg <schonberg@adacore.com>
20384 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
20385 (Check_Elab_Call): A call within a protected body is never an
20386 elaboration call, and does not require checking.
20387 (Same_Elaboration_Scope): Take into account protected types for both
20389 (Activate_Elaborate_All_Desirable): New procedure
20391 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
20394 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
20395 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
20397 * lib-writ.ads, lib-writ.adb:
20398 Implement new AD/ED for Elaborate_All/Elaborate desirable
20399 Use new Elaborate_All_Desirable flag in N_With_Clause node
20401 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
20402 N_Free_Statement nodes.
20403 Define new class N_Subprogram_Instantiation
20404 Add Elaborate_Desirable flag to N_With_Clause node
20405 Add N_Delay_Statement (covering two kinds of delay)
20407 * debug.adb: Introduce d.f flag for compiler
20408 Add -da switch for binder
20410 2005-11-14 Ed Schonberg <schonberg@adacore.com>
20411 Cyrille Comar <comar@adacore.com>
20413 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
20414 for task component, in the case of a limited aggregate. The enclosed
20415 object declaration will create it earlier. Otherwise, in the case of a
20416 nested aggregate, the object may appear in the wrong scope.
20417 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
20418 (Gen_Assign): If the component being assigned is an array type and the
20419 expression is itself an aggregate, wrap the assignment in a block to
20420 force finalization actions on the temporary created for each row of the
20422 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
20423 structures are initialized after all discriminants are set so that
20424 they can be accessed even when their offset is dynamic.
20426 2005-11-14 Robert Dewar <dewar@adacore.com>
20427 Hristian Kirtchev <kirtchev@adacore.com>
20429 * sem_attr.adb: Implement Machine_Rounding attribute
20430 (Analyze_Access_Attribute): The access attribute may appear within an
20431 aggregate that has been expanded into a loop.
20432 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
20433 'Terminated whenever the prefix is of a task interface class-wide type.
20434 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
20435 the prefix is of a task interface class-wide type.
20437 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
20440 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
20441 Remove pragma Inline for [Unaligned_]Valid.
20442 Add comments that Valid routines do not work for Vax_Float
20444 * exp_attr.adb: Implement Machine_Rounding attribute
20446 * snames.h: Add entry for Machine_Rounding attribute
20448 2005-11-14 Javier Miranda <miranda@adacore.com>
20449 Robert Dewar <dewar@adacore.com>
20450 Hristian Kirtchev <kirtchev@adacore.com>
20452 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
20453 and related): For a prefix that is an explicit dereference of an
20454 access to unconstrained packed array type, annotate the dereference
20455 with an actual subtype so GIGI can make a correct size computation.
20456 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
20457 'Unrestricted_Access, if the designated type is an interface we
20458 add a type conversion to force the displacement of the pointer
20459 to the secondary dispatch table.
20460 Use Universal_Real instead of Long_Long_Float when we need a high
20461 precision float type for the generated code (prevents gratuitous
20462 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
20463 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
20464 'Terminated for task interface class-wide objects. Generate a call to
20465 the predefined dispatching routine used to retrieve the _task_id from
20466 a task corresponding record.
20467 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
20469 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
20470 (Check_Dispatching_Operation): Protect the frontend againts
20471 previously detected errors.
20473 * Makefile.rtl: Add new instantiations of system.fat_gen
20475 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
20476 Change name of instantiated package for better consistency
20477 with newly added system.fat_gen instantiations.
20479 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
20480 s-fvagfl.ads: New files.
20482 2005-11-14 Cyrille Comar <comar@adacore.com>
20483 Thomas Quinot <quinot@adacore.com>
20485 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
20486 assignment of a value of a tagged type that has been rewritten to a
20487 block statement, it is known by construction that no checks are
20488 necessary for the statements within the block: analyze it with checks
20490 (Expand_N_If_Statement): When killing a dead then-branch in an
20491 if-statement that has elsif_parts, recompute the Current_Value node
20492 for any entity whose value is known from the condition of the first
20494 (Expand_N_Return_Statement): When returning a mutable record, convert
20495 the return value into its actual subtype in order to help the backend
20496 to return the actual size instead of the maximum. This is another
20497 aftermath of not returning mutable records on the sec-stack anymore.
20499 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
20500 handling of error msg for suspicious reverse range iteration.
20501 (Check_Possible_Current_Value_Condition): Move declaration from body to
20502 spec, to allow this subprogram to be called from exp_ch5.
20504 2005-11-14 Thomas Quinot <quinot@adacore.com>
20506 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
20507 generate a set of nested array aggregates instead of a single flat
20508 aggregate for multi-dimensional arrays.
20510 2005-11-14 Pascal Obry <obry@adacore.com>
20512 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
20513 by spawnve is a process handle, no need to convert. Add a parameter
20514 close to control wether the process handle must be closed.
20515 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
20516 a process handle, not need to convert.
20517 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
20519 * g-expect.adb: (Kill): Document the new close parameter.
20520 (Close): Do not release the process handle in the kill there as
20521 waitpid() is using it.
20522 (Send_Signal): Release the process handle.
20524 2005-11-14 Robert Dewar <dewar@adacore.com>
20526 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
20527 need a high precision float type for the generated code (prevents
20528 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
20531 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
20532 need a high precision float type for the generated code (prevents
20533 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
20535 (Expand_Width_Attribute): In configurable run-time, the attribute is not
20536 allowed on non-static enumeration subtypes. Force a load error to emit
20537 the correct diagnostic.
20539 2005-11-14 Thomas Quinot <quinot@adacore.com>
20540 Robert Dewar <dewar@adacore.com>
20541 Ed Schonberg <schonberg@adacore.com>
20543 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
20544 subtype to compute the size of the designated object at run-time,
20545 create such a subtype and store it in the Actual_Designated_Subtype
20546 attribute of the N_Free_Statement.
20547 Generate itype for classwide designated object in both cases of
20548 user-specified storage pool: specific and class-wide, not only in the
20550 Raise CE when trying to set a not null access type object to null.
20551 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
20552 an explicit loop, because freeze nodes make its position variable.
20554 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
20557 2005-11-14 Javier Miranda <miranda@adacore.com>
20559 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
20560 Build_Stream_Procedure): Add the null-excluding attribute to the first
20562 This has no semantic meaning under Ada95 mode but it is a
20563 requirement under Ada05 mode.
20565 * par-ch3.adb (P_Access_Definition): Addition of warning message if
20566 the null exclusion is used under Ada95 mode
20567 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
20568 (P_Access_Definition): Remove assertion that forbids the use of
20569 the null-exclusion feature in Ada95.
20571 2005-11-14 Robert Dewar <dewar@adacore.com>
20573 * impunit.adb: Exclude container helper units not intended for use by
20576 2005-11-14 Ed Schonberg <schonberg@adacore.com>
20578 * freeze.adb (Freeze_Entity): For an access formal that is an access
20579 to subprogram, freeze the anonymous subprogram type at the same time,
20580 to prevent later freezing in the wrong scope, such as the enclosing
20582 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
20583 subprogram whenever available.
20585 2005-11-14 Arnaud Charlet <charlet@adacore.com>
20588 * gnatvsn.ads (Library_Version): Bump to 4.1
20590 2005-11-14 Robert Dewar <dewar@adacore.com>
20592 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
20593 Storage_Offset to avoid wrap around causing invalid results.
20595 2005-11-14 Pascal Obry <obry@adacore.com>
20597 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
20599 (Scan_Bind_Arg): Fail with an error message if -M option is used
20600 on a native compiler.
20602 2005-11-14 Robert Dewar <dewar@adacore.com>
20603 Vincent Celier <celier@adacore.com>
20605 * gprep.adb: Implement -C switch to scan comments
20607 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
20609 * scans.ads: Comment updates (including new use of Tok_Comment in
20612 * opt.ads: Add documentation for flags that are used by gprmake,
20613 currently and in the next version of gprmake.
20614 (Verbosity_Level): New variable
20615 Add Replace_In_Comments switch
20617 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
20619 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
20621 2005-11-14 Arnaud Charlet <charlet@adacore.com>
20623 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
20624 message, friendlier.
20626 2005-11-14 Robert Dewar <dewar@adacore.com>
20628 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
20630 2005-11-14 Doug Rupp <rupp@adacore.com>
20632 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
20634 2005-11-14 Robert Dewar <dewar@adacore.com>
20636 * interfac.ads: Change declarations of IEEE float types so that we no
20637 longer need a separate version of this package for VMS.
20639 2005-11-14 Ed Schonberg <schonberg@adacore.com>
20641 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
20642 internal entity created for the declaration of a child subprogram body
20643 with no spec as coming from source, to generate proper cross-reference
20646 2005-11-14 Vincent Celier <celier@adacore.com>
20648 * make.adb (Compile_Sources): Change verbose message to minimum
20649 verbosity level High for "is in an Ada library", "is a read-only
20650 library" and "is an internal library",
20651 (Create_Binder_Mapping_File): Path name of ALI file for library project
20652 must include the library directory, not the object directory.
20653 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
20654 for new switches -vl, -vm and -vh.
20655 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
20656 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
20657 (Compile_Sources): Do not attempt to compile if an ALI file is missing
20658 in a project that is externally built.
20659 (Compute_All_Imported_Projects): New procedure
20660 (Gnatmake): Check if importing libraries should be regenerated because
20661 at least an imported library is more recent.
20662 (Initialize): For each project compute the list of the projects it
20663 imports directly or indirectly.
20664 (Add_Library_Search_Dir): New procedure, used in place of
20665 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
20666 put in the search paths.
20667 (Add_Source_Search_Dir): New procedure, used in place of
20668 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
20669 put in the search paths.
20670 (Mark_Directory): Resolve the absolute path the directory before marking
20673 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
20674 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
20675 Switch. Do not handle any exception.
20676 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
20677 so that the switch is recognized as valid.
20678 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
20680 2005-11-14 GNAT Script <nobody@adacore.com>
20682 * Make-lang.in: Makefile automatically updated
20684 2005-11-14 Pascal Obry <obry@adacore.com>
20686 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
20688 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
20689 In both cases the last argument was dropped.
20691 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
20693 * namet.h: (Column_Numbe): New type.
20694 (Get_Column_Number): Define to sinput__get_column_number.
20695 (Instantiation): Define to sinput__instantiation.
20696 (Get_Column_Number): Declare.
20697 (Instantiation): Likewise.
20699 2005-11-14 Robert Dewar <dewar@adacore.com>
20701 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
20702 syntax, which could cause compiler hangs.
20704 2005-11-14 Vincent Celier <celier@adacore.com>
20706 * prj-ext.adb: Take into account new environment variable
20707 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
20709 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
20710 normalize its path name, making it absolute and resolving symbolic
20711 links, and replace the original if resolved path is different.
20713 2005-11-14 Vincent Celier <celier@adacore.com>
20715 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
20716 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
20718 2005-11-14 Emmanuel Briot <briot@adacore.com>
20720 * prj-pp.adb (Print): Do not output the with statement if the
20721 associated name is empty, which happens for virtual extending projects.
20722 (Print): Preserve the "extends all" attribute when printing the project.
20724 * prj-tree.ads (String_Value_Of): Add comment about returned value for
20725 a virtual extending project.
20727 2005-11-14 Ed Schonberg <schonberg@adacore.com>
20729 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
20730 rhs of an assignment even if the type is unconstrained, when the
20731 context is non-expanding.
20732 In an inlined body, if the context type is private,
20733 resolve with its full view, which must be a composite type.
20735 2005-11-14 Robert Dewar <dewar@adacore.com>
20736 Ed Schonberg <schonberg@adacore.com>
20738 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
20739 Do not give obsolescent warning on with of subprogram (since we
20741 (Analyze_With_Clause): Add test for obsolescent package
20742 (Install_Context_Clauses): If the unit is the body of a child unit, do
20743 not install twice the private declarations of the parents, to prevent
20744 circular lists of Use_Clauses in a parent.
20745 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
20746 compiling body of child unit.
20747 Use new class N_Subprogram_Instantiation
20748 (Expand_With_Clause): If this is a private with_clause for a child unit,
20749 appearing in the context of a package declaration, then the implicit
20750 with_clauses generated for parent units are private as well.
20751 (License_Check): Do not generate message if with'ed unit is internal
20753 2005-11-14 Gary Dismukes <dismukes@adacore.com>
20754 Ed Schonberg <schonberg@adacore.com>
20755 Thomas Quinot <quinot@adacore.com>
20757 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
20758 names are internal, because they will not have a corresponding partner
20759 in the actual package.
20760 (Analyze_Formal_Package): Move the setting of the formal package spec's
20761 Generic_Parent field so that it occurs prior to analyzing the package,
20762 to allow proper operation of Install_Parent_Private_Declarations.
20763 (Analyze_Package_Instantiation): Set the instantiated package entity's
20764 Package_Instantiation field.
20765 (Get_Package_Instantiation_Node): Move declaration to package spec.
20766 Retrieve the N_Package_Instantiation node when the Package_Instantiation
20768 (Check_Generic_Child_Unit): Within an inlined call, the only possible
20769 instantiation is Unchecked_Conversion, for which no parents are needed.
20770 (Inline_Instance_Body): Deinstall and record the use_clauses for all
20771 parent scopes of a scope being removed prior to inlining an instance
20773 (Analyze_Package_Instantiation): Do not perform front-end inlining when
20774 the current context is itself an instance within a non-instance child
20775 unit, to prevent scope stack errors.
20776 (Save_References): If the node is an aggregate that is an actual in a
20777 call, rewrite as a qualified expression to preserve some type
20778 information, to resolve possible ambiguities in the instance.
20779 (Instance_Parent_Unit): New global variable to record the ultimate
20780 parent unit associated with a generic child unit instance (associated
20781 with the existing Parent_Unit_Visible flag).
20782 (type Instance_Env): New component Instance_Parent_Unit for stacking
20783 parents recorded in the global Instance_Parent_Unit.
20784 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
20786 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
20787 it's not a top-level unit, and only do this if Instance_Parent_Unit is
20788 not already set. Replace test of Is_Child_Unit with test of parent's
20789 scope against package Standard. Add comments and a ??? comment.
20790 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
20791 on a child instance parent to test that the parent equals
20792 Instance_Parent rather than simply checking that the unit is not a
20794 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
20795 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
20796 a formal interface are ancestors of the corresponding actual.
20797 (Validate_Formal_Interface_Type): Additional legality checks.
20798 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
20799 interface types with ancestors.
20800 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
20801 to diagnose attempts to use generic within its own declaration.
20803 2005-11-14 Ed Schonberg <schonberg@adacore.com>
20804 Javier Miranda <miranda@adacore.com>
20806 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
20808 (Build_Private_Derived_Type): The entity of the created full view of the
20809 derived type does not come from source. If after installing the private
20810 declarations of the parent scope the parent is still private, use its
20811 full view to construct the full declaration of the derived type.
20812 (Build_Derived_Record_Type): Relax the condition that controls the
20813 execution of the check that verifies that the partial view and
20814 the full view agree in the set of implemented interfaces. In
20815 addition, this test now only takes into account the progenitors.
20816 (Derive_Interface_Subprograms): No need to derive subprograms
20817 of ancestors that are interfaces.
20818 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
20820 Change name Is_Package to Is_Package_Or_Generic_Package
20821 (Complete_Subprograms_Derivation): Handle the case in which the full
20822 view is a transitive derivation of the ancestor of the partial view.
20823 (Process_Full_View): Rename local subprogram Find_Interface_In_
20824 Descendant to Find_Ancestor_Interface to leave the code more clear.
20825 Remove wrong code that avoids the generation of an error message
20826 when the immediate ancestor of the partial view is an interface.
20827 In addition some minor reorganization of the code has been done to
20828 leave it more clear.
20829 (Analyze_Type_Declaration): If type has previous incomplete tagged
20830 partial view, inherit properly its primitive operations.
20831 (Collect_Interfaces): Make public, for analysis of formal
20833 (Analyze_Interface_Declaration): New procedure for use for regular and
20834 formal interface declarations.
20835 (Build_Derived_Record_Type): Add support for private types to the code
20836 that checks if a tagged type implements abstract interfaces.
20837 (Check_Aliased_Component_Type): The test applies in the spec of an
20839 (Access_Type_Declaration): Clean up declaration of malformed type
20840 declared as an access to its own classwide type, to prevent cascaded
20842 (Collect_Interfaces): For private extensions and for derived task types
20843 and derived protected types, the parent may be an interface that must
20844 be included in the interface list.
20845 (Access_Definition): If the designated type is an interface that may
20846 contain tasks, create Master_Id for it before analyzing the expression
20847 of the declaration, which may be an allocator.
20848 (Record_Type_Declaration): Set properly the interface kind, for use
20849 in allocators, the creation of master id's for task interfaces, etc.
20851 2005-11-14 Javier Miranda <miranda@adacore.com>
20852 Ed Schonberg <schonberg@adacore.com>
20854 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
20855 omitted in case of stream attribute subprograms.
20856 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
20857 appear immediately after a subprogram body, when there is no previous
20858 subprogram declaration.
20859 Change name Is_Package to Is_Package_Or_Generic_Package
20860 (Process_Formals): A non null qualifier on a non null named access
20861 type is not an error, and is a warning only if Redundant_Constructs
20864 2005-11-14 Gary Dismukes <dismukes@adacore.com>
20865 Ed Schonberg <schonberg@adacore.com>
20867 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
20868 nested within Analyze_Package_Specification to install the private
20869 declarations and use clauses within each of the parent units of a
20870 package instance of a generic child package.
20871 (Analyze_Package_Specification): When entering a private part of a
20872 package associated with a generic instance or formal package, the
20873 private declarations of the parent must be installed (by calling new
20874 procedure Install_Parent_Private_Declarations).
20875 Change name Is_Package to Is_Package_Or_Generic_Package
20876 (Preserve_Full_Attributes): For a synchronized type, the corresponding
20877 record is absent in a generic context, which does not indicate a
20880 2005-11-14 Ed Schonberg <schonberg@adacore.com>
20882 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
20883 not try to rewrite a renamed stream attribute, because the operations
20884 on the type may not have been generated.
20885 Handle properly a renaming_as_body generated for a stream operation
20886 whose default is abstract because the object type itself is abstract.
20887 (Find_Type): If the type is incomplete and appears as the prefix of a
20888 'Class reference, it is tagged, and its list of primitive operations
20889 must be initialized properly.
20890 (Chain_Use_Clauses): When chaining the use clauses that appear in the
20891 private declaration of a parent unit, prior to compiling the private
20892 part of a child unit, find on the scope stack the proper parent entity
20893 on which to link the use clause.
20894 (Note_Redundant_Use): Emit a warning when a redundant use clause is
20896 (Analyze_Object_Renaming): An attribute reference is not a legal object
20897 if it is not a function call.
20899 2005-11-14 Robert Dewar <dewar@adacore.com>
20900 Ed Schonberg <schonberg@adacore.com>
20902 * sem_eval.adb: Implement d.f flag
20903 (Subtype_Statically_Match): A generic actual type has unknown
20904 discriminants when the corresponding actual has a similar partial view.
20905 If the routine is called to validate the signature of an inherited
20906 operation in a child instance, the generic actual matches the full view,
20908 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
20909 Ed Schonberg <schonberg@adacore.com>
20910 Robert Dewar <dewar@adacore.com>
20911 Thomas Quinot <quinot@adacore.com>
20913 * sem_res.adb (Resolve_Call): Provide a better error message whenever
20914 a procedure call is used as a select statement trigger and is not an
20915 entry renaming or a primitive of a limited interface.
20916 (Valid_Conversion): If the operand has a single interpretation do not
20917 remove address operations.
20918 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
20919 statement to inhibit warning.
20920 (Resolve_Unary_Op): Do not produce a warning when
20921 processing an expression of the form -(A mod B)
20922 Use Universal_Real instead of Long_Long_Float when we need a high
20923 precision float type for the generated code (prevents gratuitous
20924 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
20925 (Resolve_Concatenation_Arg): Improve error message when argument is an
20926 ambiguous call to a function that returns an array.
20927 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
20928 there is an implicit operator in the given scope if we are within an
20929 instance: legality check has been performed on the generic.
20930 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
20931 after resolving operand, to avoid false warnings on overloaded calls.
20933 2005-11-14 Ed Schonberg <schonberg@adacore.com>
20934 Javier Miranda <miranda@adacore.com>
20937 * sem_type.adb (Covers): In an inlined body, a composite type matches
20938 a private type whose full view is a composite type.
20939 (Interface_Present_In_Ancestor): Protect the frontend against
20940 previously detected errors to ensure that its compilation
20941 with assertions enabled gives the same output that its
20942 compilation without assertions.
20943 (Interface_Present_In_Ancestor): Add support for private types.
20944 Change name In_Actual to In_Generic_Actual (clean up)
20945 (Disambiguate): New predicate In_Actual, to recognize expressions that
20946 appear in the renaming declaration generated for generic actuals, and
20947 which must be resolved in the outer context.
20949 2005-11-14 Robert Dewar <dewar@adacore.com>
20950 Thomas Quinot <quinot@adacore.com>
20951 Hristian Kirtchev <kirtchev@adacore.com>
20952 Ed Schonberg <schonberg@adacore.com>
20954 * sem_util.ads, sem_util.adb: Change name Is_Package to
20955 Is_Package_Or_Generic_Package.
20956 (Check_Obsolescent): New procedure.
20957 (Set_Is_Public): Remove obsolete junk test.
20958 (Set_Public_Status): Do not set Is_Public on an object whose declaration
20959 occurs within a handled_sequence_of_statemets.
20960 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
20961 for a parameterless procedure.
20962 (Enter_Name): Recognize renaming declarations created for private
20963 component of a protected type within protected operations, so that
20964 the source name of the component can be used in the debugger.
20966 2005-11-14 Ed Schonberg <schonberg@adacore.com>
20967 Robert Dewar <dewar@adacore.com>
20969 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
20970 of a generic subprogram are not visible outside the body.
20971 (Set_Warning_Switch): New procedure (code to set warning mode moved
20972 here from Switch.C so that it can be shared by pragma processing.
20973 (Check_References): Special case warning for non-modified non-imported
20975 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
20976 form with a string literal argument
20978 2005-11-14 Javier Miranda <miranda@adacore.com>
20980 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
20982 (Write): Addition of "not null" to the anonymous access.
20983 (Read): Addition of "not null" to the anonymous access.
20984 (Write): Addition of "not null" to the anonymous access.
20986 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
20987 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
20988 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
20989 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
20990 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
20991 "not null" to the anonymous access.
20993 2005-11-14 Robert Dewar <dewar@adacore.com>
20995 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
20998 2005-11-14 Vincent Celier <celier@adacore.com>
21000 * switch.adb (Bad_Switch): New procedure
21001 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
21002 message when in error.
21004 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
21005 Too_Many_Output_Files): Remove declarations, no longer used.
21006 (Scan_Nat): New parameter Switch
21008 (Bad_Switch): New procedure
21010 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
21011 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
21012 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
21013 to Osint.Fail. Do not handle any exception.
21015 2005-11-14 Vincent Celier <celier@adacore.com>
21017 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
21018 designates a non existent directory.
21020 2005-11-14 Robert Dewar <dewar@adacore.com>
21022 * xgnatugn.adb: Replace invalid membership test by 'Valid
21024 2005-11-14 Vincent Celier <celier@adacore.com>
21026 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
21027 there is no object directory.
21029 2005-11-14 Robert Dewar <dewar@adacore.com>
21031 * usage.adb: Minor adjustment to output format, use nn instead of nnn
21032 (so that -gnateInnn does not run into next column)
21034 2005-11-14 Ed Falis <falis@adacore.com>
21036 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
21039 2005-11-14 Cyrille Comar <comar@adacore.com>
21041 * s-chepoo.ads: Add comments on Dereference.
21042 Remove unnecessary inherited abstract primitives.
21045 2005-11-14 Robert Dewar <dewar@adacore.com>
21047 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
21048 node parameter, not needed, since it is available as Declaration_Node.
21050 2005-11-14 Geert Bosch <bosch@adacore.com>
21052 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
21053 grammatically correct.
21055 2005-11-14 Vincent Celier <celier@adacore.com>
21057 * s-fileio.ads: Correct spelling error in comment
21059 2005-11-14 Cyrille Comar <comar@adacore.com>
21060 Robert Dewar <dewar@adacore.com>
21061 Vincent Celier <celier@adacore.com>
21062 Ben Brosgol <brosgol@adacore.com>
21063 Jose Ruiz <ruiz@adacore.com>
21064 Pascal Obry <obry@adacore.com>
21067 Document that -fstack-check is needed for strict compliance with the
21068 Ada 95 Reference Manual.
21069 Correct reference to VAX systems to meet HP guidelines
21070 Add documentation for new gnatmake switches -vl, -vm and -vh
21071 Replace DEC Ada by HP Ada
21072 Replace DIGITAL by HP
21073 Remove empty section on tools in compatibility section
21074 Clarify the Windows convention semantics.
21075 Document the Win32 calling convention.
21076 The Stdcall, Win32 and DLL convention are synonyms.
21077 Add a note in -gnatR description about zero size record components
21078 Note on new >= and <= warnings for -gnatwc
21079 Document that equal sign after -gnatm is optional.
21080 Note that strip is working fine on DLL built with a Library
21081 Project. The restriction apply only to DLL built with gnatdll.
21082 Update section about the way to debug a DLL.
21083 Update information about the DLL convention.
21084 Document -C switch for gnatprep
21085 Document new attribute Library_ALI_Dir
21086 Update elaboration doc to include implicit Elaborate pragmas now
21087 generated for subprogram instantiations.
21088 Document limitation on executable names that include spaces for --GCC,
21089 --GNATBIND, and --GNATLINK switches.
21090 Document that -w causes -gnatws to be added at start of gcc switches
21092 * gnat_rm.texi: Document that -mieee is needed for generating infinite
21093 and NaN values in case of overflow on machines that are not fully
21094 compliant with the IEEE floating-point standard.
21095 Create a section describing the set of compiler options needed for
21096 strict compliance with the Ada 95 Reference Manual.
21097 Add documentation for pragma Obsolescent applied to a package
21098 Clarify potential issues of mixed language programs related to the
21099 I/O buffering enabling in the elaboration of the GNAT runtime.
21100 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
21101 This documentation only patch adds extra documentsion for pragma
21102 Restrictions (No_Elaboration_Code), explaining why it is not possible
21103 to document this restriction in terms of allowed source constructs.
21104 Document string literal form of pragma Warnings
21105 Document new attribute Library_ALI_Dir
21106 Add documentation on stable attributes in project files that was missing
21108 * gnat-style.texi: Indicate that paragraphs within a single comment
21109 should be separated by empty comment lines
21111 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
21114 * bindusg.adb: Minor cleanup, put -m before -M for consistency
21116 2005-11-14 Robert Dewar <dewar@adacore.com>
21118 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
21119 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
21120 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
21121 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
21122 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
21123 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
21124 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
21125 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
21126 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
21127 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
21128 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
21129 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
21130 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
21131 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
21132 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
21133 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
21134 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
21135 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
21136 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
21137 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
21138 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
21139 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
21140 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
21141 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
21142 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
21143 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
21144 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
21145 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
21146 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
21147 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
21148 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
21149 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
21150 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
21151 system-interix.ads, system-solaris-sparc.ads,
21152 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
21153 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
21154 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
21155 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
21156 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
21157 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
21158 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
21159 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
21160 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
21161 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
21162 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
21163 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
21164 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
21165 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
21166 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
21167 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
21168 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
21169 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
21170 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
21171 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
21172 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
21173 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
21174 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
21175 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
21176 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
21177 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
21178 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
21179 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
21180 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
21181 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
21182 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
21183 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
21184 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
21185 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
21186 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
21187 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
21188 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
21189 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
21190 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
21191 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
21192 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
21193 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
21194 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
21195 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
21196 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
21197 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
21198 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
21199 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
21200 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
21201 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
21202 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
21203 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
21204 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
21205 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
21206 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
21207 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
21208 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
21209 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
21210 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
21211 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
21212 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
21213 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
21214 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
21215 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
21216 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
21217 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
21218 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
21219 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
21220 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
21221 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
21222 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
21223 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
21224 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
21225 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
21226 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
21227 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
21228 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
21229 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
21230 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
21231 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
21232 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
21233 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
21234 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
21235 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
21236 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
21237 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
21238 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
21239 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
21240 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
21241 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
21242 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
21243 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
21244 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
21245 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
21246 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
21247 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
21248 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
21249 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
21250 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
21251 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
21252 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
21253 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
21254 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
21255 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
21256 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
21257 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
21258 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
21259 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
21260 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
21261 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
21262 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
21263 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
21264 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
21265 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
21266 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
21267 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
21268 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
21269 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
21270 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
21271 a-numaux-darwin.ads, a-numaux-darwin.adb,
21272 a-swuwha.ads, a-stunha.ads: Minor reformatting
21274 2005-11-14 Robert Dewar <dewar@adacore.com>
21277 * osint-m.adb: Add pragma Elaborate_All for Osint
21279 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
21282 * trans.c (call_to_gnu): Restore statement lost in translation.
21284 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
21286 * init.c: Use the Linux-specific section for the IA-64/Linux target.
21287 (__gnat_adjust_context_for_raise): Add conditional code so that the
21288 IA-64 is also supported.
21290 2005-11-03 James E Wilson <wilson@specifix.com>
21293 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
21294 TREE_OVERFLOW check.
21296 2005-09-21 Olivier Hainque <hainque@adacore.com>
21299 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
21300 as we create them to store a size in bits.
21302 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
21310 * utils2.c (build_return_expr): New helper function.
21311 * gigi.h (build_return_expr): Declare it.
21312 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
21313 of manually building the RETURN_EXPR tree.
21314 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
21315 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
21316 build_binary_op for the "target pointer" case. Use build_return_expr
21317 instead of manually building the RETURN_EXPR tree.
21319 2005-09-16 Laurent Guerby <laurent@guerby.net>
21322 * s-tpinop.ads: Make this unit Preelaborate.
21324 2005-09-16 Andreas Jaeger <aj@suse.de>
21326 * socket.c: Add string.h for memcpy.
21328 2005-09-05 Arnaud Charlet <charlet@adacore.com>
21330 * dec-io.ads, dec-io.adb: Removed, no longer used.
21332 2005-09-01 Arnaud Charlet <charlet@adacore.com>
21334 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
21336 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
21337 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
21338 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
21339 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
21340 dependent units are Preelaborate.
21341 (Initialize): Call Interrupt_Managemeent.Initialize and
21342 OS_Primitives.Initialize to ensure proper initialization of this unit.
21343 Remove use of System.Soft_Links
21344 Make this unit Preelaborate.
21346 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
21347 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
21348 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
21349 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
21350 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
21351 s-tratas.ads, s-tasinf.ads: Minor reformatting.
21352 Add pragma Preelaborate, since these packages are suitable for this
21356 * s-traent-vms.ads, s-intman-dummy.adb,
21357 s-taprop-dummy.adb: Make this unit Preelaborate.
21359 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
21360 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
21361 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
21362 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
21363 s-intman-solaris.adb, s-intman-irix-athread.adb,
21364 s-intman-irix.adb: Mark this unit Preelaborate.
21365 (Initialize): New procedure.
21368 * s-taspri-linux.ads: Removed.
21370 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
21371 as done by other implementations (e.g. posix).
21373 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
21374 responsible for deferring abort.
21375 Mark this unit Preelaborate.
21377 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
21378 proper initialization of the tasking run-time.
21380 * s-tasdeb.ads: Mark this unit Preelaborate.
21381 (Known_Tasks): Add explicit default value to avoid elaboration code.
21383 * s-inmaop-vms.adb (Elaboration code): Add call to
21384 Interrupt_Management.Initialize since the elaboration code depends on
21385 proper initialization of this package.
21387 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
21388 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
21389 s-osprim-posix.adb: Make this unit Preelaborate.
21391 * a-calend.adb: Add call to OS_Primitives.Initialize
21393 * a-elchha.adb: Update use of Except.Id.Full_Name.
21394 Minor reformatting.
21395 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
21397 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
21398 Move with clauses outside Warnings Off now that dependent units are
21400 Use raise xxx with "..."; Ada 2005 form.
21402 * a-taside.ads, a-taside.adb:
21403 Remove some dependencies, to make it easier to make this unit truly
21405 Rewrite some code to be conformant with Preelaborate rules.
21407 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
21408 marked Preelaborate in the future.
21410 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
21411 these units Preelaborate.
21413 * s-exctab.adb: Update use of Except.Id.Full_Name.
21415 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
21416 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
21417 Set_Exc_Stack_Addr): Removed, no longer used.
21418 Remove reference to *Machine_State_Addr*, no longer needed.
21420 * s-stalib.ads: Mark this unit as Preelaborate[_05].
21421 (Exception_Data): Full_Name is now a System.Address so that this unit
21422 can be made Preelaborate.
21423 Clean up/simplify code thanks to Full_Name being a System.Address.
21424 Remove obsolete pragma Suppress (All_Checks), no longer needed.
21426 * s-taskin.ads, s-taskin.adb:
21427 Move with clauses outside Warnings Off now that dependent units are
21429 Make this unit Preelaborate.
21430 (Initialize): New proceduure, replace elaboration code and makes the
21431 set up of the tasking run-time cleaner.
21432 (Detect_Blocking): Now a function instead of a deferred boolean, to
21433 obey Preelaborate rules.
21435 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
21436 soft links, no longer used.
21438 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
21439 packages are suitable for this categorization.
21441 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
21442 since we compile run-time sources in Ada 2005 mode.
21443 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
21444 avoid having s-taprop*.adb depend on s-soflin and to avoid code
21446 Remove reference to *Machine_State_Addr*, no longer needed.
21448 2005-09-01 Arnaud Charlet <charlet@adacore.com>
21450 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
21451 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
21452 Remove reference to System.Exceptions.
21454 * s-mastop-x86.adb: Removed, no longer used.
21456 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
21458 * a-excach.adb: Minor reformatting.
21460 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
21461 instead fix new warnings that were hidden by this change.
21462 (AAA, ZZZ): Removed, replaced by...
21463 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
21464 are used instead of constants, to help make Ada.Exception truly
21466 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
21467 Raise_Storage_Error): File is now a System.Address, to simplify code.
21468 (Elab code): Removed, no longer used.
21469 (Null_Occurrence): Remove Warnings Off and make this construct
21471 Remove code related to front-end zero cost exception handling, since
21472 it is no longer used.
21473 Remove -gnatL/-gnatZ switches.
21475 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
21476 Update use of Except.Msg.
21478 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
21479 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
21480 to front-end zero cost exception handling, since it is no longer used.
21481 Remove -gnatL/-gnatZ switches.
21483 * lib-writ.ads: Minor reformatting
21486 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
21488 * Make-lang.in: Remove references to s-except.ads
21490 * s-except.ads: Removed, no longer used.
21492 * s-mastop.ads, s-mastop.adb:
21493 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
21494 Remove reference to System.Exceptions.
21496 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
21497 switch-b.adb: Remove code related to front-end zero cost exception
21498 handling, since it is no longer used.
21499 Remove -gnatL/-gnatZ switches.
21501 2005-09-01 Robert Dewar <dewar@adacore.com>
21502 Gary Dismukes <dismukes@adacore.com>
21503 Javier Miranda <miranda@adacore.com>
21505 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
21506 type by valid test and generate warning.
21507 (Tagged_Membership): Generate call to the run-time
21508 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
21509 Change formal name Subtype_Mark to Result_Definition in several calls to
21510 Make_Function_Specification.
21511 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
21512 check for proper accessibility of the operand of a class-wide allocator.
21513 The check can be left out if checks are suppressed or if the expression
21514 has a specific tagged type whose level is known to be safe.
21516 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
21517 generates the run-time check associated with null-excluding entities.
21518 (Expand_N_Return_Statement): Add tests to determine if the accessibility
21519 check on the level of the return expression of a class-wide function
21520 can be elided. The check usually isn't needed if the expression has a
21521 specific type (unless it's a conversion or a formal parameter). Also
21522 add a test for whether accessibility checks are suppressed. Augment
21523 the comments to describe the conditions for performing the check.
21525 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
21526 Javier Miranda <miranda@adacore.com>
21527 Gary Dismukes <dismukes@adacore.com>
21528 Ed Schonberg <schonberg@adacore.com>
21530 * a-tags.adb (IW_Membership): Give support to
21531 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
21532 subprogram has been extended to look for the tag in the ancestors tag
21534 Update the structure of the GNAT Dispatch Table to reflect the
21535 additional two tables used in dispatching selects.
21536 Introduce appropriate array types and record components in
21537 Type_Specific_Data to reflect the two tables.
21538 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
21539 the TSD of a tag, indexed by position.
21540 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
21541 operation kind in the TSD of a tag, indexed by position.
21543 * a-tags.ads: Introduce an enumeration type to capture different
21544 primitive operation kinds. Define a constant reflecting the number of
21545 predefined primitive operations.
21546 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
21547 of an entry wrapper.
21548 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
21549 callable entity of a primitive operation.
21551 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
21552 primitive operations used in dispatching selects for limited
21553 interfaces, limited tagged, task and protected types what implement a
21555 (Freeze_Type): Generate the bodies of the primitive operations used in
21556 dispatching selects for limited tagged, task and protected types that
21557 implement a limited interface. Generate statements to populate the two
21558 auxiliary tables used for dispatching in select statements.
21559 (Freeze_Record_Type): Add call to initialize the dispatch table entries
21560 associated with predefined interface primitive operations.
21561 (Build_Dcheck_Function): Change Set_Subtype_Mark to
21562 Set_Result_Definition.
21563 (Build_Variant_Record_Equality): Change Subtype_Mark to
21565 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
21566 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
21567 (Build_Assignment): Simplify the code that adds the run-time-check.
21568 (Expand_N_Object_Declaration): Code cleanup.
21570 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
21571 entries when there is a protected type that implements a limited
21574 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
21575 common routines used in expansion of dispatching selects.
21576 (Add_Private_Declarations): Select the appropriate protection type when
21577 there is a protected type that implements a limited interface.
21578 (Build_Parameter_Block): Generate a wrapped parameter block.
21579 (Build_Protected_Subprogram_Body): Select the appropriate type for
21580 locking entries when there is a protected type that implements a
21582 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
21583 classified as entry wrappers.
21584 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
21585 asynchronous selects.
21586 (Expand_N_Conditional_Entry_Call): Add support for expansion of
21587 dispatching conditional selects.
21588 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
21589 protection when there is a protected type that implements limited
21591 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
21593 (Extract_Dispatching_Call): Extract the entity of the name of a
21594 dispatching call, the object parameter, actual parameters and
21595 corresponding formals.
21596 (Make_Initialize_Protection): Correct logic of protection initialization
21597 when there is a protected type that implements a limited interface.
21598 (Parameter_Block_Pack): Populate a wrapped parameter block with the
21599 values of actual parameters.
21600 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
21601 block and assign them to the original actual parameters.
21603 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
21604 (Build_Protected_Sub_Specification): Change the type and name of the
21605 last formal to account for the increased variety of protection modes.
21607 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
21608 entities. Used to save the value of the Is_Hidden attribute when the
21609 limited-view is installed.
21610 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
21611 the attribute of procedures classified as entry wrappers.
21612 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
21613 entity of a primitive wrapper.
21614 (Write_Entity_Flags): Output the name and value of the
21615 Is_Primitive_Wrapper attribute.
21616 (Write_Field27_Name): Output the name and entity of the field Wrapped_
21618 (Underlying_Type): If we have an incomplete entity that comes from
21619 the limited view then we return the Underlying_Type of its non-limited
21620 view if it is already available.
21621 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
21622 including operators.
21623 (Write_Field26_Name): Add entry for Overridden_Operation
21624 (Overridden_Operation): New attribute of functions and procedures.
21626 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
21627 predefined position in the dispatch table for the primitive operations
21628 used in dispatching selects.
21629 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
21630 predefined primitive operations and replace it with
21631 Default_Prim_Op_Count.
21632 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
21633 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
21634 the names of the generated primitive operations used in dispatching
21636 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
21637 case of abstract interface types. They will be inherit by the objects
21638 implementing the interface.
21639 (Make_DT): There is no need to inherit the dispatch table of the
21640 ancestor interface for the elaboration of abstract interface types.
21641 The dispatch table will be inherited by the object implementing the
21643 (Copy_Secondary_DTs): Add documentation.
21644 (Validate_Position): Improve this static check in case of
21645 aliased subprograms because aliased subprograms must have
21647 (Init_Predefined_Interface_Primitives): New subprogram that initializes
21648 the entries associated with predefined primitives of all the secondary
21650 (Build_Anonymous_Access_Type): Removed.
21651 (Expand_Interface_Actuals): With the previous cleanup there is no need
21652 to build an anonymous access type. This allows further cleanup in the
21653 code generated by the expander.
21654 (Expand_Interface_Conversion): If the actual is an access type then
21655 build an internal function to handle the displacement. If the actual
21656 is null this function returns null because no displacement is
21657 required; otherwise performs a type conversion that will be
21658 expanded in the code that returns the value of the displaced actual.
21659 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
21660 conversions that have no effect in the generated code because no
21661 displacement is required. Code cleanup; use local variables to
21662 avoid repeated calls to the subprogram directly_designated_type().
21664 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
21665 Classify the primitive operations used in dispatching selects as
21667 (Implements_Limited_Interface): Determine whether some type either
21668 directly implements a limited interface or extends a type that
21669 implements a limited interface.
21670 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
21671 (Expand_Subtype_From_Expr): Do not build actual subtype if the
21672 expression is limited.
21673 (Find_Interface_Tag): Add code to handle class-wide types and
21674 entities from the limited-view.
21676 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
21677 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
21678 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
21679 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
21682 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
21683 of procedure name or prefix that appears as a trigger in a triggering
21686 * uintp.ads: Introduce constants Uint_11 and Uint_13.
21688 2005-09-01 Arnaud Charlet <charlet@adacore.com>
21690 * s-tataat.adb, a-tasatt.adb:
21691 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
21693 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
21694 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
21695 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
21698 2005-09-01 Arnaud Charlet <charlet@adacore.com>
21699 Jose Ruiz <ruiz@adacore.com>
21701 * s-taprop-vxworks.adb:
21702 Move with clauses outside Warnings Off now that dependent units are
21704 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
21705 initialization of this unit.
21706 (Specific): Add new procedures Initialize and Delete so that this
21707 package can be used for VxWorks 5.x and 6.x
21708 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
21709 differences between VxWorks 5.x and 6.x
21710 Minor reformatting.
21711 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
21713 Use only Preelaborate-compatible constructs.
21715 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
21716 Primitives.Operations.
21717 (Delete, Initialize): New procedures.
21719 * s-osinte-vxworks.adb: Body used to handle differences between
21720 VxWorks 5.x and 6.x
21721 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
21723 * s-osinte-vxworks.ads: Minor reformatting.
21724 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
21725 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
21727 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
21728 between Vxworks 5 and 6.
21729 (taskLock, taskUnlock): Removeed, no longer used.
21731 * adaint.c: The wait.h header is not located in the sys directory on
21732 VxWorks when using RTPs.
21733 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
21735 (__gnat_dup): dup is available on Vxworks when using RTPs.
21736 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
21738 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
21740 * expect.c: The wait.h header is not located in the sys directory on
21741 VxWorks when using RTPs.
21743 2005-09-01 Thomas Quinot <quinot@adacore.com>
21745 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
21747 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
21749 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
21750 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
21751 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
21752 g-soccon-freebsd.ads: Add new constants:
21754 SO_RCVTIMEO/SO_SNDTIMEO
21758 Move all target-specific file inclusions and macro definitions to
21759 gsocket.h, in order to ensure that any C code in socket.c will see a
21760 set of constants that is consistent with the contents of g-soccon.ads.
21762 * gsocket.h: Code imported from gen-soccon.c:
21763 Move all target-specific file inclusions and macro definitions to
21764 gsocket.h, in order to ensure that any C code in socket.c will see a set
21765 of constants that is consistent with the contents of g-soccon.ads.
21766 This change also makes gen-soccon self-contained (removing dependencies
21767 upon GCC internal headers).
21769 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
21771 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
21773 * socket.c: Minor reformatting.
21775 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21776 Thomas Quinot <quinot@adacore.com>
21778 * fname-sf.adb, mlib-tgt.ads,
21779 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
21780 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
21781 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
21782 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
21783 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
21784 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
21785 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
21786 makegpr.adb: Remove redundant use_clauses.
21788 2005-09-01 Arnaud Charlet <charlet@adacore.com>
21790 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
21791 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
21792 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
21793 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
21794 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
21795 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
21796 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
21797 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
21798 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
21799 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
21800 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
21801 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
21802 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
21803 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
21804 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
21805 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
21806 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
21807 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
21808 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
21809 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
21810 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
21811 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
21812 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
21813 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
21814 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
21815 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
21816 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
21817 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
21818 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
21819 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
21820 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
21821 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
21822 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
21823 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
21824 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
21825 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
21826 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
21827 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
21828 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
21829 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
21830 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
21831 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
21832 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
21833 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
21834 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
21835 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
21836 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
21837 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
21838 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
21839 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
21840 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
21841 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
21842 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
21843 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
21844 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
21845 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
21846 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
21847 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
21848 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
21849 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
21850 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
21851 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
21852 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
21853 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
21854 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
21855 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
21856 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
21857 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
21858 and always use the no parameter form for consistency.
21860 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
21862 2005-09-01 Robert Dewar <dewar@adacore.com>
21864 * binde.adb: Minor reformatting
21865 (Find_Elab_Order): Output warning if -p used with static elab order
21867 2005-09-01 Robert Dewar <dewar@adacore.com>
21869 * checks.adb (Check_Needed): New procedure, deals with removing checks
21870 based on analysis of short-circuited forms. Also generates warnings for
21871 improper use of non-short-circuited forms.
21874 2005-09-01 Robert Dewar <dewar@adacore.com>
21876 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
21879 2005-09-01 Robert Dewar <dewar@adacore.com>
21881 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
21883 Implement new insertion char < (conditional warning)
21884 * errutil.adb, erroutc.adb: Implement new insertion char <
21885 (conditional warning).
21886 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
21887 (Error_Msg_Warn): New variable for < insertion char.
21888 * prj-nmsc.adb: Implement new errout insertion char < (conditional
21890 (Check_For_Source): Change value of Source_Id only after the current
21891 source has been dealt with.
21893 2005-09-01 Robert Dewar <dewar@adacore.com>
21894 Doug Rupp <rupp@adacore.com>
21896 * exp_attr.adb: Handle vax fpt for 'Valid attribute
21897 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
21898 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
21899 (Valid_D, Valid_F, Valid_G): New functions
21901 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21902 Hristian Kirtchev <kirtchev@adacore.com>
21903 Javier Miranda <miranda@adacore.com>
21905 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
21906 from object notation, the original node is unanalyzed and carries no
21907 semantic information, so that accessiblity checks must be performed on
21908 the type of the actual itself.
21909 (Expand_N_Subprogram_Declaration): Change last actual parameter for
21910 compatibility with Build_Protected_Sub_Specification.
21911 (Check_Overriding_Inherited_Interfaces): Add suport to handle
21912 overloaded primitives.
21913 (Register_Interface_DT_Entry): Use the new name of the formal
21914 the the calls to Expand_Interface_Thunk
21916 * exp_dbug.ads: Augment comments on encoding of protected types to
21917 include the generation of dispatching subprograms when the type
21918 implements at least one interface.
21920 * lib.ads: Extend information in Load_Stack to include whether a given
21921 load comes from a Limited_With_Clause.
21923 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
21924 whether a potential circularity is harmless, because it includes units
21925 loaded through a limited_with clause. Extends previous treatment which
21926 did not handle properly arbitrary combinations of limited and
21927 non-limited clauses.
21929 2005-09-01 Nicolas Setton <setton@adacore.com>
21931 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
21932 to be encoded as typ___XBLU_lowerbound__upperbound instead of
21933 typ___XB_lowerbound__upperbound.
21935 2005-09-01 Thomas Quinot <quinot@adacore.com>
21937 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
21938 dummy access formal for RACW/RAS TypeCode TSS.
21939 (Build_TypeCode_Call): Do not generate dummy null access actual for
21940 calls to the TypeCode TSS.
21942 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21944 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
21945 fully qualified name, to distinguish instances with the same local name.
21947 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
21950 2005-09-01 Robert Dewar <dewar@adacore.com>
21952 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
21955 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
21957 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
21958 (Free): New deallocation procedure for filter elements
21959 (Close): Deallocate any existing filter for the concerned connection
21961 2005-09-01 Laurent Pautet <pautet@adacore.com>
21963 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
21964 position set is provided, we compute one in order to reduce the maximum
21965 length of the keys. This computation first selects a character
21966 position between 1 and the minimum length of the keys in order to
21967 avoid reducing one of the keys to an empty string.
21968 (Initialize, Compute): When the ratio V to K is too low, the algorithm
21969 does not converge. The initialization procedure now comes with a
21970 maximum number of iterations such that when exceeded, an exception is
21971 raised in Compute. The user can initialize this ratio to another value
21973 Reformating and updated headers.
21975 2005-09-01 Javier Miranda <miranda@adacore.com>
21977 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
21978 that given an entity T creates and returns an Itype that duplicates the
21979 contents of T. The returned Itype has the null-exclusion
21980 attribute set to True, and its Etype attribute references T
21981 to keep the association between the two entities.
21982 Update copyright notice
21984 * sem_aggr.adb (Check_Can_Never_Be_Null,
21985 Aggregate_Constraint_Checks, Resolve_Aggregate,
21986 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
21988 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
21990 2005-09-01 Gary Dismukes <dismukes@adacore.com>
21991 Robert Dewar <dewar@adacore.com>
21992 Hristian Kirtchev <kirtchev@adacore.com>
21994 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
21997 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
21999 Call Set_Result_Definition instead of Set_Subtype_Mark.
22000 (P_Subprogram_Specification): Add parsing of anonymous access result
22001 plus null exclusions. Call Set_Result_Definition instead of
22004 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
22005 (P_Access_Type_Definition): Add parsing for an anonymous access result
22006 subtype, plus parsing for null exclusions. Call Set_Result_Definition
22007 instead of Set_Subtype_Mark.
22009 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
22010 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
22011 (Result_Definition): New function for N_Function_Specifications.
22012 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
22013 N_Function_Specification.
22014 (Set_Null_Exclusion_Present): Allow this flag for
22015 N_Function_Specification.
22016 (Set_Result_Definition): New procedure for N_Function_Specifications.
22017 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
22018 and N_Function_Specification.
22020 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
22021 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
22022 Add support for LIMITED NEW for Ada 2005 AI-419
22023 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
22024 syntax for anonymous access results.
22025 Replace Subtype_Mark field by Result_Definition in
22026 N_Function_Specification and N_Access_Definition specs.
22027 Add Null_Exclusion_Present to spec of N_Function_Specification.
22028 (Result_Definition): New function for N_Function_Specification and
22029 N_Access_Function_Definition.
22030 (Set_Result_Definition): New procedure for N_Function_Specification and
22031 N_Access_Function_Definition.
22033 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
22034 Result_Definition for cases of N_Access_Function_Definition and
22035 N_Function_Specification.
22036 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
22038 2005-09-01 Vincent Celier <celier@adacore.com>
22040 * lib-writ.adb: Update Copyright notice
22041 (Write_With_Lines): On platforms where file names are case-insensitive,
22042 record the file names in lower case.
22043 (Write_ALI): For D lines, on platforms where file names are
22044 case-insensitive, record the file names in lower case.
22046 2005-09-01 Ed Schonberg <schonberg@adacore.com>
22047 Emmanuel Briot <briot@adacore.com>
22049 * lib-xref.adb (Output_Overridden_Op): Display information on
22050 overridden operation.
22052 * lib-xref.ads: Add documentation on overridden operations.
22054 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
22057 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
22058 overriding entity information.
22060 2005-09-01 Vincent Celier <celier@adacore.com>
22062 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
22063 including those that are inherited.
22065 2005-09-01 Robert Dewar <dewar@adacore.com>
22067 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
22069 * par-prag.adb: Implement new pragma Debug_Policy
22071 * sem_prag.adb Implement new pragma Debug_Policy
22072 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
22073 Component_Size attribute specification. Give warning for ignored pragma
22076 * snames.h, snames.ads, snames.adb: Introduce entries in
22077 Preset_Names for Name_Disp_Asynchronous_Select,
22078 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
22079 Name_Disp_Timed_Select.
22080 New pragma Debug_Policy
22082 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
22084 Switch -gnata also sets Debug_Pragmas_Enabled
22086 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
22087 handle an explicit -gnata when compiling predefined files.
22089 2005-09-01 Vincent Celier <celier@adacore.com>
22091 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
22092 directories of projects that have no Ada sources.
22094 2005-09-01 Robert Dewar <dewar@adacore.com>
22096 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
22097 (makes a difference for wide characters)
22099 * widechar.adb, widechar.ads:
22100 Add Wide_Char_Byte_Count feature to count chars vs bytes
22102 2005-09-01 Thomas Quinot <quinot@adacore.com>
22103 Ed Schonberg <schonberg@adacore.com>
22104 Robert Dewar <dewar@adacore.com>
22106 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
22107 'Address attribute reference with an overloaded prefix, use the
22108 location of the prefix (not the location of the attribute reference) as
22109 the error location.
22110 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
22111 a function renaming thereof, is a valid prefix for 'Size (where it is
22112 intepreted as a function call).
22113 (Statically_Denotes_Entity): New predicate to determine whether the
22114 prefix of an array attribute can be considered static.
22117 (Eval_Attr): Fix failure to evaluate Component_Size for
22118 unconstrained arrays (resulted in wrong value in packed case, since
22119 back end cannot handle this case)
22121 2005-09-01 Robert Dewar <dewar@adacore.com>
22123 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
22124 error msgs for most common cases.
22125 Use new errout insertion char < (conditional warning)
22127 2005-09-01 Javier Miranda <miranda@adacore.com>
22128 Ed Schonberg <schonberg@adacore.com>
22130 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
22131 become local to the whole package.
22132 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
22133 the package was already analyzed the new algorithm "replaces" the
22134 real entities by the shadow ones. This is required to ensure that
22135 the order of these entities in the homonym chains does not change;
22136 otherwise we can have undefined references at linking time because
22137 in case of conflicts the external name of the entities will have
22138 a suffix that depends on the order of the entities in the chain.
22139 (Remove_Limited_With_Clause): Complementary code that completes the
22140 new algorithm and replaces the shadow entities by the real ones.
22141 (Install_Limited_Withed_Unit): When unchaining entities before the
22142 installation of the shadow entities, only regular entities of the
22143 public part must be taken into account. This is required to
22144 keep this routine in synch with the work done by Remove_Limited_
22146 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
22147 even if unit is analyzed, because the analysis of the unit is
22148 idempotent in any case, and the limited view of the unit may have to
22149 be installed for proper visibility.
22150 (Expand_Limited_With_Clause): Even if the unit in the implicit
22151 with_clause has been analyzed already, a limited view of the package
22152 must be built for the current context, if it does not exist yet.
22154 2005-09-01 Ed Schonberg <schonberg@adacore.com>
22155 Javier Miranda <miranda@adacore.com>
22156 Gary Dismukes <dismukes@adacore.com>
22158 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
22159 defining entity for the instance body, make a new defining identifier
22160 rather than copying the entity of the spec, to prevent accidental
22161 sharing of the entity list.
22162 (Check_Private_View): When exchanging views of private types, build the
22163 list of exchanged views as a stack, to ensure that on exit the exchanges
22164 are undone in the proper order.
22165 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
22166 Restore the compilation environment in case of instantiation_error.
22167 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
22168 for an anonymous access result.
22169 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
22170 (Formal_Entity): Handle properly the case of a formal package that
22171 denotes a generic package renaming.
22173 2005-09-01 Thomas Quinot <quinot@adacore.com>
22175 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
22176 clause if the array aggregate is surrounded by parentheses.
22178 2005-09-01 Cyrille Comar <comar@adacore.com>
22179 Gary Dismukes <dismukes@adacore.com>
22180 Ed Schonberg <schonberg@adacore.com>
22181 Javier Miranda <miranda@adacore.com>
22183 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
22185 to check if a type is Constrained in cases related to code generation
22186 (rather than semantic checking) since otherwise we do not generate
22187 similar code for mutable private types depending if their
22188 discriminants are visible or not.
22189 (Check_Abstract_Overriding): Do not complain about failure to override
22190 the primitive operations used in dispatching selects since they will
22191 always be overriden at the freeze point of the type.
22192 (Access_Definition): Separate out handling for resetting the scope
22193 of an anonymous access function result type. Retrieve the scope
22194 of the associated function rather than using Current_Scope, which
22195 does not have a consistent value (depends on whether we're in the
22196 middle of analyzing formal parameters). Add ??? comment about
22197 finding a cleaner way to handle the special cases of scope setting.
22198 (Process_Incomplete_Dependents): A protected operation is never a
22199 dispatching operation (only its wrapper may be).
22200 (Build_Derived_Record_Type): In case of tagged private types that
22201 implement interfaces add derivation of predefined primitive
22203 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
22204 by two parameters that are used in case of derivation from abstract
22205 interface types: No_Predefined_Prims is used to avoid the derivation
22206 of predefined primitives from the interface, and Predefined
22207 Prims_Only is used to complete the derivation predefined primitives
22208 in case of private tagged types implementing interfaces.
22209 Fix typo in comments
22210 (Find_Interface_In_Descendant): Protect the frontend against
22211 wrong code with large circularity chains.
22212 (Is_Private_Overriding): Add support for entities overriding interface
22213 subprograms. The test failed because Entities associated with overriden
22214 interface subprograms are always marked as hidden (and used to build
22215 the secondary dispatch table); in this case the overriden entity is
22216 available through the field abstract_interface_alias (cf. override_
22217 dispatching_operation)
22218 (Access_Definition): Set the scope of the type to Current_Scope for the
22219 case of a function with an anonymous access result type.
22220 (Access_Subprogram_Declaration): Handle creation of the type entity for
22221 an access-to-function type with an anonymous access result.
22222 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
22223 in handling for N_Access_Function_Definition.
22224 (Analyze_Subtype_Declaration): Modify the text of error message.
22225 (Derived_Type_Declaration): Modify the text of error message.
22226 (Process_Subtype): Modify the text of error message plus cleanup
22227 of one redundant error message.
22228 (Analyze_Component_Declaration): Code cleanup.
22229 (Analyze_Object_Declaration): Code cleanup.
22230 (Analyze_Subtype_Declaration): Propagate the null-exclusion
22231 attribute in case of access types. Code cleanup.
22232 (Array_Type_Declaration): Code cleanup.
22233 (Process_Discriminants): Create the new null-excluding itype
22234 if required. Code cleanup.
22235 (Process_Subtype): Create the new null-excluding itype if
22236 required. Code cleanup.
22237 (Build_Derived_Record_Type): Code cleanup to avoid calling
22238 twice the subprogram derive_subprograms in case of private
22239 types that implement interfaces. In this particular case the
22240 subprogram Complete_Subprograms_Derivation already does the
22241 job associated with the second call.
22243 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
22244 conversion to the full view when generating an operation for a
22245 discriminant whose type may currently be private.
22247 2005-09-01 Ed Schonberg <schonberg@adacore.com>
22248 Javier Miranda <miranda@adacore.com>
22250 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
22251 V (Obj.F), the rewriting does not involve the indexed component, but
22252 only the selected component itself.
22253 Do not apply the transformation if the analyzed node is an actual of a
22254 call to another subprogram.
22255 (Complete_Object_Operation): Retain the entity of the
22256 dispatching operation in the selector of the rewritten node. The
22257 entity will be used in the expansion of dispatching selects.
22258 (Analyze_One_Call): Improve location of the error message associated
22260 (Analyze_Selected_Component): No need to resolve prefix when it is a
22261 function call, resolution is done when parent node is resolved, as
22263 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
22264 when attempting to resolve a call transformed from its object notation.
22265 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
22266 of the argument list for each interpretation of the operation.
22267 (Try_Object_Operation): The designated type of an access parameter may
22268 be an incomplete type obtained through a limited_with clause, in which
22269 case the primitive operations of the type are retrieved from its full
22271 (Analyze_Call): If this is an indirect call, and the return type of the
22272 access_to_subprogram is incomplete, use its full view if available.
22274 2005-09-01 Javier Miranda <miranda@adacore.com>
22275 Gary Dismukes <dismukes@adacore.com>
22277 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
22278 access types the null-exclusion and access-to-constant attributes must
22280 (Analyze_Return_Statement): When the result type is an anonymous access
22281 type, apply a conversion of the return expression to the access type
22282 to ensure that appropriate accessibility checks are performed.
22283 (Analyze_Return_Type): For the case of an anonymous access result type,
22284 generate the Itype and set Is_Local_Anonymous_Access on the type.
22285 Add ??? placeholder for check to disallow returning a limited object
22286 in Ada 2005 unless it's an aggregate or a result of a function call.
22287 Change calls from Subtype_Mark to Result_Definition.
22288 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
22289 Result_Definition in call to Make_Function_Specification.
22290 (Build_Body_To_Inline): Change Set_Subtype_Mark to
22291 Set_Result_Definition.
22292 (Make_Inequality_Operator): Change formal Subtype_Mark to
22293 Result_Definition in call to Make_Function_Specification.
22294 (Process_Formals): Create the new null-excluding itype if required.
22295 (New_Overloaded_Entity): For an entity overriding an interface primitive
22296 check if the entity also covers other abstract subprograms in the same
22297 scope. This is required to handle the general case, that is, overriding
22298 other interface primitives and overriding abstract subprograms inherited
22299 from some abstract ancestor type.
22300 (New_Overloaded_Entity): For an overriding entity that comes from
22301 source, note the operation that it overrides.
22302 (Check_Conformance, Type_Conformant): Addition of one new formal
22303 to skip controlling formals in the analysis. This is used to
22304 handle overloading of abstract interfaces.
22305 (Base_Types_Match): Add missing case for types imported from
22306 limited-with clauses
22307 (New_Overloaded_Entity): Add barrier to protect the use of
22308 the "alias" attribute.
22310 2005-09-01 Ed Schonberg <schonberg@adacore.com>
22312 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
22313 verify that the procedure and the entry are mode conformant.
22314 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
22315 as a different operator, which is often a cut-and-paste error.
22317 2005-09-01 Javier Miranda <miranda@adacore.com>
22318 Ed Schonberg <schonberg@adacore.com>
22320 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
22321 used in controlling parameters exclude null because it is necessary to
22322 read the tag to dispatch, and null has no tag.
22323 (Override_Dispatching_Operation): If the previous operation is inherited
22324 from an interface, it becomes hidden and does not participate in later
22327 2005-09-01 Javier Miranda <miranda@adacore.com>
22328 Ed Schonberg <schonberg@adacore.com>
22329 Gary Dismukes <dismukes@adacore.com>
22331 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
22332 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
22333 the expander will generate the corresponding run-time check to evaluate
22335 (Resolve_Call): Check for legal type of procedure name or prefix that
22336 appears as a trigger in a triggering alternative.
22337 (Valid_Conversion): If expression is ambiguous and the context involves
22338 an extension of System, remove System.Address interpretations.
22339 (Resolve_Qualified_Expression): Reject the case of a specific-type
22340 qualification applied to a class-wide argument. Enhance comment
22341 to explain checking of Original_Node.
22342 (Resolve_Type_Conversion): The location of the error message was not
22343 general enough to handle the general case and hence it has been removed.
22344 In addition, this patch improves the text of the message.
22345 (Resolve_Type_Conversion): Add missing support for access to interface
22347 (Resolve_Type_Conversion): If the target is a class-wide interface type,
22348 do not expand if the expression is the actual in a call, because proper
22349 expansion will take place when the call itself is expanded.
22350 (Resolve_Allocator): If the context is an unchecked conversion, the
22351 allocator inherits its storage pool, if any, from the target type of
22354 2005-09-01 Ed Schonberg <schonberg@adacore.com>
22355 Javier Miranda <miranda@adacore.com>
22357 * sem_type.adb (Add_One_Interp): If a candidate operation is an
22358 inherited interface operation that has an implementation, use the
22359 implementation to avoid spurious ambiguities.
22360 (Interface_Present_In_Ancestor): In case of concurrent types we can't
22361 use the Corresponding_Record_Typ attribute to look for the interface
22362 because it is set by the expander (and hence it is not always
22363 available). For this reason we traverse the list of interfaces
22364 (available in the parent of the concurrent type).
22365 (Interface_Present_In_Ancestor): Handle entities from the limited view
22367 2005-09-01 Ed Schonberg <schonberg@adacore.com>
22369 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
22370 from the list of required components.
22371 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
22372 primitive procedure of a limited interface with a controlling first
22374 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
22376 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
22377 capture if it is generated in the second operand of a short-circuit
22379 Do not capture values for variables with address clauses.
22380 (Is_Object_Reference): Treat a function call as an object reference only
22381 if its type is not Standard_Void_Type.
22383 2005-09-01 Ed Schonberg <schonberg@adacore.com>
22385 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
22386 to a variable that is statically known to be constant.
22388 2005-09-01 Geert Bosch <bosch@adacore.com>
22389 Robert Dewar <dewar@adacore.com>
22391 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
22392 (VAXGF_Safe_First): Idem.
22394 2005-09-01 Robert Dewar <dewar@adacore.com>
22395 Arnaud Charlet <charlet@adacore.com>
22397 * g-dirope.ads: Minor reformatting
22398 Document that bounds of result of Base_Name match the input index
22400 Add documentation on environment variable syntax for Expand_Path
22402 * gnat_ugn.texi: Update documentation to include mention of -m switches
22403 Document new treatment of wide characters in max line length
22405 Remove -gnatL/-gnatZ switches, no longer used.
22406 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
22409 * gnat_rm.texi: Add doc for two argument form of pragma
22410 Float_Representation.
22411 Add documentation for pragma No_Strict_Aliasing
22412 Add note that explicit component clause overrides pragma Pack.
22413 Add documentation of pragma Debug_Policy
22415 2005-09-01 Matthew Heaney <heaney@adacore.com>
22417 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
22418 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
22419 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
22420 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
22421 draft (Draft 13, August 2005) of Ada Amendment 1.
22423 2005-09-01 Arnaud Charlet <charlet@adacore.com>
22425 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
22426 Note that the platform-specific version of g-soccon.ads for VMS is now
22427 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
22428 really is a package spec).
22429 Replace s-taspri-linux.ads by s-taspri-posix.ads
22430 Remove references to s-mastop-x86.adb
22432 * system-vxworks-xscale.ads: Removed, no longer used.
22433 * s-vxwork-xscale.ads: Removed, no longer used.
22435 2005-09-01 Robert Dewar <dewar@adacore.com>
22437 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
22438 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
22439 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
22440 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
22441 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
22442 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
22443 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
22444 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
22445 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
22446 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
22447 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
22448 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
22449 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
22450 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
22451 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
22452 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
22453 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
22454 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
22455 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
22456 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
22457 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
22459 2005-08-29 Arnaud Charlet <charlet@adacore.com>
22463 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
22465 2005-08-29 Arnaud Charlet <charlet@adacore.com>
22466 Doug Rupp <rupp@adacore.com>
22468 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
22470 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
22471 this code in the GNAT run-time.
22473 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
22476 * init.c (__gnat_error_handler [many]): Mark "msg" as const
22477 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
22479 (__gnat_inside_elab_final_code): Moved here from
22480 Standard_Library and only defined for the compiler.
22481 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
22482 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
22483 using RTPs because directly vectored Interrupt routines are not
22484 supported on this configuration.
22485 (getpid): Do not redefine this function on VxWorks when using RTPs
22486 because this primitive is well supported by the RTP libraries.
22487 (copy_msg): Correct the code that checks for buffer overflow.
22488 Discovered during code reading.
22490 2005-08-29 Olivier Hainque <hainque@adacore.com>
22492 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
22493 a library level mutable variable with an initializer, tell
22494 build_allocator to ignore the initializer's size. It may not be large
22495 enough for all the values that might be assigned to the variable later
22498 2005-08-29 Arnaud Charlet <charlet@adacore.com>
22499 Eric Botcazou <ebotcazou@adacore.com>
22501 * trans.c: Protect < in error msg with quote
22502 Replace GCC_ZCX by Back_End_Exceptions.
22503 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
22504 has been sufficiently aligned in the record.
22506 2005-08-15 James E. Wilson <wilson@specifix.com>
22508 * system-linux-alpha.ads: Change ia64 to alpha.
22510 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
22512 * decl.c, utils.c: Fix comment typos.
22514 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
22516 * decl.c, init.c, initialize.c: Fix comment typos.
22518 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
22520 Make CONSTRUCTOR use VEC to store initializers.
22521 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
22523 * trans.c (extract_values): Likewise.
22524 * utils.c (convert, remove_conversions): Likewise.
22525 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
22526 gnat_build_constructor): Likewise.
22528 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
22530 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
22532 (compare_field_bitpos): Likewise.
22534 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
22536 * utils.c (create_var_decl): Only set DECL_COMMON on
22537 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
22538 VAR_OR_FUNCTION_DECL_P.
22540 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
22542 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
22545 2005-07-07 Pascal Obry <obry@adacore.com>
22547 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
22548 returned type on Windows.
22550 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
22553 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
22554 exception in this case.
22555 Simplify the code as "Image (Image'Range)" = "Image".
22557 2005-07-07 Vincent Celier <celier@adacore.com>
22559 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
22560 the destructor/constructor attributes for <lib>final/<lib>init.
22562 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
22564 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
22566 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
22567 type if the parameter is not passed by copy but reference by default.
22569 2005-07-07 Javier Miranda <miranda@adacore.com>
22571 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
22572 Reimplementation of the support for abstract interface types in order
22573 to leave the code more clear and easy to maintain.
22575 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
22576 abstract interface types in order to leave the code clearer and easier
22579 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
22580 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
22581 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
22582 appropriate entry of the secondary dispatch table.
22583 (Make_DT): Add code to inherit the secondary dispatch tables of
22586 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
22587 implementing both functionalities by means of a common routine, each
22588 routine has its own code.
22590 2005-07-07 Javier Miranda <miranda@adacore.com>
22592 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
22594 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
22597 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
22600 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
22601 use of tag incomplete types.
22603 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
22604 give support to tagged incomplete types.
22606 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
22607 expression is a discriminant reference and its type is private, as can
22608 happen within a stream operation for a mutable record, use the full
22609 view of the type to resolve the case alternatives.
22610 (Analyze_Assignment): Check wrong dereference of incomplete types.
22612 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
22615 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
22618 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
22619 N_Incomplete_Type_Declaration nodes.
22621 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
22622 Tag_Present to give support to tagged incomplete types:
22624 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
22627 2005-07-07 Olivier Hainque <hainque@adacore.com>
22630 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
22631 definitions for the Unwind wrappers in the compiler case.
22633 2005-07-07 Ed Schonberg <schonberg@adacore.com>
22634 Javier Miranda <miranda@adacore.com>
22636 * par-load.adb (Load): If a child unit is loaded through a limited_with
22637 clause, each parent must be loaded as a limited unit as well.
22639 * sem_ch10.adb (Previous_Withed_Unit): Better name for
22640 Check_Withed_Unit. Return true if there is a previous with_clause for
22641 this unit, whether limited or not.
22642 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
22644 (Is_Visible_Through_Renamings): New local subprogram of install_limited
22645 _withed_unit that checks if some package installed through normal with
22646 clauses has a renaming declaration of package whose limited-view is
22647 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
22648 of the current Draft document for Ada 2005.
22649 (Analyze_Context): Complete the list of compilation units that
22650 are allowed to contain limited-with clauses. It also contains
22651 checks that were previously done by Install_Limited_Context_Clauses.
22652 This makes the code more clear and easy to maintain.
22653 (Expand_Limited_With_Clause) It is now a local subprogram of
22654 Install_Limited_Context_Clauses, and contains the code that adds
22655 the implicit limited-with clauses for parents of child units.
22656 This functionality was prevously done by Analyze_Context.
22658 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
22661 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
22662 been erroneously named in a limited-with clause of its own context.
22663 In this case the error has been previously notified by Analyze_Context.
22665 2005-07-07 Ed Schonberg <schonberg@adacore.com>
22667 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
22668 generic package that contains local declarations with the same name.
22669 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
22671 2005-07-07 Bernard Banner <banner@adacore.com>
22673 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
22674 ia64 platform only on platforms that you the GCC unwind library
22675 rather than the system unwind library.
22677 2005-07-07 Thomas Quinot <quinot@adacore.com>
22679 * expect.c: Minor reformatting
22681 2005-07-07 Sergey Rybin <rybin@adacore.com>
22683 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
22686 * gnat_ugn.texi: Add description for new gnatpp option
22689 2005-07-04 Thomas Quinot <quinot@adacore.com>
22691 * g-expect-vms.adb, g-expect.ads, g-expect.adb
22692 (Get_Command_Output): New subprogram to launch a process and get its
22693 standard output as a string.
22695 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
22696 Olivier Hainque <hainque@adacore.com>
22698 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
22699 fetch a code-range descriptor associated with the machine state. On
22700 failure set the machine state's PC to 0; on success, pass the
22701 descriptor to exc_virtual_unwind.
22703 * init.c (Tru64 section): New function __gnat_set_code_loc.
22705 2005-07-04 Vincent Celier <celier@adacore.com>
22707 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
22708 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
22709 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
22710 Remove all auto-initialization code, as this is now done through the
22711 constructor mechanism.
22713 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
22714 __gnat_sals_init_using_constructors): New functions.
22716 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
22717 Linker_Constructor and Linker_Destructor when switch -a is used.
22719 * bindusg.adb: Add line for new switch -a
22721 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
22722 (Gnatbind): When switch -a is used, check if it is allowed
22724 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
22726 2005-07-04 Joel Brobecker <brobecker@adacore.com>
22728 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
22729 This prevents us from hitting a limitation during the debug info
22730 generation when using stabs.
22731 (Prims_Ptr): Likewise.
22733 2005-07-04 Gary Dismukes <dismukes@adacore.com>
22734 Ed Schonberg <schonberg@adacore.com>
22735 Javier Miranda <miranda@adacore.com>
22737 * checks.adb (Null_Exclusion_Static_Checks): In the case of
22738 N_Object_Declaration, only perform the checks if the Object_Definition
22739 is not an Access_Definition.
22741 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
22742 where the parent of an the access definition is an N_Object_Declaration
22743 when determining the Associated_Node_For_Itype and scope of an
22744 anonymous access-to-subprogram type.
22746 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
22747 Corresponding_Spec on the body created for a null procedure. Add ???
22748 comment. Remove New_Copy_Tree call on body argument to
22749 Set_Body_To_Inline.
22751 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
22752 discriminants, use the type of the actual as well, because the
22753 discriminants may be read by the called subprogram.
22755 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
22756 access type we do not need to handle non-limited views.
22757 (Build_Derived_Record_Type): Additional check to check that in case of
22758 private types, interfaces are only allowed in private extensions.
22760 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
22762 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
22763 <Pragma_Linker_Destructor>: Likewise.
22765 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
22766 Pragma_Linker_Destructor.
22768 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
22769 ATTR_LINK_DESTRUCTOR.
22770 (static_ctors, static_dtors): New variables.
22772 * misc.c (gnat_expand_body): Output current function as constructor
22773 and destructor if requested.
22775 * par-prag.adb: Add processing for pragma Linker_Constructor and
22778 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
22779 extracted from Check_Interrupt_Or_Attach_Handler.
22780 (Check_Interrupt_Or_Attach_Handler): Invoke it.
22781 Implement pragma Linker_Constructor and Linker_Destructor with the
22782 help of Find_Unique_Parameterless_Procedure.
22783 Replace Name_Alias with Name_Target for pragma Linker_Alias.
22785 * snames.h, snames.ads, snames.adb:
22786 Add Name_Linker_Constructor and Name_Linker_Destructor.
22787 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
22788 * snames.adb: Remove Name_Alias.
22790 * trans.c: Include cgraph.h.
22791 (build_global_cdtor): New function.
22792 (Compilation_Unit_to_gnu): Build global constructor and destructor if
22794 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
22796 (addressable_p) <COMPONENT_REF>: Unconditionally test
22797 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
22799 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
22800 variable if it is external.
22802 (static_ctors, static_dtors): New global variables.
22803 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
22804 <ATTR_LINK_DESTRUCTOR>: Likewise.
22805 (end_subprog_body): Chain function as constructor and destructor
22808 * exp_util.adb (Force_Evaluation): Unconditionally invoke
22809 Remove_Side_Effects with Variable_Ref set to true.
22810 (Remove_Side_Effects): Handle scalar types first. Use a renaming
22811 for non-scalar types even if Variable_Ref is true and for class-wide
22814 2005-07-04 Ed Schonberg <schonberg@adacore.com>
22816 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
22817 to prevent spurious warnings.
22819 2005-07-04 Thomas Quinot <quinot@adacore.com>
22821 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
22822 Itypes. Itypes are really unexpected there.
22823 (Build_TypeCode_Function): Generalise special processing for Itypes to
22824 handle the case of numeric implicit base types as well as enumerated
22827 2005-07-04 Ed Schonberg <schonberg@adacore.com>
22829 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
22830 controlled, indicate the expected type of the dereference that is
22831 created for the call to Deep_Finalize, to prevent spurious errors when
22832 the designated type is private and completed with a derivation from
22833 another private type.
22835 2005-07-04 Vincent Celier <celier@adacore.com>
22837 * make.adb (Change_To_Object_Directory): When unable to change the
22838 current dir to the object directory, output the full path of the
22841 2005-07-04 Matthew Gingell <gingell@adacore.com>
22843 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
22845 * indepsw-linux.adb: Replace by...
22847 * indepsw-gnu.adb: ...this new file
22849 2005-07-04 Vincent Celier <celier@adacore.com>
22851 * mlib-prj.adb (Auto_Initialize): New constant String
22852 (SALs_Use_Constructors): New Boolean function
22853 (Build_Library): Call gnatbind with Auto_Initialize switch when
22854 SALs_Use_Constructors returns True.
22856 * mlib-tgt.ads: Minor reformatting
22858 * mlib-utl.ads: Minor reformatting
22860 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
22862 2005-07-04 Ed Schonberg <schonberg@adacore.com>
22864 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
22865 single protected declarations can have an interface list.
22866 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
22867 with seriously malformed entry declarations, and lead to compilation
22868 abandoned messages.
22870 2005-07-04 Javier Miranda <miranda@adacore.com>
22872 * par-load.adb: Load the context items in two rounds.
22874 2005-07-04 Robert Dewar <dewar@adacore.com>
22876 * scng.adb: Do not consider Mod used as an attribute to be a keyword
22878 2005-07-04 Ed Schonberg <schonberg@adacore.com>
22879 Javier Miranda <miranda@adacore.com>
22881 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
22882 type extension needs a limited view.
22883 Remove previous restriction on private types available through the
22884 limited-view (only tagged private types were previously allowed).
22885 (Install_Withed_Unit): In the code that implements the
22886 legality rule given in AI-377, exclude a child unit with the name
22887 Standard, because it is a homonym of the Standard environment package.
22889 2005-07-04 Thomas Quinot <quinot@adacore.com>
22891 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
22892 overloaded function call, carry interpretations from the original tree
22895 2005-07-04 Ed Schonberg <schonberg@adacore.com>
22897 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
22898 types check whether some designated type is a limited view, and use
22899 the non-limited view if available.
22901 2005-07-04 Gary Dismukes <dismukes@adacore.com>
22903 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
22904 constraint of full view of a private view T1 if present, when T2 is a
22905 discriminated full view.
22907 2005-07-04 Thomas Quinot <quinot@adacore.com>
22909 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
22910 actual that is a view conversion of a bit packed array reference.
22912 2005-07-04 Ed Schonberg <schonberg@adacore.com>
22914 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
22915 present before checking whether an interface type covers a synchronized
22918 2005-07-04 Ed Schonberg <schonberg@adacore.com>
22920 * sem_util.adb (Is_Object_Reference): An indexed or selected component
22921 whose prefix is an implicit dereference is an object reference. Removes
22922 spurious errors when compiling with -gnatc.
22924 2005-07-04 Robert Dewar <dewar@adacore.com>
22927 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
22929 2005-07-04 Matthew Gingell <gingell@adacore.com>
22931 * tracebak.c: Enable tracebacks on ia64 platforms
22933 2005-07-04 Vincent Celier <celier@adacore.com>
22935 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
22936 the GNAT BIND command, as gnatbind accepts multiples ALI files with
22937 the -L or -n switches.
22939 2005-07-04 Vincent Celier <celier@adacore.com>
22941 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
22942 correctly computed and the main project data is not modified while
22944 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
22945 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
22946 c++linker as this does not work on some platforms.
22948 2005-07-04 Matthew Heaney <heaney@adacore.com>
22950 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
22952 * a-coinve.adb: Perform constraint checks explicitly.
22954 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22955 Thomas Quinot <quinot@adacore.com>
22957 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
22958 new target gen-soccon.
22960 2005-07-04 Robert Dewar <dewar@adacore.com>
22962 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
22964 2005-07-04 Thomas Quinot <quinot@adacore.com>
22966 * g-socket.ads (Check_Selector): Minor rewording of comment.
22968 2005-07-04 Vincent Celier <celier@adacore.com>
22970 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
22972 2005-07-04 Thomas Quinot <quinot@adacore.com>
22974 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
22976 2005-07-04 Sergey Rybin <rybin@adacore.com>
22978 * gnat_ugn.texi: Add description of --eol gnatpp option
22980 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
22981 Thomas Quinot <quinot@adacore.com>
22983 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
22984 if the user wants all calls of a subprogram to be flagged,
22985 independently of whether they are made from within the same unit or
22987 Mention restriction for pragma Linker_Alias on some platforms.
22988 Document pragma Linker_Constructor and Linker_Destructor.
22989 Rewrite documentation of Weak_External, Linker_Section and
22990 Linker_Alias pragmas.
22992 2005-07-04 Arnaud Charlet <charlet@adacore.com>
22994 * s-stausa.ads, s-stausa.adb: New files.
22996 2005-06-30 Kelley Cook
22998 * all files: Update FSF address in copyright headers.
22999 * gen-soccon.co (main): Output new FSF address in generated files.
23001 2005-06-28 Paul Brook <paul@codesourcery.com>
23003 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
23005 2005-06-14 Olivier Hainque <hainque@adacore.com>
23006 Eric Botcazou <ebotcazou@adacore.com>
23008 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
23009 exc_unwind, now that we are generating proper .debug_frame output for
23012 * tracebak.c: Remove the mips-irix section, as we are now using the
23013 s-mastop based unwinder again.
23014 Under SPARC/Solaris, take into account the stack bias to compute the
23015 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
23018 2005-06-14 Doug Rupp <rupp@adacore.com>
23020 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
23022 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
23024 2005-06-14 Pascal Obry <obry@adacore.com>
23026 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
23027 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
23028 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
23031 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
23032 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
23033 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
23034 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
23035 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
23036 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
23037 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
23038 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
23039 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
23040 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
23041 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
23042 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
23043 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
23044 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
23045 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
23046 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
23047 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
23048 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
23049 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
23050 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
23051 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
23052 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
23053 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
23054 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
23055 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
23056 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
23057 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
23058 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
23059 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
23060 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
23061 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
23062 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
23063 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
23064 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
23065 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
23066 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
23067 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
23068 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
23069 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
23070 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
23071 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
23072 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
23073 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
23074 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
23075 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
23076 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
23077 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
23078 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
23079 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
23080 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
23081 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
23082 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
23083 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
23084 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
23085 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
23086 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
23087 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
23088 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
23089 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
23090 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
23091 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
23092 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
23093 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
23094 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
23095 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
23096 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
23097 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
23098 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
23099 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
23100 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
23101 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
23102 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
23103 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
23104 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
23105 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
23106 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
23107 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
23108 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
23109 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
23110 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
23111 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
23112 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
23113 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
23114 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
23115 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
23116 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
23117 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
23118 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
23119 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
23120 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
23121 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
23122 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
23123 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
23124 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
23125 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
23126 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
23127 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
23128 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
23129 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
23130 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
23131 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
23132 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
23133 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
23134 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
23135 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
23136 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
23137 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
23138 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
23139 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
23140 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
23141 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
23142 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
23143 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
23144 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
23145 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
23146 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
23147 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
23148 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
23149 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
23150 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
23151 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
23152 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
23153 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
23154 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
23155 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
23156 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
23157 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
23158 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
23159 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
23160 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
23161 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
23162 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
23163 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
23165 2005-06-14 Jose Ruiz <ruiz@adacore.com>
23166 Arnaud Charlet <charlet@adacore.com>
23168 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
23169 longer protected objects. They have been replaced by lower-level
23170 suspension objects made up by a mutex and a condition variable (or
23171 their equivalent given a particular OS) plus some internal data to
23172 reflect the state of the suspension object.
23173 (Initialize, Finalize): Add this initialization procedure for
23174 Suspension_Object, which is a controlled type.
23175 (Finalize): Add the finalization procedure for Suspension_Object,
23176 which is a controlled type.
23178 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
23179 Ada.Synchronous_Task_Control because there is no longer a need for a
23180 VxWorks specific version of this package. Target dependencies
23181 has been moved to System.Task_Primitives.Operations.
23183 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
23185 (InitializeCriticalSection, EnterCriticalSection,
23186 LeaveCriticalSection, DeleteCriticalSection): Replace the type
23187 pCriticalSection by an anonymous access type so that we avoid problems
23188 of accessibility to local objects.
23190 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
23191 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
23192 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
23193 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
23194 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
23195 set the environment task mask here.
23196 (Current_State): Add this function that returns the state of the
23198 (Set_False): Add this procedure that sets the state of the suspension
23200 (Set_True): Add this procedure that sets the state of the suspension
23201 object to True, releasing the task that was suspended, if any.
23202 (Suspend_Until_True): Add this procedure that blocks the calling task
23203 until the state of the object is True. Program_Error is raised if
23204 another task is already waiting on that suspension object.
23205 (Initialize): Add this procedure for initializing the suspension
23206 object. It initializes the mutex and the condition variable which are
23207 used for synchronization and queuing, and it sets the internal state
23209 (Finalize): Add this procedure for finalizing the suspension object,
23210 destroying the mutex and the condition variable.
23212 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
23213 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
23214 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
23215 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
23216 which provides a low-level abstraction (using operating system
23217 primitives) for Ada.Synchronous_Task_Control.
23218 This object is made up by a mutex (for ensuring mutual exclusion), a
23219 condition variable (for queuing threads until the condition is
23220 signaled), a Boolean (State) indicating whether the object is open,
23221 and a Boolean (Waiting) reflecting whether there is a task already
23222 suspended on this object.
23224 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
23225 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
23226 s-intman-vms.ads, s-intman-mingw.adb,
23227 (Initialize_Interrupts): Removed, no longer used.
23229 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
23230 (Setup_Interrupt_Mask): New procedure.
23232 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
23234 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
23236 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
23237 this is no longer done in the body of s-taprop
23238 (Server_Task): Explicitely test for Pending_Action in case
23239 System.Parameters.No_Abort is True.
23241 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
23242 is no longer done in the body of s-taprop
23244 2005-06-14 Robert Dewar <dewar@adacore.com>
23246 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
23247 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
23248 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
23249 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
23250 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
23251 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
23252 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
23253 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
23254 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
23255 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
23256 system-linux-hppa.ads, system-vms_64.ads,
23257 system-vxworks-alpha.ads: Minor comment update for
23258 AI-362 (unit is Pure).
23260 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
23261 Add pragma Pure_05 for AI-362
23262 Make remaining conversion functions obsolescent in Ada 95
23264 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
23265 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
23266 Add entries for a-wichun and a-zchuni
23267 Add a-widcha a-zchara for AI-395
23268 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
23270 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
23271 Add entries for a-wichun.o and a-zchuni.o
23272 Entries for a-widcha.o and a-zchara.o
23273 Add entry for a-chacon.o
23275 * a-ztenau.adb: Add with of Ada.Characters.Conversions
23277 * a-chacon.ads, a-chacon.adb: New files.
23279 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
23280 categorization violations.
23282 * a-strmap.ads: Add pragma Pure_05 for AI-362
23283 * a-strmap.ads: Add note on implicit categorization for AI-362
23285 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
23287 * par-prag.adb: Dummy entry for pragma Persistent_BSS
23288 Set Ada_Version_Explicit, for implementation of AI-362
23289 Add processing for pragma Pure_05 and Preelaborate_05
23290 Add entry for Assertion_Policy pragma
23292 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
23293 when needed for proper processing of categorization stuff
23296 For several cases, make errors in preealborate units warnings,
23297 instead of errors, if GNAT_Mode is set. For AI-362.
23299 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
23300 preelaborate unit is now warning if in GNAT mode
23302 * s-stoele.ads: Document AI-362 for pragma preelaborate
23304 2005-06-14 Doug Rupp <rupp@adacore.com>
23306 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
23307 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
23308 Default_Exception_Msg_Max_Length: new parameter.
23310 * a-except.ads: (Exception_Msg_Max_Length): Set to
23311 System.Parameters.Default_Exception_Msg_Max_Length
23312 Add pragma Preelaborate_05 for AI-362
23313 Add warnings off to allow categorization violations for AI-362
23315 2005-06-14 Vincent Celier <celier@adacore.com>
23317 * gnatsym.adb: Adapt to modification of package Symbols: procedure
23318 Process is now in package Processing.
23320 * symbols.ads, symbols.adb:
23321 (Processing): New package, containing procedure Process
23323 * symbols-vms-alpha.adb:
23324 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
23326 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
23327 symbols-processing-vms-ia64.adb: New files.
23329 2005-06-14 Pascal Obry <obry@adacore.com>
23331 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
23332 implementation. This new version generates the proper DllMain routine
23333 to initialize the SAL. The DllMain is generated in Ada and compiled
23334 before being added as option to the library build command.
23336 2005-06-14 Doug Rupp <rupp@adacore.com>
23337 Pascal Obry <obry@adacore.com>
23339 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
23340 call to decc$translate_vms.
23341 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
23342 need to remove those quotes before catenating the filename.
23343 (__gnat_locate_exec_on_path): improvements to the Win32 section:
23344 * avoid allocating the memory twice for better efficiency;
23345 * allocate 32K buffer for environment expansion as suggested by MSDN;
23346 * prepend ".;" to the path so that current directory is searched too.
23348 2005-06-14 Robert Dewar <dewar@adacore.com>
23350 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
23351 instead of raising CE (AI-241)
23352 Add warnings off to allow categorization violations for AI-362
23354 2005-06-14 Robert Dewar <dewar@adacore.com>
23356 * ali-util.adb, gnatbind.adb: Remove references to
23357 Force_RM_Elaboration_Order.
23359 * switch-b.adb: Remove recognition of -f switch
23361 2005-06-14 Pascal Obry <obry@adacore.com>
23363 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
23364 implementation which is slightly more efficient.
23366 2005-06-14 Gary Dismukes <dismukes@adacore.com>
23367 Javier Miranda <miranda@adacore.com>
23368 Ed Schonberg <schonberg@adacore.com>
23369 Hristian Kirtchev <kirtchev@adacore.com>
23371 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
23372 allocator's designated type is a class-wide type, and compiling for
23373 Ada 2005, emit a run-time check that the accessibility level of the
23374 type given in the allocator's expression is not deeper than the level
23375 of the allocator's access type.
23377 (Tagged_Membership): Modified to gives support to abstract interface
23380 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
23382 (Descendant_Tag): New predefined function
23383 (Is_Descendant_At_Same_Level): New predefined function
23384 (Get_Access_Level): New private function
23385 (Set_Access_Level): New private procedure
23386 (IW_Membership): New function. Given the tag of an object and the tag
23387 associated with an interface, evaluate if the object implements the
23389 (Register_Interface_Tag): New procedure used to initialize the table of
23390 interfaces used by the IW_Membership function.
23391 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
23392 of the dispatch table.
23393 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
23394 table of interfaces of the parent.
23395 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
23396 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
23397 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
23398 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
23399 Ada 2005 semantics for the new predefined function.
23401 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
23402 call to Descendant_Tag rather than Internal_Tag.
23403 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
23404 the accessibility level of the attribute's Item parameter is not deeper
23405 than the level of the attribute's prefix type. Tag_Error is raised if
23406 the check fails. The check is only emitted for Ada_05.
23407 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
23408 requested stream attribute, use it.
23409 (Expand_N_Attribute_Reference): If the designated type is an interface
23410 then rewrite the referenced object as a conversion to force the
23411 displacement of the pointer to the secondary dispatch table.
23412 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
23413 is a dereference of an object with a constrained partial view.
23415 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
23416 type is a class-wide type, emit a run-time check that the accessibility
23417 level of the returned object is not deeper than the level of the
23418 function's master (only when compiling for Ada 2005).
23420 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
23421 Action_Nb_Arg): Add entries for new Get_Access_Level and
23422 Set_Access_Level routines in these tables.
23423 (Make_DT): Generate a call to set the accessibility level of the
23424 tagged type in its TSD.
23425 (Make_DT): Code cleanup. The functionality of generating all the
23426 secondary dispatch tables has been moved to freeze_record_type.
23427 (Make_Abstract_Interface_DT): Minor code cleanup.
23428 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
23429 this subprogram implements a new algorithm that provides the
23430 same functionality and it is more clear in case of primitives
23431 associated with abstract interfaces.
23432 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
23433 clean up, the functionality of this subprogram is now provided
23434 by Set_All_DT_Position.
23435 (Write_DT): New subprogram: a debugging procedure designed to be called
23436 within gdb to display the dispatch tables associated with a tagged
23438 (Collect_All_Interfaces): New subprogram that collects the whole list
23439 of interfaces that are directly or indirectly implemented by a tagged
23441 (Default_Prim_Op_Position): New subprogram that returns the fixed
23442 position in the dispatch table of the default primitive operations.
23443 (Expand_Interface_Actuals): New subprogram to generate code that
23444 displaces all the actuals corresponding to class-wide interfaces to
23445 reference the interface tag of the actual object.
23446 (Expand_Interface_Conversion): New subprogram. Reference the base of
23447 the object to give access to the interface tag associated with the
23448 secondary dispatch table.
23449 (Expand_Interface_Thunk): New subprogram that generates the code of the
23450 thunk. This is required for compatibility with the C+ ABI.
23451 (Make_Abstract_Interface_DT): New subprogram that generate the
23452 declarations for the secondary dispatch tables associated with an
23453 abstract interface.
23454 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
23455 attribute for each primitive operation covering interface subprograms
23456 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
23457 These subprograms were upgraded to give support to abstract interfaces
23459 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
23460 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
23461 RE_Set_Access_Level.
23462 (RE_Unit_Table): Add entries for new Ada.Tags operations.
23463 Add support to call the followig new run-time subprograms:
23464 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
23466 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
23467 match its full declaration when both have an access definition with
23468 statically matching designated subtypes.
23469 (Analyze_Component_Declaration): Delete commented out code that was
23470 incorrectly setting the scope of an anonymous access component's type.
23471 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
23472 an access discriminant when the containing type is nonlimited.
23473 (Make_Incomplete_Type_Declaration): Create an incomplete type
23474 declaration for a record type that includes self-referential access
23476 (Check_Anonymous_Access_Types): Before full analysis of a record type
23477 declaration, create anonymous access types for each self-referential
23479 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
23480 an access component in this context is a Local_Anonymous_Access, for
23481 proper accessibility checks.
23482 (Access_Definition): Set properly the scope of the anonymous access type
23483 created for a stand-alone access object.
23484 (Find_Type_Of_Object): An object declaration may be given with an access
23486 (Complete_Subprograms_Derivation): New subprogram used to complete
23487 type derivation of private tagged types implementing interfaces.
23488 In this case some interface primitives may have been overriden
23489 with the partial-view and, instead of re-calculating them, they
23490 are included in the list of primitive operations of the full-view.
23491 (Build_Derived_Record_Type): Modified to give support to private
23492 types implemening interfaces.
23493 (Access_Definition): Reject ALL on anonymous access types.
23494 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
23495 type derivation to occur at a deeper accessibility level than the
23497 For the case of derivation within a generic body however, disallow the
23498 derivation if the derived type has an ancestor that is a formal type
23499 declared in the formal part of an enclosing generic.
23500 (Analyze_Object_Declaration): For protected objects, remove the check
23501 that they cannot contain interrupt handlers if not declared at library
23503 (Add_Interface_Tag_Components): New subprogram to add the tag components
23504 corresponding to all the abstract interface types implemented by a
23505 record type or a derived record type.
23506 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
23507 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
23508 Process_Full_View, Record_Type_Declaration): Modified to give
23509 support to abstract interface types
23510 (Collect_Interfaces): New subprogram that collects the list of
23511 interfaces that are not already implemented by the ancestors
23512 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
23513 when partial view has no discriminants and full view has defaults.
23514 (Constrain_Access): Reject a constraint on a general access type
23515 if the discriminants of the designated type have defaults.
23516 (Access_Subprogram_Declaration): Associate the Itype node with the inner
23517 full-type declaration or subprogram spec. This is required to handle
23518 nested anonymous declarations.
23519 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
23520 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
23521 Process_Full_View, Record_Type_Declaration): Modified to give
23522 support to abstract interface types
23523 (Derive_Subprograms): Addition of a new formal to indicate if
23524 we are in the case of an abstact-interface derivation
23525 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
23526 to the specification because it is requied to analyze all the
23527 identifiers found in a list of interfaces
23529 * debug.adb: Complete documentation of flag "-gnatdZ"
23531 * exp_ch3.adb: Implement config version of persistent_bss pragma
23532 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
23533 testing for TSS presence to properly enforce visibility rules.
23534 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
23535 Make_Abstract_Interfaces_DT to generate the secondary tables
23536 associated with abstract interfaces.
23537 (Build_Init_Procedure): Modified to initialize all the tags
23539 (Component_Needs_Simple_Initialization): Similar to other tags,
23540 interface tags do not need initialization.
23541 (Freeze_Record_Type): Modified to give support to abstract interface
23543 (Expand_N_Object_Declaration): Do not generate an initialization for
23544 a scalar temporary marked as internal.
23546 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
23547 in-out parameter that is a component in an initialization procedure,
23548 whose constraint might depend on discriminants, and that may be
23549 misaligned because of packing or representation clauses.
23550 (Is_Legal_Copy): New predicate to determine whether a possibly
23551 misaligned in-out actual can actually be passed by copy/return. This
23552 is an error in case the type is by_reference, and a warning if this is
23553 the consequence of a DEC import pragma on the subprogram.
23554 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
23556 (Expand_Inlined_Call): Mark temporary generated for the return value as
23557 internal, so that no useless scalar normalization is generated for it.
23558 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
23559 null procedure can always be inlined.
23560 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
23561 procedure, generate an explicit empty body for it.
23563 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
23564 Given a type implementing an interface, returns the corresponding
23565 access_disp_table value.
23566 (Find_Interface_Tag): New subprogram. Given a type implementing an
23567 interface, returns the record component containing the tag of the
23569 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
23570 previous ones that return the corresponding tag and access_disp_table
23572 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
23573 is a predefined primitive operation.
23574 (Expand_Subtype_From_Expr): If the expression is a selected component
23575 within an initialization procedure, compute its actual subtype, because
23576 the component may depend on the discriminants of the enclosing record.
23578 * i-cpp.ads, i-cpp.adb:
23579 This package has been left available for compatibility with previous
23580 versions of the frontend. As part of the new layout this is now a
23581 dummy package that uses declarations available at a-tags.ads
23583 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
23584 "constant access" and "aliased [constant] access" when not compiling
23586 Suppress Ada 2005 keyword warning if -gnatwY used
23587 (P_Identifier_Declarations): Add support for object declarations with
23588 access definitions.
23589 (Private_Extension_Declaration): Complete the documentation
23590 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
23591 attribute in case of private extension declaration
23592 (P_Type_Declaration): Mark as "abstract" the type declarations
23593 corresponding with protected, synchronized and task interfaces
23594 (P_Declarative_Items): "not" and "overriding" are overriding indicators
23595 for a subprogram or instance declaration.
23597 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
23598 instantiation that is a dispatching operation has controlling access
23599 parameters that are null excluding.
23600 Save and restore Ada_Version_Explicit, for implementation of AI-362
23601 (Validate_Derived_Type_Instance): Add check for abstract interface
23603 (Analyze_Formal_Package): Establish Instantiation source for the copy of
23604 the generic that is created to represent the formal package.
23605 (Analyze_Package_Instantiation): Instantiate body immediately if the
23606 package is a predefined unit that contains inlined subprograms, and
23607 we are compiling for a Configurable_Run_Time.
23608 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
23609 If the program has a null default, generate an empty body for it.
23611 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
23612 error message condition, null procedures are correctly detected now.
23613 (New_Overloaded_Entity): Bypass trivial overriding indicator check
23614 for subprograms in the context of protected types. Instead, the
23615 indicator is examined in Sem_Ch9 while analysing the subprogram
23617 (Check_Overriding_Indicator): Check consistency of overriding indicator
23618 on subprogram stubs as well.
23619 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
23621 (Analize_Subprogram_Specification): When analyzing a subprogram in which
23622 the type of the first formal is a concurrent type, replace this type
23623 by the corresponding record type.
23624 (Analyze_Subprogram_Body): Undo the previous work.
23625 (Analyze_Procedure_Call): If the call has the form Object.Op, the
23626 analysis of the prefix ends up analyzing the call itself, after which
23628 (Has_Interface_Formals): New subprogram subsidiary to analyze
23629 subprogram_specification that returns true if some non
23630 class-wide interface subprogram is found
23631 (New_Overloaded_Entity): Modified to give support to abstract
23633 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
23634 access to subprograms must be recursive.
23635 (Is_Unchecked_Conversion): Improve the test that recognizes
23636 instantiations of Unchecked_Conversion, and allows them in bodies that
23637 are to be inlined by the front-end. When the body comes from an
23638 instantiation, a reference to Unchecked_Conversion will be an
23639 Expanded_Name, even though the body has not been analyzed yet.
23640 Replace Is_Overriding and Not_Overriding in subprogram_indication with
23641 Must_Override and Must_Not_Override, to better express intent of AI.
23642 (Analyze_Subprogram_Body): If an overriding indicator is given, check
23643 that it is consistent with the overrinding status of the subprogram
23645 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
23647 If the subprogram is a null procedure, indicate that it does not need
23650 * sem_disp.adb (Check_Controlling_Type): Give support to entities
23651 available through limited-with clauses.
23652 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
23653 allowed as the last primitive of a tagged type if it has no previous
23655 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
23656 to give support to abstract interface types
23658 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
23659 in the case where the target type is an anonymous access type of an
23660 object or component (that is, when Is_Local_Anonymous_Access is true).
23661 Prevent the special checks for conversions of access discriminants in
23662 the case where the discriminant belongs to a nonlimited type, since
23663 such discriminants have their accessibility level defined in the same
23664 way as a normal component of an anonymous access type.
23665 (Resolve_Allocator): When an allocator's designated type is a class-wide
23666 type, check that the accessibility level of type given in the
23667 allocator's expression or subtype indication is not statically deeper
23668 than the level of the allocator's access type.
23669 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
23670 name in a discriminant constraint of a record component.
23671 (Resolve_Explicit_Dereference): Do not check whether the type is
23672 incomplete when the dereference is a use of an access discriminant in
23673 an initialization procedure.
23674 (Resolve_Type_Conversion): Handle conversions to abstract interface
23676 (Valid_Tagged_Conversion): The conversion of a tagged type to an
23677 abstract interface type is always valid.
23678 (Valid_Conversion): Modified to give support to abstract interface types
23679 (Resolve_Actuals): Enable full error reporting on view conversions
23680 between unrelated by_reference array types.
23681 The rule for view conversions of arrays with aliased components is
23682 weakened in Ada 2005.
23683 Call to obsolescent subprogram is now considered to be a violation of
23684 pragma Restrictions (No_Obsolescent_Features).
23685 (Check_Direct_Boolean_Operator): If the boolean operation has been
23686 constant-folded, there is nothing to check.
23687 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
23688 check on possible violation of restriction No_Direct_Boolean_Operators
23689 until after expansion of operands, to prevent spurious errors when
23690 operation is constant-folded.
23692 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
23693 Has_Compatible_Type): Modified to give support to abstract interface
23695 (Interface_Present_In_Ancestor): New function to theck if some ancestor
23696 of a given type implements a given interface
23698 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
23699 prefix is a parameterless function that returns an access_to_procedure.
23700 (Transform_Object_Operation): Handle properly function calls of the
23701 form Obj.Op (X), which prior to analysis appear as indexed components.
23702 (Analyze_One_Call): Complete the error notification to help new Ada
23704 (Analyze_Allocator): For an allocator without an initial value, where
23705 the designated type has a constrained partial view, a discriminant
23706 constraint is illegal.
23708 2005-06-14 Robert Dewar <dewar@adacore.com>
23710 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
23711 do with treatment of Set_Col when positioned at end of line character.
23713 2005-06-14 Robert Dewar <dewar@adacore.com>
23715 * atree.adb: (Elist*): Protect against uninitialized field
23717 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23719 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
23720 for an attribute reference that returns an access type.
23721 (Apply_Discriminant_Check): No need for check if (designated) type has
23722 constrained partial view.
23724 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
23725 both bound checks, rather than a conjunction.
23726 (Insert_Valid_Check): If the expression is an actual that is an indexed
23727 component of a bit-packed array, force expansion of the packed element
23728 reference, because it is specifically inhibited elsewhere.
23730 2005-06-14 Vincent Celier <celier@adacore.com>
23732 * clean.adb (Clean_Project): Correctly delete executable specified as
23733 absolute path names.
23735 * make.adb (Gnatmake): Allow relative executable path names with
23736 directory information even when project files are used.
23737 (Change_To_Object_Directory): Fail gracefully when unable to change
23738 current working directory to object directory of a project.
23739 (Gnatmake): Remove exception handler that could no longer be exercized
23740 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
23741 may be deallocated by Normalize_Arguments.
23742 (Collect_Arguments): Eliminate empty arguments
23744 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
23745 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
23746 (Check_Project): Return False when Project is No_Project. Return True
23747 when All_Projects is True.
23748 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
23749 All_Projects to True.
23752 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23753 Javier Miranda <miranda@adacore.com>
23754 Thomas Quinot <quinot@adacore.com>
23755 Robert Dewar <dewar@adacore.com>
23756 Hristian Kirtchev <kirtchev@adacore.com>
23757 Gary Dismukes <dismukes@adacore.com>
23759 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
23760 anonymous access types, to indicate that the accessibility level of
23761 the type is determined by that of the enclosing declaration.
23762 (Has_Persistent_BSS): New flag
23763 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
23764 of this attribute with functions.
23765 (Is_Primitive_Wrapper): Remove the barrier.
23766 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
23767 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
23769 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
23770 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
23772 (Is_Pure_Unit_Access_Type): New flag
23773 (Abstract_Interfaces): Complete the assertion to cover all usages.
23774 (Set_Is_Interface): Complete the assertion to cover all usages.
23775 (Is_Primitive_Wrapper): New attribute.
23776 (Is_Obsolescent): Now applies to all entities (though it is only set
23777 for subprograms currently)
23778 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
23779 which solves various problems concerning access subtypes.
23780 (Has_Persistent_BSS): New flag
23781 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
23782 Remove these subprograms because this attribute is currently
23785 Has_Specified_Stream_Input (Flag190)
23786 Has_Specified_Stream_Output (Flag191)
23787 Has_Specified_Stream_Read (Flag192)
23788 Has_Specified_Stream_Write (Flag193)
23789 Present in all type and subtype entities. Set for a given view if the
23790 corresponding stream-oriented attribute has been defined by an
23791 attribute definition clause. When such a clause occurs, a TSS is set
23792 on the underlying full view; the flags are used to track visibility of
23793 the attribute definition clause for partial or incomplete views.
23794 (Is_Pure_Unit_Access_Type): New flag
23795 Clarify use of Is_Internal.
23796 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
23797 internally generated to wrap the invocation of tasks and protected
23798 types that implement interfaces.
23799 (Implementation_Base_Type): Documentation correction
23800 (Is_Obsolescent): Now applies to all entities (though it is only set
23801 for subprograms currently)
23802 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
23803 which solves various problems concerning access subtypes.
23805 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
23806 for examined parameters. Identify unequal parameter list lengths as
23807 non-conformant parameters.
23808 (Overriding_Possible): Do not check for "All" qualifier in declaration
23809 of controlling access parameter, following prescription of AI-404.
23810 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
23811 that build the procedure body that wraps an entry invocation
23812 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
23813 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
23814 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
23815 give support to abstract interface types
23817 * freeze.adb (Freeze_Entity): Issue error message if
23818 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
23819 type has no storage pool (Ada 2005) AI-366.
23820 Also modified to give support to abstract interface types
23821 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
23822 Inline_Always pragma.
23824 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
23825 now begin an entry declaration.
23826 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
23827 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
23828 a subprogram declaration preceded by an overriding indicator.
23829 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
23830 declarations or subprogram declarations preceded by reserved words
23831 "not" or "overriding".
23832 (P_Entry_Declaration): Update comment. Parse and check overriding
23833 indicator, set semantic flags of entry declarations.
23834 (P_Task): New error message in case of private applied
23835 to a task type declaration.
23836 (P_Protected): New error message in case of private applied
23837 to a task type declaration.
23839 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
23840 in which the full view of a type implementing an interface is a
23842 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
23843 Declare_Inherited_Private_Subprograms): If an explicit operation
23844 overrides an operation that is inherited in the private part, mark the
23845 explicit one as overriding, to enable overriding indicator checks.
23846 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
23847 full view to partial view, to simplify handling in back-end.
23849 * sprint.adb: Print interface lists where needed: derived types,
23850 protected types, task types.
23851 output "is null" for null procedures. Part of implementation of
23853 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
23854 relaxation of rules for access types in pure, shared passive partitions.
23856 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
23857 first read discriminants into temporary objects, performing checks on
23858 the read values, then possibly performing discriminant checks on the
23859 actual (if it is constrained), and only finally reading the components
23860 into a constrained temporary object.
23861 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
23862 case of reading discriminants of a mutable record type to recognize
23863 the new form of the code generated by
23864 Build_Mutable_Record_Read_Procedure.
23866 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
23867 of a simple call to Make_TSS_Name.
23868 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
23869 buffer, in order for Is_TSS to work correctly on local TSS names.
23871 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
23872 Is_Local_Anonymous_Access to check legaliy of attributes in the
23873 context of access components and stand-alone access objects.
23874 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
23875 treated as available for a limited private type if there is an
23876 attribute_definition_clause that applies to its full view, but not in
23877 other cases where the attribute is available for the full view
23878 (specifically, the sole fact that the full view is non-limited does not
23879 make the attribute available for the partial view).
23880 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
23881 non-overloaded intrinsic subprogram.
23882 (Check_Stream_Attribute): Reject an attribute reference for an
23883 unavailable stream attribute even if the prefix is not a limited type
23884 (case of a 'Input attribute reference for an abstract, non-classwide
23886 (Stream_Attribute_Available): New function to determine whether a stream
23887 attribute is available at a place.
23888 (Check_Attribute): Use Stream_Attribute_Available instead of just
23889 testing for TSS presence on the implementation base type.
23890 (Analyze_Attribute): Modified to give support to task interfaces.
23891 (Analyze_Access_Attribute): Add error check for use of an Access (or
23892 Unrestricted_Access) attribute with a subprogram marked as
23894 (Analyze_Attribute, case Attribute_Address): Add error check for use of
23895 an Address attribute with a subprogram marked as Inline_Always.
23896 Update Eval_Attribute to handle new value of Width from AI-395
23898 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
23899 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
23900 Factor common code across the stream-oriented attribute circcuits into
23901 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
23902 processing is functionally identical to the previous duplicated one,
23903 except that an expression that denotes an abstract subprogram will now
23904 be rejected, as mandated by AI-195 item 5.
23906 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
23907 Is_Local_Anonymous_Access to apply accessibility checks to access
23908 components and stand-alone access objects.
23909 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
23911 (Is_Potentially_Persistent_Type): New function
23912 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
23913 a heap-object whose type has a constrained partial view, the object is
23914 unconstrained and the component may depend on a discriminant, making its
23917 * sinfo.ads, sinfo.adb
23918 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
23919 (Must_Override): Flag applicable to N_Entry_Declaration.
23920 Indicate that interface_list can appear in single task and single
23921 protected declarations.
23922 Replace Is_Overriding and Not_Overriding with Must_Override and
23923 Must_Not_Override, to better express intent of AI.
23924 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
23925 of an overriding indicator in a subprogram or instance.
23926 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
23927 Add the overriding indicator [[not] overriding] construct to the
23928 following grammar productions:
23930 GENERIC_INSTANTIATION
23931 SUBPROGRAM_SPECIFICATION
23933 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
23934 can start with an overriding indicator.
23936 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
23937 flags accordingly on subrogram specifications or instances.
23940 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
23941 overriding_indicator, if present, is consistent with status of spec.
23942 Improve error message for null-excluding checks on controlling access
23944 (Check_In_Previous_With_Clause): Protect the frontend against
23945 previously reported critical errors in the context clauses.
23946 Save and restore Ada_Version_Explicit, for implementation of AI-362
23947 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
23948 operation verify that controlling formals of the renamed entity that
23949 are access parameters are explicitly non-null.
23950 (Find_Expanded_Name): Improve error message when prefix is an illegal
23951 reference to a private child unit.
23953 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
23954 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
23955 Rewrite to correspond to new wide character names in AI-395
23957 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
23958 default procedures.
23960 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23961 Robert Dewar <dewar@adacore.com>
23963 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
23964 code, not on the bodies of predefined operations, to cut down on
23967 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23969 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
23970 be expanded in place. The size computation does not require a
23971 subtraction, which would raise an exception on a compiler built with
23972 assertions when the upper bound is Integer'first.
23973 (Flatten): For an array of composite components, take into account the
23974 size of the components to determine whether it is safe to expand the
23975 array into a purely positional representation.
23977 2005-06-14 Thomas Quinot <quinot@adacore.com>
23979 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
23980 denoting a formal parameter into account.
23982 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23984 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
23985 the entry_call alternative of a conditional entry call, wrap the
23986 conditional entry call itself.
23988 2005-06-14 Nicolas Setton <setton@adacore.com>
23989 Ed Schonberg <schonberg@adacore.com>
23991 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
23992 the "simple_choice" member in a variant record, in accordance with the
23993 description in the package spec: the information output for a constant
23994 should be "S number", not "SS number".
23995 (Get_Encoded_Name): Return at once if not generating code. Avoids name
23996 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
23998 2005-06-14 Thomas Quinot <quinot@adacore.com>
24000 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
24001 RACW without any primitives, do not generate the if statement for
24002 dispatching by name in the PolyORB/DSA case, as it would be malformed
24003 (it would have an Elsif_Parts list that is not No_List, but with a
24006 2005-06-14 Robert Dewar <dewar@adacore.com>
24008 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
24010 2005-06-14 Jose Ruiz <ruiz@adacore.com>
24012 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
24013 can determine whether pragma Suppress_Exception_Locations is in effect.
24015 * utils2.c (build_call_raise): Do not pass the file name to the
24016 exception handler if pragma Suppress_Exception_Locations is in effect.
24017 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
24019 2005-06-14 Emmanuel Briot <briot@adacore.com>
24021 * g-debpoo.adb (Deallocate, Dereference): Improve output.
24023 2005-06-14 Nicolas Roche <roche@adacore.com>
24025 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
24027 (Next_Level): Fix minor bug in handling of ../dir case
24028 (Read): Add dir separator to Directory name so that "" is understood as
24031 2005-06-14 Pascal Obry <obry@adacore.com>
24033 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
24034 releasing the items.
24036 2005-06-14 Vincent Celier <celier@adacore.com>
24037 Cyrille Comar <comar@adacore.com>
24039 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
24040 with output file descriptor and with output file name.
24041 (Dup, Dup2): Now global procedures as they are used by two subprograms
24042 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
24044 2005-06-14 Thomas Quinot <quinot@adacore.com>
24047 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
24049 (Create_Selector): Bind listening socket used to create the signalling
24050 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
24051 Set listen backlog to 1 to ensure that we detect socket theft by a
24052 failure of our own connect(2) call.
24053 (Check_Selector): Improve documentation of the selector mechanism.
24054 (Broadcast_Inet_Addr): New constant.
24056 2005-06-14 Gary Dismukes <dismukes@adacore.com>
24058 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
24059 type which turns out to be an incomplete and incorrect fix.
24060 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
24061 of the type is declared in a record (for determination of insertion
24063 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
24064 a private type and ensure that the primary entity is used for the type
24065 of the newly created function's V formal by taking the Etype of the
24068 2005-06-14 Javier Miranda <miranda@adacore.com>
24069 Jose Ruiz <ruiz@adacore.com>
24070 Robert Dewar <dewar@adacore.com>
24071 Ed Schonberg <schonberg@adacore.com>
24073 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
24074 that indicates if we are parsing a compilation unit found in a
24075 limited-with clause.
24076 It is use to avoid the circularity check.
24078 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
24079 we are parsing a compilation unit found in a limited-with clause. This
24080 is use to avoid the circularity check.
24082 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
24083 unit as a consequence of parsing a limited-with clause. This is used
24084 to avoid the circularity check.
24086 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
24087 (Analyze_Context): Limited-with clauses are now allowed
24088 in more compilation units.
24089 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
24090 againts previously reported critical errors in context clauses
24091 (Install_Limited_Withed_Unit): Code cleanup plus static detection
24092 of two further errors: renamed subprograms and renamed packages
24093 are not allowed in limited with clauses.
24094 (Install_Siblings): Do not install private_with_clauses on the package
24095 declaration for a non-private child unit.
24096 (Re_Install_Parents): When a parent of the subunit is reinstalled,
24097 reset visibility of child units properly.
24098 (Install_Withed_Unit): When a child unit appears in a with_clause of its
24099 parent, it is immediately visible.
24101 2005-06-14 Ed Schonberg <schonberg@adacore.com>
24102 Emmanuel Briot <briot@adacore.com>
24104 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
24105 declared within an inlined body as referenced, to prevent spurious
24107 (Output_One_Ref): If an entity renames an array component, indicate in
24108 the ALI file that this aliases (renames) the array. Capture as well
24109 function renamings that rename predefined operations.
24110 Add information about generic parent for package and subprogram
24112 (Get_Type_Reference): For a subtype that is the renaming of an actual in
24113 an instantiation, use the first_subtype to ensure that we don't generate
24114 cross-reference information for internal types.
24115 For objects and parameters of a generic private type, retain the '*'
24116 indicator to distinguish such an entity from its type.
24118 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
24119 to store information about instantiated entities.
24121 * ali.adb (Scan_ALI): Add support for parsing the reference to the
24124 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
24125 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
24128 2005-06-10 Doug Rupp <rupp@adacore.com>
24129 Arnaud Charlet <charlet@adacore.com>
24130 Olivier Hainque <hainque@adacore.com>
24131 Jose Ruiz <ruiz@adacore.com>
24133 * Make-lang.in: Add initialize.o when needed.
24134 Remove obsolete references to RT_FLAGS.
24135 Add missing dependencies for sdefault.o
24137 * initialize.c: New file.
24139 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
24140 [VMS] cond_signal_table: Fix problem in declaration.
24141 [VMS] __gnat_error_handler: rewrite.
24142 Move all __gnat_initialize() routines to initialize.c
24143 Specialize the former "hpux" section to "hppa hpux", as this is what the
24144 section really is here for and we now have other hpux ports that need
24145 different contents.
24146 (__gnat_adjust_context_for_raise) i386-linux: First version of this
24147 function for this target. Adjust PC by one in the machine context. This
24148 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
24149 it is more reliable to do that in the signal handler itself.
24150 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
24151 flags, so that the handler is passed the context structure to adjust
24152 prior to the raise.
24153 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
24154 SA_SIGINFO sigaction should look like. Call
24155 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
24156 Machine_State_Operations stuff.
24157 Add conditional code so that the x86_64 is also supported.
24159 2005-06-14 Pascal Obry <obry@adacore.com>
24161 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
24164 2005-06-14 Robert Dewar <dewar@adacore.com>
24166 * opt.ads, opt.adb: New flags for persistent_bss mode
24167 Add Ada_Version_Explicit, for implementation of AI-362
24168 Add Assertions_Enabled_Config and associated handling
24169 Needed since setting can be changed with Assertion_Policy pragma
24170 Add new flag Warn_On_Ada_2005_Compatibility
24172 * switch-c.adb: Recognize -gnatwy/Y
24173 Set Ada_Version_Explicit, for implementation of AI-362
24174 The -gnatg switch now includes -gnatyu
24176 * usage.adb: Add -gnatwy/Y
24177 Remove wrong asterisk on -gnatwX line
24178 Add line for -gnatyu switch
24180 2005-06-14 Vincent Celier <celier@adacore.com>
24182 * osint.adb (Add_Default_Search_Dirs): Put source and object
24183 directories of project files before directories coming from
24184 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
24186 2005-06-14 Robert Dewar <dewar@adacore.com>
24189 * par-ch2.adb (Scan_Pragma_Argument): New procedure
24190 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
24192 2005-06-14 Vincent Celier <celier@adacore.com>
24194 * prep.adb (Preprocess): Ignore error when scanning the first token of
24197 2005-06-14 Vincent Celier <celier@adacore.com>
24199 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
24200 (Check_Stand_Alone_Library): If the specified reference symbol file does
24201 not exist, only issue a warning when the symbol policy is not
24202 Controlled. And, when symbol policy is Compliant, set the symbol
24203 policy to Autonomous.
24205 2005-06-14 Vincent Celier <celier@adacore.com>
24207 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
24208 when the project file in a with clause is not the last one, that is the
24209 project file name is followed by a comma.
24210 * prj-pp.adb: (First_With_In_List): New Boolean global variable
24211 (Print): Issue list of project files separated by commas in with clauses
24212 according to the values returned by Is_Not_Last_In_List.
24213 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
24214 (Set_Is_Not_Last_In_List): New procedure
24216 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
24218 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
24220 2005-06-14 Robert Dewar <dewar@adacore.com>
24222 * scng.adb: Add call to new Check_EOF routine
24223 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
24224 Add some comments regarding wide character handling
24226 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
24228 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
24230 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
24231 characters are now considered graphic characters and hence yield false
24234 * nmake.adt: Modify header so that xnmake does not generate output
24235 files with multiple blank lines.
24237 * treeprs.adt: Remove a blank line so that output from xtreeprs does
24238 not have an extra blank line
24240 2005-06-14 Gary Dismukes <dismukes@adacore.com>
24242 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
24243 expression when the component type is an anonymous access type to
24244 ensure that appropriate accessibility checks are done.
24246 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
24247 expression of an assignment when the target object is of an anonymous
24248 access type. This ensures that required accessibility checks are done.
24249 (One_Bound): Move the check for type Universal_Integer to
24251 (Process_Bounds): Check whether the type of the preanalyzed range is
24252 Universal_Integer, and in that case set Typ to Integer_Type prior
24253 to setting the type of the original range and the calls to One_Bound.
24255 2005-06-14 Ed Schonberg <schonberg@adacore.com>
24257 * sem_case.adb (Expand_Others_Choice): Improve warning.
24259 2005-06-14 Ed Schonberg <schonberg@adacore.com>
24261 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
24262 constraint of full view if present, when other type is discriminated.
24263 (Eval_Relational_Op): Recognize tests of pointer values against Null,
24264 when the pointer is known to be non-null, and emit appropriate warning.
24266 2005-06-14 Robert Dewar <dewar@adacore.com>
24267 Ed Schonberg <schonberg@adacore.com>
24270 * sem_prag.adb: Implement pragma Persistent_BSS
24271 Remove obsolete pragma Persistent_Data, Persistent_Object
24272 Set Ada_Version_Explicit, for implementation of AI-362
24273 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
24274 Add processing for pragma Pure_05 and Preelaborate_05
24275 Add processing for Assertion_Policy pragma
24276 Add pragma identifiers for Assert
24277 (Analyze_Pragma, case Assert): Check number of arguments
24278 (Process_Inline): Additional guard against an illegal program, where the
24279 argument of the pragma is undefined, and warnings on redundant
24280 constructs are enabled.
24281 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
24282 Ada_05 to this pragma, specifying that the pragma is only active in
24284 (Check_Arg_Order): New procedure
24285 Add appropriate calls to this procedure throughout
24286 Also throughout, check entity name before doing any other checks
24288 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
24289 Remove obsolete pragma Persistent_Data, Persistent_Object
24290 Add entries for pragma Pure_05 and Preelaborate_05
24291 Add entries for Assertion_Policy pragma and associated names
24292 Add some names for pragma argument processing
24294 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
24296 2005-06-14 Ed Schonberg <schonberg@adacore.com>
24298 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
24299 appears within a negation (either from source or as a rewriting of
24300 inequality) adjust text of warning accordingly.
24302 2005-06-14 Thomas Quinot <quinot@adacore.com>
24304 * s-strxdr.adb: Follow AI95-00132
24306 2005-06-14 Arnaud Charlet <charlet@adacore.com>
24308 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
24310 2005-06-14 Arnaud Charlet <charlet@adacore.com>
24311 Jose Ruiz <ruiz@adacore.com>
24313 * s-tposen.adb, s-tpobop.adb
24314 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
24316 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
24317 there is no violation of the Max_Entry_Queue_Length restriction (if it
24318 has been set); Program_Error is raised otherwise.
24319 (Requeue_Call): Before requeuing the task on the target entry queue we
24320 check that there is no violation of the Max_Entry_Queue_Length
24321 restriction (if it has been set); Program_Error is raised otherwise.
24323 2005-06-14 Robert Dewar <dewar@adacore.com>
24325 * styleg.adb: Fix several remaining problems in -gnatyu switch
24326 Blank line count not reset at start
24327 Scanning outside source buffer in some cases
24328 Confusing message for blanks at end of file
24329 Non-empty blank lines not recognized
24331 * nmake.adt: Modify header so that xnmake does not generate output
24332 files with multiple blank lines.
24334 * treeprs.adt: Remove a blank line so that output from xtreeprs does
24335 not have an extra blank line
24337 2005-06-14 Sergey Rybin <rybin@adacore.com>
24339 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
24341 2005-06-14 Doug Rupp <rupp@adacore.com>
24342 Vincent Celier <celier@adacore.com>
24344 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
24347 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
24348 Remove "Library" command.
24349 Change keyword for style check -gnatyd from NOCRLF to
24351 Remove useless second style check keyword NONE
24352 Remove help documentation for inexistent style check keyword
24354 Add help documentation for style check keywords DOS_LINE_ENDINGS,
24355 UNNECESSARY_BLANK_LINES and XTRA_PARENS
24356 Add UNNECESSARY_BLANK_LINES for -gnatyu
24357 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
24359 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
24361 2005-06-14 Vincent Celier <celier@adacore.com>
24363 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
24364 gprmake was invoked with -d.
24365 (Compile_Sources): If -d was used, output the "completed ..." message
24366 for each compilation.
24367 (Scan_Arg): Recognize new switch -d
24368 When -c and at least one main is specified, set
24369 Unique_Compile to True to guarantee that no other sources will be
24372 2005-06-14 Matthew Heaney <heaney@adacore.com>
24374 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
24375 * a-swuwha.ads, a-swuwha.adb: New files
24377 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
24378 * a-szuzha.ads, a-szuzha.adb: New files.
24380 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
24381 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
24382 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
24383 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
24384 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
24385 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
24386 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
24387 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
24388 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
24389 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
24392 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
24393 Olivier Hainque <hainque@adacore.com>
24394 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24395 Pascal Obry <obry@adacore.com>
24397 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
24399 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
24400 making a temporary around a procedure call because of non-addressable
24402 (process_freeze_entity): If entity is a private type, capture size
24403 information that may have been computed for the full view.
24404 (tree_transform, case N_Allocator): If have initializing expression,
24405 check type for Has_Constrained_Partial_View and pass that to
24407 (tree_transform, case N_Return_Statement): Pass extra arg to
24410 * decl.c (annotate_value): Remove early return if -gnatR is not
24412 (gnat_to_gnu_field): Don't make a packable type for a component clause
24413 if the position is byte aligned, the field is aliased, and the clause
24414 size isn't a multiple of the packable alignment. It serves no useful
24415 purpose packing-wise and would be rejected later on.
24416 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
24419 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
24420 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
24422 (create_concat_name): Idem.
24424 2005-06-10 Robert Dewar <dewar@adacore.com>
24425 Eric Botcazou <ebotcazou@adacore.com>
24426 Ben Brosgol <brosgol@adacore.com>
24427 Cyrille Comar <comar@adacore.com>
24428 Sergey Rybin <rybin@adacore.com>
24429 Pascal Obry <obry@adacore.com>
24431 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
24432 Document second argument (Ada_05) of pragma Obsolescent
24433 Add note that call to subprogram marked with pragma Obsolescent
24434 is now considered to be a violation of program Restrictions
24435 (No_Obsolescent_Features).
24436 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
24437 that only machine-dependent attributes are supported.
24440 Commented out menu lines and empty section for gnatclean examples
24442 Fix some over long lines
24443 Clarify and enhance documentation of ADA_PROJECT_PATH.
24444 Rework section 2.11.2(3) about linking with a non-GNU compiler.
24445 Mention new switch -fcallgraph-info.
24446 Mention new switch -fstack-usage.
24447 For gnatpp, replace '-notab' with '-N' and add this option to Index
24448 Corrected VMS example.
24449 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
24451 Add documentation for -gnatyu switch (unnecessary blank lines)
24452 Document new switch -U for GNAT PRETTY and GNAT METRIC
24453 Add note about Stdcall being handled as C convention on non Windows OS.
24454 Remove some junk typo in description of gnatbind -S switch
24455 Remove reference to Extensions_Allowed pragma
24456 Document the new order of the directories to be searched (source and
24457 object directories of project files before directories in ADA_*_PATH
24458 environment variables.
24460 * g-trasym.ads: Document that IRIX is supported
24462 2005-06-10 Arnaud Charlet <charlet@adacore.com>
24464 * Makefile.in: Add initialize.o when needed.
24465 Adapt to new VMS package body Symbols and subunits
24466 No specialized version of a-sytaco is needed for VxWorks.
24468 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
24469 * a-zchara.ads, a-widcha.ads: New files.
24471 * system-hpux-ia64.ads: New file.
24473 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
24474 is imported from the VxWorks kernel.
24476 2005-06-14 Robert Dewar <dewar@adacore.com>
24478 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
24479 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
24480 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
24481 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
24482 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
24483 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
24484 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
24485 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
24486 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
24487 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
24488 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
24489 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
24491 2005-06-14 Thomas Quinot <quinot@adacore.com>
24493 * xeinfo.adb: Fix typo in comment
24495 2005-06-14 Javier Miranda <miranda@adacore.com>
24497 * repinfo.ads: Fix typo in comment
24499 2005-06-14 Gary Dismukes <dismukes@adacore.com>
24501 * s-finimp.adb (Parent_Tag): Delete this imported function (function
24502 Parent_Tag is now in the visible part of Ada.Tags).
24503 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
24504 using imported function.
24506 2005-06-14 Bernard Banner <banner@adacore.com>
24508 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
24509 also apply for handling support for VxSim 653.
24511 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
24513 * xsnames.adb: Add automatic generation of snames.h.
24515 2005-06-14 Thomas Quinot <quinot@adacore.com>
24517 * gen-soccon.c: Add IP_MULTICAST_IF constant
24518 Minor reformatting and adjustments to prevent warnings.
24520 2005-06-14 Pascal Obry <obry@adacore.com>
24522 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
24524 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
24526 * trans.c (gnat_gimplify_expr): Call
24527 recompute_tree_invarant_for_addr_expr when we change
24528 the operand of the ADDR_EXPR.
24530 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24532 * misc.c: Don't include errors.h.
24534 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24536 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
24538 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
24540 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
24542 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
24544 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
24547 * Makefile.in: Make TGT_LIB behave correctly.
24549 2005-04-23 DJ Delorie <dj@redhat.com>
24551 * misc.c: Adjust warning() callers.
24553 2005-04-16 Laurent Guerby <laurent@guerby.net>
24556 * a-nudira.adb (Value): Check for valid string.
24557 * a-nuflra.adb (Value): Likewise.
24559 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
24561 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
24563 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
24565 * adaint.c, init.c, tracebak.c: Fix comment typos.
24566 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
24568 2005-04-07 Laurent Guerby <laurent@guerby.net>
24569 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24571 * Makefile.in: Add make ifeq define for hppa linux tasking support.
24572 * system-hpux.ads: Define Signed_Zeros to be True.
24573 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
24575 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
24577 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
24578 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
24581 2005-03-30 Tom Tromey <tromey@redhat.com>
24583 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
24585 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
24587 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
24589 2005-03-29 Robert Dewar <dewar@adacore.com>
24591 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
24592 fixed-point expression has value that is not a multiple of the Small
24595 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
24597 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
24600 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
24602 2005-03-29 Vincent Celier <celier@adacore.com>
24604 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
24605 (Build_Dynamic_Library.Version_String): Return the empty string when
24606 Lib_Version is empty or when the symbol policy is not Autonomous.
24608 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
24609 a symbol is not in the reference symbol file, increase the Major ID
24610 and set the Minor ID to 0.
24611 Use gsmatch=lequal instead of gsmatch=equal
24613 2005-03-29 Doug Rupp <rupp@adacore.com>
24615 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
24616 name and translate.
24618 2005-03-29 Javier Miranda <miranda@adacore.com>
24620 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
24621 (Inherit_DT): The first formal has been redefined as a Tag.
24622 This allows us the removal of the subprogram Get_TSD.
24623 (TSD): Replace the call to Get_TSD by the actual code.
24625 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
24626 (Make_DT): Upgrade the call to Inherit_TSD according to the
24627 new interface: the first formal is now a Tag.
24629 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
24630 redefined as a Tag.
24631 This change allows us to remove the subprogram Get_TSD.
24632 (CPP_Get_TSD): Subprogram removed.
24633 (TSD): Replace the call to CPP_Get_TSD by the actual code.
24635 * rtsfind.ads: Remove support to call the run-time
24638 2005-03-29 Robert Dewar <dewar@adacore.com>
24640 * errutil.adb, errout.adb:
24641 Minor comment updates on Line_Terminator references
24643 * par-ch10.adb: Add ??? comment about line terminator
24645 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
24646 (check dos line terminator).
24647 (Check_Line_Max_Length): New procedure, split off from the existing
24648 Check_Line_Terminator routine. Separating this out allows -gnatyf to
24649 be properly recognized.
24651 * styleg.adb: Add ??? comment for line terminator reference
24653 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
24654 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
24656 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
24657 (check dos line terminator).
24658 (Check_Line_Max_Length): New procedure, split off from the existing
24659 Check_Line_Terminator routine. Separating this out allows -gnatyf to
24660 be properly recognized.
24662 * stylesw.ads, stylesw.adb:
24663 Add handling for new -gnatyd switch (check dos line terminator)
24665 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
24666 Recognize -gnatwb/-gnatwB switches
24667 Include Warn_On_Bad_Fixed_Value for -gnatg
24670 Add line for new -gnatyd switch (check dos line terminator)
24672 * usage.adb: Add lines for -gnatwb/-gnatwB
24674 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
24676 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
24678 * gnat_ugn.texi: Fix overlong lines
24679 Document new -gnatyd switch
24680 Document new -gnatwb/-gnatwB switches
24682 2005-03-29 Ed Schonberg <schonberg@adacore.com>
24684 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
24685 order to retrieve the component list of the type, before examining
24686 individual components.
24688 * sem_type.adb (Covers): Types are compatible if one is the base type
24689 of the other, even though their base types might differ when private
24690 views are involved.
24692 2005-03-29 Thomas Quinot <quinot@adacore.com>
24694 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
24695 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
24696 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
24697 analyzed if expansion is disabled (which could otherwise cause spurious
24698 error messages if expansion has been disabled due to previous
24699 (unrelated) errors).
24701 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
24702 is disabled, the entity denoted by the argument is the access type
24703 itself, not an underlying record type, so there is no need to go back
24704 to the Corresponding_Remote_Type.
24706 2005-03-29 Gary Dismukes <dismukes@adacore.com>
24707 Robert Dewar <dewar@adacore.com>
24709 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
24710 expand a call to an instance of
24711 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
24712 Constructor actual of the instance. A class-wide membership
24713 check is also generated, to ensure that the tag passed to the instance
24714 denotes a type in the class.
24715 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
24716 of Name_Generic_Dispatching_Constructor.
24718 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
24719 05 unit for AI-260-02).
24721 * a-tgdico.ads: New file.
24723 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
24724 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
24726 * snames.ads, snames.adb (Preset_Names): Add entry for
24727 Generic_Dispatching_Constructor.
24730 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
24731 character type cases.
24732 (Analyze_Subprogram_Renaming): Add special handling for
24733 the case of renaming of stream attributes when the renaming denotes a
24734 generic formal subprogram association for an abstract formal subprogram.
24735 Check that the attribute is a primitive stream attribute (and not
24736 a class-wide stream attribute) and then rewrite the attribute name
24737 as the name of the appropriate compiler-generated stream primitive.
24739 2005-03-29 Robert Dewar <dewar@adacore.com>
24741 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
24743 (Is_Possibly_Unaligned_Object): Correct typo that
24744 resulted in inaccurate result for unaligned scalars within records.
24746 2005-03-29 Ed Schonberg <schonberg@adacore.com>
24748 * freeze.adb (Freeze_Record_Type): If the type of the component is an
24749 itype whose parent is controlled and not yet frozen, do not create a
24750 freeze node for the itype if expansion is disabled.
24752 2005-03-29 Vincent Celier <celier@adacore.com>
24754 * make.adb (Gnatmake): Don't fail if the main project file is declared
24755 as having no Ada sources. Do not display message "no sources to
24756 compile" in quiet output.
24758 2005-03-29 Doug Rupp <rupp@adacore.com>
24760 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
24763 2005-03-29 Robert Dewar <dewar@adacore.com>
24765 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
24768 2005-03-29 Robert Dewar <dewar@adacore.com>
24770 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
24771 missing TYPE Improve the error message generated when compiling a
24772 limited interface in Ada83 or Ada95 mode.
24774 2005-03-29 Robert Dewar <dewar@adacore.com>
24776 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
24777 rather than proceed ahead using a junk attribute name.
24779 2005-03-29 Vincent Celier <celier@adacore.com>
24781 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
24783 * prj-part.adb (Parse_Single_Project): Set the location of a project
24784 on its defining identifier, rather than on the reserved word "project".
24786 * prj-proc.adb (Expression): Adapt to the fact that default of external
24787 references may be string expressions, not always literal strings.
24788 (Recursive_Process): Set Display_Name equal to Name
24789 when Location is No_Location, that is when there is no actual file.
24790 Get the Display_Name of the project from the source, when it is not a
24792 (Process): Use the Display_Name in error messages
24794 * prj-strt.adb (External_Reference): Allow default to be string
24795 expressions, not only literal strings.
24797 2005-03-29 Vincent Celier <celier@adacore.com>
24799 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
24800 file and the reference symbol file to be the same file.
24802 2005-03-29 Thomas Quinot <quinot@adacore.com>
24804 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
24805 forbid conversion of a local access-to-subprogram type to a remote one.
24807 * sem_util.adb (Wrong_Type): For a record type that is the expanded
24808 equivalent type for a remote access-to-subprogram type, go back to the
24809 original RAS entity when displaying an error message, so the casing is
24810 the original source casing.
24812 2005-03-29 Robert Dewar <dewar@adacore.com>
24814 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
24817 2005-03-29 Ed Schonberg <schonberg@adacore.com>
24819 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
24820 subtype if code is being pre-analyzed, to prevent un-expanded
24821 references to protected formals, among others.
24822 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
24823 interpretation that can be a call, include the result of the call as a
24824 possible interpretation of the dereference.
24826 * sem_ch5.adb (Process_Bounds): Determine type of range by
24827 pre-analyzing a copy of the original range, and then analyze the range
24828 with the expected type.
24830 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
24831 with an overloaded prefix where not all interpretations yield an
24832 access to subprogram, do not rewrite node as a call.
24833 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
24834 the node as a call once the context identifies the interpretation of
24835 the prefix whose call yields the context type.
24836 (Valid_Conversion): For the case of a conversion between
24837 local access-to-subprogram types, check subtype conformance using
24838 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
24839 detailed error message.
24841 2005-03-29 Ed Schonberg <schonberg@adacore.com>
24843 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
24844 indicator, indicate that the formal can never be null.
24845 (Process_Formals): If a formal has a non_null indicator, insert the
24846 resulting subtype immediately before the enclosing subprogram decl,
24847 and not at the beginning of the corresponding declarative part, to
24848 prevent access before elaboration (Ada2005).
24850 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24853 * utils.c (finish_record_type): Use variable_size when setting sizes.
24855 2005-03-29 Robert Dewar <dewar@adacore.com>
24857 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
24858 guarantee Unix style line terminators for the output files, even when
24859 running on windows.
24861 2005-03-29 Robert Dewar <dewar@adacore.com>
24863 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
24864 buffer if an exception is raised.
24866 2005-03-29 Ed Falis <falis@adacore.com>
24868 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
24871 2005-03-29 Robert Dewar <dewar@adacore.com>
24873 * sem_util.ads: Minor reformatting
24874 * gnat_rm.texi: Minor editing.
24876 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
24878 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
24879 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
24881 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
24883 * adaint.c (__gnat_portable_spawn): Adjust cast.
24885 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
24887 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
24889 2005-03-17 Pascal Obry <obry@adacore.com>
24891 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
24894 * expect.c (__gnat_waitpid): Moved here from adaint.c.
24895 Reimplement under Win32 using Win32 API.
24897 (__gnat_kill) [Win32]: Properly close the process handle before leaving
24900 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
24902 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
24903 (DECL_RENAMED_OBJECT): New accessor macro.
24904 (SET_DECL_RENAMED_OBJECT): New setter macro.
24906 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
24907 object in all cases. Attach the renamed object to the VAR_DECL.
24908 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
24909 field is not prescribed.
24911 * misc.c (gnat_handle_option): Handle -gnatO separately.
24912 (gnat_print_decl) <VAR_DECL>: New case.
24913 Print the DECL_RENAMED_OBJECT node.
24915 * lang.opt: Declare separate -gnatO option.
24917 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
24918 pointer, replace it with the renamed object.
24919 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
24920 pointer type if the source is not a fat pointer type whose underlying
24921 array has the same non-zero alias set as that of the destination array.
24923 2005-03-17 Javier Miranda <miranda@adacore.com>
24925 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
24926 (Get_Inheritance_Depth): Removed.
24927 (Set_Inheritance_Depth): Removed.
24929 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
24930 subprogram Get_Expanded_Name because it is not referenced by the
24933 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
24934 (CPP_Get_Inheritance_Depth): Removed.
24935 (CPP_Set_Inheritance_Depth): Removed.
24937 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
24939 2005-03-17 Robert Dewar <dewar@adacore.com>
24941 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
24942 3, since we now expect GCC 3 to do all the work.
24944 2005-03-17 Javier Miranda <miranda@adacore.com>
24946 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
24947 of one barrier to avoid wrong usage of this attribute.
24949 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
24950 First_Private_Entity.
24952 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
24953 the subprogram against wrong usage.
24954 Adapt the code to traverse the entities in the
24955 scope of a record_type because in addition to its usage regarding
24956 packages, this subprogram is also called by Expand_N_Freeze_Entity
24957 to install the visible declarations of the enclosing scope of a
24958 record_type_with_private to establish the proper visibility before
24959 freezing the entity and related subprograms.
24961 2005-03-17 Ed Schonberg <schonberg@adacore.com>
24963 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
24966 2005-03-17 Thomas Quinot <quinot@adacore.com>
24968 * exp_ch3.adb (Check_Attr): New subprogram.
24969 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
24970 into a new Check_Attr subprogram, in order to provide a more
24971 explanatory error message (including the name of the missing attribute).
24972 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
24973 subprogram determines whether a default implementation exists for a
24974 given stream attribute.
24975 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
24976 Determine whether to generate a default implementation for each stream
24977 attribute separately, as this depends on the specific attribute.
24979 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
24980 limited extension where a stream attribute is missing for a limited
24981 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
24982 generate a bogus reference to the missing attribute to prevent
24983 cascaded errors. Instead, generate a null statement.
24985 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
24986 available for a limited type if it has been specified for an ancestor
24989 2005-03-17 Ed Schonberg <schonberg@adacore.com>
24991 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
24992 entity is an operator.
24994 2005-03-17 Thomas Quinot <quinot@adacore.com>
24996 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
24997 spec, to make this predicate available to other units.
24999 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
25002 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
25003 when no distribution runtime library is available.
25005 * sem_res.adb, sem_dist.adb: Disable expansion of remote
25006 access-to-subprogram types when no distribution runtime library is
25008 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
25009 predicate available to other units.
25011 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
25012 spec, to make this predicate available to other units.
25014 2005-03-17 Vincent Celier <celier@adacore.com>
25016 * make.adb (Insert_Project_Sources): Make sure the Q is always
25019 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
25020 the default for the tree, not the global default naming.
25022 * prj-proc.adb (Recursive_Process): No need to put the default naming
25023 in the project data, it's already there.
25025 2005-03-17 Doug Rupp <rupp@adacore.com>
25027 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
25029 * 5xcrtl.ads: Renamed to...
25030 * s-crtl-vms64.ads: ...this new file
25032 2005-03-17 Robert Dewar <dewar@adacore.com>
25035 * namet.adb (Copy_One_Character): Set proper wide character encoding
25036 for upper half character if we have upper half encoding.
25038 2005-03-17 Robert Dewar <dewar@adacore.com>
25040 * par.adb (Par): Improved msg for attempt to recompile predefined unit
25042 2005-03-17 Thomas Quinot <quinot@adacore.com>
25044 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
25045 tagged limited type, the TSS is a newly built renaming declaration:
25046 insert it using Set_TSS, not Copy_TSS.
25048 2005-03-17 Javier Miranda <miranda@adacore.com>
25050 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
25051 Try_Object_Operation): Analyze the object that is accessible
25052 through the prefix of the subprogram call before we apply
25053 the transformation of the object-operation notation.
25055 2005-03-17 Jose Ruiz <ruiz@adacore.com>
25057 * s-taprob.adb (Initialize_Protection): Initialize the protected
25058 object's owner to Null_Task.
25059 (Lock): If pragma Detect_Blocking is in effect and the caller of this
25060 procedure is already the protected object's owner then Program_Error
25061 is raised. In addition the protected object's owner is updated.
25062 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
25063 of this procedure is already the protected object's owner then
25064 Program_Error is raised.
25065 In addition the protected object's owner is updated.
25066 (Unlock): Remove the ownership of the protected object.
25068 * s-taprob.ads (Protection): Add the field Owner, used to store the
25069 protected object's owner.
25070 This component is needed for detecting one type of potentially blocking
25071 operations (external calls on a protected subprogram with the same
25072 target object as that of the protected action). Document the rest of
25075 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
25076 Initialize the protected object's owner to Null_Task.
25077 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
25078 caller of this procedure is already the protected object's owner then
25079 Program_Error is raised.
25080 Do not raise Program_Error when this procedure is called from a
25082 (Unlock_Entries): Remove the ownership of the protected object.
25083 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
25084 of this procedure is already the protected object's owner then
25085 Program_Error is raised.
25086 Do not raise Program_Error when this procedure is called from
25087 a protected action.
25089 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
25090 used to store the protected object's owner.
25092 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
25093 effect and this procedure (a potentially blocking operation) is called
25094 from whithin a protected action, Program_Error is raised.
25095 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
25096 and this procedure (a potentially blocking operation) is called from
25097 whithin a protected action, Program_Error is raised.
25099 2005-03-17 Vincent Celier <celier@adacore.com>
25100 Nicolas Setton <setton@adacore.com>
25102 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
25103 switch, not supported by the linker on Darwin. Add '_' before
25104 <library>init, as this character is added unconditionally by the
25106 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
25107 correct one ".dylib". This fixes detection of the archive files when
25108 building library projects.
25110 2005-03-17 Vincent Celier <celier@adacore.com>
25112 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
25113 -gnat83, -gnat95 and -gnat05.
25115 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
25117 * gnat_ugn.texi: Document gnatmem restriction
25119 2005-03-17 Thomas Quinot <quinot@adacore.com>
25121 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
25124 2005-03-17 Robert Dewar <dewar@adacore.com>
25126 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
25127 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
25128 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
25130 * casing.adb: Comment improvements
25132 2005-03-17 Pascal Obry <obry@adacore.com>
25134 * g-expect.adb: Minor reformatting.
25136 2005-03-15 Zack Weinberg <zack@codesourcery.com>
25138 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
25139 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
25142 2005-03-15 Vincent Celier <celier@adacore.com>
25144 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
25145 Add new parameter In_Tree to specify the project tree: needed
25146 by the project manager. Adapt to changes in project manager
25147 using new parameter In_Tree.
25149 2005-03-15 Jakub Jelinek <jakub@redhat.com>
25151 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
25152 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
25153 ada/bldtools to avoid make -jN failures.
25155 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
25157 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
25158 to NULL_TREE on entry.
25160 2005-03-15 Robert Dewar <dewar@adacore.com>
25162 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
25163 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
25164 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
25165 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
25166 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
25167 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
25168 system-interix.ads, system-solaris-sparc.ads,
25169 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
25170 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
25171 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
25172 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
25173 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
25174 Compiler_System_Version to be False.
25176 * opt.ads: Add new flag Opt.Address_Is_Private
25178 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
25179 Add new parameter Compiler_System_Version to avoid checking for
25180 completeness of parameters when compiler is compiling itself.
25181 Allows old versions of GNAT to be compiled with new compiler.
25183 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
25185 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
25186 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
25188 (Stack_Base_Available): New flag.
25189 (Get_Page_Size): New overloaded functions imported from C.
25190 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
25191 PROT_ON, PROT_OFF): New constants.
25192 (mprotect): New function imported from C.
25193 (pthread_teb_t): New record type.
25195 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
25196 (Create_Task): Account for the Yellow Zone and the guard page.
25198 2005-03-15 Vincent Celier <celier@adacore.com>
25200 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
25201 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
25202 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
25203 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
25204 Library_File_Name_For): Add new parameter In_Tree
25205 to specify the project tree: needed by the project manager.
25206 Adapt to changes in project manager using new parameter In_Tree.
25207 Remove local imports, use functions in System.CRTL.
25209 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
25210 to use the project manager.
25212 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
25213 In_Tree to designate the project tree. Adapt to changes in the project
25214 manager, using In_Tree.
25216 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
25217 Copy_Interface_Sources): Add new parameter In_Tree to specify the
25218 project tree: needed by the project manager.
25219 (Build_Library): Check that Arg'Length >= 6 before checking if it
25220 contains "--RTS=...".
25222 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
25223 Library_File_Name_For): Add new parameter In_Tree to specify the
25224 project tree: needed by the project manager.
25226 * prj.ads, prj.adb: Major modifications to allow several project trees
25227 in memory at the same time.
25228 Change tables to dynamic tables and hash tables to dynamic hash
25229 tables. Move tables and hash tables from Prj.Com (in the visible part)
25230 and Prj.Env (in the private part). Move some constants from the visible
25231 part to the private part. Make other constants deferred.
25232 (Project_Empty): Make it a variable, not a function
25233 (Empty_Project): Add parameter Tree. Returns the data with the default
25234 naming data of the project tree Tree.
25235 (Initialize): After updating Std_Naming_Data, copy its value to the
25236 component Naming of Project Empty.
25237 (Register_Default_Naming_Scheme): Use and update the default naming
25238 component of the project tree, instead of the global variable
25240 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
25241 Tree is not defaulted, return the default naming data of the Tree.
25242 (Initial_Buffer_Size): Constant moved from private part
25243 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
25244 variables initialized in procedure Initialize.
25245 (Add_To_Buffer): Add two in out parameters to replace global variables
25246 Buffer and Buffer_Last.
25247 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
25249 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
25251 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
25252 for the project tree.
25253 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
25254 constant at the beginning of the package spec, so that they cane be used
25255 in subprograms before their full declarations.
25256 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
25257 (Empty_Project): Add parameter of type Project_Node_Ref
25258 (Private_Project_Tree_Data): Add component Default_Naming of type
25260 (Buffer, Buffer_Last): remove global variables
25261 (Add_To_Buffer): Add two in out parameters to replace global variables
25262 Buffer and Buffer_Last.
25263 (Current_Packages_To_Check): Remove global variable
25264 (Empty_Name): Move to private part
25265 (No-Symbols): Make it a constant
25266 (Private_Project_Tree_Data): New type for the private part of the
25268 (Project_Tree_Data): New type for the data of a project tree
25269 (Project_Tree_Ref): New type to designate a project tree
25270 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
25271 for the project tree.
25273 * prj-attr.ads: Add with Table; needed, as package Prj no longer
25274 imports package Table.
25276 * prj-com.adb: Remove empty, no longer needed body
25278 * prj-com.ads: Move most of the content of this package to package Prj.
25280 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
25281 designate the project node tree and Packages_To_Check to replace
25282 global variable Current_Packages_To_Check.
25283 Add new parameters In_Tree and Packages_To_Check to local subprograms,
25284 when needed. Adapt to changes in project manager with project node tree
25287 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
25288 project tree to most subprograms. Move tables and hash tables to
25289 private part of package Prj.
25290 Adapt to changes in project manager using project tree In_Tree.
25292 * prj-makr.adb (Tree): New constant to designate the project node tree
25293 Adapt to change in project manager using project node tree Tree
25295 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
25296 display the Library_Src_Dir and the Library_Dir.
25297 Add new parameter In_Tree to designate the project node tree to most
25298 subprograms. Adapt to changes in the project manager, using project tree
25300 (Check_Naming_Scheme): Do not alter the casing on platforms where
25301 the casing of file names is not significant.
25302 (Check): Add new parameter In_Tree to designate the
25304 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
25305 designate the project tree.
25306 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
25308 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
25309 to replace those that were in the private part of package Prj.
25310 Add new parameter In__Tree to designate the project node tree to most
25311 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
25312 (Post_Parse_Context_Clause): When specifying the project node of a with
25313 clause, indicate that it is a limited with only if there is "limited"
25314 in the with clause, not necessarily when In_Limited is True.
25315 (Parse): Add new parameter In_Tree to designate the project node tree
25317 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
25318 designate the project node tree. Adapt to change in Prj.Tree with
25319 project node tree In_Tree.
25321 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
25322 tree In_Tree in the call to function Empty_Process to give its initial
25323 value to the project data Processed_Data.
25324 Add new parameters In_Tree to designate the project tree and
25325 From_Project_Node_Tree to designate the project node tree to several
25326 subprograms. Adapt to change in project manager with project tree
25327 In_Tree and project node tree From_Project_Node_Tree.
25329 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
25330 to replace those that were in the private part of package Prj.
25331 Add new parameter In_Tree to designate the project node tree to most
25332 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
25334 * prj-tree.ads, prj-tree.adb: Add new parameter of type
25335 Project_Node_Tree_Ref to most subprograms.
25336 Use this new parameter to store project nodes in the designated project
25338 (Project_Node_Tree_Ref): New type to designate a project node tree
25339 (Tree_Private_Part): Change table to dynamic table and hash tables to
25340 dynamic hash tables.
25342 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
25343 the project tree to most subprograms. Adapt to changes in project
25344 manager using project tree In_Tree.
25346 * makegpr.adb (Project_Tree): New constant needed to use project
25349 2005-03-15 Olivier Hainque <hainque@adacore.com>
25351 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
25352 for sigactions with SA_SIGINFO set. Call
25353 __gnat_adjust_context_for_raise before raising, to perform the
25354 potentially required adjustments to the machine context for the GCC
25357 * raise.h (__gnat_adjust_context_for_raise): New prototype.
25359 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
25360 Adjust PC by one in the provided machine context.
25361 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
25362 so that the handler is passed the context structure to adjust prior to
25364 (__gnat_error_handler) HPUX: Adjust the signature to match what an
25365 SA_SIGINFO sigaction should look like. Call
25366 __gnat_adjust_context_for_raise before actually raising.
25367 (__gnat_adjust_context_for_raise): Default noop to help PC
25368 adjustments before raise from signal handlers.
25369 (__gnat_error_handler): Indirectly call a predicate function to
25370 determine if a condition should be resignaled or not.
25371 (__gnat_set_resignal_predicate): User interface to modify the predicate.
25372 (__gnat_default_resignal_p): Default GNAT predicate.
25374 2005-03-15 Doug Rupp <rupp@adacore.com>
25376 * adaint.c: Prefix #include of VMS system header files with vms/
25377 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
25378 Do not define a dummy function "convert_addresses" under Darwin,
25381 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
25384 2005-03-15 Nicolas Setton <setton@adacore.com>
25386 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
25389 2005-03-15 Robert Dewar <dewar@adacore.com>
25391 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
25394 * a-retide.ads: Minor comment changes
25396 2005-03-15 Robert Dewar <dewar@adacore.com>
25398 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
25399 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
25400 Realloc_For_Chunk to private part of package.
25401 New subprograms for AI-301
25403 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
25404 Get_Line procedure.
25405 Avoid unnecessary use of Get/Set_Wide_String
25407 2005-03-15 Robert Dewar <dewar@adacore.com>
25410 * a-stunau.ads, a-stunau.adb:
25411 Change interface to allow efficient (and correct) implementation
25412 The previous changes to allow extra space in unbounded strings had
25413 left this interface a bit broken.
25415 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
25417 * g-spipat.ads, g-spipat.adb: New interface for Get_String
25418 Minor reformatting (function specs)
25420 * g-spitbo.adb: New interface for Get_String
25422 * g-spitbo.ads: Minor reformatting
25424 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
25426 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
25428 2005-03-15 Javier Miranda <miranda@adacore.com>
25429 Robert Dewar <dewar@adacore.com>
25430 Thomas Quinot <quinot@adacore.com>
25431 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25433 * atree.ads, atree.adb: Add support for Elist24 field
25435 * atree.h: Fix wrong definition of Field27
25436 Add support for Elist16 field
25437 Add support for Elist24 field
25439 * einfo.ads, einfo.adb (Abstract_Interfaces,
25440 Set_Abstract_Interfaces): New subprograms.
25441 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
25443 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
25444 entities rather than a single node.
25445 (Is_Interface, Set_Is_Interface): New subprogram
25446 (First_Tag_Component): New syntesized attribute
25447 (Next_Tag_Component): New synthesized attribute
25448 (Write_Entity_Flags): Upgraded to write Is_Interface
25449 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
25450 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
25451 (Task_Body_Procedure): New subprogram to read this attribute.
25452 (Set_Task_Body_Procedure): New subprogram to set this attribute.
25453 (Has_Controlled_Component): Now applies to all entities.
25454 This is only a documentation change, since it always worked to apply
25455 this to other than composite types (yielding false), but now this is
25457 Update documentation on Must_Be_Byte_Aligned for new spec
25459 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
25460 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
25461 uses of the Access_Disp_Table attribute to reference the first dispatch
25462 table associated with a tagged type. As
25463 part of the implementation of abstract interface types,
25464 Access_Disp_Table has been redefined to contain a list of dispatch
25465 tables (rather than a single dispatch table).
25466 Similarly, upgrade all the references to Tag_Component by the
25467 new attribute First_Tag_Component.
25468 (Find_Inherited_TSS): Moved to exp_tss.
25469 Clean up test in Expand_N_Object_Declaration for cases
25470 where we need to do a separate assignment of the initial value.
25471 (Expand_N_Object_Declaration): If the expression in the
25472 declaration of a tagged type is an aggregate, no need to generate an
25473 additional tag assignment.
25474 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
25476 Bit packed array ops are only called if operands are known to be
25478 (Component_Equality): When returning an N_Raise_Program_Error statement,
25479 ensure that its Etype is set to Empty to avoid confusing GIGI (which
25480 expects that only expressions have a bona fide type).
25481 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
25482 determine the amount of data to be copied.
25484 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
25485 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
25486 INTERFACE_TYPE_DEFINITION ::=
25487 [limited | task | protected | synchronized] interface
25488 [AND interface_list]
25490 * par-ch3.adb (P_Type_Declaration): Modified to give support to
25492 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
25494 (P_Interface_Type_Definition): New subprogram that parses the new
25495 syntax rule of Ada 2005 interfaces
25496 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
25497 messages by the correct RENAMES (quotes removed).
25499 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
25500 attribute First_Tag_Component.
25502 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
25503 (Interface_List, Set_Interface_List): New subprograms.
25504 (Interface_Present, Set_Interface_Present): New subprograms.
25505 (Limited_Present, Set_Limited_Present): Available also in derived
25506 type definition nodes.
25507 (Protected_Present, Set_Protected_Present): Available also in
25508 record type definition and
25509 derived type definition nodes.
25510 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
25511 (Task_Present, Set_Task_Present): New subprogram.
25512 (Task_Body_Procedure): Removed.
25513 (Set_Task_Body_Procedure): Removed.
25514 These subprogram have been removed because the attribute
25515 Task_Body_Procedure has been moved to the corresponding task type
25516 or task subtype entity to leave a field free to store the list
25517 of interfaces implemented by a task (for AI-345)
25518 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
25519 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
25520 expression flag Do_Range_Check
25521 (Exception_Junk): Change to Flag7 to accomodate above change
25522 (Box_Present, Default_Name, Specification, Set_Box_Present,
25523 Set_Default_Name, Set_Specification): Expand the expression
25524 "X in N_Formal_Subprogram_Declaration" into the corresponding
25525 two comparisons. Required to use the csinfo tool.
25527 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
25528 "with string" given.
25530 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
25533 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
25536 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
25537 attribute Task_Body_Procedure rather than the old semantic field that
25538 was available in the task_type_declaration node.
25540 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
25541 interface type definitions.
25542 (P_Formal_Derived_Type_Definition): Modified to handle the list of
25545 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
25546 task type declaration.
25547 (P_Protected): Modified to handle the list of interfaces in a
25548 protected type declaration.
25550 2005-03-15 Doug Rupp <rupp@adacore.com>
25551 Vincent Celier <celier@adacore.com>
25553 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
25554 (Gen_Output_File_C): Likewise.
25555 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
25557 2005-03-15 Thomas Quinot <quinot@adacore.com>
25559 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
25560 is an N_Raise_Constraint_Error node, create a new copy of it without
25561 going through a call to Duplicate_Subexpr.
25563 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
25564 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25565 Nicolas Setton <setton@adacore.com>
25566 Ed Schonberg <schonberg@adacore.com>
25572 * decl.c (gnat_to_gnu_field): Reject aliased components with a
25573 representation clause that prescribes a size not equal to the rounded
25574 size of their types.
25575 (gnat_to_gnu_entity, case E_Component): Always look at
25576 Original_Record_Component if Present and not the entity.
25577 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
25578 of tagged extension types by not making field for components that are
25580 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
25581 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
25582 expression to the type of the object when the object is constant.
25583 Reverse defer_debug_incomplete_list before traversing it, so that trees
25584 are processed in the order at which they were added to the list. This
25585 order is important when using the stabs debug format.
25586 If we are deferring the output of debug information, also defer this
25587 output for a function return type.
25588 When adding fields to a record, prevent emitting debug information
25589 for incomplete records, emit the information only when the record is
25591 (components_to_record): New parameter defer_debug.
25592 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
25593 (gnat_to_gnu_field_decl): New function.
25594 (substitution_list, annotate_rep): Call it.
25595 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
25596 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
25597 No longer update discriminants to not be a COMPONENT_REF.
25598 (copy_alias_set): Strip padding from input type; also handle
25599 unconstrained arrays properly.
25601 * gigi.h (write_record_type_debug_info): New function.
25602 Convert to use ANSI-style prototypes. Remove unused
25603 declarations for emit_stack_check, elab_all_gnat and
25604 set_second_error_entity.
25605 (gnat_to_gnu_field_decl): New decl.
25607 * utils.c (write_record_type_debug_info): New function.
25608 (finish_record_type): Delegate generation of debug information to
25609 write_record_type_debug_info.
25610 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
25611 (update_pointer_to): Fix pasto.
25612 (convert) <UNION_TYPE>: Accept slight type variations when
25613 converting to an unchecked union type.
25615 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
25616 replace the N_Freeze_Entity with a null statement.
25618 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
25619 within a constrained subcomponent of an enclosing record, place the
25620 freeze nodes in the scope stack entry for the enclosing record.
25621 (Undelay_Type): New Subprogram.
25622 (Set_Small_Size): Pass T, the type to modify; all callers changed.
25623 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
25624 within records; allow them to have freeze nodes if their base types
25627 * exp_util.adb (Remove_Side_Effects): Properly test for
25628 Expansion_Delayed and handle case when it's inside an
25629 N_Qualified_Expression.
25631 * sem_ch3.adb (Derived_Type_Declaration): New predicate
25632 Comes_From_Generic, to recognize accurately that the parent type in a
25633 derived type declaration can be traced back to a formal type, because
25634 it is one or is derived from one, or because its completion is derived
25636 (Constrain_Component_Type): If component comes from source and has no
25637 explicit constraint, no need to constrain in in a subtype of the
25639 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
25640 Minor change to propagate Is_Ada_2005 flag
25642 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
25643 Expansion_Delayed is False.
25644 (assoc_to_constructor): Ignore fields that have a
25645 Corresponding_Discriminant.
25646 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
25647 function returns "by target", dereference the target pointer using the
25648 type of the actual return value.
25649 <all>: Be prepared for a null gnu_result.
25650 (processed_inline_subprograms): Check flag_really_no_inline
25651 instead of flag_no_inline.
25652 (set_second_error_entity): Remove unused function.
25653 (gnat_to_gnu, case N_Selected_Component): Call
25654 gnat_to_gnu_field_decl.
25655 (assoc_to_constructor): Likewise.
25657 2005-03-15 Robert Dewar <dewar@adacore.com>
25658 Ed Schonberg <schonberg@adacore.com>
25659 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25661 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
25662 Must_Be_Byte_Aligned for cases where we do not need to use a
25663 System.Pack_nn unit.
25665 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
25667 Needed now that we do some processing for IN parameters as well. This
25668 may well fix some unrelated errors.
25669 (Expand_Call): Handle case of unaligned objects (in particular those
25670 that come from packed arrays).
25671 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
25672 renamed entity is an inherited operation, re-expand the call using the
25673 original operation, which is the one to call.
25674 Detect attempt to inline parameterless recursive subprogram.
25675 (Represented_As_Scalar): Fix to work properly with private types
25676 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
25677 accurate estimate. Yields True in far fewer cases than before,
25678 improving the quality of code that depends on this test.
25680 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
25681 over both visible and private declarations to remove them from tree,
25682 and mark subprograms declared in package as eliminated, to prevent
25683 spurious use in subsequent compilation of generic units in the context.
25685 * exp_util.ads: Minor cleanup in variable names
25687 * sem_eval.ads, sem_eval.adb: Minor reformatting
25688 (Compile_Time_Known_Bounds): New function
25690 2005-03-15 Ed Schonberg <schonberg@adacore.com>
25692 * exp_ch7.adb (Convert_View): Use base types of underlying types when
25693 determining whether an unchecked conversion is needed for the argument
25694 of an initialization call.
25696 2005-03-15 Ed Schonberg <schonberg@adacore.com>
25698 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
25699 that appears in the instantiation rather than the internal subtype
25700 generated in the wrapper package, to avoid anomalies in gigi when the
25701 target is derived from a private type whose full view is an access type.
25703 2005-03-15 Robert Dewar <dewar@adacore.com>
25705 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
25707 Add documentation to replace the use of this flag
25708 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
25711 2005-03-15 Thomas Quinot <quinot@adacore.com>
25713 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
25714 here from exp_attr so it can be shared between exp_attr and exp_dist.
25715 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
25716 all TSS names, not a subset thereof, and the previous name introduced
25717 an unnecessarily confusion that a distinction might exist between
25718 "OK" TSS names and some "not OK" TSS names.
25720 2005-03-15 Doug Rupp <rupp@adacore.com>
25722 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
25725 2005-03-15 Pascal Obry <obry@adacore.com>
25726 Eric Botcazou <ebotcazou@adacore.com>
25730 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
25731 when IN_RTS. This is to work around a bootstrap path problem.
25733 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
25734 table and pass it to __gnat_install_SEH_handler().
25735 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
25737 * lang.opt: Fix specification of -fRTS=.
25739 2005-03-15 Doug Rupp <rupp@adacore.com>
25740 Bernard Banner <banner@adacore.com>
25741 Vincent Celier <celier@adacore.com>
25742 Arnaud Charlet <charlet@adacore.com>
25745 This change works fine when gnatlib is built from the gcc directory,
25746 but does not work when using the libada Makefile, since GCC_FOR_TARGET
25747 is not passed to ada/Makefile.in, so more work is needed by a
25748 Makefile/configure expert.
25750 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
25751 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
25752 Setup gnatlink switch -M for x86_64 linux, as it is already setup
25754 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
25755 Run ranlib on libgccprefix.a
25756 Define PREFIX_OBJS for Darwin, to build libgccprefix.
25757 (ADA_INCLUDE_SRCS): Split Ada packages.
25759 2005-03-15 Robert Dewar <dewar@adacore.com>
25761 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
25763 * impunit.adb: Add GNAT.UTF_32
25765 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
25767 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
25768 now uses GNAT.UTF_32).
25770 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
25771 capabilities for categorizing characters using Unicode categories
25773 2005-03-15 Ed Schonberg <schonberg@adacore.com>
25775 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
25776 instantiation that has been rewritten as a package body, retrieve spec
25777 to generate proper name for implicit_with_clause.
25778 (Install_Parents): Recognize a parent that is an instantiation but has
25779 been rewritten as a package declaration during analysis.
25781 2005-03-15 Javier Miranda <miranda@adacore.com>
25782 Ed Schonberg <schonberg@adacore.com>
25784 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
25785 parameter reported some error we immediately return. This improves the
25786 behaviour of the frontend in case of errors.
25787 (Install_Parent, Remove_Parent): Introduce new flag
25788 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
25789 ancestor of a generic child unit, when the child is being instantiated.
25790 (Inline_Instance_Body): If we are compiling the private
25791 part or the body of a child unit, restore the proper visibility of the
25792 parents after compiling the instance body.
25794 2005-03-15 Ed Schonberg <schonberg@adacore.com>
25795 Javier Miranda <miranda@adacore.com>
25798 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
25799 of a private type, in which case it is underlying_type that denotes
25800 the proper task. Also modified to use the new entity attribute
25801 that is directly available in the task type and task subtype entities
25802 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
25803 arrays when other dimensions than the first are constrained by
25804 discriminants of an enclosing record.
25805 (Insert_Explicit_Dereference): If the prefix is an indexed component or
25806 a combination of indexed and selected components, find ultimate entity
25807 and generate the appropriate reference for it, to suppress spurious
25809 (Note_Possible_Modification): If an entity name has no entity, return.
25810 (Is_Variable): A function call never denotes a variable.
25811 (Requires_Transient_Scope): For record types, recurse only on
25812 components, not on internal subtypes that may have been generated for
25813 constrained components.
25815 2005-03-15 Ed Schonberg <schonberg@adacore.com>
25817 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
25818 Eliminated as candidates for resolution. Both efficient, and avoids
25819 anomalies with operators declared in deleted code.
25820 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
25821 expansion is disabled (as when compiling a generic) to prevent spurious
25822 warnings on prefixes of selected components.
25824 2005-03-15 Ed Schonberg <schonberg@adacore.com>
25826 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
25827 attached to a list before checking whether it appears in the private
25828 declarations of the current package.
25829 (Make_Inequality_Operator): Insert declaration in proper declarative
25830 list rather than just setting the Parent field, so that
25831 Is_Private_Declaration can handle it properly.
25833 2005-03-15 Ed Schonberg <schonberg@adacore.com>
25835 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
25836 a renaming a body, check that the renamed subprogram in not intrinsic.
25837 (Find_Direct_Name): If several use_visible entities hide
25838 each other, and the context is a predefined file compiled through
25839 rtsfind, keep only the entity that comes from a predefined file.
25841 2005-03-15 Geert Bosch <bosch@adacore.com>
25843 * s-fatgen.adb (Valid): Extend special exceptions to account for long
25844 long float padding to also cover AMD64 and IA64.
25846 2005-03-15 Gary Dismukes <dismukes@adacore.com>
25848 * s-imgwch.adb: Add with and use of Interfaces.
25849 (Img_Wide_Character): Change type of Val to Unsigned_16.
25850 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
25852 2005-03-15 Matthew Gingell <gingell@adacore.com>
25854 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
25856 2005-03-15 Robert Dewar <dewar@adacore.com>
25858 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
25860 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
25862 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
25864 2005-03-15 Robert Dewar <dewar@adacore.com>
25866 * s-bitops.adb, s-bitops.ads,
25867 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
25868 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
25869 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
25870 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
25871 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
25872 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
25873 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
25874 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
25877 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
25879 * utils2.c (build_binary_op): Fix typo.
25881 2005-03-15 Doug Rupp <rupp@adacore.com>
25883 * s-crtl.ads (popen,pclose): New imports.
25885 2005-03-15 Cyrille Comar <comar@adacore.com>
25887 * comperr.adb (Compiler_Abort): remove references to obsolete
25888 procedures in the bug boxes for various GNAT builds.
25890 2005-03-15 Vincent Celier <celier@adacore.com>
25892 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
25894 2005-03-15 Geert Bosch <bosch@adacore.com>
25895 Arnaud Charlet <charlet@adacore.com>
25896 Robert Dewar <dewar@adacore.com>
25897 Cyrille Comar <comar@adacore.com>
25898 Sergey Rybin <rybin@adacore.com>
25900 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
25901 too specific and long-winded to be appropriate for the GNAT User's
25903 Warn about use of GCC switches not documented in the GNAT User's Guide,
25904 as these may cause generated code to not conform to Ada semantics.
25905 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
25906 Add documentation for -gnat95 and -gnat05 switches
25907 Remove paragraph documenting obsolete way to refer to third party
25909 Add a few references to Ada_05 that were missing.
25910 Update documentation on -gnatZ/-gnatL.
25911 Document limitation when using -m64 under Solaris.
25912 Change the "Name Casing" subsection of the pretty-printer section
25913 according to the changes in the dictionary processing.
25915 * gnat_rm.texi: Document the Ada_05 pragma.
25916 Section on record representation clauses describes the new more
25917 relaxed rules about placement of large packed bit array components.
25918 Add documentation of GNAT.UTF_32
25920 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
25922 * misc.c (gnat_post_options): Turn off structural
25925 2005-03-08 Laurent Guerby <laurent@guerby.net>
25927 * system-linux-sparc.ads: Fix typo in previous commit.
25929 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
25930 Laurent Guerby <laurent@guerby.net>
25933 * system-linux-sparc.ads: New.
25934 * Makefile.in: Add sparc linux entry.
25936 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
25938 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
25939 parameters as unused.
25941 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
25942 Partial merge from libada-gnattools-branch:
25944 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
25945 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
25946 into code in gnattools/Makefile.in. Remove direct dependencies on
25947 stamp-tools by tools clauses.
25948 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
25949 * config-lang.in: Add gnattools to $lang_dirs.
25951 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
25954 * utils.c (gnat_type_for_mode): Return null instead of ICE because
25955 we asked for an unknown mode.
25957 2005-02-12 Richard Henderson <rth@redhat.com>
25959 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
25960 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
25962 2005-02-10 Andreas Jaeger <aj@suse.de>
25964 * init.c (__gnat_initialize): Mark parameter as unused.
25966 2005-02-09 Doug Rupp <rupp@adacore.com>
25968 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
25969 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
25971 2005-02-09 Doug Rupp <rupp@adacore.com>
25973 * gnatchop.adb (dup, dup2),
25974 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
25976 * gnatlbr.adb (mkdir),
25977 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
25979 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
25981 2005-02-09 Doug Rupp <rupp@adacore.com>
25983 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
25985 2005-02-09 Robert Dewar <dewar@adacore.com>
25986 Thomas Quinot <quinot@adacore.com>
25987 Javier Miranda <miranda@adacore.com>
25988 Pascal Obry <obry@adacore.com>
25989 Ed Schonberg <schonberg@adacore.com>
25990 Doug Rupp <rupp@adacore.com>
25991 Gary Dismukes <dismukes@adacore.com>
25992 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25994 * g-zstspl.ads: New file.
25996 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
25998 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
26000 Add definition of Wide_Wide_Space for AI-285
26002 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
26003 interface (to support Ada 95 and Ada 2005 units).
26004 Add Unbounded_IO files
26005 Add entries for Wide_Wide packages for AI-285
26006 Add list of containers packages to Ada 2005 unit list
26008 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
26009 support new Unbounded_IO package cleanly.
26011 * g-utf_32.ads, g-utf_32.adb: New files.
26013 * Makefile.rtl: Add entry for g-utf_32
26014 Add new files for Unbounded_IO
26015 Adjust make file for new AI-285 wide wide packages
26016 Add AI-302 containers to the run time.
26018 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
26019 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
26020 subprograms for AI-301.
26022 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
26024 * a-stunau.ads: Minor comment correction
26026 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
26028 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
26029 (Check_RPC): Update to match changes in expanded code.
26030 Clean up unused entity.
26032 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
26033 was not taken into account.
26034 This includes proper initialization with Normalize_Scalars.
26035 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
26036 normalize scalars cases (particularly the latter) to do a better job
26037 of finding invalid representations.
26039 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
26041 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
26044 * exp_dist.adb: Add support for wide wide character type
26045 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
26046 private part, generate stub bodies at the end of the private part,
26047 not the visible part.
26048 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
26050 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
26051 generic wrapper to execute final processing after completing the
26052 expansion of the RPC receiver for an RACW.
26054 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
26055 packages and attributes.
26056 (Preset_Names): Addition of the new reserved words of Ada 2005,
26057 that is interface, overriding and synchronized.
26058 (Get_Pragma_Id): Give support to the use of the new reserved word
26059 "interface" as a pragma name.
26060 (Is_Pragma_Name): Give support to the use of the new reserved word
26061 "interface" as a pragma name.
26062 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
26063 attribute implementation.
26065 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
26066 checks to entities that are output parameters of Asm operations.
26067 Handle the Stream_Size attribute.
26068 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
26070 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
26072 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
26073 for second parameter being 0.0.
26074 Add support for wide wide character type.
26075 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
26077 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
26078 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
26079 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
26080 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
26081 for wide wide character cases.
26083 * cstand.adb: Create entities for Wide_Wide_Character and
26086 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
26087 accordance with AI-258.
26088 Add new declarations for 16/32 bit C character types (Part of AI285)
26090 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
26091 (Obsolescent_Warning): New field
26092 (Rep_Clause): New local subprogram used to share code. Returns the rep
26093 clause for which the name is given in parameter.
26094 (Has_Stream_Size_Clause): New routine.
26095 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
26096 (Address_Clause): Implementation is now using Rep_Clause.
26097 (Alignment_Clause): Idem.
26098 (Size_Clause): Idem.
26100 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
26101 entity in non-Ada 2005 mode and generate warning.
26103 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
26104 (Prag): Code cleanup. Remove old gnat pragma "overriding"
26106 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
26107 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
26108 on the named unit if the pragma is not in the current compilation unit,
26109 so that elaboration calls in the current unit can set up an elaboration
26110 dependency on the named unit, as needed.
26111 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
26112 subprogram as well as for subprograms declared within a package.
26113 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
26116 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
26117 to z) to avoid some instances of duplication for Wide_Wide packages.
26119 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
26122 * scn.adb: Char_Literal_Value field is now a Uint
26124 * scng.adb: Significant rewrite to handle new Ada 2005 features
26125 allowing wide and wide wide characters in program text, e.g. for
26126 identifiers, as described in AI-285.
26127 (Set_Reserved): New procedure, makes setting up keywords cleaner.
26128 (Initialize_Scanner): Register the new reserved words of Ada 2005.
26129 (Scan): Give support to the new reserved words.
26131 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
26132 warning notifying that interface, overriding, and synchronized are
26133 new reserved words.
26134 (P_Pragma): Allow the use of the new reserved word "interface" as
26137 * gnatls.adb, gnatbind.adb,
26138 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
26139 identifiers named "interface" to "SAL_Interface".
26141 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
26142 (Structured Exception handling).
26143 (Gen_Main_C): Idem.
26146 (Gen_Main_Ada): Set the default exit code if specified.
26147 (Gen_Main_C): Likewise.
26149 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
26150 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
26152 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
26155 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
26156 has a collision with the new Ada 2005 "interface" reserved word.
26158 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
26159 generate a warning notifying that interface, overriding, and
26160 synchronized are new reserved words.
26162 * scans.ads (Token_Type): Addition of the tokens corresponding to the
26163 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
26164 and Tok_Synchronized.
26166 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
26167 "dispatching" rather than "primitive" operations, since dispatching
26168 calls are now allowed to abstract formal subprograms (which are not
26170 Char_Literal_Value field is now a Uint
26171 (Resolve_Slice): If the prefix is an access to an unconstrained array,
26172 compute the actual subtype of the designated object to impose the proper
26174 (Resolve_Selected_Component): Do not insert an access check if the
26175 prefix is an access type: such a node is expanded into an explicit
26176 dereference, on which the access check is performed anyway. Removes
26177 expensive duplicate checks.
26178 (Resolve_Call): Use new flag Is_Obsolescent and field
26179 Obsolescent_Warning so that pragma Obsolescent works on library
26181 Add support for wide wide character type
26182 (Resolve_Allocator): Replace the error message on wrong null-exclusion
26183 value by a warning message.
26184 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
26185 as fixed-point, and one of the operands is non-static and universal, it
26186 can only be an illegal exponentiation operation, in which case there is
26187 no real value to retrieve.
26189 * exp_strm.adb: Add support for wide wide character type
26190 (Build_Elementary_Input_Call): Compute the size of the stream element by
26191 querying the rep chain to find the Stream_Attribute attribute value.
26192 (Build_Elementary_Write_Call): Ditto.
26194 * sem_aggr.adb: Char_Literal_Value field is now a Uint
26195 Add support for wide wide character type
26196 Replace the error messages on wrong null-exclusion value by warnings
26197 as described in Ada 2005.
26198 (Resolve_Extension_Aggregate): Document the fact that the error
26199 message on class-wide expressions in extensions aggregates.
26201 * sem_case.adb: Add support for wide wide character type
26203 * sem_ch13.adb: Add support for wide wide character type
26204 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
26206 * sem_ch3.adb: Add support for wide wide character type
26207 (Process_Subtype): If constraint is illegal for the type, set Ekind of
26208 now-useless Itype, to prevent cascaded errors on a compiler built
26211 * sem_ch8.adb: Add with and use of Sem_Disp.
26212 (Analyze_Subprogram_Renaming): Replace unclean uses of
26213 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
26214 of Corresponding_Spec to Empty).
26215 (Attribute_Renaming): Replace use of Corresponding_Spec with
26216 Corresponding_ Formal_Spec and simplify condition.
26217 (Use_One_Package): Check that scope of homonym of identifier is defined,
26218 before checking whether it is a wrapper package.
26219 Add support for wide wide character type
26221 * sem_eval.adb: Add support for wide wide character type.
26222 (Eval_Arithmetic_Op): Check for compile time known signed integer
26223 overflow in the non-static case.
26224 (Subtypes_Statically_Match): A formal scalar type and its base type do
26225 not statically match.
26227 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
26228 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
26230 (Unit_Declaration_Node): Ditto.
26231 (Is_Variable_Prefix): For the case of an indexed component whose prefix
26232 has a packed array type, the prefix has been rewritten into a type
26233 conversion. Determine variable-ness from the converted expression.
26234 Handle wide wide character cases.
26236 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
26238 * stringt.ads, stringt.adb: Handle full UTF-32 range.
26239 Remove ["0A"] from comment, since it can look like a line terminator.
26240 Currently we don't permit this, but this is under discussion by the
26241 ARG, and it is easy enough to use a different example.
26243 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
26244 handling UTF-32 encoding for wide wide character.
26245 Implement new brackets coding ["hhhhhhhh"]
26246 Add UTF-8 encodings for full UTF-32 range
26248 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
26250 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
26251 bit range Add full UTF-32 support.
26252 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
26253 notify that constraint error will be raised at run-time
26254 because a null value is assigned to a null-excluding object.
26255 Remove some obsolete declarations and make Char_Code
26258 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
26259 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
26260 Rcheck subprograms.
26262 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
26263 wrong null-exclusion value by a warning message.
26264 (Enable_Range_Check): Do range check if the prefix is an
26265 explicit dereference whose designated object is an unconstrained array.
26266 Current algorithm for removing duplicate checks is over-eager in this
26269 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
26270 null-exclusion value by a warning message
26272 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
26273 completely. Add support for Uint2 field
26275 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
26276 exp_prag.adb: Char_Literal_Value field is now a Uint.
26278 * exp_util.adb (Insert_Actions): Replace
26279 N_Formal_Subprogram_Declaration by
26280 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
26281 Char_Literal_Value field is now a Uint.
26283 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
26284 defined for subprogram renaming declarations. When set, the field
26285 indicates the defining entity of a corresponding formal subprogram
26286 when the renaming corresponds to a formal subprogram association in an
26288 (Set_Corresponding_Formal_Spec): New procedure to return
26289 Corresponding_Formal_Spec field.
26290 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
26291 (which is now a subtype).
26292 Char_Literal_Value field is now a Uint
26294 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
26295 pointer to the base of the dispatch table.
26296 Minor changes to comments.
26297 (Controlling_Type): New function for determining the tagged type
26298 associated with a tagged primitive subprogram.
26299 (Expand_Dispatching_Call): Add support for a controlling actual that is
26300 directly a value of type Ada.Tag rather than a tagged object.
26302 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
26303 describing the new layout.
26304 (Dispatch_Table): The expander computes the actual array size, allocates
26305 the Dispatch_Table record accordingly, and generates code that displaces
26306 the base of the record after the Typeinfo_Ptr component. The access to
26307 these components is done by means of local functions.
26308 (Offset_To_Top): New function.
26309 (Typeinfo_Ptr): New function.
26310 (Get_TSD): Modified to access the new position of the TSD.
26311 (Set_TSD): Modified to save the TSD in its new position.
26313 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
26314 case of formal abstract subprograms. Add check and message for -gnat05.
26317 * sem_ch12.adb: Add with and use for Sem_Disp.
26318 (Analyze_Associations): Minor change from "=" to "in" for use of
26319 N_Formal_Subtype_Declaration (which is now a subtype).
26320 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
26321 N_Formal_Subtype_Declaration (which is now a subtype).
26322 (Analyze_Formal_Subprogram): Add handling for
26323 N_Formal_Abstract_Subprogram, marking the formal as abstract and
26324 dispatching, setting the controlling status of the formal parameters
26325 and result, and issuing an error if there is no controlling type for
26326 the formal subprogram.
26327 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
26328 which is an unclean use of that field, we set the new field
26329 Corresponding_Formal_Spec to make the formal subprogram available to
26330 processing in Analyze_Subprogram_Declaration.
26331 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
26332 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
26333 Constrained, so that it is is does not statically match its anonymous
26336 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
26337 abstract formal subprograms in error check for functions returning
26338 abstract types. Set scope of new designator for
26339 a parameterless subprogram, so that it is available when checking the
26340 body for nested subprograms, before full analysis of said body.
26341 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
26342 subprogram only if inner one comes from source.
26343 (Analyze_Function_Call): If the call is given in object notation, the
26344 analysis of the name rewrites the node and analyzes it with the proper
26345 argument list. After analyzing the name, if the call has been rewritten
26346 and the result type is set, no further analysis is needed.
26347 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
26348 mark in function specification, in a context where the formals are
26349 visible and hide outer homographs.
26351 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
26352 as the tagged type for the cases of abstract formal subprograms and
26353 renamings of those. Clean up spec comments.
26354 (Check_Dispatching_Context): Add error message to indicate "abstract
26355 procedure", covering the case of a call to a formal abstract procedure
26356 that has statically tagged operands.
26357 (Check_Dispatching_Call): Check for the case of an actual given by
26358 a tag-indeterminate function call whose type is an ancestor of the
26359 containing call's associated tagged type. This situation can occur
26360 for inherited primitives with function defaults. In this case we
26361 use the tagged type's tag directly as the controlling argument for
26363 (Expand_Call): Name change on call to Expand_Dispatch_Call.
26365 * sprint.adb (Sprint_Node_Actual): Split
26366 N_Formal_Subprogram_Declaration into two alternatives for the new
26367 cases N_Formal_Abstract_Subprogram_Declaration and
26368 N_Formal_Concrete_Subprogram_Declaration.
26369 Char_Literal_Value field is now a Uint.
26371 * trans.c: Get rid of junk Uint2 reference.
26372 Char_Literal_Value field is now a Uint.
26373 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
26374 (gigi): Correct third arg to gimplify_body.
26376 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
26377 (TYPE_LANG_FLAG_0): Check for record or union.
26379 * treepr.adb: Char_Literal_Value field is now a Uint
26381 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
26384 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
26385 Add full UTF-32 support
26386 Char_Code is now 32 bits
26388 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
26389 wide character UTF_32 line terminators.
26390 Initialize Main_Source_File to avoid error when no main
26393 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
26394 (Main_Source_File) when no main source has been loaded, to avoid
26397 2005-02-09 Robert Dewar <dewar@adacore.com>
26399 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
26400 Fix name of Set routine
26402 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
26405 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
26406 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
26409 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
26410 forms of Get_Line subprograms for AI-301.
26412 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
26413 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
26414 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
26415 a-stwima.ads: Minor reformatting.
26417 2005-02-09 Doug Rupp <rupp@adacore.com>
26418 Thomas Quinot <quinot@adacore.com>
26420 * adaint.c, adaint.h
26421 [VMS] (to_ptr32): New function.
26422 (MAYBE_TO_PTR32): New macro.
26423 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
26425 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
26426 [VMS] (#define fork()): Remove since unneccessary.
26427 (__gnat_set_close_on_exec): New routine to support
26428 GNAT.OS_Lib.Set_Close_On_Exec.
26430 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
26431 the parent side as close-on-exec so that they are not inherited by the
26434 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
26435 set or clear the FD_CLOEXEC flag on a file descriptor.
26437 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
26438 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26442 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
26443 on the field if Pragma Component_Alignment (Storage_Unit).
26444 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
26445 side-effects as if it were a constant; also make SAVE_EXPR to protect
26447 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
26449 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
26450 (components_to_record): Test it.
26451 Fix improper usage of REFERENCE_CLASS_P.
26453 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
26456 * utils2.c: Minor reformatting.
26458 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
26459 handle other cases like RECORD_TYPE.
26461 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
26463 2005-02-09 Ed Schonberg <schonberg@adacore.com>
26465 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
26466 component of an array of arrays in an assignment context, and the
26467 aggregate has component associations that require sliding on
26468 assignment, force reanalysis of the aggregate to generate a temporary
26469 before the assignment.
26470 (Must_Slide): Make global to the package, for use in Gen_Assign.
26472 2005-02-09 Ed Schonberg <schonberg@adacore.com>
26474 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
26475 unchecked union with no inferable discriminants, return a
26476 Raise_Program_Error node, rather than inserting it at the point the
26478 (Expand_Record_Equality, Component_Equality): Handle properly the case
26479 where some subcomponent is an unchecked union whose generated equality
26480 code raises program error.
26482 2005-02-09 Doug Rupp <rupp@adacore.com>
26484 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
26485 [VMS] (#define exit hack): Remove.
26487 2005-02-09 Pascal Obry <obry@adacore.com>
26488 Arnaud Charlet <charlet@adacore.com>
26490 * init.c (__gnat_initialize): Add a new parameter eh which contains the
26491 address of the exception registration. The Win32 version of this
26492 routine calls __gnat_install_SEH_handler() to initialize the SEH
26493 (Structured Exception Handling) handler.
26494 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
26495 SEH (Structured Exception Handling) now.
26496 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
26497 (__gnat_initialize for ppc-vxworks): Adjust comments and the
26498 preprocessor condition protecting the call to the extra eh setup
26499 subprogram, which is only available for the ppc target.
26500 (__gnat_clear_exception_count): replaced reference to
26501 variable taskIdCurrent by call to taskIdSelf(), cleaner.
26503 * seh_init.c: New file.
26505 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
26506 (GNATBIND_OBJS): Idem.
26508 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
26509 routine takes a new parameter (a pointer to the exception registration
26510 for the SEH (Structured Exception Handling) support.
26512 * raise.h: (__gnat_install_SEH_handler): New prototype.
26513 Update copyright notice.
26515 * s-tassta.adb (Task_Wrapper): Declare the exception registration
26516 record and initialize it by calling __gnat_install_SEH_handler.
26518 2005-02-09 Vincent Celier <celier@adacore.com>
26520 * make.adb (Gnatmake): Do not fail when the main project has no object
26523 2005-02-09 Doug Rupp <rupp@adacore.com>
26525 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
26526 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
26527 [VMS]: Add translations for g-enblsp.adb.
26529 * s-asthan-vms.adb: Removed.
26530 * s-asthan-vms-alpha.adb: Added.
26532 2005-02-09 Pascal Obry <obry@adacore.com>
26534 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
26535 (LIBGNAT_OBJS): Add seh_init.o.
26537 2005-02-09 Arnaud Charlet <charlet@adacore.com>
26540 * Makefile.in: Link all gnat tools with -static-libgcc, since
26541 -shared-libgcc is now used by default on some systems (e.g. linux with
26543 Remove references to Makefile.prolog/generic, no longer used.
26545 2005-02-09 Vincent Celier <celier@adacore.com>
26547 * prj-makr.adb (Process_Directory): Put file name in canonical case
26548 before matching against the patterns.
26549 If gnatname has been invoked as <prefix>-gnatname
26550 then invoke the compiler as <prefix>-gcc, not just "gcc".
26552 2005-02-09 Ed Schonberg <schonberg@adacore.com>
26554 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
26555 with expansion disabled. The actual subtype is needed among other
26556 places when the selected component appears in the context of a loop
26557 bound, and denotes a packed array.
26558 (Operator_Check): Always use the first subtype in the
26559 error message, to avoid the appearance of internal base types.
26560 (Transform_Object_Operation): Copy each actual in full
26561 to the parameter associations of the constructed call, rather than
26562 using the shallow copy mechanism of New_Copy_List. This ensures that
26563 the chaining of named associations is done properly.
26564 (Complete_Object_Operation): Rewrite node, rather than
26565 replacing it, so that we can trace back to the original selected
26568 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
26569 and calls that use object notation, if the called function is not
26570 declared in a withed unit, place the elaboration constraint on the
26571 unit in the context that makes the function accessible.
26572 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
26573 imposes an elaboration constraint between two packages.
26575 2005-02-09 Ed Schonberg <schonberg@adacore.com>
26577 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
26578 views of a private type after handling its private dependents, to
26579 maintain proper stack discipline between entry and exit from the
26582 2005-02-09 Cyrille Comar <comar@adacore.com>
26584 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
26585 Minor reformatting.
26587 2005-02-09 Arnaud Charlet <charlet@adacore.com>
26589 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
26590 fields for foreign threads.
26592 2005-02-09 Doug Rupp <rupp@adacore.com>
26594 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
26595 recursion warnings when compiled with -gnatdm.
26597 2005-02-09 Robert Dewar <dewar@adacore.com>
26599 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
26600 Slight fix to documentation of -gnaty with no parameters
26602 * xr_tabls.ads: Add ??? comment for missing overall comment
26604 * xsinfo.adb: Make default file name be sinfo.h, since this is what
26605 we now use by default.
26607 * xsnames.adb: Adjust end of file test to look for five space followed
26608 by '#' instead of six spaces. The format of xsnames.adb was modified
26609 in the last update.
26611 * a-numeri.ads: Add reference to AI-388 for greek letter pi
26614 * clean.adb: Minor reformatting.
26616 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
26617 gnatname.adb: Minor reformatting
26618 Add 2005 to copyright output when utility is run
26620 * csets.adb: Eliminate obsolete comment
26622 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
26625 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
26627 2005-02-09 Sergey Rybin <rybin@adacore.com>
26629 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
26630 the difference between compact and incompact layout and add the record
26631 representation clause to the example illustrating different layouts.
26632 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
26633 component clauses").
26635 2005-02-09 Florian Villoing <villoing@adacore.com>
26637 * gnat_ugn.texi: Fix typos.
26638 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
26640 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
26641 in the generated documentation.
26643 2005-02-09 Arnaud Charlet <charlet@adacore.com>
26645 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
26647 Update linker wrapper when linking with non GNU C++.
26649 2005-02-09 Pascal Obry <obry@adacore.com>
26652 Document the procedure to debug the DllMain routine on Windows.
26653 Add note about -funwind-tables and mixed Ada and C/C++ programming in
26655 Document new BIND qualifer /RETURN_CODES=VMS.
26657 2005-02-09 Ben Brosgol <brosgol@adacore.com>
26659 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
26660 Edited gnatmetric chapter
26662 2005-02-09 Robert Dewar <dewar@adacore.com>
26665 Changes to document new wide wide character support
26667 Update documentation on Normalize_Scalars and Initialize_Scalars
26669 2005-02-09 Pascal Obry <obry@adacore.com>
26671 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
26673 2005-02-09 Jose Ruiz <ruiz@adacore.com>
26675 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
26676 from the VxWorks kernel) that is needed for getting the active
26677 priority of the different tasks.
26679 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
26680 Use a pragma Elaborate_Body in the spec file instead.
26681 Noticed by code reading.
26683 2005-02-09 Thomas Quinot <quinot@adacore.com>
26685 * exp_util.ads: Minor correction in comment.
26687 2005-02-09 Arnaud Charlet <charlet@adacore.com>
26689 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
26690 since this procedure is now too complex to be worth inlining.
26692 2005-02-09 Richard Henderson <rth@redhat.com>
26694 * utils.c (gnat_define_builtin): Remove.
26695 (gnat_install_builtins): Use build_common_builtin_nodes.
26697 2005-02-09 Arnaud Charlet <charlet@adacore.com>
26699 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
26700 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
26701 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
26702 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
26703 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
26704 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
26705 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
26706 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
26707 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
26708 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
26709 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
26710 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
26711 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
26712 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
26713 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
26714 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
26715 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
26716 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
26717 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
26718 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
26719 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
26720 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
26721 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
26722 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
26723 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
26724 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
26725 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
26726 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
26727 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
26728 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
26729 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
26730 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
26731 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
26732 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
26735 2005-01-27 Laurent Guerby <laurent@guerby.net>
26737 * Makefile.in: Fix a-intnam.ads from previous commit,
26738 add 2005 to copyright.
26739 * a-intman-rtems.ads: Renamed to...
26740 * a-intnam-rtems.ads:
26742 2005-01-27 Laurent Guerby <laurent@guerby.net>
26744 * Makefile.in: Rename GNAT RTEMS specific files.
26745 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
26746 5rosinte.ads, 5rparame.adb: Replaced by files below.
26747 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
26748 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
26750 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
26751 Laurent Guerby <laurent@guerby.net>
26754 * 5rosinte.ads: Add No_Key constant.
26755 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
26756 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
26758 2005-01-26 Laurent Guerby <laurent@guerby.net>
26761 * i-cobol.adb (Valid_Numeric): Handle zero length case.
26763 2005-01-20 Richard Henderson <rth@redhat.com>
26765 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
26766 a-intnam-linux.ads and system-linux-alpha.ads.
26767 * a-intnam-linux-alpha.ads: Remove file.
26768 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
26769 * system-linux-alpha.ads: New file.
26771 2005-01-18 Jakub Jelinek <jakub@redhat.com>
26774 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
26775 set to the new string.
26777 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
26779 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
26782 2005-01-18 Richard Henderson <rth@redhat.com>
26784 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
26785 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
26787 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
26789 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
26791 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
26792 (GCC_ZCX_Support): Likewise.
26794 2005-01-11 Bastian Blank <waldi@debian.org>
26796 * system-linux-s390.ads: Define Preallocated_Stacks.
26797 * system-linux-s390x.ads: Likewise.
26799 2005-01-04 Arnaud Charlet <charlet@adacore.com>
26801 * gnat_ugn.texi: Fix texi errors with null variables.
26803 2005-01-03 Thomas Quinot <quinot@adacore.com>
26805 * gen-soccon.c: New utility program to generate g-soccon.ads
26808 * socket.c, gsocket.h: Split inclusion of system header files into a
26809 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
26811 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
26812 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
26813 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
26814 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
26815 should not be edited by hand anymore, but should be regenerated using
26818 2005-01-03 Robert Dewar <dewar@adacore.com>
26819 Ed Schonberg <schonberg@adacore.com>
26820 Vincent Celier <celier@adacore.com>
26822 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
26823 on/off, since this is an obsolescent feature, for which we now generate
26826 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
26827 warning mode is set and obsolescent usage of this attribute occurs.
26828 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
26829 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
26830 predates, and partly motivates, the adoption of the AI.
26831 Implement new Ada 2005 attribute Mod
26833 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
26836 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
26838 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
26839 pragma restrictions.
26840 New entry for Ada 2005 attribute Mod.
26843 Add recognition of new pragma Restrictions No_Dependence
26844 Recognize restriction No_Obsolescent_Features at parse time
26846 * bcheck.adb: Add circuitry for checking for consistency of
26847 No_Dependence restrictions.
26849 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
26852 * restrict.ads, restrict.adb: Add subprograms to deal with
26853 No_Dependence restrictions.
26855 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
26858 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
26859 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
26861 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
26862 dummy parameter to scng instantiation.
26863 Needed for new restriction No_Obsolescent_Features
26865 * scn.adb: (Obsolescent_Check): New procedure
26866 Needed for new restriction No_Obsolescent_Features
26868 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
26869 specified by AI-285, needed for implementation of AI-388 (adding greek
26870 pi to Ada.Numerics).
26871 Add new generic formal to scng, needed for new restriction
26872 No_Obsolescent_Features.
26874 * s-rident.ads: Add new restriction No_Obsolescent_Features.
26876 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
26877 restrictions lines.
26878 (Scan_ALI): When finding an unexpected character on an R line, raise
26879 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
26880 Ignore_Errors is True, default restrictions are set and scanning of the
26881 ALI file continues with the next line. Also, when Bad_R_Line is raised
26882 and Ignore_Errors is True, skip to the end of le line.
26884 * sem_ch10.adb: Check that explicit with's do not violate
26885 No_Dependence restrictions.
26886 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
26887 illegal context clauses containing child units of instance.
26889 * sem_prag.adb: Processing and checking for new No_Dependence
26891 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
26892 analyze and check the External argument.
26894 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
26896 2005-01-03 Robert Dewar <dewar@adacore.com>
26898 * atree.adb: Add a fifth component to entities
26899 This allows us to add 32 flags and four new fields
26901 * atree.ads: Add a fifth component to entities
26902 This allows us to add 32 flags and four new fields
26904 * einfo.ads, einfo.adb: Document new fields and new flags now available
26905 Add routines for printing new fields
26907 * treepr.adb: Call routines to print out additional fields if present
26909 2005-01-03 Arnaud Charlet <charlet@adacore.com>
26911 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
26912 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
26914 * Makefile.in: Add support to build shared Ada libraries on solaris x86
26915 Remove gpr2make, replaced by gprmake.
26916 Remove references to gnatmem and libaddr2line.
26917 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
26918 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
26919 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
26920 a-numaux-darwin.ads and a-numaux-darwin.adb
26921 Enable mlib-tgt-lynxos.adb on lynxos.
26923 * Make-lang.in: Remove rules for gpr2make.
26924 When generating sdefault.adb, do not call Relocate_Path
26925 on S3 for function Target_Name, as it is not a path.
26926 Remove references to gnatmem and libaddr2line.
26928 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
26931 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
26933 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
26934 address is incompatible with its base type alignment constraints when
26935 this can be decided statically.
26937 2005-01-03 Olivier Hainque <hainque@adacore.com>
26939 * decl.c (compatible_signatures_p): New function. The intended purpose
26940 is to check if two function signatures for a call-site and a callee are
26941 compatible enough for the call to be valid. The underlying purpose is
26942 to check if a call to a mapped builtin is using the right interface.
26943 The current code actually does not check antyhing - this a placeholder
26944 for future refinements.
26945 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
26946 builtin calls for convention Intrinsic.
26948 * gigi.h (builtin_decl_for): Declare (new function).
26950 * utils.c (gnat_install_builtins): Install the target specific builtins.
26951 (builtin_decl_for): New function, provide a dummy body for now.
26953 2005-01-03 Geert Bosch <bosch@adacore.com>
26955 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
26956 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
26957 (Pred): Implement in terms of Succ.
26959 * trans.c (convert_with_check): Reimplement conversion of float to
26962 2005-01-03 Ed Schonberg <schonberg@adacore.com>
26963 Vincent Celier <celier@adacore.com>
26965 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
26966 bounds can be negative, and must be declared Int, not Nat.
26968 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
26969 array is checked after using the index in the array.
26971 * makegpr.adb (Add_Switches): Check if there is a package for the
26972 processor. If there is no package, do not look for switches.
26974 2005-01-03 Ed Schonberg <schonberg@adacore.com>
26976 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
26977 generation of predefined stream operations (specs and bodies) should
26978 proceed. Under various restrictions these subprograms must not be
26981 2005-01-03 Thomas Quinot <quinot@adacore.com>
26984 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
26985 amount of PCS-specific code in RACW stubs generation.
26986 (Copy_Specification): Set Etype on copied formal parameter entities, as
26987 this information is needed for PolyORB stubs generation.
26988 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
26989 variable Dynamic_Async.
26990 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
26991 (Build_RPC_Receiver_Specification): Make generic again, as recent
26992 changes have allowed RPC receivers to have the same profile for both
26993 variants of the PCS.
26994 Reorganise RPC receiver generation to reduce differences between the
26995 structure of GARLIC and PolyORB RPC receivers.
26996 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
26998 Simplify elaboration code for RCI packages.
27000 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
27001 generation to reduce differences between the structure of GARLIC and
27002 PolyORB RPC receivers.
27004 * s-stratt.adb: Fix typo in comment.
27006 2005-01-03 Thomas Quinot <quinot@adacore.com>
27008 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
27009 copied from Make_Init_Call).
27011 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
27012 reads and assignments on a temporary variable declared with appropriate
27015 2005-01-03 Robert Dewar <dewar@adacore.com>
27017 * i-c.adb (To_C): Raise CE if string is null and Append_Null
27019 2005-01-03 Robert Dewar <dewar@adacore.com>
27021 * i-cstrin.adb (Update): Do not append a null in form called with a
27022 String. This avoids unintended behavior.
27024 2005-01-03 Arnaud Charlet <charlet@adacore.com>
27027 * init.c: Fix warnings on Free BSD section.
27029 2005-01-03 Arnaud Charlet <charlet@adacore.com>
27032 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
27035 2005-01-03 Vincent Celier <celier@adacore.com>
27037 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
27038 libraries when Unique_Compile is True (-u switch).
27041 2005-01-03 Robert Dewar <dewar@adacore.com>
27043 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
27044 upper case letter or underscore after W, as allowed by spec.
27046 2005-01-03 Arnaud Charlet <charlet@adacore.com>
27048 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
27049 darwin port by using proper type definitions from header files.
27050 Use SIGTERM instead of SIGABRT for SIGADAABORT.
27052 2005-01-03 Robert Dewar <dewar@adacore.com>
27054 * par.adb: Enhance error message handling for configuration file
27057 2005-01-03 Robert Dewar <dewar@adacore.com>
27059 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
27060 removed during the previous update (test properly for case of dividing
27061 largest negative number by -1, which generates overflow).
27063 2005-01-03 Ed Schonberg <schonberg@adacore.com>
27064 Sergey Rybin <rybin@adacore.com>
27066 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
27067 to use as the defining identifier for a formal package.
27068 (Remove_Parent): If the instance takes place within (an instance of)
27069 a sibling, preserve private declarations of common parent.
27071 2005-01-03 Ed Schonberg <schonberg@adacore.com>
27073 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
27074 to determine whether one of the operands is a fixed-point type for
27075 which a user-defined multiplication or division operation might be
27078 * sem_res.adb (Valid_Conversion): The legality rules for conversions
27079 of access types are symmetric in Ada 2005: either designated type can
27082 2005-01-03 Vincent Celier <celier@adacore.com>
27084 * s-fileio.adb (Temp_File_Record): Change length of string component
27085 Name from L_tmpnam + 1 to max_path_len + 1.
27087 2005-01-03 Arnaud Charlet <charlet@adacore.com>
27089 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
27090 Self_Id.Deferral_Level = 0.
27091 (Do_Pending_Action): Move this function to the spec.
27093 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
27094 Do_Pending_Action explicitely when needed, in case we're using
27095 No_Abort restrictions.
27097 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
27098 deferral level since it will not get changed by the generated code.
27099 Keeping a default value of 1 would prevent some operations (e.g.
27100 select or delay) to proceed successfully.
27102 2005-01-03 Ben Brosgol <brosgol@adacore.com>
27103 Robert Dewar <dewar@adacore.com>
27104 Cyrille Comar <comar@adacore.com>
27106 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
27107 porting guide chapter (vms version).
27108 Revised doc title (removed "for native platforms") and subtitle.
27109 Add discussion on warning flag for obsolescent features. First we
27110 note that it applies to obsolete GNAT features, which was previously
27111 omitted. Second we contrast the behavior with that of the new
27112 Ada 2005 AI-368 restriction No_Obsolescent_Features.
27113 Preliminary rewriting of GNAT & libraries chapter in order to take
27114 into account default project locations & new project manager
27117 2005-01-03 Robert Dewar <dewar@adacore.com>
27119 * cstand.adb (Create_Operators): Clean up format and documentation of
27120 unary and binary operator result tables. No change in code, just
27121 reformatting and addition of comments.
27123 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
27124 sem_ch2.adb: Minor reformatting
27126 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
27127 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
27128 comments for Tree_Read and Tree_Write.
27130 2005-01-03 Pascal Obry <obry@adacore.com>
27132 * exp_attr.ads: Minor reformatting.
27134 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
27136 * comperr.adb (Compiler_Abort): Add specialized message for GAP
27139 2005-01-03 Ed Schonberg <schonberg@adacore.com>
27141 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
27142 whether the ancestor type is private, as may be the case with nested
27145 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
27148 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
27150 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
27152 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
27153 * utils2.c (build_unary_op): Likewise.
27155 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27157 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
27159 2004-12-19 Richard Henderson <rth@redhat.com>
27161 * trans.c (gigi): Update gimplify_body call.
27163 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
27165 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
27167 2004-12-07 Ed Falis <falis@adacore.com>
27169 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
27170 current task being suspended.
27172 * init.c (__gnat_clear_exception): added to reset VxWorks exception
27174 (__gnat_map_signal): removed test for current task being suspended.
27176 2004-12-07 Gary Dismukes <dismukes@adacore.com>
27178 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
27179 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
27180 targets (such as AAMP).
27182 2004-12-07 Ed Schonberg <schonberg@adacore.com>
27184 * atree.adb (Visit_Itype): Create a new name for the generated itype,
27185 because the back-end may otherwise treat it as a redefinition of the
27188 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
27190 * back_end.adb (Scan_Back_End_Switches): Accept --param.
27192 * lang-specs.h: Accept --param.
27194 2004-12-07 Vincent Celier <celier@adacore.com>
27196 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
27197 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
27198 Current_Body_Suffix => Ada_Body_Suffix).
27199 Take into account Externally_Built attribute.
27201 * clean.adb (In_Extension_Chain): Always return False when one of the
27202 parameter is No_Project.
27203 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
27204 Ada_Language_Index).
27205 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
27206 Process_Languages for procedure Parse).
27208 * gnatcmd.adb (Carg_Switches): New table.
27209 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
27210 Adapt to name changes in package Prj (Current_Spec_Suffix =>
27211 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
27213 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
27214 Header_Num and function Hash are now declared in package Prj,
27217 * prj.adb (Suffix_Of): New function.
27218 (Set (Suffix)): New procedure.
27219 (Hash): One function moved from Prj.Com
27220 (Is_Present, Language_Processing_Data_Of): New functions
27221 (Set): Two new procedures
27222 (Add_Language_Name, Display_Language_Name): New procedures
27224 * prj.ads: (Suffix_Of): New function
27225 (Set (Suffix)): New procedure
27226 Add several types and tables for multi-language support.
27227 (Header_Num): Type moved from Prj.Com
27228 (Hash): Two functions moved from Prj.Com
27229 (Is_Present, Language_Processing_Data_Of): New functions
27230 (Set): Two new procedures
27231 (Add_Language_Name, Display_Language_Name): New procedures
27232 (Naming): Component name changes:
27233 Current_Spec_Suffix => Ada_Spec_Suffix,
27234 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
27235 Impl_Suffixes, Supp_Suffixes.
27236 (Project_Data): New components: Externally_Built, Supp_Languages,
27237 First_Language_Processing, Supp_Language_Processing, Default_Linker,
27238 Default_Linker_Path.
27240 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
27241 new package Language_Processing with its attributes (Compiler_Driver,
27242 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
27243 Binder_Driver, Default_Linker).
27245 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
27246 (Header_Num): Type moved to package Prj
27248 * prj-env.adb: Adapt to name changes in package Prj
27249 (Current_Spec_Suffix => Ada_Spec_Suffix,
27250 Current_Body_Suffix => Ada_Body_Suffix).
27252 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
27253 default to the project path, except the "-" is one of the directories
27254 in env var ADA_PROJECT_PATH.
27255 (Current_Project_Path): Global variable, replacing Project_Path
27256 that was in the body of Prj.Part.
27257 (Project_Path): New function
27258 (Set_Project_Path): New procedure
27259 Initialize Current_Project_Path during elaboration of the package
27260 Remove dependency on Prj.Com, no longer needed
27262 * prj-ext.ads (Project_Path): New function
27263 (Set_Project_Path): New procedure
27265 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
27266 suffix is defined for language <lang>.
27267 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
27268 accessing directly the components of Naming.
27269 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
27270 Reorganise of this package.
27271 Break procedure Check in several procedures.
27273 * prj-nmsc.ads: Replace all procedures (Ada_Check,
27274 Other_Languages_Check and Language_Independent_Check) with a single
27277 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
27278 Process_Languages, no longer needed.
27280 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
27281 Current_Project_Path.
27282 Remove elaboration code, moved to the body of Prj.Ext
27283 Use new function Prj.Ext.Project_Path instead of old variable
27285 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
27286 When comparing with project paths on the stack, first put the resolved
27287 path in canonical case.
27288 (Parse_Single_Project): Set the path name of the project file in the
27289 tree to the normalized path.
27291 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
27292 parameter Process_Languages, no longer needed.
27293 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
27294 Other_Languages_Check.
27296 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
27297 to store the resolved canonical path of the project file.
27298 Remove dependency to Prj.Com, no longer needed
27300 * prj-util.adb: Adapt to name changes in package Prj
27301 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
27304 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
27305 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
27306 Externally_Built, Include_Option, Language_Processing.
27308 * makegpr.adb: Numerous changes due to changes in packages
27311 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
27312 default to the project path, except whe "-" is one of the directories
27313 in env var ADA_PROJECT_PATH.
27314 (Gnatls): In verbose mode, add the new section "Project Search Path:"
27316 2004-12-07 Robert Dewar <dewar@adacore.com>
27318 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
27320 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
27323 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
27324 flag. No longer needed now that we handle this in gnat1drv.adb.
27326 * repinfo.ads: Minor reformatting
27328 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27329 Olivier Hainque <hainque@adacore.com>
27330 Eric Botcazou <ebotcazou@adacore.com>
27332 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
27333 TYPE_SIZE_UNIT of result type if SIZE is not specified.
27334 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
27335 of a bitfield, which we know is useless and causes trouble because of
27336 alignment implications.
27338 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
27340 (process_attributes): Clear DECL_COMMON again when a section attribute
27342 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
27343 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
27344 (create_field_decl): Special case ADDRESSABLE negative to mean
27345 "no bitfield creation", to be used by make_aligning_type. Don't
27346 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
27347 fields claimed addressable still have to be bitfields. Use
27348 value_factor_p instead of a raw binop construction to check for the
27349 position's alignment.
27351 2004-12-07 Geert Bosch <bosch@adacore.com>
27353 * eval_fat.adb: Revert previous change.
27355 2004-12-07 Thomas Quinot <quinot@adacore.com>
27356 Ed Schonberg <schonberg@adacore.com>
27358 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
27359 with an implicit dereference as its prefix, use
27360 Insert_Explicit_Dereference instead of merely rewriting the prefix into
27361 an explicit dereference. This ensures that a reference to the original
27362 prefix is generated, if appropriate.
27364 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
27365 dereference is rewritten to an explicit one, generate a reference to
27366 the entity denoted by its prefix using the original prefix node, so
27367 the dereference can be properly recorded as a read of the denoted
27368 access value, if appropriate.
27370 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
27371 emitting 'assigned but never read' warning on a variable on the basis
27372 that it has an access type.
27373 (Check_References): Emit unreferenced warning when the scope is a
27376 2004-12-07 Robert Dewar <dewar@adacore.com>
27377 Ed Schonberg <schonberg@adacore.com>
27379 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
27382 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
27383 leaving call unchanged.
27384 This deals with the case where the pragma Import specified
27385 an external name, to be handled by the back end.
27387 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
27388 subprogram which is Imported with convention Intrinsic if an
27389 External_Name argument is specified.
27390 (Process_Import_Or_Interface): Properly diagnose link name argument.
27391 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
27392 with Sem_Ch6.Cannot_Inline.
27393 (Process_Inline): Provide separate warning for inapplicable inline
27395 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
27396 treatment is uniform on different targets.
27398 2004-12-07 Ed Schonberg <schonberg@adacore.com>
27400 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
27401 construct is rewritten, preserve end label to permit source navigation.
27403 2004-12-07 Thomas Quinot <quinot@adacore.com>
27405 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
27406 Specific_Build_Stub_Target): New subprograms.
27407 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
27408 the PCS implementation used, using the above PCS-customized subprograms.
27409 Minor reformatting.
27410 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
27411 for generation of DSA code targeted to the PolyORB PCS.
27412 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
27413 implementation of the partition communication subsystem in ancillary
27415 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
27416 PolyORB_Support.Build_Stub_Type): New subrograms containing the
27417 PCS-specific part of Add_Stub_Type.
27418 (Insert_Partition_Check): Use runtime library function to perform
27421 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
27422 (RE_Same_Partition): New entity, from s-parint.
27424 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
27426 2004-12-07 Gary Dismukes <dismukes@adacore.com>
27428 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
27429 Output the copyright message on a separate line from the version
27432 2004-12-07 Joel Brobecker <brobecker@adacore.com>
27434 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
27435 compile-time warning.
27437 2004-12-07 Robert Dewar <dewar@adacore.com>
27439 * g-regpat.adb: (Match): Change a misuse of or to or else
27441 2004-12-07 Ed Schonberg <schonberg@adacore.com>
27444 (Generate_Reference): Handle properly a reference to an entry formal,
27445 when an accept statement has a pragma Unreferenced for it.
27447 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
27448 and the Has_Pragma_Unreferenced flag for each formal before analyzing
27449 the body, to ensure that warnings are properly emitted for each accept
27450 statement of a given task entry.
27452 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
27454 * Makefile.in: Add support for foreign threads on VMS.
27456 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27458 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
27460 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
27462 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
27464 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
27466 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
27468 2004-12-07 Robert Dewar <dewar@adacore.com>
27470 * nlists.adb (Prepend_Debug): Remove parameters and nest within
27472 (Remove_Next_Debug): Same fix
27474 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
27475 maintain back pointers now, though we did not used to, and comments
27477 (Prepend): Remove pragma Inline.
27478 (Remove_Next): Same cleanup
27480 2004-12-07 Thomas Quinot <quinot@adacore.com>
27482 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
27483 used to record an implicit dereference as a read operation on its
27484 prefix when operating under -gnatc. Necessary to avoid spurious
27485 'variable assigned but never read' warnings in that mode.
27486 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
27487 is a non-overloaded implicit dereference, call the above subprogram to
27488 ensure proper recording of references.
27490 2004-12-07 Gary Dismukes <dismukes@adacore.com>
27492 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
27493 to be resolved later as part of Analyze_Iteration_Scheme's call to
27496 2004-12-07 Ed Schonberg <schonberg@adacore.com>
27498 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
27499 prefix is not a scalar type, place error message on prefix, not on
27502 2004-12-07 Bernard Banner <banner@adacore.com>
27504 * vxaddr2line.adb: Add support for x86 vxworks
27506 2004-12-07 Thomas Quinot <quinot@adacore.com>
27508 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
27509 documentation of the behaviour of these functions when passed an IP
27510 address that has no record in the system hosts database and no reverse
27513 * cstand.adb, a-tags.ads: Fix typos in comment.
27515 2004-12-07 Robert Dewar <dewar@adacore.com>
27517 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
27518 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
27519 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
27520 s-poosiz.ads: Minor reformatting
27522 * make.adb: Minor reformatting
27523 Add some ??? comments asking for more comments
27525 * s-poosiz.adb: Minor reformatting
27526 Add comments on alignment requirement
27528 * sinfo.ads: Remove obsolete comment and fix typo.
27530 2004-12-07 Vincent Celier <celier@adacore.com>
27531 Sergey Rybin <rybin@adacore.com>
27533 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
27534 Files" with the new tool and package names.
27535 Reformatting to suppress most of the warnings for line too long
27536 Document the new section "Project Search Path:" in the output of
27538 Add gnatmetric section
27540 2004-12-07 Vincent Celier <celier@adacore.com>
27542 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
27543 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
27544 and -eit to -ept. Added qualifier
27545 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
27547 2004-11-27 Andreas Schwab <schwab@suse.de>
27549 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
27551 2004-11-25 Arnaud Charlet <charlet@adacore.com>
27553 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
27554 internal implementation unit GNAT.Sockets.Thin,
27555 as their usage for sockets is non-portable (using the read and write
27556 functions from the system runtime library is fine on UNIX but won't
27557 work under Windows).
27559 * mingw32.h: Update copyright notice.
27561 2004-11-25 Arnaud Charlet <charlet@adacore.com>
27563 * ada-tree.h: Minor reformatting of previous change to avoid lines
27564 longer than 79 characters.
27566 2004-11-25 Olivier Hainque <hainque@adacore.com>
27568 * tb-gcc.c: GCC infrastructure based implementation of
27571 2004-11-24 Steven Bosscher <stevenb@suse.de>
27573 * misc.c (gnat_post_options): Don't clear
27574 flag_inline_functions.
27576 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
27579 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
27582 2004-11-21 Andreas Jaeger <aj@suse.de>
27584 * stylesw.adb: Change Style_Check_Subprogram_Order to
27585 Style_Check_Order_Subprograms.
27587 2004-11-18 Arnaud Charlet <charlet@adacore.com>
27589 * adaint.h, adaint.c
27590 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
27592 Add also a cast to kill another warning.
27593 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
27594 parameter with the priority class of the parent process instead of
27595 always using the NORMAL_PRIORITY_CLASS.
27596 (__gnat_dup): New function.
27597 (__gnat_dup2): New function.
27598 (__gnat_is_symbolic_link): Enable the effective body of this
27599 function when __APPLE__ is defined.
27601 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
27604 2004-11-18 Olivier Hainque <hainque@adacore.com>
27606 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
27607 address of which may be used to represent "others" and "all others"
27608 choices in exception tables, instead of the current harcoded
27609 (void *)0 and (void *)1.
27610 (Setup_Exception): Do nothing in the GNAT SJLJ case.
27612 * gigi.h (others_decl, all_others_decl): New decls representing the
27613 new Others_Value and All_Others_Value objects.
27614 (struct attrib): Rename "arg" component as "args", since GCC expects a
27615 list of arguments in there.
27617 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
27618 corresponding objects exported by a-exexpr, instead of hardcoded dummy
27621 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
27622 others_decl and all_others_decl instead of hardcoded dummy addresses
27623 to represent "others" and "all others" choices, which is cleaner and
27624 more flexible with respect to the possible eh pointer encoding policies.
27626 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
27627 (process_attributes): Account for the naming change of the "args"
27628 attribute list entry component.
27630 * decl.c (build_attr_list): Rename into prepend_attributes to allow
27631 cumulating attributes for different entities into a single list.
27632 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
27633 attributes for the current entity and propagate first subtype
27634 attributes to other subtypes.
27635 <E_Procedure>: Attribute arguments are attr->args and not
27636 attr->arg any more.
27637 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
27638 argument provided, as this is what GCC expects. Use NULL_TREE instead
27641 2004-11-18 Robert Dewar <dewar@adacore.com>
27643 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
27644 Minor reformatting througout (including new function specs)
27645 Add ??? comments asking for clarification.
27647 2004-11-18 Thomas Quinot <quinot@adacore.com>
27649 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
27650 incomplete duplicate implementation of this subprogram from butil.
27652 2004-11-18 Thomas Quinot <quinot@adacore.com>
27654 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
27655 procedures factors the common processing for building an RPC receiver
27656 for an RCI package or an RACW type.
27657 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
27658 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
27659 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
27661 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
27663 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
27665 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
27666 distribution subprogram identifiers that are either subprogram numbers
27668 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
27669 string distribution identifiers assigned to a given subprogram.
27670 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
27671 (Add_RAS_Dereference_TSS): Add comments.
27672 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
27673 is not referenced yet because it will be used by the PolyORB DSA
27675 (Insert_Partition_Check): Remove fossile code.
27676 (First_RCI_Subprogram_Id): Document this constant.
27677 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
27679 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
27680 replaced with calls to Get_Library_Unit_Name_String. Previously there
27681 were several instances of the same code in different locations in the
27682 compiler; this checkin completes the replacement of all of these
27683 instances with calls to a common subprogram.
27684 Minor reformatting.
27686 * sem_dist.adb: Remove comment noting that RPC receiver generation
27687 should be disabled for RACWs that implement RASs.
27688 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
27690 * sem_util.ads, sem_util.adb (Has_Stream): New function
27691 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
27692 qualified name of a library unit into the name buffer.
27693 (Note_Possible_Modification): Generate a reference only
27694 if the context comes from source.
27696 * snames.ads (PCS_Names): New subtype corresponding to names of
27697 supported implementations of the Partition Communication Subsystem
27698 (PCS) (i.e. the runtime library support modules for the distributed
27701 2004-11-18 Robert Dewar <dewar@adacore.com>
27702 Ed Schonberg <schonberg@adacore.com>
27704 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
27705 (Has_Rep_Pragma): New function
27706 (Has_Attribute_Definition_Clause): New function
27707 (Record_Rep_Pragma): Moved here from sem_ch13.adb
27708 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
27710 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
27712 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
27713 (Expand_Pragma_Psect_Object): New procedure
27714 These procedures contain the revised and cleaned up processing for
27715 these two pragmas. This processing was formerly in Sem_Prag, but
27716 is more appropriately moved here. The cleanup involves making sure
27717 that the pragmas are properly attached to the tree, and that no
27718 nodes are improperly shared.
27720 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
27721 pragmas to Exp_Prag, which is more appropriate.
27722 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
27723 check for duplicates Remove use of Is_Psected flag, no longer needed.
27724 Use new Make_String_Literal function with string.
27726 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
27727 that are functions return universal values, that have to be converted
27728 to the context type.
27729 Use new Make_String_Literal function with string.
27730 (Get_Stream_Convert_Pragma): New function, replaces the use of
27731 Get_Rep_Pragma, which had to be kludged to work in this case.
27733 * freeze.adb: Use new Has_Rep_Pragma function
27735 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
27736 function with string.
27737 Use new Has_Rep_Pragma function.
27739 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
27742 2004-11-18 Robert Dewar <dewar@adacore.com>
27744 * errout.ads, errout.adb: (First_Sloc): New function
27746 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
27747 check (-gnatyx) instead of being included as a redundant construct
27750 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
27751 Style_Check_Order_Subprograms.
27753 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
27754 stylesw.adb: Add Style_Check_Xtra_Parens
27756 * usage.adb: Add line for -gnatyx (check extra parens)
27758 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
27760 2004-11-18 Ed Schonberg <schonberg@adacore.com>
27761 Robert Dewar <dewar@adacore.com>
27763 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
27764 discriminant of a constrained subtype, analyze the copy of the
27765 corresponding constraint, because in some cases it may be only
27766 partially analyzed.
27767 Removes long-lived ??? comments.
27769 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
27770 handled controlled or secondary-stack expressions within the
27771 iteration_scheme of a loop.
27773 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
27774 bounds that may contain functions calls, to prevent memory leaks when
27775 the bound contains a call to a function that uses the secondary stack.
27776 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
27777 generate temporaries for loop bounds that might contain function calls
27778 that require secondary stack and/or finalization actions.
27780 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
27781 selected component and the selector is overloadable (not just a
27782 function) treat as function call, Analyze_Call will disambiguate if
27784 (Analyze_Selected_Component): Do not generate an actual subtype for the
27785 selected component if expansion is disabled. The actual subtype is only
27786 needed for constraint checks.
27787 (Analyze_Allocator): If restriction No_Streams is set, then do
27788 not permit objects to be declared of a stream type, or of a
27789 composite type containing a stream.
27791 * restrict.ads: Remove the a-stream entry from Unit_Array, since
27792 No_Streams no longer prohibits with'ing this package.
27794 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
27795 discriminants, but the parent base has unknown discriminants, there is
27796 no discriminant constraint to inherit. Such a discrepancy can arise
27797 when the actual for a formal type with unknown discriminants is a
27798 similar private type whose full view has discriminants.
27799 (Analyze_Object_Declaration): If restriction No_Streams is set, then
27800 do not permit objects to be declared of a stream type, or of a
27801 composite type containing a stream.
27803 2004-11-18 Ed Schonberg <schonberg@adacore.com>
27805 * exp_dbug.ads: Update documentation to reflect simpler encoding for
27806 protected operations.
27808 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
27809 generated name, it complicates decoding in gdb and hinders debugging
27810 of protected operations.
27811 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
27812 flag for the protected entry barrier function.
27813 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
27814 flag for the protected entry function.
27816 2004-11-18 Nicolas Setton <setton@adacore.com>
27818 * expect.c: Define __unix__ when __APPLE__ is defined.
27820 * Makefile.in: Inform the value of the variable GMEM_LIB in the
27821 Darwin-specific section.
27823 * lang-specs.h: Change the placement of the %1 marker.
27824 Works around the fact that gcc adds -fPIC by default under Darwin.
27826 2004-11-18 Ed Schonberg <schonberg@adacore.com>
27828 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
27829 type of the object with the packed array type, set the Analyzed flag
27830 on the object if it is an entity or simple indexed component, to avoid
27831 spurious type errors.
27833 2004-11-18 Gary Dismukes <dismukes@adacore.com>
27835 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
27836 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
27837 separate line from the version message.
27839 2004-11-18 Ed Falis <falis@adacore.com>
27841 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
27843 (init_float): Eliminate initialization of floating point status for
27844 AE653. The instructions have no effect for vThreads.
27846 2004-11-18 Vincent Celier <celier@adacore.com>
27848 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
27849 gnatbind is invoked with -shared.
27851 2004-11-18 Jose Ruiz <ruiz@adacore.com>
27853 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
27854 for Detect_Blocking which is redundant with the check done within the
27855 procedure Protected_Single_Entry_Call.
27856 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
27857 Detect_Blocking which is redundant with the check done within the
27858 procedure Protected_Single_Entry_Call.
27860 2004-11-18 Vincent Celier <celier@adacore.com>
27862 * makegpr.adb (Compile): Put the compiling switches (in package
27863 Compiler and on the command line) immediately after "-c", instead of
27864 at the end of the command line invocation of the compiler, when
27865 compiling a non-Ada file.
27866 (Build_Global_Archive): When there is no need to rebuild the archive,
27867 set Global_Archive_Exists, so that the archive is passed to the linker
27870 2004-11-18 Robert Dewar <dewar@adacore.com>
27871 Sergey Rybin <rybin@adacore.com>
27874 Remove extra paren check from list of checks for redundant constructs
27875 Add documentation of new -gnatyx style check (check extra parens)
27876 Remove paragraph about gnatelim debug options.
27878 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
27879 objects rather than forbidding dependencies on the package Ada.Streams.
27881 * sinfo.ads: Add ??? note that we should document pragmas passed to
27884 * g-expect.ads: Fix a few typos in the comments.
27886 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
27888 * misc.c (gnat_handle_option): Use %< and %> for quoting in
27891 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
27893 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
27895 2004-11-07 Andreas Schwab <schwab@suse.de>
27897 * Makefile.in (install-gnatlib): Remove spurious hyphen.
27899 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
27902 * Makefile.in (darwin): Set soext to .dylib.
27904 2004-10-26 Vincent Celier <celier@gnat.com>
27905 Thomas Quinot <quinot@act-europe.fr>
27907 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
27908 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
27909 there is no use of GNAT.Sockets.Constants.
27910 Remove remaining pragma Import for C_Write
27911 Remove C_Read and C_Write from internal implementation unit
27912 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
27913 the read and write functions from the system runtime library is fine
27914 on UNIX but won't work under Windows).
27916 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
27917 (Check_Selector): Use C_Recv instead of C_Read.
27918 Selectors are the GNAT.Sockets abstraction to perform a select()
27919 call on a set of descriptors. To allow abortion of an ongoing
27920 select operation, some data is written to a dedicated socket that
27921 is always monitored.
27922 Under Windows, the write and read library functions cannot operate
27923 on sockets, so we need to use send and recv instead, which is portable
27924 across all supported platforms.
27926 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
27927 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
27928 (using the read and write functions from the system runtime library is
27929 fine on UNIX but won't work under Windows).
27931 2004-10-26 Nicolas Setton <setton@act-europe.fr>
27933 * mlib-tgt-darwin.adb: New file.
27935 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27936 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27937 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
27938 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
27941 * Makefile.in: Add support for building shared libraries under Darwin.
27942 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
27943 the low level EH init subprogram to be called from __gnat_initialize.
27945 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
27946 indicates which options to pass to the archive indexer.
27948 * mlib-utl.adb: Add support for calling ranlib with additional
27949 options. This is needed for instance under Mac OS X.
27950 (Ranlib_Options): New global variable, used to store the potential
27951 options to pass to ranlib.
27952 (Ar): Use Ranlib_Options when spawning ranlib.
27953 (Initialize): Set the value of ranlib option.
27955 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
27957 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
27958 instead of 8K, to reflect the real potential needs for stack-checking
27961 2004-10-26 Pascal Obry <obry@gnat.com>
27963 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
27965 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
27966 Windows only the initial thread stack size can be set so it is good to
27967 start we a low stack size.
27968 The OS will adjust the size as needed.
27970 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
27971 Nicolas Setton <setton@act-europe.fr>
27973 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
27974 "__unix__" instead of "unix".
27975 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
27976 sections were just mistakenly ignored. The former is
27977 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
27978 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
27979 of hpux. This prevents an unwanted definition of the symbol
27980 convert_addresses in adaint.o.
27982 2004-10-26 Gary Dismukes <dismukes@gnat.com>
27984 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
27985 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
27987 2004-10-26 Cyrille Comar <comar@act-europe.fr>
27989 * a-filico.ads, a-filico.adb: fix incorrect header.
27991 2004-10-26 Javier Miranda <miranda@gnat.com>
27993 * a-ststio.ads: Fix typo in identifier
27995 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
27997 * sem_ch4.adb: Minor reformatting.
27999 2004-10-26 Ed Schonberg <schonberg@gnat.com>
28001 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
28002 enabled, check the result of unary and binary operations when the
28003 expression is the right-hand side of an assignment.
28005 2004-10-26 Vincent Celier <celier@gnat.com>
28007 * clean.adb (Delete): Do not output warnings when in quiet output and
28008 not in verbose mode.
28009 (Force_Deletions): New Boolean flag, defaulted to False
28010 (Delete): Only delete a file if it is writable, and when
28011 Force_Deletions is True.
28012 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
28013 (Usage): Line for new switch -f
28014 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
28017 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
28019 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
28020 JM type only if its size matches that of the wrapper. When a size is
28021 prescribed and the field is not aliased, remove the wrapper of a JM
28022 type only if the size is not greater than that of the packed array.
28023 (gnat_to_gnu_entity): Change the extension of packed array wrappers
28026 2004-10-26 Geert Bosch <bosch@gnat.com>
28028 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
28029 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
28030 (Pred): Implement in terms of Succ.
28032 2004-10-26 Ed Schonberg <schonberg@gnat.com>
28034 * exp_aggr.adb (Safe_Component): An aggregate component that is an
28035 unchecked conversion is safe for in-place use if the expression of the
28036 conversion is safe.
28037 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
28038 be expandable in place even if the aggregate does not come from source.
28039 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
28040 designated object of an allocator in place, rather than building it
28041 first on the stack. The previous scheme forces a full copy of the array,
28042 and may be altogether unsusable if the size of the array is too large
28043 for stack allocation.
28045 2004-10-26 Robert Dewar <dewar@gnat.com>
28047 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
28048 compares if the component is atomic.
28050 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
28051 array assignment if the component type is atomic.
28053 2004-10-26 Ed Schonberg <schonberg@gnat.com>
28054 Eric Botcazou <ebotcazou@act-europe.fr>
28056 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
28057 is aliased and is a by_reference type, do not pass by copy.
28058 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
28059 detect whether the call is in the right side of an assignment or
28060 the expression of an object declaration. Recurse on component
28061 association within aggregates.
28062 Call it in the condition that determines whether the temporary is
28063 necessary for correct stack-checking.
28065 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
28067 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
28068 RACW_Type, used in the PolyORB version.
28069 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
28070 version and the GARLIC version.
28072 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
28073 Rename RCI_Info to RCI_Locator for better consistency between the
28074 GARLIC and PolyORB versions of the distributed systems annex.
28075 (DSA_Implementation_Name): This enumeration lists the possible
28076 implementations of the Partition Communication Subsystem for the
28077 Distributed Systems Annex (DSA). The three available implementations
28078 are the dummy stub implementation (No_DSA), and two versions based on
28079 two different distribution runtime libraries: GARLIC and PolyORB. Both
28080 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
28082 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
28085 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
28086 between the GARLIC and PolyORB versions of the distributed systems
28088 Remove RE_Unbounded_Reclaim_Pool since it is unused.
28090 2004-10-26 Gary Dismukes <dismukes@gnat.com>
28092 * gnat1drv.adb: Suppress calling the back end when
28093 Frontend_Layout_On_Target is true.
28095 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
28097 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
28098 Set_Read_Only): New subprograms.
28099 These new routines allow the user to set or unset the Owner execute
28100 and Owner write permission flags on a file.
28102 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
28103 GNAT.OS_Lib.Set_Executable instead of rolling our own.
28105 2004-10-26 Matthew Gingell <gingell@gnat.com>
28107 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
28109 2004-10-26 Pascal Obry <obry@gnat.com>
28111 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
28112 memory before the faulting page we properly test the process read
28113 access for this address using appropriate Win32 routine.
28114 (HPUX sections): guard with "__hpux__" instead of "hpux".
28116 2004-10-26 Robert Dewar <dewar@gnat.com>
28118 * lib-xref.adb (Generate_Reference): Don't complain about reference to
28119 entry parameter if pragma Unreferenced set, since we do not properly
28120 handle the case of multiple parameters.
28122 2004-10-26 Vincent Celier <celier@gnat.com>
28124 * prj-env.adb: (Contains_ALI_Files): New Boolean function
28125 (Ada_Objects_Path.Add): For a library project, add to the object path
28126 the library directory only if there is no object directory or if the
28127 library directory contains ALI files.
28128 (Set_Ada_Paths.Add.Recursive_Add): Ditto
28130 2004-10-26 Vincent Celier <celier@gnat.com>
28132 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
28133 extension of library projects.
28135 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
28136 path defaults to ".:<prefix>/lib/gnat".
28137 (Parse): For an extending all project, allow direct import of a project
28138 that is virtually extended.
28140 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
28141 the specified name is directly imported, return its ID. Otherwise, if
28142 an extension of this project is imported, return the ID of the
28145 2004-10-26 Robert Dewar <dewar@gnat.com>
28147 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
28148 (Sub3): New procedure, used by Scaled_Divide
28149 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
28150 correct more than one instance of failure to propagate carries
28152 (Double_Divide): Handle overflow case of largest negative number
28153 divided by minus one.
28155 * s-arit64.ads (Double_Divide): Document that overflow can occur in
28156 the case of a quotient value out of range.
28159 2004-10-26 Robert Dewar <dewar@gnat.com>
28161 * s-bitops.adb (Bit_Eq): Remove redundant check.
28163 * s-bitops.ads: Minor comment updates
28164 Change some occurrences of Address to System.Address
28166 * s-carsi8.ads: Fix minor cut-and-paste error in comments
28168 2004-10-26 Ed Schonberg <schonberg@gnat.com>
28170 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
28171 accessibility check to prefix that is a protected operation.
28173 2004-10-26 Ed Schonberg <schonberg@gnat.com>
28175 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
28176 empty, post message on stub.
28178 2004-10-26 Ed Schonberg <schonberg@gnat.com>
28179 Javier Miranda <miranda@gnat.com>
28181 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
28182 current instance appears within a unit that is directly in the context
28184 Used to determine whether the body of the instance should be analyzed
28185 immediately after its spec, to make its subprogram bodies available
28186 for front-end inlining.
28187 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
28188 constraint is not allowed on the component type (AARM 12.5.3(3))
28190 2004-10-26 Cyrille Comar <comar@act-europe.fr>
28192 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
28193 'Storage_Pool): enhance, document & limit detection of non-sharable
28196 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
28198 * s-pooglo.ads: Add more documentation now that this pool is properly
28201 2004-10-26 Ed Schonberg <schonberg@gnat.com>
28203 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
28204 or protected type with discriminants, do not constrain the
28205 corresponding record type if the subtype declaration has no
28206 discriminant constraints. This can be the case in source code, or in
28207 the subtype declaration created to rename an actual type within an
28210 2004-10-26 Ed Schonberg <schonberg@gnat.com>
28212 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
28213 different kind of stub (possibly wrong name for file), do not check
28215 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
28216 includes call to some function that returns an unconstrained type, do
28219 2004-10-26 Ed Schonberg <schonberg@gnat.com>
28221 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
28222 appear in the code for the main unit. Dependencies among units in the
28223 context of the main unit are established when those other units are
28224 compiled. Otherwise spurious elaboration constraints can generate
28225 incorrect elaboration circularities.
28227 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
28228 Ed Schonberg <schonberg@gnat.com>
28230 * sem_util.adb (Is_Aliased_View): Defend against the case where this
28231 subprogram is called with a parameter that is not an object name. This
28232 situation arises for some cases of illegal code, which is diagnosed
28233 later, and in this case it is wrong to call Is_Aliased, as that might
28234 cause a compiler crash.
28235 (Explain_Limited_Type): Refine previous fix to include
28236 inherited components of derived types, to provide complete information.
28238 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
28239 is the prival for a protected object.
28240 It is necessary to mark this entity as a variable, in addition to
28241 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
28242 modified to avoid checking the Aliased flag on entities that are not
28243 objects. (Checking that flag for non-objects is erroneous and could
28244 lead to a compiler crash).
28246 2004-10-26 Robert Dewar <dewar@gnat.com>
28248 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
28249 X_Frac = 0.5, then we know that the number X must be positive.
28250 (Succ): Remove the same redundant test, and also fix the primary test
28251 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
28253 (Decompose): Add fuller comments to spec
28255 2004-10-26 Pascal Obry <obry@gnat.com>
28257 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
28258 validity (process must have read access). Set to 0 in all other cases.
28259 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
28260 violation on Win32.
28261 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
28262 segmentation violation.
28264 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
28266 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
28267 whose type is a constructed subtype of an aliased object with an
28268 unconstrained nominal subtype, convert the actual to the constructed
28269 subtype before taking its address.
28271 2004-10-26 Vincent Celier <celier@gnat.com>
28273 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
28274 (Is_Path_Name_Case_Sensitive): New function
28276 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
28277 (Base_Name, Simple_Name, Current_Directory, Compose,
28278 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
28281 2004-10-26 Cyrille Comar <comar@act-europe.fr>
28282 Vasiliy Fofanov <fofanov@act-europe.fr>
28283 Vincent Celier <celier@gnat.com>
28285 * gnat_ugn.texi: Generalize "finding memory problems" section into a
28286 "memory management issues" section and document some of the useful
28287 memory pools provided as part of the GNAT library.
28288 Remove "virtual" from declaration of A::method2 in
28289 the simple example of Ada/C++ mixed system.
28290 Library Projects may be virtually extended: their virtual extensions
28291 are not Library Projects.
28292 Added section on extending project hierarchies.
28294 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
28296 * adaint.c (__gnat_get_libraries_from_registry): Cast value
28298 (__gnat_portable_spawn): Remove const.
28300 * mingw32.h (MAXPATHLEN): Check for previous definition.
28302 2004-10-17 Matthias Klose <doko@debian.org>
28304 * gnatvsn.ads: Set gnat library version to 4.0.
28306 2004-10-05 Vincent Celier <celier@gnat.com>
28308 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
28310 2004-10-04 Laurent Guerby <laurent@guerby.net>
28313 * Makefile.in: Define and use RANLIB_FLAGS.
28315 2004-10-04 Pascal Obry <obry@gnat.com>
28317 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
28318 other x86 platforms).
28320 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
28322 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
28323 in general and triggers stack alignment adjustment for thread entry
28324 points on targets where this is necessary.
28326 2004-10-04 Bernard Banner <banner@gnat.com>
28329 * Makefile.in: Add section for powerpc linux
28330 Add variant i-vxwork-x86.ads
28332 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
28334 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
28336 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
28337 table registration calls when need be. Ensures no reference to the crt
28338 ctors symbol are issued in the SJLJ case, which avoids possible
28339 undefined symbol errors in the case of modules to be statically linked
28342 2004-10-04 Javier Miranda <miranda@gnat.com>
28344 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
28345 in-line the code corresponding to subprogram Analyze_Actuals. In
28346 addition, analyze the actuals only in case of subprogram call.
28348 2004-10-04 Ed Falis <falis@gnat.com>
28350 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
28352 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
28354 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
28355 in the documentation.
28357 2004-10-04 Robert Dewar <dewar@gnat.com>
28359 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
28361 (Analyze_Block_Statement): Add circuitry to detect following dead code
28362 (Check_Unreachable_Code): Handle case of block exit
28364 2004-10-04 Robert Dewar <dewar@gnat.com>
28366 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
28367 (XMatchD): Avoid warning for Logic_Error call
28369 2004-10-04 Robert Dewar <dewar@gnat.com>
28371 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
28372 consider expressions buried within a procedure actual to be an actual.
28373 This caused some blowups with uses of packed slices within a procedure
28376 2004-10-04 Robert Dewar <dewar@gnat.com>
28378 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
28379 longer need to be initialized to zero.
28380 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
28381 initialized to zero.
28383 * checks.adb (Expr_Known_Valid): Packed arrays are now always
28384 considered valid, even if the representation is modular. That's correct
28385 now that we no longer initialize packed modular arrays to zero.
28387 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
28388 suffixes. These are now documented as the only cases in which the
28389 debugger ignores outer records.
28390 Previously, the spec allowed arbitrary suffixes for this purpose.
28391 Change name of LJM to JM for packed array pad records
28392 Create separate section on packed array handling, and add a whole new
28393 set of comments to this section describing the situation with packed
28394 modular types and justification requirements depending on endianness.
28396 2004-10-04 Robert Dewar <dewar@gnat.com>
28398 * a-except.adb: Add a comment for last change
28400 * einfo.ads: Minor spelling correction in comment
28402 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
28404 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
28407 * sem_util.ads: Minor comment update
28409 2004-10-04 Ed Schonberg <schonberg@gnat.com>
28411 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
28412 Inline_Always when in Configurable_Run_Time mode.
28414 * sem_prag.adb (Process_Convention): If entity is an inherited
28415 subprogram, apply convention to parent subprogram if in same scope.
28416 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
28417 when in Configurable_Run_Time mode.
28419 2004-10-04 Ed Schonberg <schonberg@gnat.com>
28421 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
28422 class_wide type after component list has been inherited.
28424 2004-10-04 Ed Schonberg <schonberg@gnat.com>
28426 * sem_ch12.adb (Check_Generic_Actuals): New predicate
28427 Denotes_Previous_Actual, to handle properly the case of a private
28428 actual that is also the component type of a subsequent array actual.
28429 The visibility status of the first actual is not affected when the
28430 second is installed.
28431 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
28432 make fully recursive the treatment of formals of packages declared
28434 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
28435 the above on exit from an instantiation.
28436 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
28437 current instantiation which is now complete.
28438 (Analyze_Package_Instantiation): No instantiated body is needed if the
28439 main unit is generic. Efficient, and avoid anomalies when a instance
28440 appears in a package accessed through rtsfind.
28442 2004-10-04 Ed Schonberg <schonberg@gnat.com>
28444 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
28445 do not generate a declaration for a temporary if the call is part of a
28446 library-level instantiation.
28448 2004-10-04 Ed Schonberg <schonberg@gnat.com>
28450 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
28451 searching for a limited component to flag.
28453 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
28454 expansion of Input, to account for the fact that the implicit call
28455 generated by the attribute reference must freeze the user-defined
28456 stream subprogram. This is only relevant to 'Input, because it can
28457 appear in an object declaration, prior to the body of the subprogram.
28459 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
28460 expansion can proceed and further errors uncovered.
28461 (Minor clean up): Fix cases of using | instead of \ for continuation
28464 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28466 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
28468 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
28469 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
28470 Use gcc_assert and gcc_unreachable.
28472 * decl.c (gnat_to_gnu_entity, case object): Check and process a
28473 specified alignment before validating size.
28474 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
28475 stripped-down declaration for the type of the inner field when making
28478 * utils.c (finish_record_type): Do not compute the size in units
28479 incrementally. Instead compute it once for the rep clause case.
28480 Use gcc_assert and gcc_unreachable.
28482 2004-10-04 Vincent Celier <celier@gnat.com>
28484 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
28486 (Is_Valid_Path_Name): Take '/' as a directory separator.
28488 2004-10-04 Vincent Celier <celier@gnat.com>
28490 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
28491 (Extended_Project) only if Extended_Project is defined, to avoid
28493 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
28495 (Parse_Single_Project): Ditto.
28497 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
28498 Add_To_Project_Path for virtual projects.
28500 2004-10-04 Vincent Celier <celier@gnat.com>
28502 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
28503 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
28504 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
28505 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
28506 parameter Options_2.
28508 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
28509 Build_Dynamic_Library with an empty Options_2.
28511 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
28514 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
28515 directory separator, if any.
28516 (Gprmake): Do not allow mains on the command line for library projects.
28517 Do not attempt to link when the project is a library project.
28518 (Library_Opts): New table to store Library_Options.
28519 (Build_Library): If Library_Options is specified, pass these options
28520 when building a shared library.
28522 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
28524 * s-tposen.adb (Service_Entry): The object must be always unlocked at
28525 the end of this procedure now that the unlock operation was inserted
28528 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
28530 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
28531 corresponding to the Preallocated_Stacks flags in System.
28532 (Get_Target_Parameters): Including the processing for
28533 Preallocated_Stacks.
28535 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
28536 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
28537 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
28538 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
28539 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
28540 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
28541 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
28542 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
28543 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
28544 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
28545 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
28546 used to signal whether the compiler creates the required stacks and
28547 descriptors for the different tasks (when True) or it is done by the
28548 underlying operating system at run time (when False).
28549 It is initially set to False in all targets.
28551 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
28552 if it is supported by the target.
28553 (Make_Task_Create_Call): Pass the stack address if it has been
28554 previously created. Otherwise pass a Null_Address.
28556 * snames.adb: Add _stack.
28558 * snames.ads: Add Name_uStack. Required to allow the expander to
28559 statically allocated task stacks.
28561 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
28562 Stack_Address argument.
28563 Check that its value is equal to Null_Address because this target does
28564 not support the static stack allocation.
28566 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
28568 * usage.adb: Change "pragma inline" to "pragma Inline" in information
28571 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
28573 * exp_dist.adb: Split declaration of asynchronous flag out of
28574 Add_RACW_Read_Attribute.
28575 Minor reformatting for better alignment with PolyORB version.
28576 Store the entity for the asynchronous flag of an RACW, rather than the
28577 expression, in the asynchronous flags table. This will allow this flag
28578 to be used in other subprograms beside Add_RACW_Read_Attribute.
28580 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
28582 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
28583 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
28584 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
28585 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
28586 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
28587 sockets constant MSG_NOSIGNAL (Linux-specific).
28588 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
28589 all Send operations.
28590 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
28591 from trigerring SIGPIPE.
28592 Rename components to avoid clash with Ada 2005 possible reserved
28594 (Check_Selector): When the select system call returns with an error
28595 condition, propagate Socket_Error to the caller.
28597 2004-10-01 Jan Hubicka <jh@suse.cz>
28599 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
28601 2004-09-23 Robert Dewar <dewar@gnat.com>
28604 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
28605 instead do this at freeze time (we won't do it if there is an address
28607 Change "pragma inline" to "pragma Inline" in information and error
28609 Minor reformatting.
28611 * freeze.adb (Check_Address_Clause): Remove previous change, not the
28612 right way of doing things after all.
28613 (Freeze_Entity): For object, set Is_Public for imported entities
28614 unless there is an address clause present.
28616 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
28618 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
28619 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
28620 ensures proper handling of types with rep clauses, which might have
28621 their TYPE_SIZE set already.
28623 2004-09-21 Robert Dewar <dewar@gnat.com>
28625 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
28626 packed array types in both little- and big-endian cases. This change
28627 ensures that we no longer count on the unused bits being initialized
28628 for such types (and in particular ensures that equality testing will
28629 only read the relevant bits).
28630 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
28631 These changes mean that we no longer need to initialize small packed
28633 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
28634 optimization to an LJM field as to its parent field.
28636 * ada-tree.h, trans.c, utils.c, utils2.c:
28637 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
28639 2004-09-20 Jan Hubicka <jh@suse.cz>
28641 * utils.c (gnat_finalize): Remove.
28642 (end_subprog_body): Directly call cgraph_finalize_function;
28643 do not lower the nested functions.
28645 2004-09-20 Robert Dewar <dewar@gnat.com>
28648 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
28649 if an address clause is present, since that means that the Import
28652 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
28654 * 5tsystem.ads: Removed, no longer used.
28656 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
28657 Zack Weinberg <zack@codesourcery.com>
28659 * ada-tree.def: Use tree_code_class enumeration constants
28660 instead of code letters.
28661 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
28662 Update for new tree-class enumeration constants.
28664 2004-09-17 Vincent Celier <celier@gnat.com>
28666 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
28667 capabilities of the general project manager.
28669 2004-09-09 Vincent Celier <celier@gnat.com>
28671 * a-direct.ads: Add pragma Ada_05
28672 (Directory_Entry_Type): Give default value to component Kind to avoid
28673 not initialized warnings.
28675 * a-direct.adb (Current_Directory): Remove directory separator at the
28677 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
28678 an existing directory.
28679 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
28680 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
28681 Convert the result to File_Size.
28683 * prj.ads: (Project_Error): New exception
28685 * prj-attr.adb: Except in procedure Initialize, Fail comes from
28686 Prj.Com, not from Osint.
28687 (Attrs, Package_Attributes): Tables moved to private part of spec
28688 (Add_Attribute, Add_Unknown_Package): Moved to new child package
28690 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
28691 Prj.Project_Error after call to Fail.
28692 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
28693 Fail. Check that package name is not already in use.
28695 * prj-attr.ads: Comment updates to indicate that all subprograms may be
28696 used by tools, not only by the project manager, and to indicate that
28697 exception Prj.Prj_Error may be raised in case of problem.
28698 (Add_Unknown_Package, Add_Attribute): Moved to new child package
28700 (Attrs, Package_Attributes): Table instantiations moved from the body to
28701 the private part to be accessible from Prj.Attr.PM body.
28703 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
28704 from new package Prj.Attr.PM.
28705 (Parse_Attribute_Declaration): Call Add_Attribute from new package
28708 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
28710 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
28711 instead of Elaboration_Checks).
28713 * a-calend.adb: Minor reformatting
28715 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28717 * gigi.h (maybe_pad_type): New declaration.
28718 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
28720 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
28722 * cuintp.c: Convert to use buildN.
28724 * decl.c (maybe_pad_type): No longer static.
28725 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
28727 Convert to use buildN.
28729 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
28730 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
28731 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
28733 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
28734 (gnat_gimplify_expr, case ADDR_EXPR): New case.
28735 Convert to use buildN.
28737 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
28738 TREE_READONLY for const.
28739 Convert to use buildN.
28741 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
28742 (create_var_decl): Refine when TREE_STATIC is set.
28743 Convert to use buildN.
28745 2004-09-09 Gary Dismukes <dismukes@gnat.com>
28747 * gnat_ugn.texi: Delete text relating to checking of ali and object
28750 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
28753 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
28755 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
28756 pragmas recognized by GNAT.
28758 * gnat_rm.texi: Document pragma Detect_Blocking.
28760 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
28761 raise Program_Error if called from a protected operation.
28763 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
28764 the protected action nesting level.
28765 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
28766 protected action nesting level.
28767 (Unlock): When pragma Detect_Blocking is active decrease the protected
28768 action nesting level.
28770 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
28771 Protected_Action_Nesting.
28773 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
28774 Common_ATCB record. It contains the dynamic level of protected action
28775 nesting for each task. It is needed for checking whether potentially
28776 blocking operations are called from protected operations.
28777 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
28778 Detect_Blocking is active or not in the partition.
28780 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
28781 raise Program_Error if called from a protected operation.
28782 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
28783 Program_Error if called from a protected operation.
28784 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
28785 Program_Error if called from a protected operation.
28787 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
28788 raise Program_Error if called from a protected operation.
28790 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
28791 raise Program_Error if called from a protected operation, and increase
28792 the protected action nesting level.
28793 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
28794 Program_Error if called from a protected operation, and increase the
28795 protected action nesting level.
28796 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
28797 protected action nesting level.
28799 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
28800 raise Program_Error if called from a protected operation, and increase
28801 the protected action nesting level.
28802 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
28803 Program_Error if called from a protected operation, and increase the
28804 protected action nesting level.
28805 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
28806 raise Program_Error if called from a protected operation.
28807 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
28808 active, raise Program_Error if called from a protected operation.
28809 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
28810 protected action nesting level.
28812 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
28813 insertion of the statement raising Program_Error. The run time
28814 contains the required machinery for handling that.
28816 * sem_util.ads: Change comment associated to procedure
28817 Check_Potentially_Blocking_Operation.
28818 This procedure does not insert a call for raising the exception because
28819 that is currently done by the run time.
28821 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
28823 * init.c: Add the global variable __gl_detect_blocking that indicates
28824 whether pragma Detect_Blocking is active (1) or not (0). Needed for
28825 making the pragma available at run time.
28826 (__gnat_set_globals): Pass and update the detect_blocking parameter.
28828 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
28829 pragma Detect_Blocking is active.
28831 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
28833 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
28834 DB is found in the ali file. Any unit compiled with pragma
28835 Detect_Blocking active forces its effect in the whole partition.
28837 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
28838 Detect_Blocking is active and delay is called from a protected
28841 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
28842 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
28843 Detect_Blocking is active (0 otherwise).
28844 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
28845 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
28848 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
28850 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
28851 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
28854 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
28855 (Register_Receiving_Stub): Add Subp_Info formal parameter.
28856 Update API in placeholder implemetation of s-parint to reflect changes
28857 in distribution runtime library.
28859 * sem_ch3.adb (Expand_Derived_Record): Rename to
28860 Expand_Record_Extension.
28862 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
28863 primitive operations of potentially distributed object types that have
28864 non-controlling anonymous access formals.
28866 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
28868 New implementation of expansion for remote access-to-subprogram types,
28869 based on the RACW infrastructure.
28870 This version of sem_dist is compatible with PolyORB/DSA as well as
28873 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
28874 Asynchrronous that applies to a remote access-to-subprogram type, mark
28875 the underlying RACW type as asynchronous.
28877 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
28878 __gnat_using_gnu_linker to 1.
28880 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
28881 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
28882 GNAT.Perfect_Hash_Generators, and remove the empty
28883 GNAT.Perfect_Hash package.
28885 * atree.adb: Minor reformatting
28887 * exp_ch3.adb (Expand_Derived_Record): Rename to
28888 Expand_Record_Extension.
28889 (Build_Record_Init_Proc.Build_Assignment): The default expression in
28890 a component declaration must remain attached at that point in the
28891 tree so New_Copy_Tree copies it if the enclosing record type is derived.
28892 It is therefore necessary to take a copy of the expression when building
28893 the corresponding assignment statement in the init proc.
28894 As a side effect, in the case of a derived record type, we now see the
28895 original expression, without any rewriting that could have occurred
28896 during expansion of the ancestor type's init proc, and we do not need
28897 to go back to Original_Node.
28899 * exp_ch3.ads (Expand_Derived_Record): Rename to
28900 Expand_Record_Extension.
28902 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
28903 Returns the RACW type used to implement a remote access-to-subprogram
28905 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
28906 New subprograms. Used to create a proxy tagged object for a remote
28907 subprogram. The proxy object is used as the designated object
28908 for RAS values on the same partition (unless All_Calls_Remote applies).
28909 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
28910 System.Partition_Interface.Get_Unique_Remote_Pointer.
28911 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
28912 Renamed from Add_RAS_*_Attribute.
28913 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
28915 New implementation of expansion for remote access-to-subprogram types,
28916 based on the RACW infrastructure.
28918 * exp_dist.ads (Copy_Specification): Update comment to note that this
28919 function can copy the specification from either a subprogram
28920 specification or an access-to-subprogram type definition.
28922 2004-09-09 Ed Schonberg <schonberg@gnat.com>
28924 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
28925 in an instance, between an explicit subprogram an one inherited from a
28926 type derived from an actual.
28928 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
28929 add a polling call if the subprogram is to be inlined by the back-end,
28930 to avoid repeated calls with multiple inlinings.
28932 * checks.adb (Apply_Alignment_Check): If the expression in the address
28933 clause is a call whose name is not a static entity (e.g. a dispatching
28934 call), treat as dynamic.
28936 2004-09-09 Robert Dewar <dewar@gnat.com>
28938 * g-trasym.ads: Minor reformatting
28940 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
28941 packed arrays, since unused bits are expected to be zero for a
28944 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
28946 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
28949 2004-09-09 Pascal Obry <obry@gnat.com>
28951 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
28952 enable map file generation. Add the right option to generate the map
28953 file if Map_File is set to True.
28955 * gnatdll.adb (Gen_Map_File): New variable.
28956 (Syntax): Add info about new -m (Map_File) option.
28957 (Parse_Command_Line): Add support for -m option.
28958 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
28959 Minor reformatting.
28961 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
28963 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
28964 new gnatdist implementation.
28965 Define a subpackage isolating the output routines specific to this
28968 2004-09-09 Joel Brobecker <brobecker@gnat.com>
28970 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
28972 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
28974 2004-09-09 Cyrille Comar <comar@act-europe.fr>
28976 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
28979 * opt.ads: Add Ada_Version_Runtime constant used to decide which
28980 version of the language is used to compile the run time.
28982 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
28984 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
28985 of variable length temporaries for function return now that the
28986 back-end and gigi support it.
28988 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28990 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
28992 * trans.c (struct stmt_group): Delete field GLOBAL.
28993 (gnat_init_stmt_group): Do not initialize it.
28994 (call_to_gnu): Use save_expr, not protect_multiple_eval.
28995 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
28996 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
28997 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
28998 (start_stmt_group): Likewise.
28999 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
29001 * utils2.c (ggc.h): Include.
29002 (build_call_raise): Call build_int_cst, not build_int_2.
29004 * utils.c (gnat_init_decl_processing): Fix arg to
29005 build_common_tree_nodes.
29006 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
29007 (gnat_define_builtin): Set built_in_decls.
29008 (init_gigi_decls): Call build_int_cst, not build_int_2.
29010 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
29011 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
29012 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
29013 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
29014 SET_TYPE_MODULE): Use them.
29015 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
29016 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
29017 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
29018 SET_TYPE_ADA_SIZE): Likewise.
29019 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
29020 (DECL_CONST_CORRESPONDING_VAR,
29021 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
29022 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
29023 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
29024 (TYPE_RM_SIZE_NUM): New macro.
29025 (TYPE_RM_SIZE): Modified to use above.
29027 * cuintp.c: (build_cst_from_int): New function.
29028 (UI_To_gnu): Use it.
29030 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
29031 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
29032 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
29033 MIN_EXPR for the size, copy it into new.
29035 2004-09-01 Robert Dewar <dewar@gnat.com>
29037 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
29038 packed indexed component where array is an IN OUT formal. This
29039 generated garbage code previously.
29041 * gnat_ugn.texi: Document -fverbose-asm
29043 * gnat-style.texi: Minor updates (note that boolean constants and
29044 variables are joined with AND/OR rather than short circuit forms).
29046 2004-09-01 Ed Schonberg <schonberg@gnat.com>
29048 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
29049 it is an upward conversion of an untagged type with no representation
29052 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
29054 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
29055 System.Partition_Interface.
29057 * checks.adb (Apply_Access_Checks): Do not generate checks when
29058 expander is not active (but check for unset reference to prefix of
29061 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
29062 pragma Debug as an if statement with a constant condition, for
29063 consistent treatment of entity references contained within the
29064 enclosed procedure call.
29066 2004-09-01 Vincent Celier <celier@gnat.com>
29068 * bindgen.adb: (Set_EA_Last): New procedure
29069 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
29071 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
29072 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
29073 linked without errors.
29074 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
29076 (Gen_Exception_Table_C): Correct same bugs
29078 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
29080 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
29081 on Windows, make sure that the drive letter is in upper case.
29083 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
29084 Windows, when the drive letter is added and Case_Sensitive is True, the
29085 drive letter is forced to upper case.
29087 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
29088 to Options_2 for the call to MLib.Utl.Gcc.
29090 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
29091 directory separator when defining BASE_DIR.
29093 2004-09-01 Pascal Obry <obry@gnat.com>
29095 * gprcmd.adb (Extend): Do not output trailing directory separator. This
29096 is not needed and it confuses Windows GNU/make which does not report
29097 directory terminated by a slash as a directory.
29098 (gprcmd): Idem for "pwd" internal command.
29100 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
29101 target names rewrite to fix regressions with recent version of
29102 GNU/make. Starting with GNU/make 3.80 the pipe character was not
29103 handled properly anymore.
29105 2004-09-01 Andreas Schwab <schwab@suse.de>
29107 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
29108 * raise.c [!IN_RTS]: Undef abort.
29110 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
29112 * utils2.c (build_allocator): Use ssize_int.
29114 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
29116 2004-08-27 Andreas Schwab <schwab@suse.de>
29118 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
29120 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
29121 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29123 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
29125 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
29127 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
29128 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
29129 * utils.c (init_gigi_decls): Likewise.
29130 * utils2.c (build_call_raise, build_allocator): Likewise.
29132 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
29134 * utils.c (gnat_init_decl_processing): Adjust
29135 build_common_tree_nodes call.
29137 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
29139 * utils2.c (build_allocator): Use build_int_cst for negative
29142 2004-08-18 Richard Henderson <rth@redhat.com>
29144 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
29146 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
29148 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
29150 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
29151 (gnat_to_gnu): Likewise.
29153 2004-08-16 Pascal Obry <obry@gnat.com>
29155 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
29156 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
29157 option and not mdll anymore. Update comment.
29159 2004-08-16 Pascal Obry <obry@gnat.com>
29161 * bld.adb (Put_Include_Project): Properly handle directory separators
29164 2004-08-16 Ed Schonberg <schonberg@gnat.com>
29166 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
29167 decreasing the number of allocated junk nodes while searching for the
29168 appropriate subprogram.
29170 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
29172 * cuintp.c (UI_To_gnu): Use build_int_cst..
29173 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
29174 * utils.c (init_gigi_decls): Likewise.
29175 * utils2.c (build_call_raise): Likewise.
29177 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
29179 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
29180 for a global aliased object with a variable size and an unconstrained
29181 nominal subtype, pretend there is no initializer if the one we have is
29182 incomplete, and avoid referencing an inexistant component in there. The
29183 part we have will be rebuilt anyway and the reference may confuse
29184 further operations.
29186 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
29188 * einfo.ads: Minor reformatting
29190 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
29191 restrictions in the ALI if we only want to warn about violations.
29193 2004-08-13 Vincent Celier <celier@gnat.com>
29195 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
29196 when creating a new Unit_Record in table Units.
29198 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
29199 that are violated, if any.
29201 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
29202 add directory separator if path already ends with a directory separator.
29204 2004-08-13 Ed Schonberg <schonberg@gnat.com>
29206 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
29207 unit, this is an attempt to inline a construct that is not available in
29208 the current restricted mode, so abort rather than trying to continue.
29210 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
29211 discriminants that rename those of the parent, recover names of
29212 original discriminants for the constraint on the full view of the
29214 (Complete_Private_Subtype): Do not create a subtype declaration if the
29215 subtype is an itype.
29217 * gnat_rm.texi: Added section on implementation of discriminated
29218 records with default values for discriminants.
29220 2004-08-13 Ed Schonberg <schonberg@gnat.com>
29223 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
29224 the second operand is overloaded.
29226 2004-08-10 Richard Henderson <rth@redhat.com>
29228 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
29229 add __builtin_alloca.
29231 2004-08-10 Richard Henderson <rth@redhat.com>
29233 * config-lang.in (boot_language): Yes.
29235 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
29237 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
29238 from complaining on potential uninitialized reference.
29239 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
29240 new specification and test explicitly for non-zero return value.
29242 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
29243 returning C.int, to avoid using a derived boolean type.
29245 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
29246 Duplicate_Subexpr_No_Checks in preference to direct use of
29247 Remove_Side_Effects and New_Copy_Tree.
29248 Clear Comes_From_Source on prefix of 'Size attribute reference.
29250 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
29251 g-socthi-vxworks.adb: Change calls to
29252 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
29253 and test explicitly for non-zero return value.
29255 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
29256 (Is_Socket_In_Set): Declare imported function as returning C.int, to
29257 avoid using a derived boolean type.
29259 2004-08-09 Albert Lee <lee@gnat.com>
29261 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
29263 2004-08-09 Pascal Obry <obry@gnat.com>
29265 * gnat_ugn.texi: Document new way to build DLLs on Windows using
29266 GCC's -shared option.
29268 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
29269 Options_2 parameter (options put after object files).
29271 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
29273 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
29274 ignore overflows on low and high bounds of an index to also account for
29275 differences in signedness between sizetype and gnu_index_subtype.
29276 These are as legitimate as the ones caused by a lower TYPE_PRECISION
29279 2004-08-09 Robert Dewar <dewar@gnat.com>
29281 * s-solita.ads, s-solita.adb: Minor reformatting
29283 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
29284 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
29285 obsolescent section
29286 Add note that No_Implicit_Conditionals does not suppress
29287 run time constraint checks.
29289 * vms_conv.ads: Minor reformatting
29291 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
29292 and necessary for following change).
29293 (Mark): Return new format Mark_Id containing sec stack address
29294 (Release): Use sec stack address from Mark_Id avoiding Self call
29296 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
29297 pointer (cleanup and necessary for following change).
29298 Define Mark_Id as record containing address of secondary stack, that way
29299 Release does not need to find the stack again, decreasing the number of
29300 calls to Self and improving efficiency.
29302 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
29304 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
29305 case variable into the individual case branches when possible.
29307 * sem_ch11.adb: Minor reformatting
29309 * prj.ads: Correct spelling of suffixs
29311 * prj-nmsc.adb: Minor reformatting
29312 Correct spelling suffixs throughout (also in identifiers)
29314 * freeze.adb: Minor spelling correction
29316 * exp_ch2.adb: Cleanups to handling of Current_Value
29317 (no functional effect).
29319 * bld.adb: Correct spelling of suffixs
29321 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
29323 2004-08-09 Ed Schonberg <schonberg@gnat.com>
29326 * sem_ch7.adb (Install_Private_Declarations): In the body of the
29327 package or of a child, private entities are both immediately_visible
29330 2004-08-09 Ed Schonberg <schonberg@gnat.com>
29332 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
29333 there are no range checks on the value of the literal.
29335 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
29336 wrapped is the triggering alternative of an asynchronous select, action
29337 statements mustbe inserted before the select itself.
29339 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
29340 case where the prefix is a protected function call.
29341 (Resolve_Attribute, case 'Access): The attribute reference on a
29342 subprogram is legal in a generic body if the subprogram is declared
29345 2004-08-09 Vincent Celier <celier@gnat.com>
29347 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
29348 languages, otherwise building the library may fail with unresolved
29350 (Compile_Sources): Do not build libraries if -c switch is used
29352 * gnatlink.adb (Process_Args): New switches -M and -Mmap
29353 (Write_Usage): If map file creation is supported, output new switches
29355 (Gnatlink): When -M is specified, add the necessary switch(es) to the
29356 gcc call, when supported.
29358 * Makefile.in: Added indepsw.o to the object list for gnatlink
29359 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
29361 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
29362 indepsw.adb, indepsw.ads: New files.
29364 2004-08-09 Bernard Banner <banner@gnat.com>
29366 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
29368 * Makefile.in: add section for vxworks x86
29370 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
29372 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
29373 per-object constrained components where the discriminant is of an
29375 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
29376 the parent initialization procedure for derived Unchecked_Unions.
29377 Instead, derived Unchecked_Unions build their own initialization
29379 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
29380 Check the body of the subprogram for details.
29381 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
29382 functions for derived Unchecked_Union types by introducing a condition.
29383 Allow the creation of TSS equality functions for Unchecked_Unions.
29384 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
29385 Add formal parameter Discr to function signature. Discr is used to
29386 control the generated case statement for Unchecked_Union types.
29387 (Make_Eq_If): Rename formal parameter Node to E in function signature.
29389 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
29391 Check the body of the subprogram for details.
29392 (Expand_Composite_Equality): Augment composite type equality to include
29393 correct handling of Unchecked_Union components.
29394 (Expand_N_In): Add condition to detect illegal membership tests when the
29395 subtype mark is a constrained Unchecked_Union and the expression lacks
29396 inferable discriminants, and build a Raise_Program_Error node.
29397 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
29398 to detect types that contain components of unconstrained Unchecked_Union
29399 subtype. Add condition to detect equality between types that have an
29400 unconstrained Unchecked_Union component, and build a Raise_Program_Error
29401 node. Add condition to detect equality between Unchecked_Union types
29402 that lack inferable discriminants, and build a Raise_Program_Error node.
29403 Otherwise build a TSS equality function call.
29404 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
29405 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
29406 with the operand lacking inferable discriminants, and build a Raise_
29407 Program_Error node.
29408 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
29409 composite equality.
29410 (Has_Inferable_Discriminants): Implement new predicate for objects and
29411 expressions of Unchecked_Union type. Check the body of subprogram for
29413 (Has_Unconstrained_UU_Components): Add function
29414 Component_Is_Unconstrained_UU. It is used to detect whether a single
29415 component is of an unconstrained Unchecked_Union subtype. Add function
29416 Variant_Is_Unconstrained_UU. It is used to detect whether a single
29417 component inside a variant is of an unconstrained Unchecked_Union type.
29419 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
29420 inferred discriminant values. Add condition to generate a case
29421 statement with an inferred discriminant as the switch.
29422 (Make_Component_List_Assign): Introduce a Boolean flag that determines
29423 the behaviour of the subprogram in the presence of an Unchecked_Union.
29424 Add condition to trigger the usage of the inferred discriminant value
29425 as the generated case statement switch.
29426 (Make_Field_Assign): Introduce a Boolean flag that determines the
29427 behaviour of the subprogram in the presence of an Unchecked_Union. Add
29428 condition to trigger the usage of the inferred discriminant value as
29429 the right-hand side of the generated assignment.
29431 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
29432 parameter generation when dealing with Unchecked_Unions.
29434 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
29435 checks for Unchecked_Unions.
29437 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
29439 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
29440 Raise_Program_Error nodes for the execution of Read and Write
29441 attributes of Unchecked_Union types and the execution of Input and
29442 Output attributes of Unchecked_Union types that lack default
29443 discriminant values.
29445 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
29446 Unchecked_Union. Add procedure Check_Component. It is used to inspect
29447 per-object constrained components of Unchecked_Unions for being
29448 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
29449 check individual components withing a variant.
29451 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
29452 comparison of Unchecked_Unions.
29453 (Resolve_Equality_OP): Remove guard that prevents equality between
29456 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
29457 of component subtypes for Unchecked_Union components.
29458 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
29459 since it is the actual subtype.
29461 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
29462 pass of Unchecked_Union subtypes as generic actuals to formal types
29463 that lack known_discriminant_parts or that are derived Unchecked_Union
29464 types, and do nothing. In any other case, produce an error message.
29466 * sem_ch3.adb (Analyze_Component_Declaration): Add function
29467 Contains_POC. It determines whether a constraint uses the discriminant
29468 of an enclosing record type.
29469 Add condition to detect per-object constrained component and set the
29471 (Derived_Type_Declaration): Remove guard that prevents derivation from
29472 Unchecked_Union types.
29473 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
29476 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
29477 references to Unchecked_Union discriminants.
29479 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
29480 formal generation when dealing with Unchecked_Unions.
29481 (Set_Actual_Subtypes): Add condition to prevent generation of actual
29482 subtypes for Unchecked_Unions.
29484 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
29485 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
29486 completions of discriminated partial views by Unchecked_Unions and
29487 produce an error message.
29489 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29491 * trans.c (struct stmt_group): New field, GLOBAL.
29492 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
29493 (struct elab_info): New struct.
29494 (elab_info_list, gnu_elab_proc_stack): New variables.
29495 (Compilation_Unit_to_gnu): New procedure.
29496 (gigi): Call it and also handle elaboration procs we've saved.
29497 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
29498 global field from parent.
29499 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
29500 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
29501 (start_stmt_group): Initialize global field from parent.
29502 (add_decl_expr): Set to global for current statement group.
29503 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
29506 * utils.c (global_bindings_p): True when no current_function_decl; no
29507 longer check current_binding_level.
29509 2004-08-09 Ben Brosgol <brosgol@gnat.com>
29511 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
29514 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
29516 2004-08-06 Andreas Schwab <schwab@suse.de>
29518 * utils.c (gnat_define_builtin): Remove second parameter of
29520 (begin_subprog_body): Likewise.
29522 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
29524 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
29525 optimization, not supported by the tree-ssa back-end.
29527 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
29529 * s-mastop-irix.adb: Update comments.
29531 * a-except.adb (Exception_Information): Raise Constraint_Error if
29532 exception Id is Null_Id.
29533 This is required behavior, which is more reliably and clearly checked
29534 at the top level interface level.
29536 2004-07-26 Javier Miranda <miranda@gnat.com>
29538 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
29539 call if a component has no default_expression and the box is used.
29541 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
29542 default_expression and you use box, it behaves as if you had declared a
29543 stand-alone object.
29544 (Resolve_Record_Aggregate): If a component has no default_expression and
29545 you use box, it behaves as if you had declared a stand-alone object.
29547 * sem_ch10.adb (Install_Siblings): Do not make visible the private
29548 entities of private-with siblings.
29550 2004-07-26 Ed Schonberg <schonberg@gnat.com>
29552 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
29553 for a component of an itype, set the parent pointer for analysis,
29554 there is no list in which to insert it.
29556 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
29557 bona-fide renamings, not for inherited operations.
29559 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
29560 actual for a formal that is an access parameter, create local
29561 finalization list even if the expression is not an aggregate.
29563 2004-07-26 Ed Schonberg <schonberg@gnat.com>
29566 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
29567 Diagnose properly illegal subprogram renamings that are library units.
29569 2004-07-26 Ed Schonberg <schonberg@gnat.com>
29572 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
29573 conversion rewritten as an unchecked conversion, check that original
29574 expression is a variable.
29576 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
29577 unchecked_conversion, create new node rather than rewriting in place,
29578 to preserve original construct.
29580 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29582 * gigi.h (gnat_expand_body): Deleted.
29584 * Make-lang.in: (trans.o): Depends on function.h.
29586 * misc.c: (gnat_expand_body): Moved to here.
29588 * trans.c (gnat_expand_body_1): Deleted.
29589 (gnat_expand_body): Moved from here.
29590 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
29591 (add_stmt): Check for marked visited with global_bindings_p.
29592 (gnat_gimplify_expr, case COMPONENT_REF): New case.
29593 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
29595 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
29596 VIEW_CONVERT_EXPR if not operation type.
29598 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
29601 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
29602 changes: reformatting of negation operators, removing unneeded
29603 inequality comparison with zero, converting equality comparisons with
29604 zero to negations, changing int/0/1 to bool/false/true, replace calls
29605 to gigi_abort with abort, and various other similar changes.
29607 2004-07-26 Vincent Celier <celier@gnat.com>
29609 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
29612 * make.adb (Gnatmake): Fail when a library is not present and there is
29613 no object directory.
29615 * mlib-prj.adb (Check_Library): No need to check if the library needs
29616 to be rebuilt if there is no object directory, hence no object files
29617 to build the library.
29619 * opt.ads (Setup_Projects): New Boolean flag.
29621 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
29623 Create directory when Kind /= "" and in "gnat setup". Report error if
29624 directory cannot be created.
29625 (Ada_Check): Create library interface copy dir if it does not exist
29626 and we are in "gnat setup".
29627 (Find_Sources): No error if in "gnat setup" and no Ada sources were
29629 (Language_Independent_Check): Create object directory, exec directory
29630 and/or library directory if they do not exist and we are in
29633 * vms_conv.ads: (Command_Type): New command Setup.
29635 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
29637 * vms_data.ads: Add qualifiers/switches for new built-in command
29640 2004-07-25 Richard Henderson <rth@redhat.com>
29642 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
29643 DECL_IGNORED_P on RESULT_DECL.
29645 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
29647 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
29648 allocation and potentially overflowing update with
29649 Tailored_Exception_Information. Use the sec-stack free procedural
29650 interface to output Exception_Information instead.
29652 * a-except.adb (To_Stderr): New subprogram for character, and string
29653 version moved from a-exextr to be visible from other separate units.
29654 (Tailored_Exception_Information): Remove the procedural version,
29655 previously used by the default Last_Chance_Handler and not any more.
29656 Adjust various comments.
29658 * a-exexda.adb: Generalize the exception information procedural
29659 interface, to minimize the use of secondary stack and the need for
29660 local buffers when the info is to be output to stderr:
29661 (Address_Image): Removed.
29662 (Append_Info_Character): New subprogram, checking for overflows and
29663 outputing to stderr if buffer to fill is of length 0.
29664 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
29665 (Append_Info_Address, Append_Info_Exception_Name,
29666 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
29667 Append_Info_Basic_Exception_Traceback,
29668 Append_Info_Exception_Information): New subprograms.
29669 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
29670 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
29671 Exception_Info_Maxlength, Exception_Name_Length,
29672 Exception_Message_Length): New subprograms.
29673 (Exception_Information): Use Append_Info_Exception_Information.
29674 (Tailored_Exception_Information): Use
29675 Append_Info_Basic_Exception_Information.
29676 Export services for the default Last_Chance_Handler.
29678 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
29679 other separate units.
29681 2004-07-20 Vincent Celier <celier@gnat.com>
29683 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
29685 2004-07-20 Ed Schonberg <schonberg@gnat.com>
29687 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
29688 emit itype references for the designated types of component types that
29689 are declared outside of the full record declaration, and that may
29690 denote a partial view of that record type.
29692 2004-07-20 Ed Schonberg <schonberg@gnat.com>
29695 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
29696 which is the designated type in an access component declaration, to the
29697 list of incomplete dependents of the parent type, to avoid elaboration
29698 issues with out-of-scope subtypes.
29699 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
29700 full view of the parent.
29702 2004-07-20 Ed Schonberg <schonberg@gnat.com>
29705 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
29706 entities that are hidden, such as references to generic actuals
29707 outside an instance.
29709 2004-07-20 Javier Miranda <miranda@gnat.com>
29711 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
29712 support to the new notation.
29713 (Analyze_Selected_Component): Add call to Try_Object_Operation.
29715 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
29717 * s-taprob.adb: Adding the elaboration code required for initializing
29718 the tasking soft links that are common to the full and the restricted
29721 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
29722 restricted run time has been moved to the package
29723 System.Soft_Links.Tasking.
29725 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
29726 restricted run time has been moved to the package
29727 System.Soft_Links.Tasking.
29729 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
29731 * s-solita.ads, s-solita.adb: New files.
29733 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29735 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
29736 Case_Statement_to_gnu): Split off from gnat_to_gnu.
29737 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
29738 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
29739 Exception_Handler_to_gnu_zcx): Likewise.
29741 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
29743 * gigi.h (builtin_function): Declare.
29745 2004-07-15 Robert Dewar <dewar@gnat.com>
29747 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
29750 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
29751 access values as an example of a warning.
29753 * gnat_rm.texi: Document new attribute Has_Access_Values
29755 * gnat-style.texi: Document that box comments belong on nested
29758 * sem_util.ads (Has_Access_Values): Improved documentation
29760 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
29762 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
29763 (Process_Interface_Name): Call to this new procedure
29764 (Set_Extended_Import_Export_External_Name): Call to this new procedure
29766 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
29768 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
29770 * einfo.ads: Minor comment typo fixed
29772 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
29774 * snames.adb: Add _atcb.
29776 * snames.ads: Add Name_uATCB.
29778 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
29779 (in the expanded code) when using the restricted run time.
29781 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
29782 a in parameter in order to allow ATCBs to be preallocated (in the
29785 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
29786 order to allow ATCBs to be preallocated. In case of error, the ATCB is
29787 deallocated in System.Tasking.Stages.
29789 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
29790 order to allow ATCBs to be preallocated.
29792 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
29793 here. It was previously done in Initialize_ATCB.
29795 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
29797 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
29798 Restricted run time.
29800 * exp_ch3.adb: When using the Restricted run time, pass the
29801 preallocated Ada_Task_Control_Block when creating a task.
29803 2004-07-15 Ed Schonberg <schonberg@gnat.com>
29805 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
29806 function call that is itself an actual in an enclosing call, diagnose
29807 problem here rather than assuming that resolution will catch it.
29809 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
29810 the local copy of a generic unit for a formal package, and the generic
29811 is a child unit, install private part of ancestors before compiling
29812 private part of spec.
29814 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
29815 use scope entities rather than tree structures, to handle properly
29816 parent units that are instances rewritten as bodies for inlining
29819 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
29820 Remove_Parents): Handle properly a parent unit that is an
29821 instantiation, when the unit has been rewritten as a body for inlining
29824 * par.adb (Goto_List): Global variable to collect goto statements in a
29825 given unit, for use in detecting natural loops.
29827 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
29828 use in detecting natural loops.
29830 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
29831 backwards goto's, and rewrite as a infinite loop, to improve locality
29834 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
29835 subcomponent that includes an indexed reference, to prevent the
29836 generation of copies that would miscompile the desired assignment
29838 (Build_Task_Image_Decls): Add a numeric suffix to
29839 generated name for string variable, to avoid spurious conflicts with
29840 the name of the type of a single protected object.
29842 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
29843 loop with an explicit exit statement, to avoid generating an
29844 out-of-range value with 'Succ leading to spurious constraint_errors
29845 when compiling with -gnatVo.
29847 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
29849 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
29850 might not be analyzed yet, even if its Etype is already set (case of an
29851 unchecked conversion built using Unchecked_Convert_To, for example).
29852 If the prefix has already been analyzed, this will be a nop anyway.
29854 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
29855 controller type, or an assignment of a record type with controlled
29856 components, copy only user data, and leave the finalization chain
29857 pointers untouched.
29859 2004-07-15 Vincent Celier <celier@gnat.com>
29861 * make.adb (Collect_Arguments): Improve error message when attempting
29862 to compile a source not part of any project, when -x is not used.
29864 * prj.ads: (Defined_Variable_Kind): New subtype
29866 * prj-attr.adb (Register_New_Package): Two new procedures to register
29867 a package with or without its attributes.
29868 (Register_New_Attribute): Mew procedure to register a new attribute in a
29870 New attribute oriented subprograms: Attribute_Node_Id_Of,
29871 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
29872 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
29874 New package oriented subprograms: Package_Node_Id_Of,
29875 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
29877 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
29879 (Package_Node_Id): Now a private, self initialized type
29880 (Register_New_Package): New procedure to register a package with its
29882 New attribute oriented subprograms: Attribute_Node_Id_Of,
29883 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
29884 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
29886 New package oriented subprograms: Package_Node_Id_Of,
29887 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
29889 * prj-dect.adb (Parse_Attribute_Declaration,
29890 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
29892 * prj-makr.adb (Make): Parse existing project file before creating
29893 other files. Fail if there was an error during parsing.
29895 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
29896 new spec of Prj.Attr.
29898 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
29899 to new spec of Prj.Attr.
29901 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29903 * utils2.c: Fix typo in comment.
29905 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29907 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
29908 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
29910 2004-07-14 Andreas Schwab <schwab@suse.de>
29912 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
29914 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29916 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
29918 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
29921 * misc.c (gnat_types_compatible_p): New function.
29922 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
29923 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
29925 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
29926 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
29927 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
29928 (mark_visited): Don't mark dummy type.
29929 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
29930 parameter, we must remove any LJM building from GNU_NAME.
29931 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
29932 (pos_to_constructor): Use int_const_binop.
29933 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
29936 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
29937 (gnat_pushlevel): Set TREE_USE on BLOCK node.
29938 (gnat_install_builtins): Add __builtin_memset.
29940 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
29942 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
29943 for a renaming, stabilize the initialization expression if we are at a
29944 local level. At the local level, uses of the renaming may be performed
29945 by a direct dereference of the initializing expression, and we don't
29946 want possible variables there to be evaluated for every use.
29948 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
29949 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
29950 them on the way. Account for the fact that we may introduce side
29951 effects in the process.
29953 2004-07-13 Richard Henderson <rth@redhat.com>
29955 * misc.c (default_pass_by_ref): Use pass_by_reference.
29957 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
29959 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
29960 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
29962 2004-07-08 Richard Henderson <rth@redhat.com>
29964 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
29967 2004-07-06 Vincent Celier <celier@gnat.com>
29969 * vms_conv.ads: Minor reformatting.
29970 Alphabetical order for enumerated values of type Command_Type, to have
29971 the command in alphabetical order for the usage.
29973 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
29974 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
29976 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
29978 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
29979 (Add_Archive_Path): Only add the global archive if there is one.
29980 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
29981 or not any object file to put in the global archive, and don't build
29982 a global archive if there is none.
29983 (X_Switches): New table
29984 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
29985 in the X_Switches table, if any.
29986 (Initialize): Make sure the X_Switches table is empty
29987 (Scan_Arg): Record -X switches in table X_Switches
29989 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
29991 * make.adb: Minor comment fix
29993 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
29994 invoked with directory information, add the directory in front of the
29997 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
29998 invoked with directory information, add the directory in front of the
30001 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
30002 when Keep_Temporary_Files is False.
30003 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
30004 directory information, add the directory in front of the path.
30005 When not on VMS, handle new switch -dn before the command to set
30006 Keep_Temporary_Files to True.
30007 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
30010 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
30011 invoked with directory information, add the directory in front of the
30014 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
30016 * snames.ads, snames.adb (Name_Stub): New name for the distributed
30019 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
30020 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
30022 * g-socket.adb (To_Timeval): Fix incorrect conversion of
30023 Selector_Duration to Timeval for the case of 0.0.
30025 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
30026 documentation from Evolve_And_Then.
30028 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
30030 * s-taprop-tru64.adb, s-taprop-os2.adb,
30031 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
30033 2004-07-06 Robert Dewar <dewar@gnat.com>
30035 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
30036 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
30037 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
30038 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
30039 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
30040 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
30041 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
30042 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
30043 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
30044 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
30045 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
30046 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
30047 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
30048 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
30049 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
30050 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
30051 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
30052 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
30053 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
30054 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
30055 vms_data.ads: Minor reformatting,
30056 Fix bad box comment format.
30058 * gnat_rm.texi: Fix minor grammatical error
30060 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
30062 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
30063 more cases of discriminated records to be recognized as not needing a
30065 (Has_Access_Values): New function.
30067 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
30069 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
30070 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
30071 with LRM terminology).
30072 Change terminology in comments primitive type => elementary type.
30074 2004-07-06 Ed Schonberg <schonberg@gnat.com>
30077 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
30078 parameters do not impose any requirements on the presence of a body.
30080 2004-07-06 Ed Schonberg <schonberg@gnat.com>
30083 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
30084 compilation unit and is in an open scope at the point of instantiation,
30085 assume that a body may be present later.
30087 2004-07-06 Ed Schonberg <schonberg@gnat.com>
30089 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
30090 Improve error message when specified size is not supported.
30092 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
30093 is never a primitive operation.
30095 2004-07-05 Andreas Schwab <schwab@suse.de>
30097 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
30098 RECORD_OR_UNION_CHECK.
30099 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
30101 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
30103 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
30104 dependency on xgnatugn, instead build it via a submake.
30105 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
30107 2004-07-04 Richard Henderson <rth@redhat.com>
30109 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
30111 2004-07-01 Richard Henderson <rth@redhat.com>
30113 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
30114 * utils.c (max_size): Likewise.
30116 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30118 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
30119 and rest_of_type_compilation; add arg to create_*_decl.
30120 (annotate_decl_with_node): Deleted.
30121 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
30122 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
30123 (get_current_block_context, gnat_pushdecl): New declarations.
30124 (gnat_init_stmt_group): Likewise.
30125 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
30126 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
30127 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
30128 (gnat_init): Call gnat_init_stmt_group.
30129 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
30130 (gnu_pending_elaboration_list): Deleted.
30131 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
30132 (gigi): Rearrange initialization calls and move some to last above.
30133 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
30134 Delete calls to add_decl_expr; add arg to create_*_decl.
30135 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
30136 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
30137 begin_subprog_body and call it.
30138 Don't push and pop ggc context.
30139 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
30140 (add_stmt): Remove handling of DECL_EXPR from here.
30141 If not in function, mark visited.
30142 (add_decl_expr): Put global at top level.
30143 Check for cases of DECL_INITIAL we have to handle here.
30144 (process_type): Add extra arg to create_type_decl.
30145 (build_unit_elab): Rework to just gimplify.
30146 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
30147 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
30148 (get_pending_elaborations, pending_elaborations_p): Likewise.
30149 (push_pending_elaborations, pop_pending_elaborations): Likewise.
30150 (get_elaboration_location, insert_elaboration_list): Likewise.
30151 (gnat_binding_level): Renamed from ada_binding_level.
30152 (init_gnat_to_gnu): Don't clear pending_elaborations.
30153 (global_bindings_p): Treat as global if no current_binding_level.
30154 (set_current_block_context): New function.
30155 (gnat_pushdecl): Renamed from pushdecl; major rework.
30156 All callers changed.
30157 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
30158 (finish_record_type): Call call pushdecl for stub decl.
30159 (function_nesting_depth): Deleted.
30160 (begin_subprog_body): Delete obsolete code.
30161 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
30163 2004-06-28 Robert Dewar <dewar@gnat.com>
30165 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
30166 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
30167 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
30168 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
30169 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
30171 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
30172 deal with problem of inefficient slices on machines with strict
30173 alignment, when the slice is a component of a composite.
30175 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
30176 machines, we need the check there as well.
30178 2004-06-28 Ed Schonberg <schonberg@gnat.com>
30180 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
30181 determine safe copying direction for overlapping slice assignments
30182 when component is controlled.
30184 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
30185 formal derived type in the actual for a formal package are visible in
30186 the enclosing instance.
30188 2004-06-28 Ed Schonberg <schonberg@gnat.com>
30191 * sem_util.adb (Trace_Components): Diagnose properly an illegal
30192 circularity involving a private type whose completion includes a
30193 self-referential component.
30194 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
30195 renaming or an instantiation from an implicit derived operation.
30197 2004-06-28 Pascal Obry <obry@gnat.com>
30199 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
30201 (Library_File_Name_For): Idem.
30203 2004-06-28 Matthew Gingell <gingell@gnat.com>
30205 * g-traceb.ads: Add explanatory note on the format of addresses
30206 expected by addr2line.
30208 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
30210 * Makefile.in: Force debugging information on s-tasdeb.adb,
30211 a-except.adb and s-assert.adb needed by the debugger.
30213 2004-06-28 Vincent Celier <celier@gnat.com>
30215 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
30219 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
30221 * prj.adb: Minor reformatting
30222 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
30224 * prj.ads: Comment updates
30226 (Project_Data): Change Flag1 to Need_To_Build_Lib.
30227 Remove Flag2: not used.
30229 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
30232 * gnat_ugn.texi: Put a "null;" declaration in one project file example
30234 * gnat_rm.texi: Document Empty declarations "null;".
30236 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
30237 front of the linker options.
30238 (Link_Foreign): Put the global archives and the libraries in front of
30239 the linker options.
30241 2004-06-28 Javier Miranda <miranda@gnat.com>
30243 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
30244 (RTU_Loaded): Code cleanup
30245 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
30246 withed predefined units.
30248 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
30249 explicitly withed predefined units.
30250 Fix typo in comment
30252 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
30253 explicitly withed predefined units.
30255 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30257 * ada-tree.def (DECL_STMT): Deleted.
30258 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
30259 (DECL_STMT_VAR): Deleted.
30260 * decl.c: add_decl_stmt now add_decl_expr.
30261 * gigi.h: Likewise.
30262 * trans.c: Likewise.
30263 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
30264 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
30265 (add_stmt): Only handle padded type here.
30266 (add_stmt_with_node): Allow gnat_node to not be present.
30267 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
30268 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
30269 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
30270 make a SAVE_EXPR for the entire fat pointer.
30271 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
30272 (create_index_type): Make a DECL_EXPR.
30273 (end_subprog_body): Don't call allocate_struct_function here but
30276 2004-06-25 Pascal Obry <obry@gnat.com>
30278 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
30279 Relocatable from Build_Dynamic_Library call.
30281 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
30282 Relocatable are now synonym.
30284 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
30286 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
30287 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
30290 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
30291 Lib_Address and Relocatable.
30292 (Default_DLL_Address): Removed.
30294 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
30295 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
30296 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
30297 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
30298 (Default_DLL_Address): Removed.
30300 * mlib-tgt-mingw.adb: Ditto.
30301 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
30303 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
30304 the initial thread stack size.
30306 * a-strmap.ads: Move package L to private part as it is not used in
30307 the spec. Found while reading code.
30309 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
30311 * tracebak.c: Introduce support for a GCC infrastructure based
30312 implementation of __gnat_backtrace.
30314 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
30315 any more. Use accessors instead. This eases maintenance and relaxes
30316 some alignment constraints.
30317 (_GNAT_Exception structure): Remove the Ada specific fields
30318 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
30320 (is_handled_by, __gnat_eh_personality): Replace component references to
30321 exception structure by use of the new accessors.
30323 * init.c (__gnat_initialize): Adjust comments to match the just
30324 reverted meaning of the -static link-time option.
30326 * adaint.c (convert_addresses): Arrange not to define a stub for
30327 mips-irix any more, as we now want to rely on a real version from a
30328 recent libaddr2line.
30330 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
30331 the personality routine can use them and not have to rely on a C
30332 counterpart of the record anymore. This simplifies maintenance and
30333 relaxes the constraint of having Standard'Maximum_Alignment match
30335 Update comments, and add a section on the common header alignment issue.
30337 2004-06-25 Geert Bosch <bosch@gnat.com>
30339 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
30340 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
30342 2004-06-25 Robert Dewar <dewar@gnat.com>
30344 * gnat_rm.texi: Fix section on component clauses to indicate that the
30345 restriction on byte boundary placement still applies for bit packed
30347 Add comment on stack usage from Initialize_Scalars
30349 * gnat_ugn.texi: Add documentation for -gnatyLnnn
30351 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
30352 limiting nesting level.
30354 * usage.adb: Add line for -gnatyLnnn switch
30356 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
30357 sem_ch13.adb, exp_aggr.adb: Minor reformatting
30359 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
30360 type as well as on the subtype. This corrects a problem in freeze in
30361 setting alignments of atomic types.
30363 * sem_eval.ads: Minor comment typo fixed
30365 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
30366 level. Minor reformatting.
30368 * fname.adb (Is_Predefined_File_Name): Require a letter after the
30369 minus sign. This means that file names like a--b.adb will not be
30370 considered predefined.
30372 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
30373 record Test new flag and give diagnostic for bad component clause.
30374 (Freeze_Entity): Set alignment of array from component alignment in
30375 cases where this is safe to do.
30377 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
30380 * cstand.adb: (Create_Standard): Set alignment of String to 1
30382 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
30384 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
30385 code in the common constrained array cases.
30387 * a-storio.adb: Change implementation to avoid possible alignment
30388 problems on machines requiring strict alignment (data should be moved
30389 as type Buffer, not type Elmt).
30391 * checks.adb (Apply_Array_Size_Check): Improve these checks by
30392 killing the overflow checks which we really do not need (64-bits is
30395 2004-06-25 Vincent Celier <celier@gnat.com>
30397 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
30398 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
30399 inconditionally for the main project.
30400 (Recursive_Add_Archives.Add_Archive_Path): New procedure
30401 (Link_Executables.Check_Time_Stamps): New procedure
30402 (Link_Executables.Link_Foreign): New procedure
30403 Changes made to reduce nesting level of this package
30404 (Check): New procedure
30405 (Add_Switches): When not in quiet output, check that a switch is not
30406 the concatenation of several valid switches. If it is, issue a warning.
30407 (Build_Global_Archive): If the global archive is rebuilt, linking need
30409 (Compile_Sources): Rebuilding a library archive does not imply
30410 rebuilding the global archive.
30411 (Build_Global_Archive): New procedure
30412 (Build_Library): New name for Build_Archive, now only for library
30414 (Check_Archive_Builder): New procedure
30415 (Create_Global_Archive_Dependency_File): New procedure
30416 (Gprmake): Call Build_Global_Archive before linking
30417 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
30419 (Scan_Arg): Display the Copyright notice when -v is used
30421 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
30424 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
30426 Add new GNAT LIST qualifier /FILES=
30427 Added qualifier /DIRECTORY= to GNAT METRIC
30428 Added qualifier /FILES= to GNAT METRIC
30429 Added qualifier /FILES to GNAT PRETTY
30431 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
30432 to take into account both versions of the switch.
30434 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
30435 always be the last switch to the gcc driver. Disable switch storing so
30436 that switches automatically added by the gcc driver are not put in the
30439 * prj.adb (Project_Empty): Take into account changes in components of
30442 * prj.ads (Languages_Processed): New enumaration value All_Languages.
30444 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
30445 used. Split Boolean component Ada_Sources_Present in two Boolean
30446 components Ada_Sources_Present and Other_Sources_Present.
30449 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
30450 instead of Sources_Present.
30451 (Set_Ada_Paths.Add.Recursive_Add): Ditto
30453 * prj-nmsc.adb: Minor reformatting
30454 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
30455 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
30456 Check_Ada_Naming_Scheme.
30457 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
30460 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
30462 Make sure that all cycles where there is at least one "limited with"
30464 (Parse_Single_Project): New Boolean parameter In_Limited
30466 * prj-proc.adb (Recursive_Check): When Process_Languages is
30467 All_Languages, call first Prj.Nmsc.Ada_Check, then
30468 Prj.Nmsc.Other_Languages_Check.
30470 * prj-proc.adb (Process): Use Ada_Sources_Present or
30471 Other_Sources_Present (instead of Sources_Present) depending on
30474 * lang-specs.h: Keep -g and -m switches in the same order, and as the
30477 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
30478 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
30480 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
30483 * lib.ads (Disable_Switch_Storing): New procedure.
30485 * make.adb: Modifications to reduce nesting level of this package.
30486 (Check_Standard_Library): New procedure
30487 (Gnatmake.Check_Mains): New procedure
30488 (Gnatmake.Create_Binder_Mapping_File): New procedure
30489 (Compile_Sources.Compile): Add switch -gnatez as the last option
30490 (Display): Never display -gnatez
30492 * Makefile.generic:
30493 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
30495 * gnatcmd.adb (Check_Project): New function
30496 (Process_Link): New procedure to reduce nesting depth
30497 (Check_Files): New procedure to reduce the nesting depth.
30498 For GNAT METRIC, include the inherited sources in extending projects.
30499 (GNATCmd): When GNAT LS is invoked with a project file and no files,
30500 add the list of files from the sources of the project file. If this list
30501 is too long, put it in a temp text files and use switch -files=
30502 (Delete_Temp_Config_Files): Delete the temp text file that contains
30503 a list of source for gnatpp or gnatmetric, if one has been created.
30504 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
30505 in the project file is too large, create a temporary text file that
30506 list them and pass it to the tool with "-files=<temp text file>".
30507 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
30509 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
30510 generated file is in not in Ada.
30512 * gnatls.adb: Remove all parameters And_Save that are no longer used.
30513 (Scan_Ls_Arg): Add processing for -files=
30514 (Usage): Add line for -files=
30516 * g-os_lib.adb (On_Windows): New global constant Boolean flag
30517 (Normalize_Pathname): When on Windows and the path starts with a
30518 directory separator, make sure that the resulting path will start with
30521 * clean.adb (Clean_Archive): New procedure
30522 (Clean_Project): When there is non-Ada code, delete the global archive,
30523 the archive dependency files, the object files and their dependency
30524 files, if they exist.
30525 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
30527 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
30529 * sinfo.ads: Fix typo in comment.
30531 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
30532 the TSS for remote access-to-subprogram types, since these TSS are
30533 always present once the type has been analyzed.
30534 (RAS_E_Dereference): Same.
30536 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
30537 reference raises Bad_Attribute, mark the reference as analyzed so the
30538 node (and any children resulting from rewrites that could have occurred
30539 during the analysis that ultimately failed) is not analyzed again.
30541 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
30543 * exp_dist.adb: Minor comment fix.
30545 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
30546 type is an anonymous access type, no unchecked deallocation of the
30547 allocated object can occur. If the object is controlled, attach it with
30548 a count of 1. This allows attachment to the Global_Final_List, if
30549 no other relevant list is available.
30550 (Get_Allocator_Final_List): For an anonymous access type that is
30551 the type of a discriminant or record component, the corresponding
30552 finalisation list is the one of the scope of the type.
30554 2004-06-25 Ed Schonberg <schonberg@gnat.com>
30556 * sem_ch3.adb (Replace_Type): When computing the signature of an
30557 inherited subprogram, use the first subtype if the derived type
30558 declaration has no constraint.
30560 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
30561 before applying previous optimization. Minor code cleanup.
30563 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
30564 placed at the beginning of an unpacked record without explicit
30565 alignment, a slice of it will be aligned and does not need a copy when
30568 2004-06-25 Ed Schonberg <schonberg@gnat.com>
30572 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
30573 reference is written with expressions mimicking parameters.
30575 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
30578 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
30579 STEP 2a. The constraints of a full type declaration of a derived record
30580 type are checked for conformance with those declared in the
30581 corresponding private extension declaration. The message
30582 "not conformant with previous declaration" is emitted if an error is
30585 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
30587 * g-traceb.ads: Document the need for -E binder switch in the spec.
30589 * g-trasym.ads: Document the need for -E binder switch in the spec.
30591 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
30593 * sem_prag.adb: Add handling of pragma Detect_Blocking.
30595 * snames.h, snames.ads, snames.adb: Add entry for pragma
30598 * s-rident.ads: Change reference to pragma Detect_Blocking.
30600 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
30603 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
30604 to indicate whether pragma Detect_Blocking is active.
30606 * par-prag.adb: Add entry for pragma Detect_Blocking.
30608 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
30609 of not handling WITH.
30610 Note that this replaces the previous update which was incorrect.
30612 2004-06-25 Javier Miranda <miranda@gnat.com>
30614 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
30615 use-clauses to have a clean environment.
30617 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
30618 the installation of the use-clauses to stablish a clean environment in
30619 case of compilation of a separate unit; otherwise the call to
30620 use_one_package is protected by the barrier Applicable_Use.
30622 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
30623 the installation of the use-clauses to stablish a clean environment in
30624 case of compilation of a separate unit.
30625 (End_Use_Clauses): Minor comment cleanup.
30627 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
30629 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
30631 2004-06-23 Richard Henderson <rth@redhat.com>
30633 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
30635 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30637 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
30638 now bool instead of int.
30639 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
30640 * trans.c (gnu_switch_label_stack): New function.
30641 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
30642 elaboration of renamed entity returns.
30643 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
30644 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
30645 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
30646 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
30647 DECL_SIZE_UNIT and simplify variable-sized case.
30648 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
30649 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
30650 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
30651 (build_unit_elab): Disable for now.
30652 * utils.c (mark_visited): New function.
30653 (pushdecl): Walk tree to call it for global decl.
30654 (update_pointer_to): Update all variants of pointer and ref types.
30655 Add arg to COMPONENT_REF.
30656 (convert): Likewise.
30657 Move check for converting between variants lower down.
30658 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
30659 (build_allocator): Don't force type of MODIFY_EXPR.
30660 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
30661 put_var_into_stack.
30663 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30665 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
30666 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
30667 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
30669 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
30670 all callers changed.
30671 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
30672 the way that EXIT_STMT finds the loop label.
30673 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
30674 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
30675 (add_stmt): Use annotate_with_locus insted of setting directly.
30676 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
30677 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
30678 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
30679 (build_vms_descriptor): Add extra args to ARRAY_REF.
30680 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
30681 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
30683 (build_binary_op): Don't make explicit CONVERT_EXPR.
30684 Add extra rgs to ARRAY_REF.
30686 2004-06-14 Pascal Obry <obry@gnat.com>
30688 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
30689 Windows. Fix minor typo.
30691 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
30692 which is now supported on Windows. With this implementation using the
30693 Library Project feature is no different on Windows than on UNIX.
30695 2004-06-14 Vincent Celier <celier@gnat.com>
30697 * makegpr.adb (Compile_Sources): Nothing to do when there are no
30700 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
30702 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
30703 found, show the project name and the path of the previously parsed
30706 2004-06-14 Ed Schonberg <schonberg@gnat.com>
30708 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
30709 array, avoid copying the actual before the call.
30711 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
30713 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
30714 Instead, allocate memory on worst-case alignment assumptions, and then
30715 return an aligned address within the allocated zone.
30717 2004-06-14 Robert Dewar <dewar@gnat.com>
30719 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
30720 elab entities in predefined units in No_Run_Time_Mode.
30721 (Gen_Adainit_C): Same fix
30722 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
30723 units in No_Run_Time_Mode
30724 (Gen_Elab_Calls_C): Same fix
30726 * symbols-vms-alpha.adb: Minor reformatting
30728 * g-debpoo.ads: Minor reformatting
30730 * lib.adb (In_Same_Extended_Unit): Version working on node id's
30732 * lib.ads (In_Same_Extended_Unit): Version working on node id's
30734 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
30737 * make.adb: Minor reformatting
30739 * par-ch12.adb: Minor reformatting
30741 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
30743 * prj-strt.adb: Minor reformatting
30745 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
30748 * sem_attr.adb: Minor reformatting
30750 * sem_ch7.adb: Minor reformatting
30752 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
30753 for type in the same unit as the object declaration.
30755 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
30756 static string expressions and not just string literals.
30758 (Set_Warning): Reset restriction warning flag for restriction pragma
30759 Implement pragma Profile_Warnings
30760 Implement pragma Profile (Restricted)
30761 Give obolescent messages for old restrictions and pragmas
30763 * snames.h, snames.ads, snames.adb: Add new entry for pragma
30766 * s-rident.ads: Add declarations for restrictions required by profile
30767 Restricted and profile Ravenscar.
30769 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
30771 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
30772 configuration pragmas.
30774 2004-06-11 Vincent Celier <celier@gnat.com>
30776 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
30777 gnatsym, when symbol policy is Restricted.
30779 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
30780 gnatsym, when symbol policy is Restricted.
30782 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
30783 read the symbol file.
30784 (Finalize): Fail in symbol policy Restricted if a symbol in the original
30785 symbol file is not in the object files. Do not create a new symbol file
30786 when symbol policy is Restricted.
30788 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
30791 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
30793 (Usage): Line for new switch -R
30795 * make.adb (Initialize): When the platform is not VMS, add the
30796 directory where gnatmake is invoked in the front of the path, if
30797 gnatmake is invoked with directory information. Change the Scan_Args
30798 while loop to a for loop.
30799 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
30800 if Depth is equal or greater than the proposed depth, there is nothing
30802 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
30805 * prj.ads: Add new symbol policy Restricted.
30807 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
30808 with the new parameters Check_All_Labels and Case_Location.
30810 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
30811 (Library_Symbol_File needs to be defined).
30813 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
30814 and Case_Location If Check_All_Labels is True, check that all values of
30815 the string type are used, and output warning(s) if they are not.
30817 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
30820 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
30822 * gnat_ugn.texi: Update documentation about the library directory in
30825 * makegpr.adb (Display_Command): In verbose mode, also display the
30826 value of the CPATH env var, when the compiler is gcc.
30827 (Initialize): Change the Scan_Args while loop to a for loop
30828 (Compile_Individual_Sources): Change directory to object directory
30829 before compilations.
30831 * symbols.ads: New symbol policy Restricted.
30833 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
30835 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
30836 is now taken care of internally in the Exception_Propagation package
30837 and does not require clients assistance any more.
30839 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
30840 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
30841 functions. Helpers to maintain a predicate required in the handling of
30842 occurrence transfer between tasks.
30843 This is now handled internally and does not require clients assistance
30844 for the setup/propagate separation anymore.
30845 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
30846 allocation strategy, handle the Setup_And_Not_Propagated predicate and
30849 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
30850 raise_after_setup, now that everything is handled internally within the
30851 setup/propagation engine.
30853 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
30855 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
30856 Add additional conditions for the case of an actual being a simple
30857 name or literal. Improve inlining by preventing the generation
30858 of temporaries with a short lifetime (one use).
30860 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
30863 * einfo.ads: Minor comment updates for Has_Completion and
30864 E_Constant list of flags.
30866 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
30867 and constant redeclarations now set the Has_Completion flag of their
30868 defining identifiers.
30870 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
30871 Inspect_Deferred_Constant_Completion.
30872 Used to detect private deferred constants that have not been completed
30873 either by a constant redeclaration or pragma Import. Emits error message
30874 "constant declaration requires initialization expression".
30876 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
30877 completes a deferred constant.
30879 2004-06-11 Geert Bosch <bosch@gnat.com>
30881 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
30883 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
30884 calculating exponent for scaling denormal numbers.
30885 (Leading_Part): Properly raise Constraint_Error for zero or negative
30887 (Remainder): Properly raise Constraint_Error for zero divisor.
30889 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
30891 * sem_util.adb: Minor reformatting.
30893 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
30894 dereference when accessing the entry parameter record.
30895 (Check_Array_Type): Always check for possible implicit dereference.
30896 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
30897 Abort if a pointer is still present (denoting that an implicit
30898 dereference was left in the tree by the front-end).
30900 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
30901 dereference when accessing the entry parameter record.
30902 (Check_Array_Type): Always check for possible implicit dereference.
30903 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
30904 Abort if a pointer is still present (denoting that an implicit
30905 dereference was left in the tree by the front-end).
30907 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
30909 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
30910 message, like the compiler itself does. Easier to parse the output.
30912 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
30914 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
30915 be base names, and not includes directories.
30917 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
30919 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
30920 so that dependencies are properly taken into account by make.
30922 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
30925 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
30926 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
30928 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
30930 * Makefile.in (install-gnatlib): install target-specific run-time files.
30932 * Make-lang.in: Remove obsolete targets.
30934 2004-06-11 Ed Schonberg <schonberg@gnat.com>
30936 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
30937 specification, to catch misuses of program unit names.
30939 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
30940 superfluous conversions in an instance.
30942 2004-06-11 Ed Schonberg <schonberg@gnat.com>
30945 * sem_ch12.adb (Save_References): If operator node has been folded to
30946 enumeration literal, associated_node must be discarded.
30948 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
30950 * s-stchop-vxworks.adb: Add required pragma Convention to
30951 Task_Descriptor because it is updated by a C function.
30953 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
30956 * Makefile.in: Remove target specific SO_OPT on IRIX
30958 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30960 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
30961 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
30962 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
30963 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
30964 (STMT_STMT, USE_STMT): New statement codes.
30965 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
30966 * ada-tree.h: Reflect above changes.
30967 (struct tree_loop_id): Deleted.
30968 (union lang_tree_node, struct lang_decl, struct lang_type):
30969 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
30970 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
30971 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
30972 (IS_ADA_STMT): New macro.
30973 * decl.c (annotate_decl_with_node): New function.
30974 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
30975 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
30976 Call add_stmt_with_node to do needed assignments.
30977 Add call to update setjmp buffer directly, not via EXPR_STMT.
30978 (maybe_variable): Argment GNAT_NODE deleted.
30979 * gigi.h (maybe_variable): Likewise.
30980 (make_transform, add_stmt_with_node, set_block_for_group): New.
30981 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
30982 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
30983 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
30984 (set_lineno, set_lineno_from_sloc): Likewise.
30985 (record_code_position, insert_code_for): Likewise.
30986 (gnat_poplevel): Now returns void.
30987 (end_subprog_body): Now takes argument.
30988 * misc.c (cgraph.h, tree-inline.h): New includes.
30989 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
30990 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
30991 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
30992 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
30993 (gnat_parse_file): Don't set immediate_size_expand.
30994 Call cgraph functions.
30995 (gnat_expand_expr): Remove most cases.
30996 (record_code_position, insert_code_for): Remove from here.
30997 * trans.c (toplev.h, tree-gimple.h): Now included.
30998 (discard_file_names): Deleted.
30999 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
31000 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
31001 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
31002 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
31003 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
31004 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
31005 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
31006 (set_block_for_group, add_stmt_list): Likewise.
31007 (start_stmt_group): Renamed from start_block_stmt.
31008 (end_stmt_group): Likewise, from end_block_stmt.
31009 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
31010 (gigi): Don't set discard_file_names or call set_lineno.
31011 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
31012 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
31013 Numerous changes throughout to reflect new names and complete
31014 function-at-a-time implementation.
31015 (gnat_expand_stmt): Delete or comment out all cases.
31016 (process_inlined_subprograms): Use add_stmt.
31017 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
31018 call set_lineno; also remove unneeded block handling.
31019 (process_type): Remove unneeded block handling.
31020 (build_unit_elab): Remove calls to deleted functions.
31021 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
31022 (tree-dump.h): Likewise.
31023 (struct ada_binding_level): Add field jmpbuf_decl.
31024 (gnat_define_builtin, gnat_install_builtins): New.
31025 (gnat_gimplify_function, gnat_finalize): Likewise.
31026 (gnat_poplevel): No longer return BLOCK, set it instead.
31027 Remove code dealing with nested functions.
31028 (gnat_init_decl_processing): Also set size_type_node.
31029 Call gnat_install_builtins.
31030 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
31031 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
31032 Remove special-case for "main".
31033 (end_subprog_body): Add arg and rework for tree-ssa.
31034 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
31035 Add case for BOOLEAN_TYPE.
31036 * utils2.c (rtl.h): Now include.
31037 (build_call_raise): Test Debug_Flag_NN directly.
31038 (build_call_alloc_dealloc): Don't use local stack allocation for now.
31039 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
31040 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
31042 2004-06-07 Robert Dewar <dewar@gnat.com>
31044 * a-direct.ads, einfo.ads: Minor comment updates
31046 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
31047 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
31048 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
31049 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
31050 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
31052 * s-interr-sigaction.adb: Remove unreferenced variable
31053 (Attached_Interrupts). Minor reformatting.
31054 Avoid use of variable I (replace by J).
31056 * par-ch10.adb: Fix text of one error message
31058 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
31059 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
31060 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
31061 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
31062 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
31063 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
31064 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
31065 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
31066 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
31067 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
31068 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
31071 2004-06-07 Doug Rupp <rupp@gnat.com>
31073 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
31075 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
31077 * mlib-tgt-vms-ia64.adb: New file.
31079 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
31080 Add mlib-tgt-vms-ia64.adb
31081 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
31082 Move to alpha specific ifeq section.
31083 Add VMS specific versions of symbols.adb
31084 Renaming of 5q vms files.
31086 * 5qsystem.ads renamed to system-vms_64.ads.
31088 2004-06-07 Vincent Celier <celier@gnat.com>
31090 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
31091 explain that when a time of day corresponding to the non existing hour
31092 on the day switching to DST is specified, Split may return a different
31095 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
31098 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
31099 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
31101 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
31103 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
31104 the linking options.
31105 (Build_Library.Check_Libs): On VMS, if there is a dependency on
31106 g-trasym.ads, set Gtrasymobj_Needed to True.
31108 * prj-attr.adb: Add new package Metrics for gnatmetric
31110 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
31111 canonical case to take into account files with upper case characters on
31113 (Ada_Check): Load the reference symbol file name in the name buffer to
31114 check it, not the symbol file name.
31116 * snames.ads, snames.adb: Add standard name Metrics (name of project
31117 file package for gnatmetric).
31119 * vms_conv.ads: Add Metric to Comment_Type
31121 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
31123 * vms_data.ads: Add qualifiers for GNAT METRIC
31125 * makegpr.adb (Link_Executables): Take into account the switches
31126 specified in package Linker of the main project.
31128 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
31130 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
31131 the index of the last element is Units.Last, not Units.Table'Last
31132 (which is usually not a valid index within the actually allocated
31133 storage for the table).
31135 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
31136 determines whether to generate a call to a checked storage pool
31137 Dereference action.
31138 Generate such a call only for a dereference that either comes from
31139 source, or is the result of rewriting a dereference that comes from
31142 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
31144 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
31146 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
31148 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
31149 file level, elaborate the stride for inner dimensions in alignment
31152 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
31155 2004-06-07 Javier Miranda <miranda@gnat.com>
31157 * exp_ch6.adb: Correct wrong modification in previous patch
31159 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
31161 * g-trasym.ads: Corrected comment to properly reflect level of support
31164 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
31166 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
31167 includes case of a variable referenced on the left hand side of an
31168 assignment, therefore remove redundant code. Variables and prefixes of
31169 indexed or selected components are now marked as referenced on left
31170 hand side. Warnings are now properly emitted when variables or prefixes
31171 are assigned but not read.
31173 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
31174 left hand side referenced variables. Private access types do not
31175 produce the warning "variable ... is assigned but never read".
31176 Add also additional checks to left hand side referenced variables.
31177 Aliased, renamed objects and access types do not produce the warning
31178 "variable ... is assigned but never read" since other entities may read
31179 the memory location.
31181 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
31183 * Makefile.in: In the powerpc/vxworks-specific section, restore
31184 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
31187 2004-06-07 Ed Schonberg <schonberg@gnat.com>
31189 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
31190 predefined operators.
31191 Removes spurious type errors from g-trasym-vms.adb.
31193 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
31194 distinct from the operator appearing in the source, call appropriate
31195 routine to insert conversions when needed, and complete resolution of
31197 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
31198 interpretations for rewritten right operand.
31199 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
31200 the other operand is overloaded and the context is a type conversion.
31202 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31204 * ada-tree.def (BLOCK_STMT): Now has two operands.
31207 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
31209 * gigi.h: (gnat_poplevel): Now returns a tree.
31211 * trans.c (end_block_stmt): Add arg; all callers changed.
31212 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
31213 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
31214 (add_stmt): Set TREE_TYPE.
31215 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
31216 (gnat_expand_stmt, case BREAK_STMT): New case.
31218 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
31220 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
31222 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
31223 procedure Set_Stack_Size that is not needed.
31225 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
31227 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
31228 used for gnatpp input file and for the files upon which it depends
31230 2004-06-07 Ben Brosgol <brosgol@gnat.com>
31232 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
31234 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
31236 * gnatvsn.ads: Bump version numbers appropriately.
31237 Add new build type.
31239 2004-06-07 Pascal Obry <obry@gnat.com>
31241 * gnat_ugn.texi: Improve comments about imported names and link names
31242 on Windows. Add a note about the requirement to use -k gnatdll's option
31243 when working with a DLL which has stripped stdcall symbols (no @nn
31246 2004-05-27 Vincent Celier <celier@gnat.com>
31248 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
31249 COMMENTS_LAYOUT=UNTOUCHED
31251 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
31252 symbols-vms-alpha.adb
31254 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
31256 * sem.ads: Clarify documentation on checks suppression.
31258 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
31260 2004-05-27 Ed Schonberg <schonberg@gnat.com>
31262 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
31263 the case of multiple derivations.
31264 (Is_Object_Reference): For a selected component, verify that the prefix
31265 is itself an object and not a value.
31267 * sem_ch12.adb (Same_Instantiated_Constant): New name for
31268 Same_Instantiated_Entity.
31269 (Same_Instantiated_Variable): Subsidiary to
31270 Check_Formal_Package_Instance, to recognize actuals for in-out generic
31271 formals that are obtained from a previous formal package.
31272 (Instantiate_Subprogram_Body): Emit proper error when
31273 generating code and the proper body of a stub is missing.
31275 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
31276 has a universal interpretation, do the disambiguation here.
31278 * exp_ch4.adb (Expand_N_Type_Conversion,
31279 Expand_N_Unchecked_Type_Conversion): Special handling when target type
31280 is Address, to avoid typing anomalies when Address is a visible integer
31283 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
31284 to determine whether a subprogram should not be marked Pure, even when
31285 declared in a pure package.
31287 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
31289 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
31291 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
31292 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
31293 Update the documentation about the Ravenscar profile, following the
31294 definition found in AI-249.
31296 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
31297 setting the Profile (Ravenscar). This must be done in addition to
31298 setting the required restrictions.
31300 * rtsfind.ads: Add the set of operations defined in package
31303 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
31306 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
31308 lang-specs.h: Always require -c or -S and always redirect to /dev/null
31309 if -gnatc or -gnats is passed.
31311 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
31313 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
31314 a significant reference. Warnings are now properly emitted when a
31315 discriminated type is not referenced.
31317 * lib-xref.adb (Generate_Reference): A deferred constant completion,
31318 record representation clause or record type discriminant does not
31319 produce a reference to its corresponding entity. Warnings are now
31320 properly emitted when deferred constants and record types are not
31323 2004-05-27 Geert Bosch <bosch@gnat.com>
31325 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
31326 Fixes ACATS Annex G tests.
31328 2004-05-27 Robert Dewar <dewar@gnat.com>
31330 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
31333 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
31335 * s-interr.adb (Server_Task): Take into account case of early return
31336 from sigwait under e.g. linux.
31338 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
31340 * gnat_ugn.texi: Add description for the new gnatpp options:
31341 -rnb - replace the original source without creating its backup copy
31342 -c0 - do not format comments
31344 2004-05-24 Geert Bosch <bosch@gnat.com>
31346 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
31347 with 192 bits of precision, sufficient to reduce a double-extended
31348 arguments X with a maximum relative error of T'Machine_Epsilon, for X
31349 in -2.0**32 .. 2.0**32.
31350 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
31351 reduction by the processor, which only uses a 68-bit approximation of
31353 (Tan): Always reduce arguments and compute function either using
31354 the processor's fptan instruction, or by dividing sin and cos as needed.
31356 2004-05-24 Doug Rupp <rupp@gnat.com>
31358 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
31359 gcc error on 32/64 bit VMS.
31361 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
31363 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
31364 since this is what we get for stack overflows although not documented
31366 Document the issues which may require adjustments to our signal
31369 2004-05-24 Ed Schonberg <schonberg@gnat.com>
31371 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
31372 enclosing dynamic scope if the instantiation is within a generic unit.
31374 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
31376 * exp_dbug.ads: Fix typo.
31378 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
31379 Rename it to its proper name: system-linux-ia64.ads
31380 (stamp-gnatlib1): Remove extra target specific run time files when
31381 setting up the rts directory.
31383 2004-05-24 Javier Miranda <miranda@gnat.com>
31385 * einfo.ads, einfo.adb (Limited_Views): Removed.
31386 (Limited_View): New attribute that replaces the previous one. It is
31387 now a bona fide package with the limited-view list through the
31388 first_entity and first_private attributes.
31390 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
31391 limited-private-with clause.
31392 (Install_Limited_Withed_Unit): Install the private declarations of a
31393 limited-private-withed package. Update the installation of the shadow
31394 entities according to the new structure (see Build_Limited_Views)
31395 (Build_Limited_Views): Replace the previous implementation of the
31396 limited view by a package entity that references the first shadow
31397 entity plus the first shadow private entity (required for limited-
31398 private-with clause)
31399 (New_Internal_Shadow_Entity): Code cleanup.
31400 (Remove_Limited_With_Clause): Update the implementation to undo the
31401 new work carried out by Build_Limited_Views.
31402 (Build_Chain): Complete documentation.
31403 Replace Ada0Y by Ada 0Y in comments
31406 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
31407 types the level of accessibility depends on the enclosing type
31410 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
31411 entities. Complete documentation of previous change.
31413 2004-05-24 Robert Dewar <dewar@gnat.com>
31415 * namet.adb: Minor reformatting
31416 Avoid use of name I (replace by J)
31417 Minor code restructuring
31419 * sem_ch6.adb: Minor reformatting
31421 * lib-writ.adb: Do not set restriction as active if this is a
31422 Restriction_Warning case.
31424 * sem_prag.adb: Reset restriction warning flag if real pragma
31425 restriction encountered.
31427 * s-htable.adb: Minor reformatting
31428 Change rotate count to 3 in Hash (improves hash for small strings)
31430 * 5qsystem.ads: Add comments for type Address (no literals allowed).
31432 * gnat_ugn.texi: Add new section of documentation "Code Generation
31433 Control", which describes the use of -m switches.
31435 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
31437 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
31438 through the DECL_INITIAL for renamed variables.
31440 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
31442 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
31444 2004-05-19 Joel Brobecker <brobecker@gnat.com>
31446 * exp_dbug.ads: Correct comments concerning handling of overloading,
31447 since we no longer use $ anymore.
31449 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
31451 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
31452 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
31453 with illegal subunits.
31455 2004-05-19 Ed Schonberg <schonberg@gnat.com>
31457 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
31458 body with front-end inlining enabled, check whether an inline pragma
31459 appears immediately after the body and applies to it.
31461 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
31462 enabled and the pragma appears after the body of the subprogram.
31464 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31466 Part of function-at-a-time conversion
31468 * misc.c (adjust_decl_rtl): Deleted.
31469 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
31472 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
31473 (add_decl_stmt, add_stmt, block_has_vars): New functions.
31474 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
31476 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
31477 when making a decl.
31478 (gnat_to_gnu_entity): Likewise.
31479 Use add_stmt to update setjmp buffer.
31480 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
31482 No longer call adjust_decl_rtl.
31483 (DECL_INIT_BY_ASSIGN_P): New macro.
31484 (DECL_STMT_VAR): Likewise.
31486 * trans.c (gigi): Call start_block_stmt to make the outermost
31488 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
31489 Call start_block_stmt and end_block_stmt temporarily.
31490 Use gnat_expand_stmt instead of expand_expr_stmt.
31491 (add_decl_stmt): New function.
31492 (tree_transform): Call it.
31493 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
31494 (end_block_stmt): Set type and NULL_STMT.
31495 (gnat_expand_stmt): Make recursize call instead of calling
31497 (gnat_expand_stmt, case DECL_STMT): New case.
31498 (set_lineno_from_sloc): Do nothing if global.
31499 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
31500 (start_block_stmt, add_stmt, end_block_stmt): New functions.
31501 (build_block_stmt): Call them.
31502 (gnat_to_code): Don't expand NULL_STMT.
31503 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
31505 (tree_transform): Likewise.
31506 (tree_transform, case N_Null_Statement): Return NULL_STMT.
31507 (gnat_expand_stmt, case NULL_STMT): New case.
31508 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
31511 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
31514 * utils.c (create_var_decl): Do not call expand_decl or
31516 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
31517 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
31519 (struct e_stack): Add chain_next to GTY.
31520 (struct binding_level): Deleted.
31521 (struct ada_binding_level): New struct.
31522 (free_block_chain): New.
31523 (global_binding_level, clear_binding_level): Deleted.
31524 (global_bindings_p): Rework to see if no chain.
31525 (kept_level_p, set_block): Deleted.
31526 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
31527 new data structure and work directly on BLOCK node.
31528 (gnat_poplevel): Similarly.
31529 (get_decls): Look at BLOCK_VARS.
31530 (insert_block): Work directly on BLOCK node.
31531 (block_has_var): New function.
31532 (pushdecl): Rework for new binding structures.
31533 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
31535 (build_subprog_body): Likewise.
31536 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
31538 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
31540 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
31541 (DECL_STMT_VAR): Likewise.
31543 2004-05-17 Robert Dewar <dewar@gnat.com>
31545 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
31548 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
31549 of restriction synonyums by using
31550 Restrict.Process_Restriction_Synonyms.
31552 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
31554 * s-restri.ads (Tasking_Allowed): Correct missing comment
31556 * s-rident.ads: Add entries for restriction synonyms
31558 * ali.adb: Fix some problems with badly formatted ALI files that can
31559 result in infinite loops.
31561 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
31562 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
31563 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
31564 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
31565 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
31566 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
31567 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
31568 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
31569 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
31570 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
31571 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
31572 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
31573 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
31574 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
31575 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
31576 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
31577 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
31578 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
31579 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
31580 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
31581 to Task_Id (minor cleanup).
31583 2004-05-17 Vincent Celier <celier@gnat.com>
31585 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
31586 directory separator.
31588 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
31589 project being extended, if Languages is not declared in extending
31592 2004-05-17 Javier Miranda <miranda@gnat.com>
31594 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
31595 limited view of a visible sibling.
31597 2004-05-14 Robert Dewar <dewar@gnat.com>
31599 * gnat_ugn.texi: Minor change to -gnatS documentation
31601 * sprint.adb: Remove some instances of Assert (False) and for this
31602 purpose replace them by output of a ??? string.
31604 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
31607 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
31608 flag processing. This was suppressing required dependencies in
31609 No_Run_Time mode and is not needed since the binder does not generate
31610 references for things in libgnat anyway.
31612 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
31615 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
31617 * gnat_ugn.texi: Document AIX-specific issue with initialization of
31620 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
31621 action for the case of an actual parameter in an init proc call.
31623 2004-05-14 Ed Schonberg <schonberg@gnat.com>
31625 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
31626 subtype, check visible entities in base type.
31628 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
31629 actions if the object is a renaming.
31631 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
31632 Check_Formal_Package_Instance, to determine more precisely when the
31633 formal and the actual denote the same entity.
31635 2004-05-14 Javier Miranda <miranda@gnat.com>
31637 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
31639 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
31640 corresponding to a private_with must be removed from visibility; it
31641 will be made visible later, just before we analyze the private part of
31643 (Check_Private_Child_Unit): Allow private_with clauses in public
31645 (Install_Siblings): Make visible the private entities of private-withed
31647 (Install_Withed_Unit): Do not install the private withed unit if we
31648 are compiling a package declaration and the Private_With_OK flag was
31649 not set by the caller. These declarations will be installed later,
31650 just before we analyze the private part of the package.
31652 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
31653 during the evaluation of the expression that initializes the object,
31654 decorate it with the expected type to avoid cascade errors.
31657 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
31658 subprogram we have to install the private_with clauses after its
31659 specification has been analyzed (as documented in AI-262.TXT).
31661 * sem_ch8.adb (Has_Private_With): New function. Determines if the
31662 current compilation unit has a private with on a given entity.
31663 (Find_Direct_Name): Detect the Beaujolais problem described in
31666 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
31667 provides the functionality of the function Is_Ancestor that was
31668 previously available in sem_ch10. It has been renamed to avoid
31671 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
31673 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31675 * utils.c (build_vms_descriptor): Use SImode pointers.
31677 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
31679 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
31681 2004-05-14 GNAT Script <nobody@gnat.com>
31683 * Make-lang.in: Makefile automatically updated
31685 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
31687 Renaming of target specific files for clarity
31689 * Makefile.in: Rename GNAT target specific files.
31691 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
31692 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
31693 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
31694 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
31695 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
31696 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
31697 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
31698 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
31699 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
31700 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
31701 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
31702 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
31703 51osinte.adb, 51osinte.ads, 51system.ads,
31704 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
31705 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
31706 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
31707 56tpopsp.adb, 57system.ads, 58system.ads,
31708 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
31709 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
31710 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
31711 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
31712 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
31713 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
31714 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
31715 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
31716 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
31717 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
31718 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
31719 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
31720 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
31721 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
31722 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
31723 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
31724 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
31725 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
31726 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
31727 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
31728 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
31729 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
31730 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
31731 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
31732 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
31733 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
31734 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
31735 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
31736 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
31737 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
31738 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
31739 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
31740 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
31741 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
31742 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
31743 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
31744 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
31745 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
31746 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
31747 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
31749 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
31750 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
31751 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
31752 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
31753 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
31754 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
31755 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
31756 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
31757 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
31758 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
31759 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
31760 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
31761 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
31762 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
31763 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
31764 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
31765 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
31766 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
31767 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
31768 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
31769 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
31770 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
31771 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
31772 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
31773 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
31774 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
31775 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
31776 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
31777 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
31778 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
31779 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
31780 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
31781 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
31782 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
31783 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
31784 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
31785 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
31786 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
31787 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
31788 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
31789 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
31790 s-osinte-vms.ads, s-osinte-vxworks.adb,
31791 s-osinte-vxworks.ads, s-osprim-mingw.adb,
31792 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
31793 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
31794 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
31795 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
31796 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
31797 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
31798 s-stchop-vxworks.adb, s-taprop-dummy.adb,
31799 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
31800 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
31801 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
31802 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
31803 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
31804 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
31805 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
31806 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
31807 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
31808 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
31809 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
31810 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
31811 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
31812 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
31813 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
31814 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
31815 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
31816 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
31817 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
31818 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
31819 system-irix-o32.ads, system-linux-x86_64.ads,
31820 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
31821 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
31822 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
31823 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
31824 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
31825 system-vxworks-mips.ads, system-vxworks-ppc.ads,
31826 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
31829 2004-05-13 Zack Weinberg <zack@codesourcery.com>
31831 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
31833 2004-05-13 Diego Novillo <dnovillo@redhat.com>
31835 Merge from tree-ssa-20020619-branch.
31837 * config-lang.in (boot_language, build_by_default): Set
31839 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
31840 (max_size): Add static chain op for call_expr.
31842 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
31845 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
31847 2004-05-11 Roger Sayle <roger@eyesopen.com>
31849 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
31852 2004-05-10 Doug Rupp <rupp@gnat.com>
31854 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
31857 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
31859 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
31861 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
31862 Fixes undefined symbols in IA64 gnatlib.
31864 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
31866 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
31867 Short_Address). This will be moved to system.auxdec.
31869 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
31871 * sem_util.adb: Replace test for presence of a node that is always
31872 present with a call to Discard_Node.
31874 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
31875 Analyze on the library unit node after generation of distribution stub
31876 constructs. The call was a no-op because Unit_Node has already been
31877 Analyzed, and the tree fragments for the distribution stubs are
31878 analyzed as they are inserted in Exp_Dist.
31879 Update comment regarding to distribution stubs to reflect that we
31880 do not generate stub in separate files anymore.
31882 * einfo.ads: Clarify the fact that a tagged private type has the
31883 E_Record_Type_With_Private Ekind.
31885 * erroutc.adb: Minor reformatting
31887 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
31888 values if line length is increased using -gnatyM (noticed during code
31891 * eval_fat.adb: Minor reformatting
31892 Put spaces around exponentiation operator
31894 2004-05-10 Ed Schonberg <schonberg@gnat.com>
31897 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
31898 has been rewritten as an explicit dereference, retrieve type of
31899 original node to check for possibly unconstrained record type.
31901 2004-05-10 Ed Schonberg <schonberg@gnat.com>
31903 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
31904 overriding, use the operation of the parent unconditionally.
31906 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
31907 operation when either operand is a literal, to avoid further
31910 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
31911 overridden by a previous explicit declaration, mark the previous entity
31914 * sem_disp.adb (Check_Dispatching_Operation): New predicate
31915 Is_Visibly_Controlled, to determine whether a declaration of a
31916 primitive control operation for a derived type overrides an inherited
31917 one. Add warning if the explicit declaration does not override.
31919 2004-05-10 Vincent Celier <celier@gnat.com>
31921 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
31922 some cases when the sources are no longer present.
31924 * make.adb (Collect_Arguments): Fail if an external source, not part
31925 of any project need to be compiled, when switch -x has not been
31928 * makeusg.adb: Document new switch -x
31930 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
31931 defaulted to False.
31933 * switch-m.adb (Scan_Make_Switches): New switch -x
31935 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
31936 gnatmake switch -x.
31938 * gnat_ugn.texi: Document new gnatmake switch -x
31940 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
31942 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
31944 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
31945 (process_attributes): Likewise.
31947 2004-05-10 Joel Brobecker <brobecker@gnat.com>
31949 * s-inmaop.ads: Fix spelling mistake in one of the comments.
31951 2004-05-10 Robert Dewar <dewar@gnat.com>
31953 * gnat_ugn.texi: Document that for config pragma files, the maximum
31954 line length is always 32767.
31956 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
31957 literals is now allowed.
31959 * gnat-style.texi: Remove statement about splitting long lines before
31960 an operator rather than after, since we do not follow this rule at all.
31961 Clarify rule (really lack of rule) for spaces around exponentiation
31963 * sem_elim.adb: Allow concatenation of string literals as well as a
31964 single string literal for pragma arguments.
31966 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
31968 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
31969 written for append case.
31971 * frontend.adb: Changes to avoid checking max line length in config
31974 * g-os_lib.ads: Minor reformatting
31976 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
31977 wrong in any case. Instead use standard value. Noticed during code
31980 * opt.ads (Max_Line_Length): New field, used to implement removal of
31981 limitation on length of lines when scanning config pragma files.
31983 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
31984 makeutl.ads, makeutl.adb: Minor reformatting
31986 * scn.adb: Do not check line length while scanning config pragma files
31987 Do not check line length while scanning out license information
31989 * scng.adb: Changes to avoid line length checks while parsing config
31992 2004-05-10 GNAT Script <nobody@gnat.com>
31994 * Make-lang.in: Makefile automatically updated
31996 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
31998 * osint.adb (Find_Program_Name): Fix handling of VMS version
32001 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
32003 * g-os_lib.ads (Invalid_Time): New constant
32005 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
32006 return OS_Time instead of time_t to match what is imported by Ada.
32007 Now return -1 if the file doesn't exist, instead of a random value
32009 2004-05-05 Robert Dewar <dewar@gnat.com>
32011 * usage.adb: Add line for -gnatR?s switch
32013 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
32015 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
32016 and for Match (Data_First, Data_last)
32018 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
32019 written when we are dealing with multi-unit files.
32021 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
32023 * Makefile.in: Remove unused targets and variables.
32025 2004-05-05 Vincent Celier <celier@gnat.com>
32027 * switch-m.adb: New gnatmake switch -eI
32029 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
32030 of new gnatmake switch -eInnn.
32032 * makegpr.adb: Take into account new parameters Index and Src_Index in
32035 * clean.adb: Implement support for multi-unit sources, including new
32038 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
32041 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
32042 (Extract_From_Q): New out parameter Index
32043 (Mark, Is_Marked): Subprograms moved to Makeutl
32044 (Switches_Of): New parameter Source_Index
32045 (Add_Switch): New parameter Index
32046 (Check): New parameter Source_Index
32047 (Collect_Arguments): New parameter Source_Index
32048 (Collect_Arguments_And_Compile): New parameter Source_Index
32049 (Compile): New parameter Source_Index
32050 Put subprograms in alphabetical order
32051 Add support for multi-source sources, including in project files.
32053 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
32054 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
32057 * makeusg.adb: New gnatmake switch -eInnn
32059 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
32062 * opt.ads (Main_Index): New variable, defaulted to 0.
32064 * osint.ads, osinte.adb (Add_File): New parameter Index
32065 (Current_Source_Index): New function
32067 * prj.adb: Take into account new components Index and Src_Index
32069 * prj.ads (String_Element): New component Index
32070 (Variable_Value): New component Index
32071 (Array_Element): New component Src_Index
32073 * prj-attr.adb: Indicate that optional index may be specified for
32074 attributes Main, Executable, Spec, Body and some of Switches.
32076 * prj-attr.ads (Attribute_Kind): New values for optional indexes
32077 (Attribute_Record): New component Optional_Index
32079 * prj-com.ads (File_Name_Data): New component Index
32081 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
32083 * prj-env.adb (Put): Output optional index
32085 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
32086 attributes Spec and Body.
32088 * prj-nmsc.adb: Process optional indexes
32090 * prj-pp.adb: Ouput "at" for optional indexes
32092 * prj-proc.adb: Take into account optional indexes
32094 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
32095 Optional_Index. For string literal,
32096 process optional index when Optional_Index is True.
32097 (Parse_Expresion): New Boolean parameter Optional_Index
32099 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
32100 (Set_Source_Index_Of): New procedure
32102 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
32105 * prj-util.ads (Executable_Of): New parameter Index
32106 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
32107 New parameter Src_Index, defaulted to 0.
32109 2004-05-05 Ed Schonberg <schonberg@gnat.com>
32112 * sem_ch3.adb (Access_Definition): If this is an access parameter
32113 whose designated type is imported through a limited_with clause, do
32114 not add the enclosing subprogram to the list of private dependents of
32117 2004-05-05 Ed Schonberg <schonberg@gnat.com>
32120 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
32121 a limited_with clause, and the other is its non-limited view.
32123 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
32125 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
32127 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
32128 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
32129 Stand.Boolean_Literals to produce references to entities
32130 Standard_False and Standard_True from compile-time computed boolean
32133 * stand.ads (Boolean_Literals): New variable, provides the entity
32134 values for False and True, for use by the expander.
32136 2004-05-05 Doug Rupp <rupp@gnat.com>
32138 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
32139 5vinmaop.adb: Unchecked convert Short_Address vice Address
32141 * adaint.c, raise.c: Caste CRTL function return value
32142 to avoid gcc error on 32/64 bit IVMS.
32144 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
32147 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
32149 * 5qsystem.ads (Address): Declare as Long_Integer
32150 (Short_Address): Declare as 32 bit subtype of Address
32151 Declare abstract address operations to avoid gratuitous ambiguities.
32153 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
32155 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
32156 instead of the old Boolean_Entry_Barriers.
32157 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
32159 2004-05-05 GNAT Script <nobody@gnat.com>
32161 * Make-lang.in: Makefile automatically updated
32163 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
32165 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
32167 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
32170 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
32171 alone. Replacing object references by literals is inappropriate in a
32172 so low level context.
32174 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
32176 * a-exexpr.adb: Add comments
32178 2004-05-03 Joel Brobecker <brobecker@gnat.com>
32180 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
32181 declare the Ancestor_Tags array in Type_Specific_Data with a small size
32182 without risking a bounds check error when accessing one of its
32184 (Type_Specific_Data): Define Ancestor_Tags as a small array.
32185 This prevents us from hitting a limitation during the debug info
32186 generation when using stabs.
32188 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
32190 This prevents us from hitting a limitation during the debug info
32191 generation when using stabs.
32193 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
32195 lang-specs.h: Remove -gnatz* from specs.
32197 2004-05-03 Vincent Celier <celier@gnat.com>
32199 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
32201 * Make-lang.in, Makefile.in: Add gprmake
32203 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
32205 * sem_aggr.adb: Fix typo in comment.
32207 2004-05-03 Robert Dewar <dewar@gnat.com>
32209 * make.adb: Minor reformatting
32211 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
32213 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
32214 so that it works when address is not a private type.
32216 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
32217 properly with rewritten unchecked conversions. This prevents
32218 order-of-elaboration issues that can otherwise arise.
32219 (Minimum_Size): Don't check size of access types under VMS
32221 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
32222 interpretations of integer literals as type System.Address.
32224 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
32225 (Is_Descendent_Of): New function
32227 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
32229 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
32230 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
32231 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
32233 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
32234 of the old Max_Entry_Queue_Depth.
32236 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
32237 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
32238 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
32240 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
32241 New entry for proper handling of Max_Entry_Queue_Depth.
32242 New entry for proper handling of No_Dynamic_Interrupts.
32244 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
32245 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
32246 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
32247 the GNAT specific restriction Max_Entry_Queue_Depth.
32248 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
32249 the GNAT specific restriction No_Dynamic_Interrupts.
32251 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
32252 instead of the old Boolean_Entry_Barriers.
32253 Use the new restriction No_Dynamic_Attachment instead of the old
32254 No_Dynamic_Interrupts.
32256 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
32257 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
32259 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
32260 of the old Max_Entry_Queue_Depth.
32262 2004-05-03 GNAT Script <nobody@gnat.com>
32264 * Make-lang.in: Makefile automatically updated
32266 2004-04-29 Ed Schonberg <schonberg@gnat.com>
32268 * checks.adb (Enable_Range_Check): If the prefix of an index component
32269 is an access to an unconstrained array, perform check unconditionally.
32271 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32273 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
32276 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
32278 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
32279 alternate stack setting. There was no support for the tasking cases
32280 and the changes eventually caused a number of side-effect failures in
32281 the non-tasking case too.
32283 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
32285 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
32288 2004-04-29 Vincent Celier <celier@gnat.com>
32290 * make.adb (Gnatmake): Increase max size of argument array for
32291 gnatbind for the potential addition of -F.
32292 If there are Stand-Alone Library projects, invoke gnatbind with -F to
32293 be sure that elaboration flags will be checked.
32295 * switch-c.adb: Correct call to Scan_Pos for -gnateI
32297 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
32299 * sem_warn.adb (Check_References): Move '<access-variable> may be
32300 null' warning out of under Warn_On_No_Value_Assigned.
32302 2004-04-29 Ed Falis <falis@gnat.com>
32304 * gnat_ugn.texi: Fixed texi error
32306 2004-04-29 Robert Dewar <dewar@gnat.com>
32308 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
32309 abstract operations if they come from predefined files.
32311 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
32314 * s-addope.adb: Correct obvious error in mod function
32316 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
32318 * Makefile.in: Add target pairs for powerpc darwin*
32321 * a-intnam-darwin.ads, s-osinte-darwin.adb,
32322 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
32324 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
32326 * Makefile.in: Add target macro definitions for s390*-linux*.
32327 * system-linux-s390.ads: New file.
32328 * system-linux-s390x.ads: New file.
32330 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
32332 * gnat_ugn.texi: Correct argument to @setfilename.
32334 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
32336 * a-exexpr.adb (Unwind_Word): New data type.
32337 (Unwind_Exception): Use it as type of Private1 and Private2.
32339 * raise.c (db_action_for): Fix debug printf.
32341 2004-04-27 Ed Schonberg <schonberg@gnat.com>
32343 * a-wtmoio.ads: Formal type must be a modular type, not a signed
32346 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32348 * decl.c (gnat_to_gnu_entity, case object): Call
32349 __builtin_update_setjmp_buf.
32351 * gigi.h (update_setjmp_buf): Deleted.
32352 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
32354 * misc.c: (update_setjmp_buf): Deleted.
32356 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
32357 around block of RTL.
32359 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
32361 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
32363 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
32364 subprogram for which no pragma All_Calls_Remote applies, store the
32365 address of the real subprogram in the underlying record type, so local
32366 dereferences do not go through the PCS.
32368 2004-04-26 Robert Dewar <dewar@gnat.com>
32370 * i-c.ads: Add some type qualifications to avoid ambiguities when
32371 compiling with s-auxdec.ads and a non-private address type.
32373 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
32375 * Makefile.rtl: Fix error in previous check-in:
32376 Add s-addope.o to non tasking object list (rather than tasking object
32379 2004-04-26 Javier Miranda <miranda@gnat.com>
32381 * sem_aggr.adb: Fix typo in comments
32382 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
32383 Required to check the null-exclusion attribute.
32385 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
32386 case of anonymous access types in record and array components. For a
32387 component definition the level is the same of the enclosing composite
32390 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
32391 that are anonymous access types the level of accessibility depends on
32392 the enclosing type declaration. In order to have this information, set
32393 the scope of the anonymous access type to the enclosing record type
32395 (Array_Type_Declaration): In case of components that are anonymous
32396 access types the level of accessibility depends on the enclosing type
32397 declaration. In order to have this information, set the scope of the
32398 anonymous access type to the enclosing array type declaration.
32400 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
32403 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
32404 renaming of anonymous access-to-constant types allowed if and only if
32405 the renamed object is access-to-constant.
32407 * sem_util.adb (Type_Access_Level): In case of anonymous access types
32408 that are component_definition or discriminants of a nonlimited type,
32409 the level is the same as that of the enclosing component type.
32411 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
32413 * sem_elim.adb: Some minor code reorganization from code reading. Fix
32414 misprint in the function name (File_Name_Match).
32416 2004-04-23 Laurent Guerby <laurent@guerby.net>
32418 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
32421 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
32423 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
32425 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
32427 * adaint.c (__gnat_try_lock): No longer requires that the parent
32428 directory be writable, the directory itself is enough.
32429 (gnat_is_absolute_path): Change profile, so that the call from
32430 GNAT.OS_Lib can be made more efficient.
32432 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
32433 from GNAT.OS_Lib can be made more efficient.
32435 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
32436 one copy of the file name. Found by code reading.
32438 2004-04-23 Vincent Celier <celier@gnat.com>
32440 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
32441 Correct documentation on gnatmake switches transmitted to the compiler
32443 * ali.ads: Minor comment fix
32445 2004-04-23 Javier Miranda <miranda@gnat.com>
32447 * sem_ch6.adb: (Confirming Types): Code cleanup
32449 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
32450 subprogram types: E_Anonymous_Access_Subprogram_Type and
32451 E_Anonymous_Access_Protected_Subprogram_Type.
32453 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
32455 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
32456 whether a pragma All_Calls_Remote applies to the subprogram on which
32458 No functional change is introduced by this revision; the new parameter
32459 will be used to allow calls to local RCI subprograms to be optimized
32460 to not use the PCS in the case where no pragma All_Calls_Remote applies,
32461 as is already done in the PolyORB implementation of the DSA.
32463 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
32464 whether a pragma All_Calls_Remote applies to the subprogram on which
32466 No functional change is introduced by this revision; the new parameter
32467 will be used to allow calls to local RCI subprograms to be optimized
32468 to not use the PCS in the case where no pragma All_Calls_Remote applies,
32469 as is already done in the PolyORB implementation of the DSA.
32471 2004-04-23 Robert Dewar <dewar@gnat.com>
32473 * Makefile.rtl: Add entry for s-addope.o in run time library list
32474 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
32475 * s-addope.ads, s-addope.adb: New files.
32477 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
32478 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
32479 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
32480 System.Address to be non-private and signed.
32482 * sem_elim.adb: Minor reformatting (fairly extensive)
32483 Some minor code reorganization from code reading
32484 Add a couple of ??? comments
32486 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32488 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
32489 (tree_transform, case N_If_Statement): Remove non-determinism.
32491 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
32493 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
32495 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
32496 Eliminate' section.
32498 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
32499 no longer used as a parameter name for Eliminate pragma).
32501 2004-04-22 Laurent Guerby <laurent@guerby.net>
32503 PR optimization/14984
32504 PR optimization/14985
32505 * trans.c (gigi): Fix non determinism leading to bootstrap
32506 comparison failures.
32508 2004-04-21 Pascal Obry <obry@gnat.com>
32510 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
32511 passed to spawnvp() to properly handle program pathname with spaces on
32514 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
32516 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
32517 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
32518 unlocked in case of exceptions.
32520 2004-04-21 Joel Brobecker <brobecker@gnat.com>
32522 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
32523 This function does not exist anymore.
32525 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
32527 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
32529 * link.c: Move variables to the __gnat name space.
32531 * Makefile.in: list link.o explicitly when needed.
32533 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
32535 2004-04-21 Javier Miranda <miranda@gnat.com>
32537 * einfo.adb (Original_Access_Type): New subprogram
32538 (Set_Original_Access_Type): New subprogram
32539 (Write_Field21_Name): Write the name of the new field
32541 * einfo.ads (Original_Access_Type): New field present in access to
32543 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
32544 E_Anonymous_Access_Protected_Subprogram_Type.
32546 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
32549 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
32550 to anonymous access to subprogram types.
32552 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
32553 to subprogram types.
32555 * sem_ch3.adb (Access_Definition): Complete decoration of entities
32556 corresponding to anonymous access to subprogram types.
32557 (Analyze_Component_Declaration): Add new actual to the call to
32558 subprogram replace_anonymous_access_to_protected_subprogram.
32559 (Array_Type_Declaration): Add new actual to the call to subprogram
32560 replace_anonymous_access_to_protected_subprogram.
32561 (Process_Discriminants): Add new actual to the call to subprogram
32562 replace_anonymous_access_to_protected_subprogram.
32563 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
32565 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
32568 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
32569 access to subprogram types.
32571 * sem_util.adb (Has_Declarations): Addition of package_specification
32574 2004-04-21 Ed Schonberg <schonberg@gnat.com>
32576 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
32577 inlined flags to renamed entity only if in current unit.
32579 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
32581 * s-parint.ads: Add DSA implementation marker.
32583 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
32584 value of System.Partition_Interface.DSA_Implementation to determine
32585 what version of the distributed systems annex is available (no
32586 implementation, GLADE, or PolyORB).
32588 2004-04-21 Joel Brobecker <brobecker@gnat.com>
32590 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
32592 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32594 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
32595 with new type if alias sets differ.
32596 Fixes ACATS c41103b.
32598 2004-04-21 Vincent Celier <celier@gnat.com>
32600 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
32601 Add array Lang_Args for the language specific compiling argument
32604 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
32606 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
32608 * gnat_rm.texi: Update the descripton of the Eliminate pragma
32609 according to the recent changes in the format of the parameters of the
32610 pragma (replacing Homonym_Number with Source_Location).
32612 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
32614 * 5isystem.ads: Removed, unused.
32616 * gnat_rm.texi: Redo 1.13 change.
32618 2004-04-19 Robert Dewar <dewar@gnat.com>
32620 * s-stoele.ads: Clean up definition of Storage_Offset (the new
32621 definition is cleaner, avoids the kludge of explicit Standard operator
32622 references, and also is consistent with a visible System.Address with
32623 no visible operations.
32625 * s-geveop.adb: Add declarations to avoid assumption of visible
32626 operations on type System.Address (since these might not be available
32627 if Address is a non-private type for which the operations
32628 are made abstract).
32630 * sem_eval.adb: Minor reformatting
32632 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
32633 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
32634 reformatting (new function spec format).
32636 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
32637 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
32638 s-caun64.adb: Add declarations to avoid assumption of visible
32639 operations on type System.Address (since these might not be available
32640 if Address is a non-private type for which the operations are made
32643 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
32645 * exp_intr.adb: Minor comment update
32647 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
32649 * 5omastop.adb: Add declarations to avoid assumption of visible
32650 operations on type System.Address (since these might not be available
32651 if Address is a non-private type for which the operations
32652 are made abstract).
32654 2004-04-19 Vincent Celier <celier@gnat.com>
32656 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
32658 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
32661 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
32663 Call Check with Process_Languages.
32664 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
32665 with Process_Languages.
32666 (Recursive_Check): New Boolean parameter Process_Languages. Call
32667 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
32670 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
32672 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
32673 parameter Ada_Main, defaulted to True.
32674 Check for Ada specific characteristics only when Ada_Main is True.
32676 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
32678 * prj.adb: (Project_Empty): Add new Project_Data components.
32680 * prj.ads: New types and tables for non Ada languages.
32681 (Project_Data): New components Languages, Impl_Suffixes,
32682 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
32683 Include_Path, Include_Data_Set.
32685 * prj-env.ads, prj-env.adb: Minor reformatting
32687 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
32688 Put subprograms in alphabetical order
32690 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
32691 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
32694 * mlib-prj.adb: Back out modification in last version, as they are
32696 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
32698 * make.adb: (Mains): Moved to package Makeutl
32699 (Linker_Opts): Moved to package Makeutl
32700 (Is_External_Assignment): Moved to package Makeutl
32701 (Test_If_Relative_Path): Moved to package Makeutl
32702 (Gnatmake): Move sorting of linker options to function
32703 Makeutl.Linker_Options_Switches.
32705 * makeutl.ads, makeutl.adb: New files.
32707 * Makefile.in: Add makeutl.o to the object files for gnatmake
32709 * makeusg.adb: Add line for new switch -eL.
32711 * gnatls.adb (Image): New function.
32712 (Output_Unit): If in verbose mode, output the list of restrictions
32713 specified by pragmas Restrictions.
32715 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
32718 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
32719 needed, to put it in the range 1970 (included) - 2026 (excluded).
32720 (Time_Of): Do not shift Unix_Min_Year (1970).
32721 Shift the date by multiple of 56 years, if needed, to put it in the
32722 range 1970 (included) - 2026 (excluded).
32724 * adaint.h, adaint.c (__gnat_set_executable): New function.
32726 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32728 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
32729 and pop GC context.
32730 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
32731 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
32732 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
32733 (tree_transform, case N_Code_Statement): Likewise.
32734 (gnat_expand_stmt, case LABEL_STMT): Don't look at
32735 LABEL_STMT_FIRST_IN_EH.
32736 (gnat_expand_stmt, case ASM_STMT): New case.
32738 * utils2.c (build_unary_op): Properly set TREE_READONLY of
32739 UNCONSTRAINED_ARRAY_REF.
32741 * utils.c (poplevel): Temporarily push/pop GC context around inline
32742 function expansion.
32744 * decl.c (maybe_variable): Properly set TREE_READONLY of
32745 UNCONSTRAINED_ARRAY_REF.
32746 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
32748 * ada-tree.def: (ASM_STMT): New.
32750 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
32751 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
32752 ASM_STMT_INPUT): New.
32753 (ASM_STMT_CLOBBER): Likewise.
32755 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
32757 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
32758 general rcheck mechanism to raise Program_Error for E.4(18), instead
32759 of a custom raiser in System.Partition_Interface.
32760 Part of general cleanup work before PolyORB integration.
32762 * snames.ads, snames.adb: Add new runtime library entities and names
32765 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
32767 (Build_Subprogram_Id): New subprogram provided by exp_dist
32768 Code reorganisation in preparation for PolyORB integration.
32770 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
32772 (Build_Subprogram_Id): New subprogram provided by exp_dist
32774 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
32775 actual parameter types for call to dereference of an
32776 access-to-subprogram type.
32778 * rtsfind.ads: Add new runtime library entities and names for PolyORB
32781 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
32782 instead, which has the same behaviour here since we never pass it a
32785 * link.c (run_path_option, Solaris case): Use -Wl, as for other
32788 * Makefile.in: adjust object file lists for gnatlink and gnatmake
32789 to account for new dependency upon Interfaces.C.Strings + link.o
32790 For x86 FreeBSD, use 86numaux.
32792 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
32793 from Mlib.Tgt to Mlib.
32795 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
32796 target-independent.
32798 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
32799 target-specific versions of this subprogram, now implemented as a
32800 target-independent function in Mlib.
32802 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
32803 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
32804 (Linker_Library_Path_Option): Remove target-specific versions of this
32805 subprogram, now implemented as a target-independent function in Mlib.
32807 * atree.adb: (Allocate_Initialize_Node): New subprogram.
32808 Factors out node table slots allocation.
32809 (Fix_Parents): New subprogram.
32810 Encapsulate the pattern of fixing up parent pointers for syntactic
32811 children of a rewritten node.
32812 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
32813 (Rewrite): Use New_Copy when creating saved copy of original node.
32814 (Replace): Use Copy_Node to copy nodes.
32816 2004-04-19 Javier Miranda <miranda@gnat.com>
32818 * sprint.adb (Sprint_Node_Actual): Give support to the new
32819 Access_To_Subprogram node available in Access_Definition nodes. In
32820 addition, give support to the AI-231 node fields: null-exclusion,
32821 all-present, constant-present.
32823 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
32825 * sinfo.ads, sinfo.adb:
32826 New field Access_To_Subprogram_Definition in Access_Definition nodes
32828 * sem_ch6.adb (Process_Formals): Move here the code that creates and
32829 decorates internal subtype declaration corresponding to the
32830 null-excluding formal. This code was previously in Set_Actual_Subtypes.
32831 In addition, carry out some code cleanup on this code. In case of
32832 access to protected subprogram call
32833 Replace_Anonymous_Access_To_Protected_Subprogram.
32834 (Set_Actual_Subtypes): Code cleanup.
32836 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
32837 Find_Type in case of anonymous access renamings. Add warning in case of
32838 null-excluding attribute used in anonymous access renaming.
32840 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
32843 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
32845 (Access_Definition): In case of anonymous access to subprograms call
32846 the corresponding semantic routine to decorate the node.
32847 (Access_Subprogram_Declaration): Addition of some comments indicating
32848 some code that probably should be added here. Detected by comparison
32849 with the access_definition subprogram.
32850 (Analyze_Component_Declaration): In case of access to protected
32851 subprogram call Replace_Anonymous_Access_To_Protected.
32852 (Array_Type_Declaration): In case of access to protected subprogram call
32853 Replace_Anonymous_Access_To_Protected_Subprogram.
32854 (Process_Discriminants): In case of access to protected subprogram call
32855 Replace_Anonymous_Access_To_Protected_Subprogram.
32857 * par.adb (P_Access_Definition): New formal that indicates if the
32858 null-exclusion part was present.
32859 (P_Access_Type_Definition): New formal that indicates if the caller has
32860 already parsed the null-excluding part.
32862 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
32863 (P_Identifier_Declarations): Code cleanup and give support to renamings
32864 of anonymous access to subprogram types.
32865 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
32866 (P_Array_Type_Definition): Give support to AI-254.
32867 (P_Component_Items): Give support to AI-254.
32868 (P_Access_Definition): New formal that indicates if the header was
32869 already parsed by the caller.
32870 (P_Access_Type_Definition): New formal that indicates if the caller has
32871 already parsed the null-excluding part.
32873 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
32874 call to P_Access_Definition.
32876 2004-04-19 Geert Bosch <bosch@gnat.com>
32878 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
32879 the delicate semantics of floating-point to integer conversion.
32880 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
32882 * eval_fat.adb (Machine_Mantissa): Moved to spec.
32883 (Machine_Radix): New function.
32885 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
32887 (Machine_Radix): New function also for use in conversion checks.
32889 2004-04-19 Ed Schonberg <schonberg@gnat.com>
32891 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
32893 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
32894 to decorate the access-to-protected subprogram and the equivalent type.
32896 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
32897 to anonymous access to subprogram types.
32899 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
32900 constant-folding, for legality checks in contexts that require an RM
32903 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
32904 temporary but stack checking is not enabled, increment serial number
32905 to so that symbol generation is consistent with and without stack
32908 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
32909 independent on whether stack checking is enabled, caller must check
32910 the corresponding flag.
32912 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
32914 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
32915 parent if it has discriminants.
32916 (Build_Derived_Private_Type): Constructed full view does
32917 not come from source.
32918 (Process_Discriminants): Default discriminants on a tagged type are
32919 legal if this is the internal completion of a private untagged
32922 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
32923 no constraint checks, because it corresponds to an existing object.
32925 * sem_prag.adb (Process_Convention): Pragma applies
32926 only to subprograms in the same declarative part, i.e. the same unit,
32927 not the same scope.
32929 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
32930 ignore type mismatch on a numeric conversion if expression comes from
32933 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
32935 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
32936 Homonym_Number parameter, add processing for Source_Location parameter
32938 (Check_Eliminated): Remove the check for homonym numbers, add the check
32939 for source location traces.
32941 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
32942 with Arg_Source_Location corresponding to the changes in the format of
32945 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
32946 Eliminate pragma corresponding to the changes in the format of the
32947 pragma: Homonym_Number is replaced with Source_Location, two ways of
32948 distinguishing homonyms are mutially-exclusive.
32950 2004-04-19 Joel Brobecker <brobecker@gnat.com>
32952 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
32954 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
32955 No_Dollar_In_Label, no longer necessary, as it is always True.
32956 (Strip_Suffixes): Likewise.
32958 2004-04-19 Gary Dismukes <dismukes@gnat.com>
32960 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
32961 modulus for compatibility with size clause on targets with 16-bit
32964 * layout.adb (Discrimify): In the case of private types, set Vtyp to
32965 full type to fix type mismatches on calls to size functions for
32966 discriminant-dependent array components.
32968 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
32970 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
32973 2004-04-19 Pascal Obry <obry@gnat.com>
32975 * mdll-utl.adb (Locate): New version is idempotent.
32977 2004-04-17 Laurent Guerby <laurent@guerby.net>
32979 PR ada/14988 (partial)
32980 * impunit.adb: Fix typo.
32982 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
32984 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
32985 and install-rts-cert targets. Remove all gnatlib and gnattools
32986 targets and all other rts-* targets (moved to libada). Remove (now)
32987 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
32988 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
32990 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32992 * trans.c (tree_transform): Shortcut returning error_mark_node for
32993 statements in annotate_only_mode.
32994 (tree_transform, case N_Label, case N_Return_Statement,
32995 N_Goto_Statement): Make statement tree instead of generating code.
32996 (tree_transform, case N_Assignment_Statement): No longer check
32997 type_annotate_only.
32998 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
33000 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
33002 (gnat_to_gnu): Collect any RTL generated and deal with it.
33003 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
33004 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
33005 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
33007 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
33009 * ada-tree.def (EXPR_STMT): Fix typo in name.
33010 (BLOCK_STMT, IF_STMT): New nodes.
33012 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
33013 LABEL_STMT_FIRST_IN_EH): New macros.
33014 (RETURN_STMT_EXPR): Likewise.
33016 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
33017 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
33019 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
33021 * atree.ads: Correct documentation on extended nodes.
33023 * link.c: Set run_path_option for FreeBSD.
33025 2004-04-08 Vincent Celier <celier@gnat.com>
33027 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
33028 one of the ALI file, do not link with DEC lib.
33030 * par.adb Remove the last two characters ("%s" or "%b") when checking
33031 if a language defined unit may be recompiled.
33033 2004-04-08 Ed Schonberg <schonberg@gnat.com>
33035 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
33036 removal of abstract operation leaves no possible interpretation for
33039 * sem_eval.adb (Eval_Qualified_Expression): Use
33040 Set_Raises_Constraint_Error on node when needed, so that it does not
33041 get optimized away by subsequent optimizations.
33043 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
33044 operands even when they are not wrapped in a type conversion.
33046 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
33048 * sem_prag.adb (Set_Exported): Warn about making static as result of
33049 export only when the export is coming from source. This may be not
33050 be true e.g. on VMS where we expand export pragmas for exception codes
33051 together with imported or exported exceptions, and we don't want the
33052 user to be warned about something he didn't write.
33054 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
33056 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
33057 duplication between normal entities and those declared as renamings.
33058 No functional change.
33060 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
33061 inline functions returning an unconstrained result.
33063 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
33065 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
33066 conform to what other front-ends do.
33068 2004-04-08 Doug Rupp <rupp@gnat.com>
33070 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
33073 2004-04-06 Pascal Obry <obry@gnat.com>
33075 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
33077 * osint.adb (Program_Name): Do not look past a directory separator.
33079 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
33081 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
33083 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
33084 requirement for preserving a copy of the original assignment node.
33086 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
33088 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
33090 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
33093 2004-04-06 Ed Schonberg <schonberg@gnat.com>
33095 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
33096 operator calls in functional notation, and apply
33097 Universal_Interpretation to operands, not to their type.
33099 2004-04-06 Robert Dewar <dewar@gnat.com>
33101 * 5wdirval.adb: Minor reformatting
33103 2004-04-06 Ed Falis <falis@gnat.com>
33105 * gnat_rm.texi: Improve a reference to the GCC manual
33107 2004-04-05 Vincent Celier <celier@gnat.com>
33109 * adaint.h, adaint.c: Add function __gnat_named_file_length
33111 * impunit.adb: Add Ada.Directories to the list
33113 * Makefile.in: Add VMS and Windows versions of
33114 Ada.Directories.Validity package body.
33116 * Makefile.rtl: Add a-direct and a-dirval
33118 * mlib-tgt.ads: Minor comment update.
33120 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
33121 a-direct.ads, a-direct.adb: New files.
33123 2004-04-05 Vincent Celier <celier@gnat.com>
33126 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
33127 just to the compiler.
33129 2004-04-05 Robert Dewar <dewar@gnat.com>
33131 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
33132 returned string is 1.
33134 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
33136 * eval_fat.ads: Minor reformatting
33138 * g-curexc.ads: Document that lower bound of returned string values
33141 * gnatlink.adb: Add ??? comment for previous change
33142 (need to document why this is VMS specific)
33144 * s-stoele.ads: Minor reformatting
33146 * tbuild.ads: Minor reformatting throughout (new function specs)
33148 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
33151 * scng.adb: Minor reformatting
33153 2004-04-05 Geert Bosch <bosch@gnat.com>
33155 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
33156 (Leading_Part): Still perform truncation to machine number if the
33157 specified radix_digits is greater or equal to machine_mantissa.
33159 2004-04-05 Javier Miranda <miranda@gnat.com>
33161 * par-ch3.adb: Complete documentation of previous change
33162 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
33163 (aliased must appear before constant).
33165 * par-ch4.adb: Complete documentation of previous change.
33167 * par-ch6.adb: Complete documentation of previous change.
33169 * sinfo.ads: Fix typo in commment.
33171 2004-04-05 Ed Schonberg <schonberg@gnat.com>
33173 * sem_ch3.adb (Inherit_Components): If derived type is private and has
33174 stored discriminants, use its discriminants to constrain parent type,
33175 as is done for non-private derived record types.
33177 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
33178 Ada 2005 AI-310: an abstract non-dispatching operation is not a
33179 candidate interpretation in an overloaded call.
33181 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
33182 expression is Null and target type is not an access type (e.g. a
33183 non-private address type).
33185 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
33187 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
33188 statement whose right-hand side is an inlined call, save a copy of the
33189 original assignment subtree to preserve enough consistency for
33190 Analyze_Assignment to proceed.
33192 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
33193 complete assignment subtree which is now unnecessary, as the expansion
33194 of inlined call has been improved to preserve a consistent assignment
33195 tree. Note_Possible_Modification must be called only
33196 after checks have been applied, or else unnecessary checks will
33199 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
33200 of explicit dereferences that do not Come_From_Source:
33201 - be selective on cases where we must go back to the dereferenced
33202 pointer (an assignment to an implicit dereference must not be
33203 recorded as modifying the pointer);
33204 - do not rely on Original_Node being present (Analyze_Assignment
33205 calls Note_Possible_Modification on a copied tree).
33207 * sem_warn.adb (Check_References): When an unset reference to a pointer
33208 that is never assigned is encountered, prefer '<pointer> may be null'
33209 warning over '<pointer> is never assigned a value'.
33211 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
33213 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
33216 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
33218 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
33219 libexc. We currently don't reference anything in this library and
33220 linking it in triggers linker warnings we don't want to see.
33222 * init.c: Update comments.
33224 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33226 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
33227 * utils.c (create_field_decl): Likewise.
33228 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
33230 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
33232 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
33233 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
33234 Add info directory entry and category.
33236 2004-04-02 Jan Hubicka <jh@suse.cz>
33238 * utils.c: Include function.h
33239 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
33241 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
33244 * Make-lang.in: Clean up generation of documentation
33246 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
33248 * xgnatug.adb: Removed, replaced by xgnatugn.adb
33250 * xgnatugn.adb: Replaces xgnatug.adb
33252 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
33254 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
33256 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
33257 gnat_ug_wnt.texi: Removed.
33259 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
33261 * utils2.c: Update copyright notice.
33263 2004-04-01 Robert Dewar <dewar@gnat.com>
33265 * checks.adb: Minor reformatting throughout
33266 Note that prev checkin added RM reference to alignment warning
33268 2004-04-01 Ed Schonberg <schonberg@gnat.com>
33270 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
33271 non-static when building aggregate for bit-packed array.
33273 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
33274 function call that is itself the actual in a procedure call, build
33277 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
33278 a string literal, create a temporary for it, constant folding only
33279 handles scalars here.
33281 2004-04-01 Vincent Celier <celier@gnat.com>
33283 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
33284 Error_Msg_SP): New empty procedures to instantiate the Scanner.
33285 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
33287 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
33288 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
33289 and get the checksum.
33291 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
33293 Increase the Marking_Label at the end of the Multiple_Main_Loop,
33294 instead of at the beginning.
33296 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
33298 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
33301 * osint.ads (Multi_Unit_Index_Character): New Character global variable
33303 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
33306 * par.adb: Remove test on file name to detect language defined units.
33307 Add test on unit name, after parsing, to detect language defined units
33308 that are not compiled with -gnatg (except System.RPC and its children)
33310 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
33311 following units without style checking.
33313 * switch-c.adb: Change -gnatC to -gnateI
33315 * usage.adb: Document new switch -gnateInnn
33317 * scng.adb (Accumulate_Token_Checksum): New procedure
33318 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
33319 word or literal number.
33320 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
33323 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
33326 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
33327 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
33328 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
33329 5vtpopde.adb: Add missing 'constant' keywords.
33331 2004-04-01 Javier Miranda <miranda@gnat.com>
33333 * par-ch4.adb: (P_Allocator): Code cleanup
33335 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
33338 * sinfo.ads: Complete documentation of previous change
33340 2004-04-01 Pascal Obry <obry@gnat.com>
33342 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
33343 only on VMS. This special handling was done because an old GNU/ld bug
33344 on Windows which has been fixed.
33346 2004-04-01 GNAT Script <nobody@gnat.com>
33348 * Make-lang.in: Makefile automatically updated
33350 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33352 * decl.c (gnat_to_gnu_entity, make_type_from_size):
33353 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
33354 * trans.c (tree_transform, convert_with_check): Likewise.
33355 * utils.c (gnat_signed_or_unsigned_type): Likewise.
33356 (build_vms_descriptor, unchecked_convert): Likewise.
33357 * utils2.c (nonbinary_modular_operation): Likewise.
33359 2004-03-29 Javier Miranda <miranda@gnat.com>
33361 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
33362 (Install_Null_Excluding_Check): Local subprogram that determines whether
33363 an access node requires a runtime access check and if so inserts the
33364 appropriate run-time check.
33365 (Apply_Access_Check): Call Install_Null_Excluding check if required
33366 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
33368 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
33370 * einfo.ads: Fix typo in comment
33372 * exp_ch3.adb (Build_Assignment): Generate conversion to the
33373 null-excluding type to force the corresponding run-time check.
33374 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
33375 type to force the corresponding run-time check.
33377 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
33378 the null-excluding type to force the corresponding run-time check.
33380 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
33381 case of access types unless they have the null-excluding attribute.
33383 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
33386 * exp_util.ads: Fix typo in comment
33388 * par.adb (P_Null_Exclusion): New subprogram
33389 (P_Subtype_Indication): New formal that indicates if the null-excluding
33390 part has been scanned-out and it was present
33392 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
33394 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
33395 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
33396 type to force the corresponding run-time check
33397 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
33399 (Resolve_Array_Aggregate): Carry out some static checks
33400 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
33402 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
33403 attribute must be set only if specified by means of the null-excluding
33404 part. In addition, we must also propagate the access-constant attribute
33406 (Access_Subprogram_Declaration, Access_Type_Declaration,
33407 Analyze_Component_Declaration, Analyze_Object_Declaration,
33408 Array_Type_Declaration, Process_Discriminants,
33409 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
33410 and carry out some static checks.
33411 (Build_Derived_Access_Type): Set the null-excluding attribute
33412 (Derived_Type_Declaration, Process_Subtype): Carry out some static
33415 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
33417 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
33419 * sem_ch6.adb (Process_Formals): Carry out some static checks.
33420 (Set_Actual_Subtypes): Generate null-excluding subtype if the
33421 null-excluding part was present; it is not required to be done here in
33422 case of anonymous access types.
33423 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
33426 * sem_res.adb (Resolve_Actuals): Carry out some static check
33427 (Resolve_Null): Allow null in anonymous access
33429 * sinfo.adb: New subprogram Null_Exclusion_Present
33430 All_Present and Constant_Present available on access_definition nodes
33432 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
33433 object_declaration, derived_type_definition, component_definition,
33434 discriminant_specification, access_to_object_definition,
33435 access_function_definition, allocator, access_procedure_definition,
33436 access_definition, parameter_specification, All_Present and
33437 Constant_Present flags available on access_definition nodes.
33439 2004-03-29 Robert Dewar <dewar@gnat.com>
33441 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
33442 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
33443 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
33444 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
33445 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
33446 sem_prag.adb: Updates to handle multiple units/file
33448 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
33450 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
33451 sem_util.adb: Minor reformatting
33453 * sem_ch12.adb: Add comment for previous change
33455 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
33457 * osint.adb (Executable_Prefix): Set Exec_Name to the current
33458 executable name when not initialized. Otherwise, use its current value.
33460 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
33461 initialize it to another executable name than the current one. This
33462 allows to configure paths for an executable name (gnatmake) different
33463 from the current one (gnatdist).
33465 2004-03-29 Ed Schonberg <schonberg@gnat.com>
33467 * exp_ch6.adb (Expand_Call): A call to a function declared in the
33468 current unit cannot be inlined if it appears in the body of a withed
33469 unit, to avoid order of elaboration problems in gigi.
33471 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
33472 information for protected (wrapper) operation as well, to simplify gdb
33475 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
33476 protected body, indicate that the entity for the generated spec comes
33477 from source, to ensure that references are properly generated for it.
33478 (Build_Body_To_Inline): Do not inline a function that returns a
33481 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
33482 apply convention to homonyms that are declared explicitly.
33484 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
33485 that renames an equality operator and the operands are overloaded,
33486 resolve them with the declared formal types, before rewriting as an
33489 2004-03-29 GNAT Script <nobody@gnat.com>
33491 * Make-lang.in: Makefile automatically updated
33493 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
33495 * memtrack.adb: Log realloc calls, which are treated as free followed
33498 2004-03-25 Vincent Celier <celier@gnat.com>
33500 * prj-makr.adb (Process_Directories): Detect when a file contains
33501 several units. Do not include such files in the config pragmas or
33502 in the naming scheme.
33504 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
33505 Resolve links only when not in Trusted_Mode.
33506 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
33507 Do not resolve links for the display names.
33509 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
33510 resolve links when computing the display names.
33512 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
33514 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
33515 attribute reference does not denote a subtype, it can be any
33516 expression that has a classwide type, potentially after an implicit
33517 dereference. In particular, the prefix can be a view conversion for
33518 a classwide type (for which Is_Object_Reference holds), but it can
33519 also be a value conversion for an access-to-classwide type. In the
33520 latter case, there is an implicit dereference, and the original node
33521 for the prefix does not verify Is_Object_Reference.
33523 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
33524 conversion of a discriminant-dependent component of a mutable object
33527 2004-03-25 Ed Schonberg <schonberg@gnat.com>
33529 * freeze.adb (Freeze_Entity): When an inherited subprogram is
33530 inherited, has convention C, and has unconstrained array parameters,
33531 place the corresponding warning on the derived type declaration rather
33532 than the original subprogram.
33534 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
33535 indication on renaming declaration, if formal has a box and actual
33538 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
33539 determine whether to generate an implicit or explicit reference to
33540 the renamed entity.
33542 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
33543 subprogram renaming comes from a defaulted formal subprogram in an
33546 2004-03-25 Gary Dismukes <dismukes@gnat.com>
33548 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
33549 value expressions to ensure that calls within a component definition
33550 will be checked (since those are evaluated during the record type's
33553 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
33555 * s-tpobop.adb: Code clean up:
33556 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
33558 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
33560 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
33562 * Makefile.in: Clean up in the ravenscar run time.
33564 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33566 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
33567 of No_Strict_Aliasing to build_pointer_type_for_mode.
33568 * utils.c (update_pointer_to): Walk pointer and ref chains.
33570 2004-03-22 Cyrille Comar <comar@act-europe.fr>
33572 * ali.ads: Fix Comment about Dynamic_Elab.
33574 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
33575 Has_RACW, Is_Generic, etc.)
33576 (Output_Object, Gnatls): Take into account ALI files not attached to
33579 2004-03-22 Vincent Celier <celier@gnat.com>
33581 * gprep.adb: Change all String_Access to Name_Id
33582 (Is_ASCII_Letter): new function
33583 (Double_File_Name_Buffer): New procedure
33584 (Preprocess_Infile_Name): New procedure
33585 (Process_Files): New procedure
33586 (Gnatprep): Check if output and input are existing directories.
33587 Call Process_Files to do the real job.
33589 2004-03-22 Robert Dewar <dewar@gnat.com>
33591 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
33592 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
33594 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
33596 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
33597 case when the source contains only comments.
33599 2004-03-22 Ed Schonberg <schonberg@gnat.com>
33601 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
33602 declaration for a child subprogram body that acts as a spec, indicate
33603 that the entity in the declaration needs debugging information.
33605 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
33606 full view if the subtype is created for a constrained record component;
33607 gigi has enough information to construct the record, and there is no
33608 place in the tree for the declaration.
33610 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
33611 serial number for the dummy body that is built for analysis, to avoid
33612 inconsistencies in the generation of internal names when compiling
33615 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
33617 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
33620 2004-03-22 GNAT Script <nobody@gnat.com>
33622 * Make-lang.in: Makefile automatically updated
33624 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33626 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
33627 * trans.c (tree_transform, emit_index_check): Likewise.
33628 * utils.c (build_template): Likewise.
33629 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
33630 (maybe_unconstrained_array, unchecked_convert): Likewise.
33631 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
33632 (build_unary_op): Likewise.
33633 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
33634 (fill_vms_descriptor): Likewise.
33635 (build_call_alloc_dealloc): Likewise.
33637 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
33639 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
33642 * gnat_ug.texi: Add info directory category and entry.
33643 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
33644 gnat_ug_wnt.texi: Regenerate.
33646 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
33648 * ada-tree.h: Update copyright notice.
33649 Minor reformatting.
33651 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
33653 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
33654 as regular exception objects and not as mere integers representing the
33655 condition code. The latter approach required some dynamics to mask off
33656 severity bits, which did not fit well into the GCC table based model.
33657 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
33658 exception data objects. We don't it and it would conflict with the other
33659 external symbol we have to generate for such exceptions.
33661 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
33662 the special code for VMS exceptions, since these are now represented
33663 as regular exceptions objects.
33665 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33667 * decl.c (debug_no_type_hash): Remove.
33668 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
33669 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
33671 2004-03-19 Laurent Guerby <laurent@guerby.net>
33673 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
33674 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
33676 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33678 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
33679 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
33680 (TYPE_RM_SIZE_INT): Directly use type.values.
33681 (TREE_LOOP_ID): Clean up check.
33682 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
33683 TYPE_VALUES, not TYPE_FIELDS.
33684 * trans.c (convert_with_check): Delay access of bounds of basetype
33685 until sure is numeric.
33687 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
33689 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
33692 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
33693 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
33694 Specific.Set instead of direct call to e.g pthread_setspecific.
33696 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
33698 * adaint.c: Update comments.
33700 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
33701 GNATLIB_SHARED for FreeBSD.
33703 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
33705 * init.c [VxWorks]: Do not fix the stack size for the environment task.
33706 When needed (stack checking) the stack size is retrieved
33707 from the VxWorks kernel.
33709 * Makefile.in: Flag -nostdinc is required when building the run time
33710 for avoiding looking for files in the base compiler.
33711 Add the VxWorks specific version of the package body for
33712 System.Stack_checking.Operations (5zstchop.adb).
33714 * Make-lang.in: Add the object file for
33715 System.Stack_Checking.Operations.
33717 * Makefile.rtl: Add object file for the package
33718 System.Stack_Checking.Operations.
33720 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
33722 * s-stache.ads, s-stache.adb: Move the operations related to stack
33723 checking from this package to package System.Stack_Checking.Operations.
33724 This way, stack checking operations are only linked in the final
33725 executable when using the -fstack-check flag.
33727 2004-03-18 Doug Rupp <rupp@gnat.com>
33729 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
33732 * 5qsystem.ads, 5xcrtl.ads: New files.
33734 2004-03-18 Vincent Celier <celier@gnat.com>
33736 * prj.adb (Reset): Reset hash table Files_Htable
33738 * prj-env.adb (Source_Paths, Object_Paths): New tables.
33739 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
33740 the procedures Add_To_Path_File.
33741 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
33742 making sure that each directory is present only once and, for object
33743 dirs, when a directory already present is added, the duplicate is
33744 removed and the directory is always put as the last in the table.
33745 Write the path files at the end of these accumulations.
33747 * prj-nmsc.adb (Record_Source): Add source file name in hash table
33748 Files_Htable for all sources.
33750 * prj-proc.adb (Process): Remove restrictions between not directly
33751 related extending projects.
33753 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
33755 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
33756 (Find_Sources): Minor speed optimization.
33758 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
33759 parameter Trusted_Mode.
33761 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
33763 * scn.adb (Determine_License): Take into account a degenerated case
33764 when the source contains only comments.
33766 2004-03-18 Ed Schonberg <schonberg@gnat.com>
33768 * sem_warn.adb (Check_References): For a warning on a selected
33769 component that does not come from source, locate an uninitialized
33770 component of the record type to produce a more precise error message.
33772 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
33774 * 3zsoccon.ads: Fix multicast options.
33776 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
33779 2004-03-15 Robert Dewar <dewar@gnat.com>
33781 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
33782 pragma used for a private type.
33784 * lib-xref.adb (Generate_Reference): Do not generate warning if
33785 reference is in a different unit from the pragma Unreferenced.
33787 * 5vtpopde.adb: Minor reformatting
33788 Fix casing of To_Task_ID
33790 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
33791 flag if we have an unchecked conversion to an access type in the same
33794 2004-03-15 Geert Bosch <bosch@gnat.com>
33796 * a-ngcoty.adb (Modulus): In alternate formula for large real or
33797 imaginary parts, use Double precision throughout.
33799 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
33800 we want to be able to compile run-time with -gnata for testing, but
33801 this may also be instantiated in user code that is compiled with -gnata.
33803 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
33805 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
33806 codes. Having a separate type for this is useful to enforce consistency
33807 throughout the various run-time units.
33808 (Exception_Data): Use Exception_Code for Import_Code.
33810 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
33811 Natural and Integer in various places.
33812 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
33813 with the severity bits masked off.
33814 (Register_VMS_Exception): Handle the additional exception data pointer
33817 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
33818 component, now reflected by an exported accessor.
33819 (is_handled_by): New routine to compute whether the propagated
33820 occurrence matches some handler choice specification. Extracted out of
33821 get_action_description_for, and expanded to take care of the VMS
33823 (get_action_description_for): Use is_handled_by instead of an explicit
33824 complex condition to decide if the current choice at hand catches the
33825 propagated occurrence.
33827 * raise.h (Exception_Code): New type for C.
33829 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
33830 System.Standard_Library.Exception_Code, to allow references from the
33831 pragma import/export expander.
33833 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
33834 New accessors to allow easy access to GNAT exception data
33836 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
33837 redundant Handled_By_Others component, helper for the personality
33838 routine which will now be able to call the appropriate exception data
33841 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
33842 component of Standard_Exception_Type to be the closest possible to
33843 Exception_Code in System.Standard_Library, that we cannot get at this
33844 point. Expand a ??? comment to notify that this type node should
33845 probably be rewritten later on.
33847 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
33848 registration call to include a pointer to the exception object in the
33851 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
33852 instead of int and explicit bitmasks.
33854 2004-03-15 Vincent Celier <celier@gnat.com>
33856 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
33857 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
33859 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
33860 longer needed now that it is in the spec of
33861 System.Tasking.Task_Attributes.
33863 * adaint.h, adaint.c: (__gnat_create_output_file): New function
33865 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
33867 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
33869 * make.adb (Gnatmake): Do not check the executable suffix; it is being
33870 taken care of in Scan_Make_Arg.
33871 (Scan_Make_Arg): Add the executable suffix only if the argument
33872 following -o, in canonical case, does not end with the executable
33873 suffix. When in verbose mode and executable file name does not end
33874 with executable suffix, output the executable name, in canonical case.
33876 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
33877 to avoid warnings when instantiating Ada.Task_Attributes.
33880 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
33881 in the correct order.
33883 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
33884 redirect standard output and error to a file for the invocation of the
33885 compiler, then read the file.
33887 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
33888 directory, instead of the Value.
33889 (Find_Source_Dirs): Remove useless code & comments.
33891 2004-03-15 Ed Schonberg <schonberg@gnat.com>
33893 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
33894 tagged type is inherited, and the parent operation is not frozen yet,
33895 force generation of a freeze node for the inherited operation, so the
33896 corresponding dispatch entry is properly initialized.
33897 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
33898 when looking for user-defined equality operation.
33900 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
33901 boolean when locating primitive equality of tagged component.
33903 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
33904 bit-aligned field and the right-hand side a string literal, introduce
33905 a temporary before expanding assignment into a loop.
33907 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
33908 priority in full, to ensure that any expanded subepxressions of it are
33909 elaborated in the scope of the init_proc.
33911 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
33912 after object declaration, skipping over code that may have been
33913 generated for validity checks.
33915 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
33916 discriminants, ignore the known discriminants of its full view, if
33917 any, to check legality.
33919 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
33920 component if type has unknown discriminants.
33921 (Analyze_Private_Extension_Declaration): Discriminant constraint is
33922 null if type has unknown discriminants.
33924 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
33925 for end label when present.
33927 * s-fileio.adb (Open): When called with a C_Stream, use given name for
33928 temporary file, rather than an empty string.
33930 2004-03-15 Ed Falis <falis@gnat.com>
33932 * s-thread.adb: Removed, no longer used.
33934 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33936 * decl.c (target.h): Now include.
33937 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
33938 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
33939 (validate_size): For POINTER_TYPE, get smallest size permitted on
33942 * fe.h: Sort Einfo decls and add Set_Mechanism.
33944 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
33945 (ada/decl.o): Depends on target.h.
33947 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
33948 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
33950 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
33952 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
33954 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
33955 Insert_Dereference_Action when rewriting an implicit dereference into
33956 an explicit one, this will be taken care of during expansion of the
33957 explicit dereference.
33958 (Expand_N_Slice): Same. Always do the rewriting, even for the case
33959 of non-packed slices, since the dereference action generated by
33960 expansion of the explicit dereference is needed in any case.
33961 (Expand_N_Selected_Component): When rewriting an implicit dereference,
33962 analyze and resolve the rewritten explicit dereference so it is seen
33964 (Insert_Dereference_Action): This procedure is now called only for the
33965 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
33966 dereferences that do not come from source (including explicit
33967 dereferences resulting from rewriting implicit ones), but do not
33968 recursively insert a check for the dereference nodes contained within
33970 (Insert_Dereference_Action): Clarify and correct comment.
33972 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
33975 Move language detection to the top level.
33976 * config-lang.in: Build by default.
33978 2004-03-05 Robert Dewar <dewar@gnat.com>
33980 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
33982 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
33983 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
33984 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
33985 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
33986 unchecked conversion to spec to avoid warnings.
33988 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
33991 * 7stpopsp.adb: Correct casing in To_Task_ID call
33993 * a-strsea.ads, a-strsea.adb: Minor reformatting
33995 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
33997 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
33998 Adjust Max_Msg_Length to be clearly large enough.
34000 * fe.h: Define In_Same_Source_Unit
34002 * osint.adb: Add pragma Warnings Off to suppress warnings
34003 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
34006 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
34008 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
34010 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
34012 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
34014 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
34016 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
34017 node. We now do generate them for gcc back end.
34019 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
34022 * sinput-c.adb: Fix bad name in header.
34023 Add pragma Warnings Off to suppress aliasing warning.
34025 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
34027 * snames.h, snames.ads, snames.adb: Add entry for pragma
34028 No_Strict_Aliasing.
34030 2004-03-05 Vincent Celier <celier@gnat.com>
34032 * prj-com.ads: Add hash table Files_Htable to check when a file name
34033 is already a source of another project.
34035 * prj-nmsc.adb (Record_Source): Before recording a new source, check
34036 if its file name is not already a source of another project. Report an
34039 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
34040 source file name, call gnatpp with all the sources of the main project.
34042 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
34045 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
34046 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
34047 /RUNTIME_SYSTEM=, converted to --RTS=
34048 /NOTABS, converted to -notabs
34050 2004-03-05 Pascal Obry <obry@gnat.com>
34052 * make.adb: Minor reformatting.
34054 2004-03-05 Ed Schonberg <schonberg@gnat.com>
34056 Part of implemention of AI-262.
34057 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
34059 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
34062 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
34063 when component type is a partially constrained class-wide subtype.
34064 (Constrain_Discriminated_Type): If parent type has unknown
34065 discriminants, a constraint is illegal, even if full view has
34067 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
34068 with unknown discriminants whose full view is a discriminated record.
34070 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
34071 flag, to handle properly derivations of tagged types with unknown
34073 (Analyze_Package_Spec, Analyze_Package_Body): Install
34074 Private_With_Clauses before analyzing private part or body.
34076 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
34077 Has_Discriminants can be true for a given type (documentation).
34079 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
34081 * s-restri.ads: Fix license (GPL->GMGPL).
34083 * s-tassta.adb: Minor reformatting.
34085 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
34086 by calls to Exit_One_ATC_Level, since additional clean up is performed
34089 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
34090 by calls to Exit_One_ATC_Level, since additional clean up is performed
34093 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34095 * trans.c: Reflect GCC changes to fix bootstrap problem.
34096 Add warning for suspicious aliasing unchecked conversion.
34098 2004-03-05 GNAT Script <nobody@gnat.com>
34100 * Make-lang.in: Makefile automatically updated
34102 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
34104 * ali.adb (Read_Instantiation_Instance): Do not modify the
34105 current_file_num when reading information about instantiations, since
34106 this corrupts files in later references.
34108 2004-03-02 Vincent Celier <celier@gnat.com>
34110 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
34111 before checking if it is read-only.
34113 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
34114 of SRC_DIRS and eliminate duplicates.
34116 * gprcmd.adb: Replace command "path" with command "path_sep" to return
34117 the path separator.
34118 (Usage): Document path_sep
34120 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
34121 C++ compiler. No need for a script.
34122 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
34123 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
34126 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
34127 where there are Ada sources.
34128 (Set_Ada_Paths): Only add to the include path the source dirs of project
34130 (Add_To_Path): Add the Display_Values of the directories, not their
34133 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
34136 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
34138 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
34139 Value is canonicalized.
34140 (Language_Independent_Check): Do not copy Value to Display_Value when
34141 canonicalizing Value.
34143 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
34144 path to find limited with cycles.
34145 (Parse_Single_Project): Use canonical cased path to find the end of a
34148 2004-03-02 Ed Schonberg <schonberg@gnat.com>
34150 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
34151 and not a child unit.
34153 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
34154 appear in a with_clause.
34156 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
34157 only happen in type_annotate mode, do not try to elaborate it.
34159 * exp_util.adb (Force_Evaluation): If expression is a selected
34160 component on the left of an assignment, use a renaming rather than a
34161 temporary to remove side effects.
34163 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
34164 inlined instance body, which is analyzed before the end of the
34167 2004-03-02 Robert Dewar <dewar@gnat.com>
34169 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
34170 sem_ch4.adb: Use new feature for substitution of keywords in VMS
34172 * errout.ads, errout.adb: Implement new circuit for substitution of
34175 * sem_case.adb (Analyze_Choices): Place message properly when case is
34176 a subtype reference rather than an explicit range.
34178 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
34180 2004-03-02 Doug Rupp <rupp@gnat.com>
34182 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
34184 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
34186 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
34188 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34190 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
34193 2004-02-25 Robert Dewar <dewar@gnat.com>
34195 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
34196 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
34197 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
34198 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
34199 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
34200 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
34201 the defining instance of the type to avoid aliasing problems.
34202 Fix copyright header. Fix bad comments in package header.
34204 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
34206 2004-02-25 Ed Schonberg <schonberg@gnat.com>
34208 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
34209 rewritten as references when aliased through an address clause.
34211 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
34212 whether call can be interpreted as an indirect call to the result of a
34213 parameterless function call returning an access subprogram.
34215 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
34218 * exp_ch7.adb (Make_Clean): Remove generation of calls to
34219 Unlock[_Entries], since this is now done by Service_Entries directly.
34221 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
34223 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
34224 Requeue_Call for better code readability. Change spec and update calls:
34225 PO_Service_Entries now unlock the PO on exit.
34226 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
34227 PO_Service_Entries.
34229 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
34231 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
34233 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
34235 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
34236 protected subprogram call and analyzing the result of such expanding
34237 in case when the called protected subprogram is eliminated.
34239 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
34242 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
34244 * Makefile.in: Clean ups.
34246 2004-02-23 Ed Schonberg <schonberg@gnat.com>
34248 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
34249 protected operations if original subprogram is flagged as eliminated.
34250 (Expand_N_Subprogram_Body): For a protected operation, create
34251 discriminals for next operation before checking whether the operation
34254 * exp_ch9.adb (Expand_N_Protected_Body,
34255 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
34256 for internal protected operations if the original subprogram is
34259 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
34260 declared in a single protected object.
34262 2004-02-23 Vincent Celier <celier@gnat.com>
34264 * prj-attr.adb: Make attribute Builder'Executable an associative array,
34265 case insensitive if file names are case insensitive, instead of a
34266 standard associative array.
34268 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
34269 them as case insensitive on platforms where the file names are case
34272 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
34273 project file has already been parsed that canonical path are compared.
34275 2004-02-23 Robert Dewar <dewar@gnat.com>
34277 * sinput-c.ads: Correct bad unit title in header
34279 * freeze.adb: Minor reformatting
34281 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34283 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
34284 nonaddressable COMPONENT_REF that is removing padding that we are
34285 taking the address of, take the address of the padded record instead
34286 if item is variable size.
34288 2004-02-20 Robert Dewar <dewar@gnat.com>
34290 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
34292 2004-02-20 Ed Schonberg <schonberg@gnat.com>
34294 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
34295 itype references for the constrained designated type of a component
34296 whose base type is already frozen.
34298 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
34300 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
34301 avoid GCC warnings.
34303 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
34305 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
34306 identifier for a phantom package that rewrites the formal package
34307 declaration with a box. The Add semantic decorations for the defining
34308 identifier from the original node (that represents the formal package).
34310 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
34312 * Make-lang.in (ada/stamp-sdefault): Use the top level
34315 2004-02-19 Richard Henderson <rth@redhat.com>
34317 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
34319 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
34321 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
34322 Scan_ALI can be used for multiple ALI files without reinitializing
34325 2004-02-18 Robert Dewar <dewar@gnat.com>
34327 * debug.adb: Minor reformatting.
34329 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34331 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
34332 to zero if there is an address clause.
34334 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
34336 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
34338 2004-02-18 Gary Dismukes <dismukes@gnat.com>
34340 * layout.adb (Layout_Component_List): Revise generation of call to
34341 discriminant-checking function to pass selections of all of the type's
34342 discriminants rather than just the variant-controlling discriminant.
34344 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
34346 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
34347 fail in the current setup and triggers spurious system error messages.
34348 Pretend it occurred and failed instead.
34350 2004-02-18 Vincent Celier <celier@gnat.com>
34352 * bld.adb: Mark FLDFLAGS as saved
34353 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
34354 it is not the root project. Put each directory to be
34355 extended between double quotes to prevent it to be expanded on Windows.
34356 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
34357 the project file. Set them back to their initial values if they have not
34358 been set in the project file.
34360 * gprcmd.adb: (Gprdebug, Debug): New global variables
34361 (Display_Command): New procedure
34362 (Usage): Document new command "linkopts"
34363 Call Display_Command when env var GPRDEBUG has the value "TRUE"
34364 Implement new command "linkopts"
34365 Remove quotes that may be around arguments for "extend"
34366 Always call Normalize_Pathname with arguments formatted for the platform
34368 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
34369 Change @echo to @$(display) in target clean to be able to clean silently
34371 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
34373 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
34376 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
34377 = Extending_All when current project is an extending all project.
34379 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
34380 set to True only for LINK command, after Unix switch -o.
34381 (Process_Arguments): Set Output_File_Expected to True for LINK command
34382 after Unix switch -o. When Output_File_Expected is True, never add an
34383 extension to a file name.
34385 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
34386 option file name, only to the --for-linker= switch.
34387 (Option_File_Name): If option file name do not end with ".opt", append
34390 2004-02-18 GNAT Script <nobody@gnat.com>
34392 * Make-lang.in: Makefile automatically updated
34394 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
34396 * Make-lang.in (stamp-sdefault): Do not depend on
34399 2004-02-12 Zack Weinberg <zack@codesourcery.com>
34401 * config-lang.in: Disable Ada by default until probe logic for
34402 a bootstrap Ada compiler can be moved to the top level configure
34405 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
34407 * decl.c (components_to_record): Don't claim that the internal fields
34408 we make to hold the variant parts are semantically addressable, because
34411 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
34412 adjust the comment describing the modular type form when we can use it.
34413 (Install_PAT): Account for the Esiz renaming.
34415 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
34416 sc_onstack context indication before raising the exception to which
34417 the signal is mapped. Allows better handling of later signals possibly
34418 triggered by the resumed user code if the exception is handled.
34420 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
34422 * 5zinit.adb: Removed, no longer used.
34424 2004-02-12 Robert Dewar <dewar@gnat.com>
34426 * ali.adb: Remove separating space between parameters on R line. Makes
34427 format consistent with format used by the binder for Set_Globals call.
34429 * atree.ads, atree.adb: Minor reformatting (new function header format)
34431 * bindgen.adb: Add Run-Time Globals documentation section containing
34432 detailed documentation of the globals passed from the binder file to
34435 * gnatls.adb: Minor reformatting
34437 * init.c (__gnat_set_globals): Add note pointing to documentation in
34440 * lib-writ.ads, lib-writ.adb: Remove separating space between
34441 parameters on R line.
34442 Makes format consistent with format used by the binder for Set_Globals
34445 * osint.ads: Add 2004 to copyright notice
34448 * snames.ads: Correct capitalization of FIFO_Within_Priorities
34449 Noticed during code reading, documentation issue only
34451 * usage.adb: Remove junk line for obsolete C switch
34452 Noticed during code reading
34454 2004-02-12 Vincent Celier <celier@gnat.com>
34456 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
34457 extend for each directory, so that multiple /** directories are
34458 extended individually.
34459 (Recursive_Process): Set the default for LANGUAGES to ada
34461 * gprcmd.adb: Define new command "ignore", to do nothing.
34462 Implement new comment "path".
34464 * Makefile.generic: Suppress output when SILENT is set
34465 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
34466 used, so that the correct compiler is invoked.
34467 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
34468 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
34470 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
34472 * Makefile.in: Clean ups and remove obsolete targets.
34474 2004-02-12 Ed Schonberg <schonberg@gnat.com>
34476 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
34477 predicate declared in exp_util.
34479 * exp_util.adb: Add comments.
34481 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
34482 visibility before compiling context of the subunit.
34484 * sem_res.adb (Check_Parameterless_Call): If the context expects a
34485 value but the name is a procedure, do not attempt to analyze as a call,
34486 in order to obtain more telling diagnostics.
34488 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
34489 'Access on parameterless function calls.
34490 (Normalize_Actuals): For a parameterless function call with missing
34491 actuals, defer diagnostic until resolution of enclosing call.
34493 * sem_util.adb (Wrong_Type): If the context type is an access to
34494 subprogram and the expression is a procedure name, suggest a missing
34497 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
34498 Nathanael Nerode <neroden@gcc.gnu.org>
34502 Merge with libada-branch:
34503 * config-lang.in: Build libada only when ada is built.
34505 2004-02-09 Ed Schonberg <schonberg@gnat.com>
34507 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
34508 for a tagged type, verify that both formals have the same type.
34510 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
34511 temporary when the formal is an in-parameter and the actual a possibly
34514 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
34515 when expansion is disabled, to ensure proper name capture with
34516 overloaded literals. Condition can be of any boolean type, resolve
34519 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
34520 renaming is for a formal subprogram with a default operator name, and
34521 there is a usable operator that is visible at the point of
34524 2004-02-09 Robert Dewar <dewar@gnat.com>
34526 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
34527 rewrite to ignore errors in ali files, intended to allow tools downward
34528 compatibility with new versions of ali files.
34530 * ali.ads: Add new parameter Ignore_Errors
34532 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
34533 duplicating the error message giving the file with restrictions.
34535 * debug.adb: Add debug flag I for gnatbind
34537 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
34538 operators for the case where the operator is a defining operator.
34540 * exp_ch3.adb: Minor reformatting (new function spec format).
34542 * exp_ch4.adb: Add comment for previous change, and make minor
34543 adjustment to loop to always check for improper loop termination.
34544 Minor reformatting throughout (new function spec format).
34546 * gnatbind.adb: Implement -di debug flag for gnatbind
34548 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
34550 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
34552 * lib-load.adb: Fix bad assertion.
34553 Found by testing and code reading.
34554 Minor reformatting.
34556 * lib-load.ads: Minor reformatting.
34558 * lib-writ.adb: There is only one R line now.
34560 * lib-writ.ads: Add documentation on making downward compatible changes
34561 to ali files so old tools work with new ali files.
34562 There is only one R line now.
34563 Add documentation on format incompatibilities (with special GPS note)
34565 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
34567 * par-load.adb: Minor reformatting
34569 * sem_ch8.adb: Fix to error message from last update
34570 Minor reformatting and restructuring of code from last update
34572 * par-prag.adb, snames.adb, snames.ads, snames.h,
34573 sem_prag.adb: Implement pragma Profile.
34575 * stylesw.adb: Implement -gnatyN switch to turn off all style check
34578 * usage.adb: Add line for -gnatyN switch
34580 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
34582 2004-02-09 Albert Lee <lee@gnat.com>
34584 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
34586 2004-02-09 Ed Schonberg <schonberg@gnat.com>
34588 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
34591 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
34592 is nested in an instance that is not frozen yet, to avoid
34593 order-of-elaboration problems in gigi.
34595 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
34596 body the attribute is legal.
34598 2004-02-09 Robert Dewar <dewar@gnat.com>
34600 * s-rident.ads: Minor comment correction
34602 * targparm.adb: Remove dependence on uintp completely. There was
34603 always a bug in Make in that it called Targparm before initializing
34604 the Uint package. The old code appeared to get away with this, but
34605 the new code did not! This caused an assertion error in gnatmake.
34607 * targparm.ads: Fix bad comment, restriction pragmas with parameters
34608 are indeed fully supported.
34610 2004-02-06 Alan Modra <amodra@bigpond.net.au>
34612 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
34614 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
34616 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
34617 with targetm.calls.promote_prototypes.
34619 2004-02-04 Robert Dewar <dewar@gnat.com>
34621 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
34622 ali.ads, gprcmd.adb: Minor reformatting
34624 * bindgen.adb: Output restrictions string for new style restrictions
34627 * impunit.adb: Add s-rident.ads (System.Rident) and
34628 s-restri (System.Restrictions)
34630 * lib-writ.adb: Fix bug in writing restrictions string (last few
34633 * s-restri.ads, s-restri.adb: Change name Restrictions to
34634 Run_Time_Restrictions to avoid conflict with package name.
34635 Add circuit to read and acquire run time restrictions.
34637 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
34639 * restrict.ads, restrict.adb: Use the new restriction
34640 No_Task_Attributes_Package instead of the old No_Task_Attributes.
34642 * sem_prag.adb: No_Task_Attributes is a synonym of
34643 No_Task_Attributes_Package.
34645 * snames.ads, snames.adb: New entry for proper handling of
34646 No_Task_Attributes.
34648 * s-rident.ads: Adding restriction No_Task_Attributes_Package
34649 (AI-00249) that supersedes the GNAT specific restriction
34650 No_Task_Attributes.
34652 2004-02-04 Ed Schonberg <schonberg@gnat.com>
34655 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
34656 body, an identifier may be wrapped in an unchecked conversion.
34658 2004-02-04 Vincent Celier <celier@gnat.com>
34660 * lib-writ.ads: Comment update for the W lines
34662 * bld.adb: (Expression): An empty string list is static
34664 * fname-uf.adb: Minor comment update
34666 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
34668 * gnatbind.adb: Initialize Cumulative_Restrictions with the
34669 restrictions on the target.
34671 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
34673 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
34676 2004-02-02 Arnaud Charlet <charlet@gnat.com>
34678 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
34680 2004-02-02 Vincent Celier <celier@gnat.com>
34682 * gprcmd.adb (Check_Args): If condition is false, print the invoked
34683 comment before the usage.
34684 Gprcmd: Fail when command is not recognized.
34685 (Usage): Document command "prefix"
34687 * g-md5.adb (Digest): Process last block.
34688 (Update): Do not process last block. Store remaining characters and
34691 * g-md5.ads (Update): Document that several call to update are
34692 equivalent to one call with the concatenated string.
34693 (Context): Add fields to allow new Update behaviour.
34695 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
34696 defaulted to False.
34697 When May_Fail is True and no existing file can be found, return No_File.
34699 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
34702 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
34703 spec file name instead on the W line.
34705 2004-02-02 Robert Dewar <dewar@gnat.com>
34707 * ali.adb: Read and acquire info from new format restrictions lines
34709 * bcheck.adb: Add circuits for checking restrictions with parameters
34711 * bindgen.adb: Output dummy restrictions data
34712 To be changed later
34714 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
34715 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
34716 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
34717 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
34718 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
34720 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
34721 the warning message on access to possibly uninitialized variable S)
34722 Minor changes for new restrictions handling.
34724 * gnatbind.adb: Minor reformatting
34725 Minor changes for new restrictions handling
34726 Move circuit for -r processing here from bcheck (cleaner)
34728 * gnatcmd.adb, gnatlink.adb: Minor reformatting
34730 * lib-writ.adb: Output new format restrictions lines
34732 * lib-writ.ads: Document new R format lines for new restrictions
34735 * s-restri.ads/adb: New files
34737 * Makefile.rtl: Add entry for s-restri.ads/adb
34739 * par-ch3.adb: Fix bad error messages starting with upper case letter
34742 * restrict.adb: Major rewrite throughout for new restrictions handling
34743 Major point is to handle restrictions with parameters
34745 * restrict.ads: Major changes in interface to handle restrictions with
34746 parameters. Also generally simplifies setting of restrictions.
34748 * snames.ads/adb: New entry for proper handling of No_Requeue
34750 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
34751 restriction counting.
34752 Other minor changes for new restrictions handling
34754 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
34755 Restriction_Warnings now allows full parameter notation
34756 Major rewrite of Restrictions for new restrictions handling
34758 2004-02-02 Javier Miranda <miranda@gnat.com>
34760 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
34761 syntax rule for object renaming declarations.
34762 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
34763 component definitions.
34765 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
34767 (Array_Type_Declaration): Give support to access components. In addition
34768 it was also modified to reflect the name of the object in anonymous
34769 array types. The old code did not take into account that it is possible
34770 to have an unconstrained anonymous array with an initial value.
34771 (Check_Or_Process_Discriminants): Allow access discriminant in
34773 (Process_Discriminants): Allow access discriminant in non-limited types
34774 Initialize the new Access_Definition field in N_Object_Renaming_Decl
34775 node. Change Ada0Y to Ada 0Y in comments
34777 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
34778 equality operators.
34779 Change Ada0Y to Ada 0Y in comments
34781 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
34782 renamings Change Ada0Y to Ada 0Y in comments
34784 * sem_type.adb (Find_Unique_Type): Give support to the equality
34785 operators for universal access types
34786 Change Ada0Y to Ada 0Y in comments
34788 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
34790 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
34792 (N_Object_Renaming_Declaration): Addition of Access_Definition field
34793 Change Ada0Y to Ada 0Y in comments
34795 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
34796 component definition and object renaming nodes
34797 Change Ada0Y to Ada 0Y in comments
34799 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
34801 * restrict.adb: Use the new restriction identifier
34802 No_Requeue_Statements instead of the old No_Requeue for defining the
34803 restricted profile.
34805 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
34806 No_Requeue_Statements.
34808 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
34809 that supersedes the GNAT specific restriction No_Requeue. The later is
34810 kept for backward compatibility.
34812 2004-02-02 Ed Schonberg <schonberg@gnat.com>
34814 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
34815 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
34816 pragma and fix incorrect ones.
34818 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
34819 warning if the pragma is redundant.
34821 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
34823 * 5staprop.adb: Add missing 'constant' keywords.
34825 * Makefile.in: use consistent value for SYMLIB on
34826 platforms where libaddr2line is supported.
34828 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34830 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
34833 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
34835 * init.c (__gnat_install_handler): Setup an alternate stack for signal
34836 handlers in the environment thread. This allows proper propagation of
34837 an exception on stack overflows in this thread even when the builtin
34838 ABI stack-checking scheme is used without support for a stack reserve
34841 * utils.c (create_field_decl): Augment the head comment about bitfield
34842 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
34843 here, because the former is not accurate enough at this point.
34844 Let finish_record_type decide instead.
34845 Don't make a bitfield if the field is to be addressable.
34846 Always set a size for the field if the record is packed, to ensure the
34847 checks for bitfield creation are triggered.
34848 (finish_record_type): During last pass over the fields, clear
34849 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
34850 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
34851 from DECL_BIT_FIELD.
34853 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
34855 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
34856 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
34857 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
34859 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
34861 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
34863 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
34864 (ZCX_By_Default): Likewise.
34865 (Front_End_ZCX_Support): Likewise.
34867 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
34868 (Initialize_Lock): Mark Level unreferenced.
34869 (Sleep): Mark Reason unreferenced.
34870 (Timed_Sleep): Likewise.
34871 (Wakeup): Likewise.
34872 (Exit_Task): Use Result.
34873 (Check_No_Locks): Mark Self_ID unreferenced.
34875 * 5gtasinf.adb (New_Sproc): Make Attr constant.
34876 (Bound_Thread_Attributes): Make Sproc constant.
34877 (New_Bound_Thread_Attributes): Likewise.
34879 2004-01-26 Ed Schonberg <schonberg@gnat.com>
34881 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
34882 one-dimensional array an slice assignments, when component type is
34885 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
34886 component type is controlled, and control_actions are in effect, use
34887 TSS procedure rather than generating inline code.
34889 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
34890 arrays with controlled components.
34892 2004-01-26 Vincent Celier <celier@gnat.com>
34894 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
34895 command line for the non VMS case.
34897 * gnatlink.adb (Process_Binder_File): When building object file, if
34898 GNU linker is used, put all object paths between quotes, to prevent ld
34899 error when there are unusual characters (such as '!') in the paths.
34901 * Makefile.generic: When there are sources in Ada and the main is in
34902 C/C++, invoke gnatmake with -B, instead of -z.
34904 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
34905 from VMS_Conversion.
34906 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
34907 specification of argument file on the command line.
34909 2004-01-26 Bernard Banner <banner@gnat.com>
34911 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
34913 2004-01-26 Ed Schonberg <schonberg@gnat.com>
34915 * snames.adb: Update copyright notice.
34916 Add info on slice assignment for controlled arrays.
34918 2004-01-23 Robert Dewar <dewar@gnat.com>
34920 * exp_aggr.adb: Minor reformatting
34922 * exp_ch9.adb: Minor code clean up
34924 Fix bad character in comment
34927 * targparm.adb (Get_Target_Parameters): Give clean abort error on
34928 unexpected end of file, along with more detailed message.
34930 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34932 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
34935 * decl.c (copy_alias_set): New function.
34936 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
34938 2004-01-23 Doug Rupp <rupp@gnat.com>
34940 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
34941 lib$${file} in case subsequent character is not a separator.
34943 2004-01-23 Vincent Celier <celier@gnat.com>
34945 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
34946 when the GCC version is at least 3.
34948 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
34949 Remove all "Opt.", to prepare for opt split
34951 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
34952 Extends_All. Set to True when the project parsed is an extending all
34953 project. Fails for importing an extending all project only when the
34954 imported project is an extending all project.
34955 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
34956 depending on the value of Extends_All returned.
34958 * prj-proc.adb (Process): Check that no project shares its object
34959 directory with a project that extends it, directly or indirectly,
34960 including a virtual project.
34961 Check that no project extended by another project shares its object
34962 directory with another also extended project.
34964 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
34965 Kind = N_With_Clause
34967 * prj-tree.ads: Minor reformatting
34968 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
34970 2004-01-23 Ed Schonberg <schonberg@gnat.com>
34972 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
34973 applies to a type with an incomplete view, use full view in Name of
34974 clause, for consistency with uses of Get_Attribute_Definition_Clause.
34976 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
34978 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
34979 SCHED_RR, since other values are not supported by this policy.
34980 (Initialize): Move initialization of mutex attribute to package
34981 elaboration, to prevent early access to this variable.
34983 * Makefile.in: Remove mention of Makefile.adalib, unused.
34985 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
34986 1ssecsta.ads: Removed, unused.
34988 2004-01-21 Javier Miranda <miranda@gnat.com>
34990 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
34991 entity if already built in the current scope.
34993 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
34994 reminder in internal scopes. Required for nested limited aggregates.
34996 2004-01-21 Doug Rupp <rupp@gnat.com>
34998 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
34999 VMS. Replace all occurences of libgnat- and libgnarl- with
35000 libgnat$(hyphen) and libgnarl$(hyphen).
35001 Fixed shared library build problem on VMS.
35003 2004-01-21 Robert Dewar <dewar@gnat.com>
35005 * mlib-prj.adb: Minor reformatting
35007 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
35009 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
35010 'constant' keywords for declaration of pointers that are not modified.
35012 * exp_pakd.adb: Fix English in comment.
35014 2004-01-21 Ed Schonberg <schonberg@gnat.com>
35017 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
35018 copy all attributes of the parent, including the foreign language
35021 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
35024 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
35025 for 'delay until' statement.
35027 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
35029 * Make-lang.in: Replace $(docdir) with doc.
35030 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
35031 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
35032 to use consistent MAKEINFO rule.
35033 (ada.man, ada.srcman): Dummy entry.
35034 (ADA_INFOFILES): Define.
35035 (ada.info, ada.srcinfo): New rules.
35037 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
35039 * utils.c: Update copyright notice, missed in previous change.
35041 2004-01-19 Vincent Celier <celier@gnat.com>
35043 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
35044 args if Bind is True. Set First_ALI, if not already done.
35045 (Build_Library): For Stand Alone Libraries, extract from one ALI file
35046 an eventual --RTS switch, for gnatbind, and all backend switches +
35047 --RTS, for linking.
35049 2004-01-19 Robert Dewar <dewar@gnat.com>
35051 * sem_attr.adb, memtrack.adb: Minor reformatting
35053 2004-01-19 Ed Schonberg <schonberg@gnat.com>
35055 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
35056 that rename enumeration literals. This is properly done in sem_eval.
35058 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
35059 to functions that rename enumeration literals.
35061 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
35062 functions that rename enumeration literals.
35064 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
35066 * Make-lang.in (utils.o): Depend on target.h.
35067 * utils.c: Include target.h.
35068 (process_attributes): Use targetm.have_named_sections instead
35069 of ASM_OUTPUT_SECTION_NAME.
35071 2004-01-16 Andreas Jaeger <aj@suse.de>
35073 * Makefile.in: Add $(DESTDIR).
35075 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
35077 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
35078 also when not defining if a Size clause applies. That information is
35081 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
35083 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
35084 symbolic links for the shared gnat run time when needed.
35086 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
35088 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
35089 for writing, and terminate with an error message if not.
35091 2004-01-15 Ed Schonberg <schonberg@gnat.com>
35093 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
35094 warning on an access to subprogram in an instance, when the target
35095 type is declared in the same generic unit.
35096 (Eval_Attribute): If 'access is known to fail accessibility check,
35097 rewrite as a raise statement.
35099 2004-01-15 GNAT Script <nobody@gnat.com>
35101 * Make-lang.in: Makefile automatically updated
35103 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
35105 * Make-lang.in (ada.srcextra): Dummy entry.
35107 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
35109 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
35111 2004-01-13 Ed Schonberg <schonberg@gnat.com>
35113 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
35114 components that are initialized with aggregates.
35116 2004-01-13 Vincent Celier <celier@gnat.com>
35118 * gnatlink.adb (Process_Binder_File): To find directory of shared
35119 libgcc, if "gcc-lib" is not a subdirectory, look for the last
35120 subdirectory "lib" in the path of the shared libgnat or libgnarl.
35122 * make.adb (Gnatmake): If GCC version is at least 3, link with
35123 -shared-libgcc, when there is at least one shared library project.
35125 * opt.ads (GCC_Version): New integer constant.
35127 * adaint.c (get_gcc_version): New function.
35129 2004-01-13 Robert Dewar <dewar@gnat.com>
35131 * sem_dist.adb, sem_res.adb, sem_util.adb,
35132 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
35133 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
35135 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
35137 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
35138 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
35141 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
35143 * misc.c: Remove trailing spaces.
35144 Update copyright notice missed in previous change.
35147 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
35150 * Makefile.generic: Update copyright.
35151 Add license notice.
35153 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
35154 of prefix/share/make.
35156 * Makefile.prolog: Update copyright.
35157 Add license notice.
35159 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
35161 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
35162 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
35163 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
35166 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
35169 2004-01-12 Javier Miranda <miranda@gnat.com>
35171 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
35172 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
35173 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
35174 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
35175 Component_Definition node.
35177 2004-01-12 Ed Falis <falis@gnat.com>
35179 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
35181 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
35183 * link.c: Change default libgnat kind to STATIC for FreeBSD.
35185 2004-01-12 Bernard Banner <banner@gnat.com>
35187 * Makefile.in: map 86numaux to a-numaux for x86_64
35189 2004-01-12 Ed Schonberg <schonberg@gnat.com>
35191 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
35192 generated to rename a generic actual, go to the actual itself, the
35193 subtype is not a user-visible entity.
35195 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
35196 part is a private subtype, reset the visibility of its full view, if
35197 any, to be consistent.
35200 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
35201 to use a generic package G as a formal package for another generic
35204 2004-01-12 Robert Dewar <dewar@gnat.com>
35206 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
35208 * usage.adb: Remove mention of obsolete -gnatwb switch
35209 Noticed during code reading
35211 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
35213 * 1ssecsta.adb: Minor changes for -gnatwa warnings
35215 2004-01-12 GNAT Script <nobody@gnat.com>
35217 * Make-lang.in: Makefile automatically updated
35219 2004-01-09 Mark Mitchell <mark@codesourcery.com>
35221 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
35223 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
35225 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
35227 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
35229 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
35230 Update comment and copyright date.
35231 * stamp-xgnatug: Delete.
35233 2004-01-05 Robert Dewar <dewar@gnat.com>
35235 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
35236 be modified by the binder generated main program if the -D switch is
35239 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
35240 imported functions (since now we expect this to be done for imported
35243 * 5vtaprop.adb: Add several ??? for sections requiring more comments
35244 Minor reformatting throughout
35246 * 5zinit.adb: Minor reformatting
35247 Add 2004 to copyright date
35248 Minor changes to avoid -gnatwa warnings
35249 Correct some instances of using OR instead of OR ELSE (noted while
35250 doing reformatting)
35252 * sprint.adb: Minor updates to avoid -gnatwa warnings
35254 * s-secsta.ads, s-secsta.adb:
35255 (SS_Get_Max): New function to obtain high water mark for ss stack
35256 Default_Secondary_Stack is not a constant since it may be modified by
35257 the binder generated main program if the -D switch is used.
35259 * switch-b.adb: New -Dnnn switch for binder
35262 Make -gnatg imply all warnings currently in -gnatwa
35264 * vms_conv.adb: Minor reformatting
35265 Add 2004 to copyright notice
35266 Add 2004 to printed copyright notice
35268 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
35269 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
35270 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
35271 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
35272 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
35273 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
35274 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
35275 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
35276 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
35277 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
35278 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
35279 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
35280 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
35281 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
35282 checks.adb, clean.adb, cstand.adb, einfo.ads,
35283 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
35284 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
35285 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
35286 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
35287 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
35288 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
35289 Minor reformatting and code clean ups.
35290 Minor changes to prevent -gnatwa warnings
35292 * ali.adb: Minor reformatting and cleanup of code
35293 Acquire new SS indication of secondary stack use from ali files
35295 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
35296 (since now we expect this to be done for imported functions)
35298 * bindgen.adb: Generate call to modify default secondary stack size if
35301 * bindusg.adb: Add line for new -D switch
35303 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
35304 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
35305 Add circuitry for both records and arrays to avoid gigi
35306 processing if the type involved has non-bit-aligned components
35308 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
35309 N_String_Literal node always references an E_String_Literal_Subtype
35310 entity. This may not be true in the future.
35311 (Possible_Bit_Aligned_Component): Move processing of
35312 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
35314 * exp_ch6.adb (Expand_Thread_Body): Pick up
35315 Default_Secondary_Stack_Size as variable so that we get value modified
35316 by possible -Dnnn binder parameter.
35318 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
35319 (Type_May_Have_Bit_Aligned_Components): New function.
35321 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
35322 (Type_May_Have_Bit_Aligned_Components): New function.
35324 * fe.h: (Set_Identifier_Casing): Fix prototype.
35325 Add declaration for Sem_Elim.Eliminate_Error_Msg.
35326 Minor reformatting.
35328 * freeze.adb (Freeze_Entity): Add RM reference to error message about
35329 importing constant atomic/volatile objects.
35330 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
35331 unless explicit Pure_Function pragma given, to avoid insidious bug of
35332 call to non-pure imported function getting eliminated.
35334 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
35335 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
35336 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
35337 Add 2004 to printed copyright notice
35339 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
35342 * Makefile.rtl: Add entry for g-sestin.o
35343 g-sestin.ads: New file.
35345 * mdll.adb: Minor changes to avoid -gnatwa warnings
35347 * mlib-tgt.adb: Minor reformatting
35349 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
35350 New switch Sec_Stack_Used (GNAT, GNATBIND)
35351 Make Default_Secondary_Stack_Size a variable instead of a constant,
35352 so that it can be modified by the new -Dnnn bind switch.
35354 * rtsfind.adb (Load_Fail): Give full error message in configurable
35355 run-time mode if all_errors mode is set. This was not done in the case
35356 of a file not found, which was an oversight.
35357 Note if secondary stack unit is used by compiler.
35359 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
35360 ineffective elaborate all pragmas on non-visible packages (this
35361 happened when a renamed subprogram was called). Now the elaborate all
35362 always goes on the package containing the renaming rather than the one
35363 containing the renamed subprogram.
35365 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
35366 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
35368 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
35369 has an Etype that references an E_String_Literal.
35370 (Eval_String_Literal): Avoid assumption that N_String_Literal node
35371 always references an E_String_Literal_Subtype entity. This may not
35372 be true in the future.
35374 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
35377 * sem_res.adb (Resolve): Specialize msg for function name used in proc
35380 2004-01-05 Ed Falis <falis@gnat.com>
35382 * g-debuti.adb: Replaced direct boolean operator with short-circuit
35385 2004-01-05 Vincent Celier <celier@gnat.com>
35387 * bld.adb: Minor comment updates
35388 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
35391 * make.adb (Gnatmake): Special process for files to compile/check when
35392 -B is specified. Fail when there are only foreign mains in attribute
35393 Main of the project file and -B is not specified. Do not skip bind/link
35394 steps when -B is specified.
35396 * makeusg.adb: Document new switch -B
35398 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
35400 * switch-m.adb: (Scan_Make_Switches): Process -B switch
35402 * vms_data.ads: Add new GNAT PRETTY qualifier
35403 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
35405 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35407 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
35410 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
35411 Set_Identifier_Casing.
35413 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
35414 has size that overflows.
35416 2004-01-05 Gary Dismukes <dismukes@gnat.com>
35418 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
35419 -gnatwa warning on static condition.
35421 2004-01-05 Doug Rupp <rupp@gnat.com>
35423 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
35425 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
35427 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
35428 all attributes, including read-only attribute.
35430 2004-01-05 Pascal Obry <obry@gnat.com>
35432 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
35433 library naming scheme.
35435 * mlib-prj.adb (Build_Library): Generate different names for the static
35436 or dynamic version of the GNAT runtime. This is needed to support the
35437 new shared library naming scheme.
35438 (Process_Binder_File): Add detection of shared library in binder file
35439 based on the new naming scheme.
35441 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
35442 scheme for the shared runtime libraries.
35445 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
35447 (install-gnatlib): Do not create symlinks for shared libraries.
35448 (gnatlib-shared-default): Idem.
35449 (gnatlib-shared-dual-win32): New target. Not used for now as the
35450 auto-import feature does not support arrays/records.
35451 (gnatlib-shared-win32): Do not create copy for the shared libraries.
35452 (gnatlib-shared-vms): Fix shared runtime libraries names.
35454 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
35455 dependent runtime shared library name.
35457 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
35459 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
35462 2004-01-05 Ed Schonberg <schonberg@gnat.com>
35464 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
35465 protected objects when allocator has a subtype indication, not a
35466 qualified expression. Note that qualified expressions may have to be
35467 checked when limited aggregates are implemented.
35469 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
35470 pure, emit warning.
35471 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
35472 subprogram is imported, remove warning.
35474 2004-01-05 Geert Bosch <bosch@gnat.com>
35476 * s-poosiz.adb: Update copyright notice.
35477 (Allocate): Use Task_Lock to protect against concurrent access.
35478 (Deallocate): Likewise.
35480 2004-01-05 Joel Brobecker <brobecker@gnat.com>
35482 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
35485 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
35487 * gnat_ug.texi: Force a CVS commit by updating copyright.
35488 * gnat_ug_vxw.texi: Regenerate.
35489 * gnat_ug_wnt.texi: Regenerate.
35490 * gnat_ug_vms.texi: Regenerate.
35491 * gnat_ug_unx.texi: Regenerate.
35493 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
35495 * trans.c: Remove uses of "register" specifier in
35496 declarations of local variables.
35498 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
35500 * stamp-xgnatug: New stamp file.
35501 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
35502 (ada/doctools/xgnatug): Add $(build_exeext).
35503 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
35504 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
35506 2003-12-17 Ed Falis <falis@gnat.com>
35508 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
35511 * a-exextr.adb: Add context clause for
35512 Ada.Exceptions.Last_Chance_Handler.
35514 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
35516 * cstand.adb (Create_Standard): Change the way how the declaration of
35517 the Duration type is created (making it the same way as it is for all
35518 the other standard types).
35520 2003-12-17 Robert Dewar <dewar@gnat.com>
35522 * s-crtl.ads: Fix header format
35523 Change Pure to Preelaborate
35525 2003-12-17 Ed Schonberg <schonberg@gnat.com>
35527 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
35528 the expression type only if it is declared in the current unit.
35530 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
35531 are universal and already analyzed, as can occur in constrained
35532 subcomponents that depend on discriminants, when one constraint is a
35535 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
35536 type Any_Fixed is legal as the argument of a conversion, if only one
35537 fixed-point type is in context.
35539 2003-12-17 GNAT Script <nobody@gnat.com>
35541 * Make-lang.in: Makefile automatically updated
35543 2003-12-15 Robert Dewar <dewar@gnat.com>
35545 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
35548 2003-12-15 Vincent Celier <celier@gnat.com>
35550 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
35551 (Gnatchop): Do not set failure status when reporting the number of
35554 2003-12-15 Doug Rupp <rupp@gnat.com>
35556 * s-ctrl.ads: New file.
35558 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
35560 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
35561 (GNATBIND_OBJS): Add ada/s-crtl.o.
35563 * Makefile.in [VMS]: Clean up ifeq rules.
35565 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
35566 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
35567 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
35568 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
35569 s-tasdeb.adb: Update copyright.
35570 Import System.CRTL.
35571 Make minor modifications to use System.CRTL declared functions instead
35572 of importing locally.
35574 2003-12-15 GNAT Script <nobody@gnat.com>
35576 * Make-lang.in: Makefile automatically updated
35578 2003-12-11 Ed Falis <falis@gnat.com>
35580 * 5zinit.adb: Clean up.
35582 * 5zintman.adb (Notify_Exception): replaced case statement with a call
35583 to __gnat_map_signal, imported from init.c to support
35584 signal -> exception mappings that depend on the vxWorks version.
35587 Created and exported __gnat_map_signal to support signal -> exception
35588 mapping that is dependent on the VxWorks version.
35589 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
35591 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
35593 * 5wosinte.ads: Link with -mthreads switch.
35595 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
35597 * init.c (__gnat_install_handler [NetBSD]): Set
35598 __gnat_handler_installed, as done on all other platforms.
35599 Remove duplicated code.
35601 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
35603 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
35605 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
35607 * sinfo.ads: Fix inconsistent example code in comment.
35609 2003-12-11 Robert Dewar <dewar@gnat.com>
35611 * a-tiinau.adb: Add a couple of comments
35613 * sem_ch3.adb: Minor reformatting
35616 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
35617 Minor reformatting throughout
35619 2003-12-11 Ed Schonberg <schonberg@gnat.com>
35621 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
35622 bounds of a loop, create a separate block in order to generate proper
35623 cleanup actions to prevent memory leaks.
35625 * sem_res.adb (Resolve_Call): After a call to
35626 Establish_Transient_Scope, the call may be rewritten and relocated, in
35627 which case no further processing is needed.
35629 * sem_util.adb: (Wrong_Type): Refine previous fix.
35630 Fixes ACATS regressions.
35633 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
35636 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
35638 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
35639 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
35642 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
35645 2003-12-08 Robert Dewar <dewar@gnat.com>
35647 * 7sintman.adb: Minor reformatting
35649 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
35650 standard linker options to get standard libraries linked. We now plan
35651 to provide dummy versions of these libraries to match the appropriate
35652 configurable run-time (e.g. if a library is not needed at all, provide
35653 a dummy empty library).
35655 * targparm.ads: Configurable_Run_Time mode no longer affects linker
35656 options (-L parameters and standard libraries). What we plan to do is
35657 to provide dummy libraries where the libraries are not required.
35659 * gnatbind.adb: Minor comment improvement
35661 2003-12-08 Javier Miranda <miranda@gnat.com>
35663 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
35664 aggregate in the parent. Otherwise constants with limited aggregates
35665 are not supported. Add new formal to pass the component type (Ctype).
35666 It is required to call the corresponding IP subprogram in case of
35667 default initialized components.
35668 (Gen_Assign): In case of default-initialized component, generate a
35669 call to the IP subprogram associated with the component.
35670 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
35671 of aggregate with default initialized components.
35672 (Has_Default_Init_Comps): Improve implementation to recursively check
35673 all the present expressions.
35675 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
35676 to indicate that the initialization call corresponds to a
35677 default-initialized component of an aggregate.
35678 In case of default initialized aggregate with tasks this parameter is
35679 used to generate a null string (this is just a workaround that must be
35680 improved later). In case of discriminants, this parameter is used to
35681 generate a selected component node that gives access to the discriminant
35684 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
35685 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
35686 allocated aggregates with default-initialized components.
35688 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
35689 the box notation is used in positional aggregates.
35691 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
35693 * lib.ads: Fix typo in comment
35695 2003-12-08 Vincent Celier <celier@gnat.com>
35697 * prj.adb (Project_Empty): New component Unkept_Comments
35698 (Scan): Remove procedure; moved to Prj.Err.
35700 * prj.ads (Project_Data): New Boolean component Unkept_Comments
35701 (Scan): Remove procedure; moved to Prj.Err.
35703 * prj-dect.adb: Manage comments for the different declarations.
35705 * prj-part.adb (With_Record): New component Node
35706 (Parse): New Boolean parameter Store_Comments, defaulted to False.
35707 Set the scanner to return ends of line and comments as tokens, if
35708 Store_Comments is True.
35709 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
35710 comments are associated with these nodes. Store the node IDs in the
35712 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
35714 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
35715 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
35716 current project. Call Tree.Restore afterwards. Set the various nodes
35717 for comment storage (Next_End, End_Of_Line, Previous_Line,
35720 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
35721 defaulted to False.
35723 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
35724 to False. When Truncated is True, truncate the string, never go to the
35726 (Write_End_Of_Line_Comment): New procedure
35727 (Print): Process comments for nodes N_With_Clause,
35728 N_Package_Declaration, N_String_Type_Declaration,
35729 N_Attribute_Declaration, N_Typed_Variable_Declaration,
35730 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
35731 Process nodes N_Comment.
35733 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
35734 without comments and there are some comments, set the flag
35735 Unkept_Comments to True.
35736 (Scan): If there are comments, set the flag Unkept_Comments to True and
35737 clear the comments.
35738 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
35739 (Next_End_Nodes: New table
35740 (Comment_Zones_Of): New function
35741 (Scan): New procedure; moved from Prj. Accumulate comments in the
35742 Comments table and set end of line comments, comments after, after end
35744 (Add_Comments): New procedure
35745 (Save, Restore, Seset_State): New procedures
35746 (There_Are_Unkept_Comments): New function
35747 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
35748 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
35750 (First_Comment_After, First_Comment_After_End): New functions
35751 (First_Comment_Before, First_Comment_Before_End): New functions
35752 (Next_Comment): New function
35753 (End_Of_Line_Comment, Follows_Empty_Line,
35754 Is_Followed_By_Empty_Line): New functions
35755 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
35756 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
35757 (Set_Next_Comment): New procedure
35758 (Default_Project_Node): Associate comment before if the node can store
35761 * scans.ads (Token_Type): New enumeration value Tok_Comment
35762 (Comment_Id): New global variable
35764 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
35765 defaulted to False.
35766 (Scan): Store position of start of comment. If comments are tokens, set
35767 Comment_Id and set Token to Tok_Comment when scanning a comment.
35768 (Set_Comment_As_Token): New procedure
35770 * sinput-p.adb: Update Copyright notice
35771 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
35772 that no longer exists.
35774 2003-12-08 Javier Miranda <miranda@gnat.com>
35776 * sem_aggr.adb: Add dependence on Exp_Tss package
35777 Correct typo in comment
35778 (Resolve_Aggregate): In case of array aggregates set the estimated
35779 type of the aggregate before calling resolve. This is needed to know
35780 the name of the corresponding IP in case of limited array aggregates.
35781 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
35782 in case of default initialized array components.
35784 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
35785 types. Required to give support to limited aggregates in generic
35788 2003-12-08 Ed Schonberg <schonberg@gnat.com>
35790 * sem_ch3.adb (Check_Initialization): For legality purposes, an
35791 inlined body functions like an instantiation.
35792 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
35793 until bounds are analyzed, to diagnose premature use of type.
35795 * sem_util.adb (Wrong_Type): Improve error message when the type of
35796 the expression is used prematurely.
35798 2003-12-08 GNAT Script <nobody@gnat.com>
35800 * Make-lang.in: Makefile automatically updated
35802 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
35804 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
35805 they are automatically generated by Make-lang.in and cause nothing but
35806 maintenance troubles.
35808 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
35810 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
35811 version of this unit).
35813 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
35815 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
35816 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
35817 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
35818 the body of System.Interrupt_Management common to several targets.
35819 Update copyright notice when appropriate.
35821 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
35824 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
35825 to ensure that the kernel fills in the interrupted context structure
35826 before calling a signal handler, which is necessary to be able to
35827 unwind past it. Update the copyright notice.
35829 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
35831 * a-elchha.ads: New file.
35833 * a-elchha.adb: New default last chance handler. Contents taken from
35834 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
35836 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
35837 is moved to a-elchha.adb to provide a target-independent default last
35840 * Makefile.rtl: Add a-elchha.o
35842 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
35844 2003-12-05 Ed Schonberg <schonberg@gnat.com>
35846 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
35847 declared in an instance, do not inline the call if the instance is not
35848 frozen yet, to prevent order of elaboration problems.
35850 * sem_prag.adb: Add comments for previous fix.
35852 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
35854 * g-table.adb: Use the right variable in Set_Item.
35855 Update copyright notice.
35857 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
35859 * Makefile.in: Remove unused rules.
35861 2003-12-05 Vincent Celier <celier@gnat.com>
35863 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
35864 -nostdlib. Not needed here after all.
35866 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
35869 * adaint.h, adaint.c, g-os_lib.ads:
35870 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
35871 on some platforms (including FreeBSD), it is a 64 bit value.
35872 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
35874 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
35876 * gnatvsn.ads (Library_Version): Now contain only the relevant
35878 (Verbose_Library_Version): New constant.
35880 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
35881 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
35882 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
35884 * gnatlbr.adb: Clean up: replace Library_Version by
35885 Verbose_Library_Version.
35887 * make.adb, lib-writ.adb, exp_attr.adb:
35888 Clean up: replace Library_Version by Verbose_Library_Version.
35890 * 5lintman.adb: Removed.
35893 Update and simplify computation of LIBRARY_VERSION.
35894 Fix computation of GSMATCH_VERSION.
35895 5lintman.adb is no longer used: replaced by 7sintman.adb.
35897 2003-12-03 Robert Dewar <dewar@gnat.com>
35900 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
35901 name. Modified to consider small non-bit-packed arrays as troublesome
35902 and in need of component-by-component assigment expansion.
35904 2003-12-03 Vincent Celier <celier@gnat.com>
35906 * lang-specs.h: Process nostdlib as nostdinc
35908 * back_end.adb: Update Copyright notice
35909 (Scan_Compiler_Arguments): Process -nostdlib directly.
35911 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
35914 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
35915 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
35916 included in HIE_NONE_TARGET_PAIRS.
35918 2003-12-03 Ed Schonberg <schonberg@gnat.com>
35921 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
35922 is legal in an instance, because legality is cheched in the template.
35925 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
35926 appplied to an unchecked conversion of a formal parameter.
35929 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
35932 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
35934 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
35935 routines. The second one is new functionality to deal with backtracing
35936 through signal handlers.
35937 (unwind): Split into the two separate subroutines above.
35938 Update the documentation, and deal properly with sizeof (REG) different
35939 from sizeof (void*).
35941 2003-12-01 Nicolas Setton <setton@act-europe.fr>
35943 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
35944 so that the debugger can reliably access the value of the parameter,
35945 and therefore is able to display the exception name when an exception
35946 breakpoint is reached.
35948 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
35950 * fmap.adb: Fix typo in warning message.
35952 * g-socket.ads, g-socket.adb: Make Free a visible instance of
35953 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
35955 2003-12-01 Vincent Celier <celier@gnat.com>
35957 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
35959 (Build_Library): Get the switches only if Default_Switches is declared
35962 2003-12-01 Ed Schonberg <schonberg@gnat.com>
35964 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
35965 actuals that are indexed components, reanalyze actual to ensure that
35966 packed array references are properly expanded.
35968 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
35969 attempted assignment to a discriminant.
35971 2003-12-01 Robert Dewar <dewar@gnat.com>
35973 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
35976 * switch-c.adb: Minor reformatting of comments
35978 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
35980 * Makefile.in: Clean ups.
35982 2003-12-01 GNAT Script <nobody@gnat.com>
35984 * Make-lang.in: Makefile automatically updated
35986 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
35988 * 5wsystem.ads: Disable zero cost exception, not ready yet.
35990 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
35992 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
35993 to force serialization.
35995 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
35997 * g-socket.ads, g-socket.adb:
35998 Clarify documentation of function Stream. Introduce a Free procedure
35999 to release the returned Stream once it becomes unused.
36001 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
36003 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
36005 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
36006 since NT 4 cannot handle timeout values that are too large,
36007 e.g. DWORD'Last - 1.
36009 2003-11-26 Ed Schonberg <schonberg@gnat.com>
36012 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
36013 in procedure calls and whose expansion must be deferred.
36015 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
36019 (Build_Derived_Array_Type): Create operator for unconstrained type
36020 if ancestor is unconstrained.
36022 2003-11-26 Vincent Celier <celier@gnat.com>
36024 * make.adb (Project_Object_Directory): New global variable
36025 (Change_To_Object_Directory): New procedure
36026 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
36027 of Change_Dir directly. Do not change working directory to object
36028 directory of main project after each compilation.
36029 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
36031 Change to object directory of main project before binding step.
36032 (Initialize): Initialize Project_Object_Directory to No_Project
36035 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
36036 binding a Stand-Alone Library.
36038 * output.adb: Update Copyright notice
36039 (Write_Char): Output buffer when full
36041 2003-11-26 Robert Dewar <dewar@gnat.com>
36043 * sem_ch13.adb: (Check_Size): Reset size if size is too small
36046 (Check_Size): Fix documentation to include bit-packed array case
36048 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
36050 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
36052 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
36054 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
36057 * utils.c (init_gigi_decls): Change name of built-in setjmp to
36058 __builtin_setjmp, since this is apparently needed by recent
36061 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36063 * adadecode.c: Only include ctype.h if not IN_GCC.
36064 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
36066 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
36069 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
36070 signals and interrupts.
36072 * 5zintman.ads: New File.
36074 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
36075 add exception signals to the set of unmasked signals.
36078 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
36079 between signals and interrupts.
36080 Add to Unblocked_Signal_Mask the set of signals that are in
36084 Adding a check to see whether the Interrupt_ID we want to unmask is in
36085 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
36086 reason is that the index type of the Keep_Unmasked array is not always
36087 Interrupt_ID; it may be a subtype of Interrupt_ID.
36089 2003-11-24 Gary Dismukes <dismukes@gnat.com>
36092 (Remove_Side_Effects): Condition constantness of object created for a
36093 an unchecked type conversion on the constantness of the expression
36094 to ensure the correct value for 'Constrained when passing components
36095 of view-converted class-wide objects.
36097 2003-11-24 Robert Dewar <dewar@gnat.com>
36099 * par-load.adb (Load): Improve handling of misspelled and missing units
36100 Removes several cases of compilation abandoned messages
36102 * lib.adb: (Remove_Unit): New procedure
36104 * lib.ads: (Remove_Unit): New procedure
36106 * lib-load.adb: Minor reformatting
36108 2003-11-24 Vincent Celier <celier@gnat.com>
36111 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
36112 (Marking_Label): Label to mark processed source files. Incremented for
36114 (Gnatmake): Increase Marking_Labet for each executable
36115 (Is_Marked): Compare against marking label
36116 (Mark): Mark with marking label
36118 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
36121 Move the declaration of the TSD for System.Threads to System.Soft_Links.
36124 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
36125 (rts-cert): build a single relocatable object for the run-time lib.
36128 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
36131 Use gnatls rather than gcc to obtain the location of GNAT RTL for
36134 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
36136 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
36137 can not use it as before (that is, as a variable) when dumping it into
36138 the tree file. Add a local variable to store the result of this
36139 function and to be used as the string to be written into the tree.
36141 * scn.adb (Initialize_Scanner): Add comments explaining the recent
36144 * sinput.adb (Source_First, Source_Last): In case of
36145 Internal_Source_File, replace returning attributes of
36146 Internal_Source_Ptr (which is wrong) with returning attributes of
36149 2003-11-24 Ed Schonberg <schonberg@gnat.com>
36152 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
36153 used for implicit concatenation operators.
36157 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
36158 task bodies that are in the scope of a Suppress pragma.
36159 (Check_A Call): Use the flag to prevent spurious elaboration checks.
36161 * sinfo.ads, sinfo.adb:
36162 New flag No_Elaboration_Check on function/procedure calls, to properly
36163 suppress checks on calls in task bodies that are within a local suppress
36167 (Expand_Concatenate_Other): Use the proper integer type for the
36168 expression for the upper bound, to avoid universal_integer computations
36171 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
36173 * .cvsignore: Delete.
36175 2003-11-21 Andreas Schwab <schwab@suse.de>
36177 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
36179 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
36181 * 5wsystem.ads: Enable zero cost exception.
36183 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
36185 * 5ztiitho.adb: Remove an unreferenced variable.
36187 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
36189 * adaint.c: For FreeBSD, use mkstemp.
36191 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
36193 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
36195 2003-11-21 Robert Dewar <dewar@gnat.com>
36197 * bld.adb: Remove useless USE of gnatvsn
36199 * gnatchop.adb: Minor reformatting
36200 Clean up version handling to be more consistent
36202 * gnatxref.adb: Minor reformatting
36204 * gprcmd.adb: Minor reformatting
36205 Fix output of copyright to be more consistent with other tools
36207 2003-11-21 Vincent Celier <celier@gnat.com>
36209 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
36211 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
36213 * atree.adb (Initialize): Add initializations for global variables
36214 used in New_Copy_Tree.
36216 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
36217 Internal_Source_File as the actual).
36218 Put the set of statements creating Any_Character before the set of
36219 statements creating Any_Array to have Any_Character fully initialized
36220 when it is used in creating Any_Array.
36222 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
36223 not call Scan in case if the actual is Internal_Source_File
36224 Add 2003 to copyright note.
36226 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
36227 processing Internal_Source_File.
36229 * types.ads: Add the constant Internal_Source_File representing the
36230 source buffer for artificial source-code-like strings created within
36231 the compiler (the definition of Source_File_Index is changed).
36233 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
36235 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
36236 56system.ads: New file, FreeBSD version.
36238 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
36240 * Make-lang.in (ada.extraclean): Delete.
36242 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
36244 * gnatmem.adb: Clean up verbose output.
36246 * gprcmd.adb: Change copyright to FSF.
36248 2003-11-19 Vincent Celier <celier@gnat.com>
36250 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
36251 and Version (ignored).
36253 * symbols.ads: (Policy): New type
36254 (Initialize): New parameter Reference, Symbol_Policy and
36256 Remove parameter Force.
36257 Minor reformatting.
36259 * snames.ads, snames.adbadb: New standard names
36260 Library_Reference_Symbol_File and Library_Symbol_Policy
36263 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
36267 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
36269 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
36271 * prj.adb: (Project_Empty): New component Symbol_Data
36273 * prj.ads: (Policy, Symbol_Record): New types
36274 (Project_Data): New component Symbol_Data
36277 New attributes Library_Symbol_File, Library_Symbol_Policy and
36278 Library_Reference_Symbol_File.
36281 (Ada_Check): When project is a Stand-Alone library project, process
36282 attribute Library_Symbol_File, Library_Symbol_Policy and
36283 Library_Reference_Symbol_File.
36285 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
36286 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
36287 5sml-tgt.adb (Build_Dynamic_Library): New parameter
36288 Symbol_Data (ignored).
36290 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
36291 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
36292 functions Option_File_Name and Version_String. Set new options of
36293 gnatsym related to symbol file, symbol policy and reference symbol
36297 Extensive modifications to take into account the reference symbol file,
36298 the symbol policy, the library version and to put in the symbol file the
36299 minor and major IDs.
36301 * bld.adb (Process_Declarative_Items): Put second argument of
36302 gprcmd to_absolute between single quotes, to avoid problems with
36305 * bld-io.adb: Update Copyright notice.
36306 (Flush): Remove last character of a line, if it is a back slash, to
36307 avoid make problems.
36310 Implement new scheme with reference symbol file and symbol policy.
36312 * g-os_lib.ads: (Is_Directory): Clarify comment
36314 2003-11-19 Robert Dewar <dewar@gnat.com>
36316 * atree.adb: Move New_Copy_Tree global variables to head of package
36318 * errout.adb: Minor reformatting
36320 2003-11-19 Javier Miranda <miranda@gnat.com>
36322 * sem_ch4.adb: (Diagnose_Call): Improve error message.
36323 Add reference to Ada0Y (AI-50217)
36325 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
36326 sem_util.adb: Add reference to AI-50217
36328 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
36330 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
36332 * sem_aggr.adb: Complete documentation of AI-287 changes
36334 * par-ch4.adb: Document previous changes.
36336 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
36337 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
36340 * exp_aggr.adb: Add references to AI-287 in previous changes
36342 2003-11-19 Ed Schonberg <schonberg@gnat.com>
36345 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
36346 in the rewriting is the result of an inlined call.
36348 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
36349 parameter is a type conversion, use original node to construct the
36350 post-call assignment, because expression may have been rewritten, e.g.
36351 if it is a packed array.
36354 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
36355 body, just as it is in an instance.
36356 Categorization routines
36358 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
36359 Instantiate_Object): Set proper sloc reference for message on missing
36362 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
36364 * Makefile.in: Add FreeBSD libgnat pairs.
36366 * usage.adb: Fix typo in usage message.
36368 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
36370 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
36371 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
36372 pragma Thread_Body.
36373 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
36375 * s-thread.adb: This file is now a dummy implementation of
36378 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
36380 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
36382 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
36384 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
36385 instanciation references in the parent type description.
36387 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36389 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
36391 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
36392 TYPE_PRECISION directly from esize.
36394 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
36397 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
36399 * init.c: Initialization routines for FreeBSD
36401 * link.c: Link info for FreeBSD
36403 * sysdep.c: Add the case of FreeBSD
36405 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
36407 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
36408 already called in System.Threads.
36410 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
36411 environment task, as it has been moved to System.Threads.Initialization.
36413 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
36415 * adaint.c (__gnatlib_install_locks): Only reference
36416 __gnat_install_locks on VMS, since other platforms can avoid using
36417 --enable-threads=gnat
36419 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36421 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
36423 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
36424 TYPE_PACKED_ARRAY_TYPE_P.
36425 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
36427 Part of PR ada/12806
36428 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
36429 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
36431 2003-11-17 Vincent Celier <celier@gnat.com>
36433 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
36435 Do not set exit status to Failure when Warning is True.
36436 (Gnatchop): Make errors "no compilation units found" and
36437 "no source files written" warnings only.
36439 * make.adb (Gnatmake): When using a project file, set
36440 Look_In_Primary_Dir to False.
36441 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
36442 and Local_Configuration_Pragmas in the project where they are declared
36443 not an extending project which might have inherited them.
36445 * osint.adb (Locate_File): If Name is already an absolute path, do not
36446 look for a directory.
36448 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
36449 -gnats (Check_Syntax) is used, issue only a warning, not an error.
36451 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
36452 in objects of type Variable_Value.
36454 * prj.ads: (Variable_Value): New component Project
36456 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
36457 is in a project extended by Project.
36459 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
36460 Project of Variable_Values to this new parameter value.
36461 (Expression): Set component Project of Variable_Values.
36462 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
36463 Set the component Project in array elements.
36465 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
36467 * errout.adb: (Initialize): Add initialization for error nodes.
36469 * sem_ch12.adb (Initialize): Add missing initializations for
36470 Exchanged_Views and Hidden_Entities.
36472 2003-11-17 Ed Schonberg <schonberg@gnat.com>
36474 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
36475 already instantiated tree for use in subsequent inlining.
36476 (Analyze_Associations, Instantiate_Formal_Subprogram,
36477 Instantiate_Object): improve error message for mismatch in
36480 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
36481 instantiations of subprograms declared in instances.
36483 2003-11-17 Javier Miranda <miranda@gnat.com>
36485 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
36486 executed only under the Extensions_Allowed flag.
36488 2003-11-17 Robert Dewar <dewar@gnat.com>
36490 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
36492 (Address_Image): Fix bug of returning 0x instead of 0x0
36493 Minor reformatting (function specs).
36495 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
36496 (missed case of 33-63)
36498 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
36500 * s-thread.adb: Add comments for pragma Restriction
36502 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
36503 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
36505 2003-11-17 Ed Falis <falis@gnat.com>
36507 * s-thread.adb: Added No_Tasking restriction for this implementation.
36509 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
36511 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
36512 instanciation references in the parent type description.
36514 2003-11-17 GNAT Script <nobody@gnat.com>
36516 * Make-lang.in: Makefile automatically updated
36518 2003-11-16 Jason Merrill <jason@redhat.com>
36520 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
36521 and TAGS files that include them for each front end.
36523 2003-11-14 Andreas Jaeger <aj@suse.de>
36525 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
36526 is the canonical version.
36527 * misc.c (gnat_handle_option): Likewise.
36529 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
36531 * 5nsystem.ads: New file for x86_64-linux-gnu.
36533 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
36535 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
36537 * comperr.adb: Fix logic in previous change.
36539 2003-11-13 Vincent Celier <celier@gnat.com>
36541 * 5bml-tgt.adb (Build_Dynamic_Library): Use
36542 Osint.Include_Dir_Default_Prefix instead of
36543 Sdefault.Include_Dir_Default_Name.
36545 * gnatlbr.adb: Update Copyright notice
36546 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
36547 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
36548 instead of Sdefault.Object_Dir_Default_Name
36551 (Process_Binder_File): Never suppress the option following -Xlinker
36554 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
36555 Sdefault.Object_Dir_Default_Name.
36557 * osint.ads, osint.adb:
36558 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
36559 Minor reformatting.
36561 * vms_conv.ads: Minor reformating
36562 Remove GNAT STANDARD and GNAT PSTA
36565 Allow GNAT MAKE to have several files on the command line.
36566 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
36567 Sdefault.Object_Dir_Default_Name.
36569 Remove data for GNAT STANDARD
36572 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
36573 Remove data for GNAT STANDARD
36574 Remove options and documentation for -gnatwb/-gnatwB: these warning
36575 options no longer exist.
36577 2003-11-13 Ed Falis <falis@gnat.com>
36579 * 5zthrini.adb: (Init_RTS): Made visible
36582 (Register): Removed unnecessary call to taskVarGet that checked whether
36583 an ATSD was already set as a task var for the argument thread.
36586 Updated comment to reflect that this is a VxWorks version
36587 Added context clause for System.Threads.Initialization
36588 Added call to System.Threads.Initialization.Init_RTS
36590 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
36593 (Init_RTS): New procedure, for the initialization of the run-time lib.
36596 Remove dependancy on System.Init, so that this file can be used in the
36597 AE653 sequential run-time lib.
36599 2003-11-13 Robert Dewar <dewar@gnat.com>
36601 * bindgen.adb: Minor reformatting
36603 2003-11-13 Ed Schonberg <schonberg@gnat.com>
36606 (Apply_Discriminant_Check): Do no apply check if target type is derived
36607 from source type with no applicable constraint.
36610 (Ensure_System_Dependency): Do not apply the style checks that may have
36611 been specified for the main unit.
36614 (Find_Selected_Component): Further improvement in error message, with
36618 (Resolve): Handle properly the case of an illegal overloaded protected
36621 2003-11-13 Javier Miranda <miranda@gnat.com>
36624 (Has_Default_Init_Comps): New function to check the presence of
36625 default initialization in an aggregate.
36626 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
36627 extension aggregate of a limited record. In addition, a new formal
36628 was added to do not initialize the record controller (if any) during
36629 this recursive expansion of ancestors.
36630 (Init_Controller): Add support for limited record components.
36631 (Expand_Record_Aggregate): In case of default initialized components
36632 convert the aggregate into a set of assignments.
36634 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
36635 describing the new syntax.
36636 Nothing else needed to be done because this subprogram delegates part of
36637 its work to P_Precord_Or_Array_Component_Association.
36638 (P_Record_Or_Array_Component_Association): Give support to the new
36639 syntax for default initialization of components.
36642 (Resolve_Aggregate): Relax the strictness of the frontend in case of
36643 limited aggregates.
36644 (Resolve_Record_Aggregate): Give support to default initialized
36646 (Get_Value): In case of default initialized components, duplicate
36647 the corresponding default expression (from the record type
36648 declaration). In case of default initialization in the *others*
36649 choice, do not check that all components have the same type.
36650 (Resolve_Extension_Aggregate): Give support to limited extension
36654 (Check_Initialization): Relax the strictness of the front-end in case
36655 of aggregate and extension aggregates. This test is now done in
36656 Get_Value in a per-component manner.
36658 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
36659 expression corresponds to a limited aggregate. This test is now done
36662 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
36665 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
36666 present in an N_Component_Association node
36668 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
36670 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
36671 type-conformant entry only if they are homographs.
36673 2003-11-13 GNAT Script <nobody@gnat.com>
36675 * Make-lang.in: Makefile automatically updated
36677 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36679 * adadecode.c: Use <> form of include for ctype.h.
36680 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
36682 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36684 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
36685 Works around PR middle-end/6552.
36687 2003-11-10 Ed Falis <falis@gnat.com>
36689 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
36691 * 5zinit.adb: (Install_Handler): Moved back to spec
36692 (Install_Signal_Handlers): Deleted
36694 * 5zthrini.adb: Added context clause for System.Storage_Elements
36695 (Register): Only handles creation of taskVar; initialization moved to
36697 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
36698 Added declaration of environment task secondary stack and
36701 * s-thread.adb: Implement bodies for thread body processing
36704 Added comment identifying supported targets for pragma Thread_Body.
36706 2003-11-10 Pascal Obry <obry@gnat.com>
36708 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
36712 (Open): Properly check for string length before copying into the buffer.
36713 Raises Name_Error if buffer is too small. Note that this was a potential
36716 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
36718 * bindgen.adb, comperr.adb: Code clean ups.
36719 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
36721 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
36723 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
36725 2003-11-10 Vincent Celier <celier@gnat.com>
36728 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
36731 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
36733 * prj.adb: (Project_Empty): Add new boolean component Virtual
36735 * prj.ads: (Virtual_Prefix): New constant string
36736 (Project_Data): New boolean component Virtual
36738 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
36739 a library project is extended by a virtual extending project.
36742 Modifications throughout to implement extending-all project, including:
36743 (Virtual_Hash, Processed_Hash): New hash tables
36744 (Create_Virtual_Extending_Project): New procedure
36745 (Look_For_Virtual_Projects_For): New procedure
36748 (Process): After checking the projects, if main project is an
36749 extending-all project, set the object directory of all virtual extending
36750 project to the object directory of the main project.
36751 Adjust error message when a virtual extending project has the same
36752 object directory as an project being extended.
36753 (Recursive_Process): If name starts with the virtual prefix, set Virtual
36754 to True in the project data.
36757 (Default_Project_Node): Add new boolean component Extending_All
36758 (Is_Extending_All): New function
36759 (Set_Is_Extending_All): New procedure
36761 * prj-tree.ads: (Is_Extending_All): New function
36762 (Set_Is_Extending_All): New procedure
36763 (Project_Node_Record): New boolean component Extending_All
36765 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
36768 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
36770 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
36771 "gprcmd prefix" to define it.
36773 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
36775 * einfo.ads: Fix a typo and remove an extraneous word in comments.
36778 (Create_Dummy_Package_Unit): Set the scope of the entity for the
36779 created dummy package to Standard_Standard, not to itself, to
36780 defend other parts of the front-end against encoutering a cycle in
36784 (Analyze_With_Clause): When setting the entities for the successive
36785 N_Expanded_Names that constitute the name of a child unit, do not
36786 attempt to go further than Standard_Standard in the chain of scopes.
36787 This case arises from the placeholder units created by
36788 Create_Dummy_Package_Unit in the case of a with_clause for a
36789 nonexistent child unit.
36791 2003-11-10 Ed Schonberg <schonberg@gnat.com>
36794 (Expand_Thread_Body): Place subprogram on scope stack, so that new
36795 declarations are given the proper scope.
36798 (Check_Expr_Constants): Reject an expression that contains a constant
36799 created during expansion, and that appears after the object to which
36800 the address clause applies.
36802 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
36803 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
36804 that uses 'Range of a function call with controlled components, so
36805 that the function result can be finalized before starting the loop.
36808 (Find_Selected_Component): Improve error message when prefix is
36809 an implicit dereference of an incomplete type.
36811 2003-11-10 Robert Dewar <dewar@gnat.com>
36813 * opt.ads: New Print_Standard flag for -gnatS switch
36815 * sem_ch13.adb: Remove some additional checks for unaligned arrays
36817 * cstand.adb (Create_Standard): Print out package standard if -gnatS
36820 * debug.adb: Update doc for -gnatds to discuss relationship with new
36823 * sinfo.adb: Add new field Entity_Or_Associated_Node
36825 * sinfo.ads: Add new field Entity_Or_Associated_Node
36826 Update documentation for Associated_Node and Entity fields to clarify
36827 relationship and usage.
36830 (Write_Id): Properly process Associated_Node field in generic template
36833 Recognize new -gnatS switch for printing package Standard
36834 This replaces gnatpsta
36837 Add line for new -gnatS switch for printing package Standard
36838 This replaces gnatpsta
36840 2003-11-10 Andreas Jaeger <aj@suse.de>
36842 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
36845 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
36847 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
36850 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
36852 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
36855 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
36857 * sysdep.c: Add handling of cygwin.
36859 2003-11-10 GNAT Script <nobody@gnat.com>
36861 * Make-lang.in: Makefile automatically updated
36863 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
36866 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
36867 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
36868 Replace GNAT_ROOT by GCC_ROOT.
36870 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
36872 2003-11-06 Zack Weinberg <zack@codesourcery.com>
36874 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
36875 and update for changed meaning of GET_MODE_BITSIZE.
36877 2003-11-04 Doug Rupp <rupp@gnat.com>
36879 * sysdep.c: Problem discovered during IA64 VMS port.
36880 [VMS] #include <unixio.h> to get proper prototypes.
36883 Issues discovered/problems fixed during IA64 VMS port.
36884 [VMS] #define _POSIX_EXIT for proper semantics.
36885 [VMS] #include <unixio.h> for proper prototypes.
36886 [VMS] (fork): #define IA64 version.
36887 (__gnat_os_exit): Remove unnecessary VMS specific code.
36889 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36891 Part of PR ada/12806
36892 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
36896 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
36899 * targtyps.c, decl.c, misc.c,
36900 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
36901 routines to work around change in FP sizing semantics in GCC.
36904 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
36906 * gigi.h: (enumerate_modes): New function.
36908 * Make-lang.in: (ada/misc.o): Add real.h.
36910 * misc.c: (enumerate_modes): New function.
36912 2003-11-04 Robert Dewar <dewar@gnat.com>
36914 * 3vtrasym.adb: Minor reformatting
36915 Use terminology encoded/decoded name, rather than C++ specific notion
36916 of mangling (this is the terminology used throughout GNAT).
36918 * einfo.h: Regenerated
36920 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
36923 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
36925 * par-prag.adb: Add dummy entry for Thread_Body pragma
36928 Add entries for System.Threads entities for thread body processing
36931 (Analyze_Pragma, Access attributes): Check these are not applied to a
36932 thread body, since this is not permitted
36934 * sem_prag.adb: Add processing for Thread_Body pragma.
36938 (Resolve_Call): Check for incorrect attempt to call a thread body
36939 procedure with a direct call.
36941 * snames.ads, snames.adb: Add entry for Thread_Body pragma
36942 Add names associated with thread body expansion
36944 * snames.h: Add entry for Thread_Body pragma
36946 * s-thread.adb: Add entries for thread body processing
36947 These are dummy bodies so far
36949 * s-thread.ads: Add documentation on thread body handling.
36950 Add entries for thread body processing.
36952 2003-11-04 Javier Miranda <miranda@gnat.com>
36955 (Build_Limited_Views): Return after posting an error in case of limited
36956 with_clause on subprograms, generics, instances or generic renamings
36957 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
36958 on subprograms, generics, instances or generic renamings
36960 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
36962 * raise.c (setup_to_install): Correct mistake in last revision; two
36963 arguments out of order.
36965 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
36966 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
36967 notice, missed in previous change.
36968 Remove trailing blanks and other style errors introduced in previous
36971 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
36973 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
36974 rid of the wrapper for a LJM type, ensuring we don't do that if the
36975 field is addressable. This avoids potential low level type view
36976 mismatches later on, for instance in a by-reference argument passing
36979 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36981 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
36982 aligned at byte boundary.
36984 2003-11-04 Joel Brobecker <brobecker@gnat.com>
36986 * decl.c (components_to_record): Do not delete the empty variants from
36987 the end of the union type.
36989 2003-11-04 Ed Schonberg <schonberg@gnat.com>
36991 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
36992 operation for a derived type, an explicit declaration may use a local
36993 subtype of Boolean.
36995 2003-11-04 Vincent Celier <celier@gnat.com>
36997 * make.adb (Gnatmake): Allow main sources on the command line with a
36998 library project when it is only for compilation (no binding or
37001 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37003 * Makefile.in: Remove many duplicate variables.
37005 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
37007 * Make-lang.in (dvi): Move targets to $(docobjdir).
37008 (gnat_ug_vms.dvi): Simplify rule and adjust target.
37009 (gnat_ug_wnt.dvi): Likewise.
37010 (gnat_ug_unx.dvi): Likewise.
37011 (gnat_ug_vxw.dvi): Likewise.
37012 (gnat_rm.dvi): Likewise.
37013 (gnat-style.dvi): Likewise.
37015 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
37017 * gigi.h: Missed commit from update for C90.
37019 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
37021 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
37023 2003-10-31 Andreas Schwab <schwab@suse.de>
37025 * raise.c (get_action_description_for): Fix typo in last change.
37027 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
37030 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
37031 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
37033 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
37035 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
37036 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
37037 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
37038 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
37039 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
37041 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
37044 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
37045 numbers when symbol name is too long.
37047 2003-10-30 Ed Falis <falis@gnat.com>
37049 * g-signal.ads, g-signal.adb: New files
37051 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
37053 * Makefile.rtl: Introduce GNAT.Signals
37055 2003-10-30 Robert Dewar <dewar@gnat.com>
37057 * freeze.adb: Minor reformatting
37059 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
37061 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
37062 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
37063 New handling of Id_Check parameter to improve recognition of keywords
37064 used as identifiers.
37065 Update copyright notice to include 2003
37067 2003-10-29 Robert Dewar <dewar@gnat.com>
37069 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
37070 sem_ch10.adb: Minor reformatting
37072 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
37073 (Expand_Assign_Record): Test right hand side for bit unaligned as well
37075 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
37077 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
37078 Support for TBK$SYMBOLIZE-based symbolic traceback.
37080 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
37083 Revert previous change, that did not work well when pragma No_Run_Time
37084 was used in conjunction with a run-time other than ZFP.
37086 2003-10-29 Vincent Celier <celier@gnat.com>
37089 (Gnatmake): When there are no Ada mains in attribute Main, disable the
37090 bind and link steps only is switch -z is not used.
37092 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
37094 * Makefile.generic: Remove duplicated setting of CC.
37096 * Makefile.prolog: Set CC to gcc by default, to override make's
37099 * einfo.h: Regenerated.
37101 2003-10-29 Ed Schonberg <schonberg@gnat.com>
37103 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
37104 current body, after compiling subunit.
37106 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
37107 when in deleted code, because gigi needs properly ordered freeze
37108 actions to annotate types.
37110 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
37111 prevent the premature freezing of record type that contains
37112 subcomponents with a private type that does not yet have a completion.
37114 2003-10-29 Javier Miranda <miranda@gnat.com>
37117 (Analyze_Package_Instantiation): Check that instances can not be used in
37118 limited with_clauses.
37121 (Analyze_Package_Renaming): Check that limited withed packages cannot
37122 be renamed. Improve text on error messages related to limited
37125 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
37127 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
37128 Update copyright notice.
37130 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
37131 (Install_Limited_Context_Clauses): New subprogram that isolates all the
37132 checks required for limited context_clauses and installs the limited
37134 (Install_Limited_Withed_Unit): Complete its documentation.
37135 (Analyze_Context): Check that limited with_clauses are only allowed in
37137 (Install_Context): Call Install_Limited_Context_Clauses after the
37138 parents have been installed.
37139 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
37140 package as 'From_With_Type'; this mark indicates that the limited view
37141 is installed. Used to check bad usages of limited with_clauses.
37142 (Build_Limited_Views): Do not add shadow entities to the scope's list
37143 of entities. Do not add real entities to the Non_Limited_Views chain.
37144 Improve error notification.
37145 (Remove_Context_Clauses): Remove context clauses in two phases:
37146 limited views first and regular views later (to maintain the
37148 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
37149 its visible entities.
37151 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
37153 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
37154 with any type that Is_Fixed_Point_Type.
37156 * sinfo.ads: Fix documentation for Associated_Node attribute.
37158 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
37160 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
37161 both '-gnatc' and '-gnatt' are specified.
37163 * atree.adb (Initialize): Add initialization for Node_Count (set to
37166 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37168 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
37169 do not consider as Pure.
37171 Part of implementation of function-at-a-time:
37173 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
37174 (tree_transform): Add new argument to build_component_ref.
37175 (tree_transform, case N_Assignment_Statement): Make and return an
37177 (tree_transform): If result IS_STMT, set flags and return it.
37178 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
37180 * utils2.c (build_simple_component_ref, build_component_ref): Add new
37182 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
37183 (build_allocator): Likewise.
37185 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
37186 Add new arg to build_component_ref.
37187 (maybe_unconstrained_array, unchecked_convert): Likewise.
37189 * ada-tree.def (EXPR_STMT): New code.
37191 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
37193 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
37194 build_component_ref calls.
37196 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
37198 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
37199 (build_component_ref): Add new argument, NO_FOLD_P.
37201 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
37203 * Makefile.generic: Add missing substitution on object_deps handling.
37206 * Make-lang.in (check-ada): Enable ACATS test suite.
37208 2003-10-27 Robert Dewar <dewar@gnat.com>
37211 (Freeze_Array_Type): We do not need an initialization routine for types
37212 derived from String or Wide_String. They should be treated the same
37213 as String and Wide_String themselves. This caused problems with the
37214 use of Initialize_Scalars.
37217 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
37218 composites. This allows use of component clauses that are not byte
37222 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
37223 is an attempt to pack an array of atomic objects.
37225 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
37227 2003-10-27 Pascal Obry <obry@gnat.com>
37230 (Basename): Check for drive letters in a pathname only on DOS based OS.
37232 2003-10-27 Vincent Celier <celier@gnat.com>
37235 (Gnatmake): When unable to change dir to the object dir, display the
37236 content of the parent dir of the obj dir, to try to understand why this
37239 2003-10-27 GNAT Script <nobody@gnat.com>
37241 * Make-lang.in: Makefile automatically updated
37243 2003-10-27 Ed Schonberg <schonberg@gnat.com>
37246 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
37247 should not be done in Save/Restore_Scope_Stack, because it is performed
37251 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
37252 whether use clauses should be removed/restored.
37255 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
37256 whether use clauses should be removed/restored.
37258 2003-10-26 Andreas Jaeger <aj@suse.de>
37260 * Makefile.in: Remove duplicated lines.
37262 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
37264 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
37265 minimize the differences with ACT tree.
37267 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
37268 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
37269 Gnatvsn.Gnat_Static_Version_String to reduce differences between
37272 2003-10-24 Pascal Obry <obry@gnat.com>
37275 * adadecode.c (ostrcpy): New function.
37276 (__gnat_decode): Use ostrcpy of strcpy.
37277 (has_prefix): Set first parameter a const.
37278 (has_suffix): Set first parameter a const.
37279 Update copyright notice. Fix source name in header.
37280 Removes a trailing space.
37282 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
37285 Remove the test against being in No_Run_Time_Mode before generating a
37286 call to Register_Tag. It is redundant with the test against the
37287 availability of the function Register_Tag.
37289 2003-10-24 Vincent Celier <celier@gnat.com>
37291 * g-catiio.adb: (Month_Name): Correct spelling of February
37293 * make.adb: (Mains): New package
37294 (Initialize): Call Mains.Delete
37295 (Gnatmake): Check that each main on the command line is a source of a
37296 project file and, if there are several mains, each of them is a source
37297 of the same project file.
37298 (Gnatmake): When a foreign language is specified in attribute Languages,
37299 no main is specified on the command line and attribute Mains is not
37300 empty, only build the Ada main. If there is no Ada main, just compile
37301 the Ada sources and their closure.
37302 (Gnatmake): If a main is specified on the command line with directory
37303 information, check that the source exists and, if it does, that the path
37304 is the actual path of a source of a project.
37307 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
37308 Full_Path is True, return the full path instead of the simple file name.
37309 (Project_Of): New function
37312 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
37313 defaulted to False.
37314 (Project_Of): New function
37316 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
37318 * Makefile.generic:
37319 Ensure objects of main project are always checked and rebuilt if needed.
37320 Set CC to gcc by default.
37321 Prepare new handling of link by creating a global archive (not activated
37324 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
37325 stringt.h: Update copyright notice. Remove trailing blanks.
37326 Fix source name in header.
37328 2003-10-24 Robert Dewar <dewar@gnat.com>
37330 * sem_ch12.adb: Minor reformatting
37333 Minor reformatting (including new function return style throughout)
37336 Minor reformatting (including new function return style throughout)
37338 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
37340 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
37341 stringt.h: Update copyright notice. Remove trailing blanks.
37342 Fix source name in header.
37344 2003-10-24 GNAT Script <nobody@gnat.com>
37346 * Make-lang.in: Makefile automatically updated
37348 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
37350 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
37351 stringt.h: Convert to ISO C90 declarations and definitions.
37353 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
37356 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
37357 External_Tag attribute definition clauses.
37359 2003-10-23 Ed Schonberg <schonberg@gnat.com>
37362 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
37363 child unit, generate a fully qualified name to avoid spurious errors
37364 when the context contains renamings of different child units with
37365 the same simple name.
37367 * exp_dbug.ads: Add documentation on name qualification for renamings
37370 2003-10-23 Robert Dewar <dewar@gnat.com>
37372 * g-regpat.ads, g-regpat.adb: Minor reformatting
37374 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
37376 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
37378 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37380 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
37383 * urealp.h: (Machine): Update to proper definition.
37385 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
37387 * init.c, adaint.c: Minor reformatting.
37389 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
37391 * adaint.c (w32_epoch_offset): Define static const at file level.
37392 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
37393 rather than t_create, t_access in call to GetFileTime. Use union
37394 to convert between FILETIME and unsigned long long.
37395 (__gnat_file_time_name): Test for invalid file handle.
37396 (__gnat_set_filetime_name): Support win32 targets using
37397 w32api SetFileTime.
37399 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
37401 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
37403 * ctrl_c.c (__gnat_int_handler): Remove declaration.
37405 * decl.c (creat_concat_name): Const-ify prefix.
37407 * adaint.c: Include ctype.h if __MINGW32__.
37408 (__gnat_readlink): Mark arguments as possibly unused.
37409 (__gnat_symlink): Likewise.
37410 (__gnat_is_symbolic_link): Likewise.
37411 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
37413 (__gnat_file_time_name): Don't declare struct stat statbuf when
37415 (__gnat_is_absolute_path): Add parenthesis around condition of
37416 'if' statement to avoid warning.
37417 (__gnat_plist_init): Specify void as parameter.
37418 (plist_enter): Likewise.
37419 (plist_leave): Likewise.
37420 (remove_handle): Make static. Initialize prev.
37422 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
37425 * Makefile.in: Disable build of gnatpsta.
37426 * cstreams.c (__gnat_full_name): Minor improvements and clean up
37427 of previous change.
37429 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37431 * tracebak.c (MAX): Avoid redefinition warning.
37433 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
37434 Change msg to const char *.
37435 (__gnat_install_handler): Remove ss, unused.
37436 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
37438 * cstreams.c (__gnat_full_name): Declare p only when used.
37439 (__gnat_full_name) [sgi] Return buffer.
37441 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
37443 * mingw32.h: New file.
37444 * gnat_wrapper.adb: New file.
37446 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
37448 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
37449 string match a pre compiled regular expression (the corresponding
37450 version of the function working on a raw regular expression)
37451 Fix typos in various comments
37452 Update copyright notice in spec
37454 2003-10-21 Gary Dismukes <dismukes@gnat.com>
37457 (Component_Needs_Simple_Initialization): Return False when the type is a
37458 packed bit array. Revise spec comments to document this case.
37461 (Expand_Pragma_Import): Set any expression on the imported object to
37462 empty to avoid initializing imported objects (in particular this
37463 covers the case of zero-initialization of bit arrays).
37464 Update copyright notice.
37466 2003-10-21 Ed Schonberg <schonberg@gnat.com>
37469 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
37470 a subunit is missing.
37471 (Instantiate_Subprogram_Body): If body of function is missing, set type
37472 of return expression explicitly in dummy body, to prevent cascaded
37473 errors when a subunit is missing.
37477 (Access_Subprogram_Declaration): Verify that return type is valid.
37481 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
37486 (Corresponding_Discriminant): If the scope of the discriminant is a
37487 private type without discriminant, use its full view.
37490 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
37492 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
37493 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
37494 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
37495 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
37496 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
37497 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
37498 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
37499 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
37500 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
37501 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
37502 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
37503 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
37504 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
37505 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
37506 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
37507 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
37508 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
37509 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
37510 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
37511 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
37512 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
37513 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
37514 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
37515 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
37516 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
37517 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
37518 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
37519 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
37520 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
37521 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
37522 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
37523 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
37524 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
37525 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
37526 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
37527 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
37528 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
37529 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
37530 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
37531 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
37532 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
37533 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
37534 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
37535 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
37536 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
37537 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
37538 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
37539 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
37540 vms_conv.ads, vms_conv.adb, vms_data.ads,
37541 vxaddr2line.adb: Files added. Merge with ACT tree.
37543 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
37544 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
37545 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
37546 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
37547 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
37548 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
37549 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
37550 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
37551 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
37552 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
37554 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
37555 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
37556 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
37557 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
37558 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
37559 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
37560 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
37561 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
37562 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
37563 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
37564 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
37565 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
37566 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
37567 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
37568 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
37569 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
37570 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
37571 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
37572 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
37573 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
37574 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
37575 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
37576 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
37577 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
37578 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
37579 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
37580 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
37581 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
37582 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
37583 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
37584 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
37585 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
37586 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
37587 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
37588 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
37589 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
37590 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
37591 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
37592 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
37593 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
37594 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
37595 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
37596 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
37597 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
37598 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
37599 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
37600 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
37601 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
37602 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
37603 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
37604 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
37605 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
37606 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
37607 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
37608 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
37609 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
37610 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
37611 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
37612 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
37613 checks.adb, checks.ads, cio.c, comperr.adb,
37614 comperr.ads, csets.adb, cstand.adb, cstreams.c,
37615 debug_a.adb, debug_a.ads, debug.adb, decl.c,
37616 einfo.adb, einfo.ads, errout.adb, errout.ads,
37617 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
37618 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
37619 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
37620 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
37621 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
37622 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
37623 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
37624 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
37625 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
37626 fe.h, fmap.adb, fmap.ads, fname.adb,
37627 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
37628 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
37629 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
37630 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
37631 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
37632 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
37633 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
37634 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
37635 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
37636 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
37637 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
37638 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
37639 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
37640 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
37641 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
37642 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
37643 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
37644 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
37645 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
37646 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
37647 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
37648 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
37649 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
37650 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
37651 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
37652 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
37653 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
37654 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
37655 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
37656 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
37657 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
37658 layout.adb, lib.adb, lib.ads, lib-list.adb,
37659 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
37660 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
37661 link.c, live.adb, make.adb, make.ads,
37662 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
37663 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
37664 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
37665 misc.c, mkdir.c, mlib.adb, mlib.ads,
37666 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
37667 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
37668 namet.adb, namet.ads, namet.h, nlists.ads,
37669 nlists.h, nmake.adt, opt.adb, opt.ads,
37670 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
37671 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
37672 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
37673 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
37674 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
37675 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
37676 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
37677 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
37678 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
37679 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
37680 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
37681 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
37682 prj-util.adb, prj-util.ads, raise.c, raise.h,
37683 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
37684 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
37685 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
37686 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
37687 scans.ads, scn.adb, scn.ads, s-crc32.adb,
37688 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
37689 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
37690 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
37691 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
37692 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
37693 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
37694 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
37695 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
37696 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
37697 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
37698 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
37699 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
37700 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
37701 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
37702 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
37703 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
37704 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
37705 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
37706 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
37707 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
37708 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
37709 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
37710 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
37711 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
37712 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
37713 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
37714 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
37715 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
37716 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
37717 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
37718 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
37719 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
37720 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
37721 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
37722 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
37723 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
37724 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
37725 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
37726 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
37727 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
37728 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
37729 stringt.adb, stringt.ads, stringt.h, style.ads,
37730 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
37731 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
37732 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
37733 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
37734 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
37735 table.adb, table.ads, targparm.adb, targparm.ads,
37736 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
37737 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
37738 ttypes.ads, types.ads, types.h, uintp.adb,
37739 uintp.ads, uintp.h, uname.adb, urealp.adb,
37740 urealp.ads, urealp.h, usage.adb, utils2.c,
37741 utils.c, validsw.adb, validsw.ads, widechar.adb,
37742 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
37743 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
37744 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
37745 gnatvsn.ads: Merge with ACT tree.
37747 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
37749 2003-10-20 Mark Mitchell <mark@codesourcery.com>
37751 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
37752 (gnat_ug_vmx.info): Likewise.
37753 (gnat_ug_vxw.info): Likewise.
37754 (gnat_ug_wnt.info): Likewise.
37755 (gnat_rm.info): Likewise.
37756 (gnat-style.info): Likewise.
37758 * Make-lang.in (ada.install-info): Remove target.
37759 (info): New target.
37760 (install-info): Likewise.
37761 (gnat_ug_unx.info): Simplify rule.
37762 (gnat_ug_vmx.info): Likewise.
37763 (gnat_ug_vxw.info): Likewise.
37764 (gnat_ug_wnt.info): Likewise.
37765 (gnat_rm.info): Likewise.
37766 (gnat-style.info): Likewise.
37768 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
37770 * Make-lang.in: Replace uses of $(target_alias) with
37771 $(target_noncanonical).
37772 * ada/Makefile.in: Remove unused mention of $(target_alias).
37774 2003-10-06 Mark Mitchell <mark@codesourcery.com>
37776 * Make-lang.in (ada.info): Replace with ...
37778 (ada.dvi): Replace with ...
37781 2003-09-29 Zack Weinberg <zack@codesourcery.com>
37783 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
37784 initialize dconstp5 and dconstmp5.
37786 2003-09-28 Richard Henderson <rth@redhat.com>
37788 * trans.c (tree_transform): Update call to expand_asm_operands.
37790 2003-09-21 Richard Henderson <rth@redhat.com>
37792 * trans.c, utils.c: Revert.
37794 2003-09-21 Richard Henderson <rth@redhat.com>
37796 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
37799 2003-09-04 Michael Matz <matz@suse.de>
37801 * misc.c: Include "target.h".
37802 * Make-lang.in (misc.o): Add dependency on target.h.
37804 2003-09-03 DJ Delorie <dj@redhat.com>
37806 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
37809 2003-08-30 Zack Weinberg <zack@codesourcery.com>
37811 * Makefile.in: Update substitutions to match changes to
37812 configure. Use include directives instead of @-insertions
37813 to read in host and target fragments. Add a rule to
37814 regenerate ada/Makefile.
37816 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
37818 * lang-options.h: Remove.
37819 * lang.opt: Add help text.
37821 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
37823 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
37826 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
37828 * misc.c (gnat_handle_option): Don't handle filenames.
37830 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
37832 * Make-lang.in: Replace PWD with PWD_COMMAND.
37833 * Makefile.adalib: Likewise.
37834 * Makefile.in: Likewise.
37836 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
37838 * misc.c (gnat_argv): Revert last change.
37839 (gnat_handle_option, gnat_init_options): Copy arguments.
37841 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
37843 * misc.c (gnat_argv): Make const.
37845 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
37847 * misc.c (save_argc, save_argv): Keep non-static!
37849 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
37851 * misc.c (save_argc, save_argv): Make static.
37852 (gnat_init_options): New prototype.
37853 (gnat_init_options): Update.
37855 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
37857 * gnat_ug.texi: Remove unlikely characters from @vars.
37858 * gnat_ug_vms.texi: Regenerate.
37860 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
37862 * misc.c (record_code_position): Adjust emit_note call.
37864 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
37866 * misc.c (gnat_handle_option): Don't check for missing arguments.
37868 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
37870 * utils.c (end_subprog_body): Adjust expand_function_end call.
37872 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
37874 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
37877 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
37879 * lang.opt: Declare Ada.
37880 * misc.c (gnat_init_options): Update.
37882 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
37884 * utils.c (begin_subprog_body): Adjust init_function_start call.
37886 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
37888 * Make-lang.in: Update to use options.c and options.h.
37889 * misc.c: Include options.h not aoptions.h.
37890 (gnat_handle_option): Abort on unrecognized switch.
37891 (gnat_init_options): Request Ada switches.
37893 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
37895 * lang.opt: Add -Wall.
37896 * misc.c (gnat_handle_option): Handle it.
37898 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
37900 * misc.c (gnat_handle_option): Fix warnings.
37902 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
37904 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
37906 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
37908 * Make-lang.in: Update to handle command-line options.
37909 * lang.opt: New file.
37910 * misc.c: Include aoptions.h.
37911 (cl_options_count, cl_options): Remove.
37912 (gnat_handle_option): New.
37913 (gnat_decode_option): Remove.
37914 (LANG_HOOKS_DECODE_OPTION): Remove.
37915 (LANG_HOOKS_HANDLE_OPTION): Override.
37917 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
37919 * init.c, misc.c, trans.c, utils.c: Remove dead code.
37921 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
37923 * Makefile.in: Replace "host_canonical" with "host" for autoconf
37926 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
37928 * Make-lang.in: Update.
37929 * misc.c: Include opts.h. Define cl_options_count and cl_options.
37931 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
37933 * misc.c (gnat_init_options): Update.
37935 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
37937 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
37938 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
37939 __attribute__ ((__unused__)).
37941 2003-06-05 Jan Hubicka <jh@suse.cz>
37943 * Make-lang.in: Add support for stageprofile and stagefeedback
37945 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
37947 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
37948 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
37950 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
37952 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
37953 Remove non-VMS directive.
37954 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
37956 (Examples of gnatls Usage): Remove VMS alternative.
37958 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
37961 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
37962 and turn ZCX_By_Default back to False since the underlying support
37963 is not quite there yet.
37965 2003-06-01 Andreas Jaeger <aj@suse.de>
37967 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
37968 and ROUND_TYPE_SIZE_UNIT.
37970 2003-05-22 Geert Bosch <bosch@gnat.com>
37972 * gnat_rm.texi : Remove reference to Ada Core Technologies.
37974 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
37976 * trans.c (tree_transform): Use location_t and input_location
37978 (build_unit_elab): Likewise.
37979 * utils.c (create_label_decl): Likewise.
37981 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
37983 * trans.c (tree_transform, build_unit_elab,
37984 set_lineno): Rename lineno to input_line.
37985 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
37986 end_subprog_body): Likewise.
37987 * utils2.c (build_call_raise): Likewise.
37989 2003-05-01 Laurent Guerby <guerby@acm.org>
37992 * 5iosinte.ads: Increase pthread_cond_t size to match recent
37993 LinuxThread and NPTL version, merge from ACT.
37995 2003-04-28 Zack Weinberg <zack@codesourcery.com>
37997 * utils.c (convert): No need to clear TREE_CST_RTL.
37999 2003-04-23 Geert Bosch <bosch@gnat.com>
38001 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
38002 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
38003 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
38004 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
38005 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
38006 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
38007 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
38008 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
38009 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
38010 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
38011 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
38012 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
38013 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
38014 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
38015 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
38016 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
38017 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
38018 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
38019 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
38020 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
38021 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
38022 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
38023 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
38024 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
38025 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
38026 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
38027 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
38028 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
38029 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
38030 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
38031 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
38032 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
38033 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
38034 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
38035 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
38036 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
38037 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
38038 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
38039 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
38040 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
38041 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
38042 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
38043 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
38044 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
38045 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
38046 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
38047 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
38048 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
38049 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
38050 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
38051 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
38052 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
38053 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
38054 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
38055 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
38056 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
38057 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
38058 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
38059 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
38060 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
38061 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
38062 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
38063 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
38064 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
38065 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
38066 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
38067 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
38068 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
38069 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
38070 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
38071 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
38072 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
38073 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
38074 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
38075 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
38076 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
38077 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
38078 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
38079 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
38080 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
38081 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
38082 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
38083 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
38084 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
38085 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
38086 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
38087 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
38088 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
38089 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
38090 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
38091 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
38092 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
38093 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
38094 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
38095 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
38096 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
38097 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
38098 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
38099 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
38100 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
38101 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
38102 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
38103 ali.adb, ali.ads, alloc.ads, argv.c,
38104 atree.adb, atree.ads, atree.h, aux-io.c,
38105 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
38106 binde.adb, binde.ads, binderr.adb, binderr.ads,
38107 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
38108 butil.adb, butil.ads, cal.c, calendar.ads,
38109 casing.adb, casing.ads, ceinfo.adb, checks.adb,
38110 checks.ads, cio.c, comperr.adb, comperr.ads,
38111 config-lang.in, csets.adb, csets.ads, csinfo.adb,
38112 cstand.adb, cstand.ads, cuintp.c, debug.adb,
38113 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
38114 dec-io.ads, dec.ads, deftarg.c, directio.ads,
38115 einfo.adb, einfo.ads, elists.adb, elists.ads,
38116 elists.h, errno.c, errout.adb, errout.ads,
38117 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
38118 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
38119 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
38120 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
38121 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
38122 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
38123 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
38124 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
38125 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
38126 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
38127 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
38128 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
38129 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
38130 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
38131 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
38132 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
38133 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
38134 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
38135 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
38136 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
38137 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
38138 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
38139 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
38140 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
38141 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
38142 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
38143 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
38144 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
38145 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
38146 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
38147 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
38148 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
38149 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
38150 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
38151 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
38152 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
38153 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
38154 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
38155 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
38156 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
38157 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
38158 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
38159 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
38160 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
38161 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
38162 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
38163 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
38164 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
38165 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
38166 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
38167 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
38168 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
38169 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
38170 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
38171 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
38172 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
38173 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
38174 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
38175 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
38176 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
38177 lib.adb, lib.ads, live.adb, live.ads,
38178 machcode.ads, make.adb, make.ads, makeusg.adb,
38179 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
38180 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
38181 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
38182 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
38183 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
38184 mlib.ads, namet.adb, namet.ads, nlists.adb,
38185 nlists.ads, opt.adb, opt.ads, osint-b.adb,
38186 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
38187 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
38188 osint.ads, output.adb, output.ads, par-ch10.adb,
38189 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
38190 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
38191 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
38192 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
38193 par-tchk.adb, par-util.adb, par.adb, par.ads,
38194 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
38195 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
38196 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
38197 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
38198 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
38199 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
38200 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
38201 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
38202 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
38203 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
38204 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
38205 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
38206 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
38207 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
38208 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
38209 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
38210 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
38211 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
38212 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
38213 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
38214 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
38215 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
38216 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
38217 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
38218 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
38219 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
38220 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
38221 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
38222 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
38223 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
38224 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
38225 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
38226 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
38227 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
38228 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
38229 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
38230 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
38231 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
38232 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
38233 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
38234 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
38235 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
38236 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
38237 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
38238 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
38239 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
38240 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
38241 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
38242 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
38243 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
38244 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
38245 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
38246 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
38247 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
38248 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
38249 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
38250 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
38251 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
38252 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
38253 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
38254 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
38255 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
38256 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
38257 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
38258 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
38259 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
38260 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
38261 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
38262 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
38263 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
38264 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
38265 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
38266 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
38267 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
38268 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
38269 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
38270 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
38271 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
38272 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
38273 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
38274 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
38275 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
38276 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
38277 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
38278 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
38279 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
38280 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
38281 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
38282 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
38283 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
38284 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
38285 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
38286 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
38287 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
38288 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
38289 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
38290 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
38291 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
38292 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
38293 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
38294 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
38295 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
38296 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
38297 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
38298 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
38299 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
38300 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
38301 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
38302 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
38303 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
38304 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
38305 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
38306 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
38307 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
38308 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
38309 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
38310 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
38311 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
38312 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
38313 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
38314 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
38315 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
38316 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
38317 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
38318 snames.ads, sprint.adb, sprint.ads, stand.adb,
38319 stand.ads, stringt.adb, stringt.ads, style.adb,
38320 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
38321 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
38322 switch-m.ads, switch.adb, switch.ads, system.ads,
38323 table.adb, table.ads, targparm.adb, targparm.ads,
38324 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
38325 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
38326 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
38327 ttypef.ads, ttypes.ads, types.adb, types.ads,
38328 uintp.adb, uintp.ads, uname.adb, uname.ads,
38329 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
38330 usage.adb, usage.ads, validsw.adb, validsw.ads,
38331 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
38332 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
38333 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
38334 formatting and other trivial changes from ACT.
38336 2003-04-12 Zack Weinberg <zack@codesourcery.com>
38338 * gigi.h, utils2.c (build_constructor):
38339 Rename gnat_build_constructor. Use build_constructor.
38340 * decl.c (gnat_to_gnu_entity)
38341 * trans.c (tree_transform, pos_to_constructor, extract_values)
38342 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
38343 (unchecked_convert)
38344 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
38345 (fill_vms_descriptor):
38348 2003-04-06 Zack Weinberg <zack@codesourcery.com>
38350 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
38351 * misc.c (gnat_tree_size): New function.
38352 (LANG_HOOKS_TREE_SIZE): Override.
38354 2003-04-03 Jason Merrill <jason@redhat.com>
38356 * misc.c (gnat_adjust_rli): #if 0.
38358 2003-03-31 Geert Bosch <bosch@gnat.com>
38361 * link.c : Fix misspelled "const" keyword
38363 2003-03-23 Mark Mitchell <mark@codesourcery.com>
38366 * utils2.c: Adjust calls to put_var_into_stack.
38368 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
38370 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
38372 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
38374 * misc.c (gnat_init): Update for new prototype.
38376 2003-03-05 Olivier Hainque <hainque@gnat.com>
38379 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
38380 warning, and fix return type for the IN_RTS && !SJLJ case.
38382 2003-03-04 Tom Tromey <tromey@redhat.com>
38384 * Make-lang.in (ada.tags): New target.
38386 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
38389 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
38390 wrapper, which name remains constant whatever underlying GCC
38393 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
38394 the stable interface needed for a-except.
38396 2003-03-02 Andreas Jaeger <aj@suse.de>
38398 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
38399 gnat_ug_wnt.texi: Regenerate.
38401 2003-03-02 Laurent Guerby <guerby@acm.org>
38403 * Makefile.in (install-gnatlib): Match previous change there
38406 2003-02-28 Andreas Schwab <schwab@suse.de>
38408 * Make-lang.in (install-gnatlib): Change to ada directory before
38409 running make instead of using ada/Makefile directly.
38411 2003-02-18 Ben Elliston <bje@redhat.com>
38413 Part of PR ada/9406
38414 * gnat_ug.texi (Binder output file): Grammar fix.
38416 2003-02-18 Ben Elliston <bje@redhat.com>
38419 * 5qtaprop.adb (Sleep): Fix typo in comment.
38421 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
38423 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
38424 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
38425 gnat_ug_wnt.texi: Regenerate.
38427 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
38429 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
38430 be created if necessary.
38431 (ada.install-common): Let $(DESTDIR)$(bindir) be created
38432 if necessary. Remove erroneous and redundant gnatchop
38433 installation commands. Test for gnatdll before attempting
38435 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
38436 and gnatdll from all plausible locations.
38438 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
38440 * utils2.c (build_unary_op): Don't check flag_volatile.
38441 * gnat_ug.texi: Remove -fvolatile from example.
38442 * gnat_ug_vxw.texi: Likewise.
38444 2003-01-29 Laurent Guerby <guerby@acm.org>
38447 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
38448 * Makefile.in: match previous change.
38449 * Make-lang.in: match previous change.
38451 2003-01-29 Joel Sherrill <joel@OARcorp.com>
38453 * 5rosinte.ads: Add SIGXCPU.
38454 * 5rtpopsp.adb: New file.
38455 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
38456 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
38457 specific file 5rtpopsp.adb.
38458 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
38459 is likely needed for all newlib targets.
38460 * init.c: Add RTEMS specific version of __gnat_initialize().
38462 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38464 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
38466 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38468 * init.c (__gnat_error_handler): Make msg const.
38470 * gmem.c (convert_addresses): Move declaration ...
38471 * adaint.h: ... here.
38472 * adaint.c (convert_addresses): Adapt addrs type to match
38475 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
38477 2003-01-24 Andreas Schwab <schwab@suse.de>
38479 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
38480 size_t to avoid warning.
38482 2003-01-21 Zack Weinberg <zack@codesourcery.com>
38484 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
38486 2003-01-09 Geoffrey Keating <geoffk@apple.com>
38488 * gnat_rm.texi: Remove RCS version number.
38490 * ada-tree.h (union lang_tree_node): Add chain_next option.
38492 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
38494 * Make-lang.in (ada.install-info, ada.install-common,
38495 ada.uninstall): Prepend $(DESTDIR) to the destination
38496 directory in all (un)installation commands.
38497 * Makefile.in (install-gnatlib, install-rts): Ditto.
38499 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
38501 * gnat_rm.texi, gnat_ug.texi: Use @copying.
38502 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
38503 gnat_ug_wnt.texi: Regenerate.
38505 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
38507 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
38509 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
38510 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
38511 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
38512 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
38513 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
38514 $(srcdir)/doc/include/gcc-common.texi.
38516 2002-12-15 Geert Bosch <bosch@gnat.com>
38518 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
38520 2002-12-14 Geert Bosch <bosch@gnat.com>
38523 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
38524 case of a body created for a Renaming_As_Body, on which
38525 conformance checks are not performed.
38527 2002-11-30 Zack Weinberg <zack@codesourcery.com>
38529 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
38530 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
38531 not already included.
38532 * Make-lang.in: Update dependencies.
38534 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
38535 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
38536 solution to buffer overflow bug on GNU/Linux.
38538 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
38542 * bindgen.adb: Remove all references to Public_Version.
38543 * comperr.adb: Remove all references to Public_Version and
38544 GNATPRO_Version; correct bug reporting instructions.
38545 * comperr.ads: Change to match bug box.
38546 * gnatvsn.ads: Remove all references to Public version and
38549 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
38552 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
38556 * config-lang.in: Remove diff_excludes.
38558 2002-11-05 Graham Stott <graham.stott@btinternet.com>
38561 * trans.c (gnu_pending_elaboration_lists): New GC root.
38562 (build_unit_elab): Use..
38564 2002-10-30 Geert Bosch <bosch@gnat.com>
38567 * misc.c : Include optabs.h
38569 * Make-lang.in (misc.o): Add dependency on optabs.h
38571 2002-10-29 Geert Bosch <bosch@gnat.com>
38574 * Make-lang.in (gnatbind): Depend on CONFIG_H
38576 2002-10-29 Geert bosch <bosch@gnat.com>
38579 * misc.c: Unrevert misc.c (1.13)
38581 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
38583 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
38584 maintainership comments.
38586 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
38589 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
38590 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
38591 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
38592 7staprop.adb: Correct statements in comments about
38593 maintainership of GNAT.
38596 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
38597 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
38598 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
38599 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
38600 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
38601 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
38602 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
38603 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
38604 comments about maintainership of GNAT.
38606 PR ada/6919 (forward port of patch for PR ada/5904)
38607 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
38608 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
38609 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
38610 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
38611 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
38612 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
38613 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
38614 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
38615 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
38616 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
38617 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
38618 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
38619 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
38620 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
38621 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
38622 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
38623 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
38624 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
38625 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
38626 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
38627 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
38628 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
38629 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
38630 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
38631 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
38632 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
38633 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
38634 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
38635 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
38636 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
38637 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
38638 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
38639 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
38640 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
38641 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
38642 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
38643 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
38644 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
38645 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
38646 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
38647 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
38648 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
38649 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
38650 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
38651 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
38652 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
38653 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
38654 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
38655 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
38656 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
38657 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
38658 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
38659 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
38660 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
38661 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
38662 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
38663 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
38664 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
38665 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
38666 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
38667 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
38668 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
38669 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
38670 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
38671 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
38672 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
38673 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
38674 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
38675 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
38676 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
38677 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
38678 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
38679 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
38680 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
38681 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
38682 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
38683 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
38684 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
38685 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
38686 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
38687 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
38688 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
38689 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
38690 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
38691 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
38692 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
38693 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
38694 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
38695 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
38696 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
38697 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
38698 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
38699 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
38700 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
38701 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
38702 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
38703 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
38704 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
38705 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
38706 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
38707 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
38708 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
38709 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
38710 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
38711 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
38712 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
38713 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
38714 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
38715 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
38716 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
38717 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
38718 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
38719 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
38720 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
38721 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
38722 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
38723 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
38724 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
38725 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
38726 par-endh.adb par-labl.adb par-load.adb par-prag.adb
38727 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
38728 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
38729 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
38730 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
38731 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
38732 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
38733 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
38734 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
38735 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
38736 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
38737 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
38738 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
38739 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
38740 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
38741 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
38742 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
38743 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
38744 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
38745 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
38746 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
38747 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
38748 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
38749 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
38750 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
38751 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
38752 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
38753 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
38754 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
38755 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
38756 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
38757 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
38758 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
38759 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
38760 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
38761 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
38762 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
38763 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
38764 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
38765 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
38766 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
38767 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
38768 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
38769 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
38770 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
38771 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
38772 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
38773 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
38774 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
38775 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
38776 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
38777 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
38778 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
38779 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
38780 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
38781 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
38782 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
38783 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
38784 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
38785 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
38786 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
38787 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
38788 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
38789 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
38790 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
38791 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
38792 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
38793 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
38794 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
38795 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
38796 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
38797 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
38798 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
38799 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
38800 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
38801 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
38802 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
38803 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
38804 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
38805 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
38806 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
38807 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
38808 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
38809 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
38810 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
38811 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
38812 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
38813 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
38814 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
38815 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
38816 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
38817 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
38818 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
38819 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
38820 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
38821 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
38822 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
38823 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
38824 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
38825 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
38826 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
38827 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
38828 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
38829 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
38830 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
38831 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
38832 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
38833 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
38834 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
38835 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
38836 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
38837 stringt.ads stringt.h style.adb style.ads stylesw.adb
38838 stylesw.ads switch.adb switch.ads sysdep.c system.ads
38839 table.adb table.ads targparm.adb targparm.ads targtyps.c
38840 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
38841 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
38842 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
38843 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
38844 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
38845 usage.ads utils.c utils2.c validsw.adb validsw.ads
38846 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
38847 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
38848 xtreeprs.adb: Correct statements in comments about maintainership
38851 2002-09-23 Zack Weinberg <zack@codesourcery.com>
38853 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
38854 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
38855 * gnatvsn.ads: Gnat_Version_String is now a function.
38856 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
38857 copy the C version_string into a String and return it.
38858 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
38859 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
38860 Remove pragma Ident (Gnat_Version_String). If this was the
38861 sole use of package Gnatvsn, remove the with statement too.
38862 * gnat1drv.adb: Tweak -gnatv output.
38864 2002-09-17 Richard Henderson <rth@redhat.com>
38866 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
38867 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
38868 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
38869 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
38870 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
38871 and real_2expN instead of a loop.
38872 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
38873 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
38875 2002-08-25 Andre Leis <a.leis@gmx.net>
38876 David Billinghurst <David.Billinghurst@riotinto.com>
38878 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
38880 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38882 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
38883 Remove $(CONFIG_H) dependency.
38885 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
38887 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
38889 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
38891 * adadecode.c (ada_demangle): Use xstrdup in lieu of
38893 * misc.c (gnat_decode_option): Likewise.
38895 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
38897 * make.adb (Add_Switch): Make Generic_Position a procedure. The
38898 function approach did not work well because of a side effect (the
38899 function call could reallocate the table which was being indexed
38900 using its result). Fixes ada/4851. [RESURRECTED]
38902 2002-07-01 Roger Sayle <roger@eyesopen.com>
38904 * ada/utils.c (builtin_function): Accept an additional parameter.
38906 2002-06-28 Andreas Jaeger <aj@suse.de>
38909 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
38912 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
38914 * Makefile.in (SHELL): Set to @SHELL@.
38916 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
38918 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
38919 array size calculation.
38921 2002-06-04 Andreas Jaeger <aj@suse.de>
38923 * Make-lang.in (gnatbind): Readd rule that has been lost in last
38926 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
38928 Merge from pch-branch:
38930 * config-lang.in (gtfiles): Add ada-tree.h.
38931 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
38932 (SET_TYPE_MODULUS): New.
38933 (SET_TYPE_INDEX): New.
38934 (SET_TYPE_DIGITS_VALUE): New.
38935 (SET_TYPE_RM_SIZE): New.
38936 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
38937 (SET_TYPE_ADA_SIZE): New.
38938 (SET_TYPE_ACTUAL_BOUNDS): New.
38939 (SET_DECL_CONST_CORRESPONDING_VAR): New.
38940 (SET_DECL_ORIGINAL_FIELD): New.
38941 (TREE_LOOP_ID): Correct typo.
38942 * decl.c: Use new macros.
38943 * utils.c: Include debug.h, use new macros.
38944 * utils2.c: Use new macros.
38946 * ada-tree.h: Update all macros for new tree description.
38947 (struct tree_loop_id): New.
38948 (union lang_tree_node): New.
38949 (struct lang_decl): New.
38950 (struct lang_type): New.
38951 * misc.c (gnat_mark_tree): Delete.
38952 (LANG_HOOKS_MARK_TREE): Delete.
38953 * trans.c (tree_transform): No longer any need to cast
38956 * utils.c (struct language_function): New dummy structure.
38958 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
38959 (misc.o): Likewise.
38960 (utils.o): Likewise; also gtype-ada.h.
38961 * Make-lang.in (gnat1): Add dependency on s-gtype.
38962 (gnatbind): Add dependency on $(CONFIG_H).
38963 * utils.c: Correct last #include.
38964 (stuct e_stack): Remove unnecessary 'static'.
38965 (mark_e_stack): Remove unused prototype.
38967 * scn-nlit.adb: Remove whitespace after version number to
38968 keep lines under 80 chars.
38969 * snames.adb: Likewise.
38970 * treepr.ads: Likewise.
38972 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
38973 (misc.o): Likewise.
38974 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
38975 * config-lang.in (gtfiles): New.
38976 * decl.c: Use gengtype for roots.
38977 * gigi.h: Use gengtype for roots.
38978 * trans.c: Use gengtype for roots.
38979 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
38981 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
38983 * misc.c (gnat_init): Adjust setting of internal_error_function.
38985 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
38987 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
38988 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
38989 gnat_ug_wnt.texi: Regenerate.
38991 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
38993 * 5ntaprop.adb (with System.OS_Primitives): Remove.
38995 * cstreams.c (max_path_len): Move from here ...
38996 * adaint.c (__gnat_max_path_len): ... to here.
38997 * adaint.c (__gnat_max_path_len): Declare.
38998 * g-dirope.adb (Max_Path): Adjust.
38999 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
39000 * i-cstrea.ads (max_path_len): Adjust.
39001 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
39002 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
39004 * Makefile.in, Make-lang.in: Documentation is now built in
39005 Make-lang.in. Store Info and generated Texinfo files in the
39007 * gnat_ug.texi: Remove CVS keywords, correct version number.
39008 Set file name correctly.
39010 * gnat_ug_*.texi: Add.
39011 * .cvsignore: Ignore generated Texinfo files.
39013 2002-05-30 Zack Weinberg <zack@codesourcery.com>
39015 * ada.h: Add MI guard macro.
39016 (SUBTYPE): Define constants with an anonymous enum, not static
39018 (IN): Cast constants to appropriate type before use.
39020 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
39022 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
39025 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39027 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
39028 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
39029 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
39030 (ALL_ADA_CFLAGS): Likewise.
39031 (ADA_INCLUDES): Likewise.
39032 Adapt for new working dir.
39033 (GNATBIND): Use Makefile.in version.
39034 (.SUFFIXES): Copy from Makefile.in.
39035 (ada-warn): Define.
39036 (.adb.o, .ads.o): Copy from Makefile.in.
39037 Added $(OUTPUT_OPTION).
39038 (GNAT1_C_OBJS): Moved from Makefile.in.
39039 Prefix with ada subdir.
39040 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
39041 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
39042 Adapt for new working dir.
39043 (EXTRA_GNATBIND_OBJS): Likewise.
39044 (ADA_BACKEND): Moved from Makefile.in.
39045 Renamed to avoid conflict with global BACKEND.
39047 (TARGET_ADA_SRCS): Moved from Makefile.in.
39048 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
39050 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
39051 (ada_extra_files): Moved from Makefile.in.
39052 Prefix with ada subdir.
39053 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
39054 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
39055 (ada/nmake.ads): Likewise.
39056 (update-sources): Moved from Makefile.in.
39057 Prefix with ada subdir.
39058 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
39059 (ADA_TREE_H): Likewise.
39060 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
39061 (ada/memtrack.o): Likewise.
39062 (ada/adadecode.o): Likewise.
39063 Update dependencies.
39064 (ada/adaint.o): New.
39065 (ada/argv.o): Moved from Makefile.in.
39066 Prefix with ada subdir.
39067 Update dependencies.
39068 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
39069 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
39070 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
39071 Prefix with ada subdir.
39072 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
39073 (GNAT DEPENDENCIES): Regenerate.
39074 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
39075 toplevel Makefile.in.
39076 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
39077 (TARGET_ADA_SRCS): Removed.
39078 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
39079 (GNATBIND_OBJS): Likewise.
39080 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
39081 (BACKEND): Removed.
39082 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
39083 (TREE_H): Likewise.
39084 (ada_extra_files): Likewise.
39085 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
39086 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
39087 (update-sources): Likewise.
39088 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
39089 (ADA_TREE_H): Likewise.
39090 (adadecoce.o): Likewise.
39091 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
39092 (GNAT DEPENDENCIES): Likewise.
39094 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39096 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
39097 * Makefile.in: Likewise.
39099 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39101 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
39102 Restore $(CONFIG_H) and prefix.o dependencies.
39103 (ada.stage[1-4]): Depend on stage?-start.
39105 * Makefile.in (b_gnatb.c): Depend on interfac.o.
39107 2002-05-02 Jim Wilson <wilson@redhat.com>
39109 * utils.c (finish_record_type): Change record_size to record_type.
39111 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
39113 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
39114 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
39115 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
39117 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
39119 * misc.c (gnat_parse_file): Update.
39121 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
39123 * misc.c (gnat_init): Don't set lang_attribute_common.
39125 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
39127 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
39129 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
39131 * gnat_ug.texi: New file.
39133 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
39134 instead of gfdl.texi
39136 * xgnatug.adb, ug_words: New files.
39138 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
39139 gnat_rm and gnat-style manuals.
39141 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
39143 * gigi.h (incomplete_type_error): Remove.
39144 * utils.c (incomplete_type_error): Remove.
39146 2002-04-16 Mark Mitchell <mark@codesourcery.com>
39148 * trans.c (tree_transform): Add has_scope argument to
39149 expand_start_stmt_expr.
39151 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
39153 * gigi.h (truthvalue_conversion): Rename.
39154 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
39155 * trans.c (tree_transform): Update.
39156 * utils2.c (truthvalue_conversion): Rename, update.
39157 (build_binary_op, build_unary_op): Update.
39159 2002-04-04 Laurent Guerby <guerby@acm.org>
39161 * make.adb: Implement -margs, remove restriction about file name placement.
39162 * makeusg.adb: Documentation update.
39163 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
39164 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
39166 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
39168 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
39169 (builtin_function): Similarly.
39171 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
39173 * decl.c (gnat_to_gnu_entity): Update.
39174 * gigi.h (mark_addressable): Rename.
39175 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
39176 * trans.c (tree_transform): Update.
39177 * utils.c (create_var_decl): Update.
39178 * util2.c (build_binary_op, build_unary_op,
39179 fill_vms_descriptor): Update.
39180 (mark_addressable): Rename, update.
39182 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
39184 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
39186 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
39187 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
39188 * trans.c (tree_transform, convert_with_check): Update.
39189 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
39192 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
39194 * gigi.h (finish_incomplete_decl): Rename.
39195 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
39196 * utils.c (gnat_init_decl_processing): Don't set hook.
39197 (finish_incomplete_decl): Rename.
39199 2002-03-29 Andreas Schwab <schwab@suse.de>
39201 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
39204 2001-03-28 Robert Dewar <dewar@gnat.com>
39207 (Remove_Checks): New procedure
39210 (Remove_Checks): New procedure
39213 Use new Duplicate_Subexpr functions
39214 (Duplicate_Subexpr_No_Checks): New procedure
39215 (Duplicate_Subexpr_No_Checks_Orig): New procedure
39216 (Duplicate_Subexpr): Restore original form (checks duplicated)
39217 (Duplicate_Subexpr): Call Remove_Checks
39220 (Duplicate_Subexpr_No_Checks): New procedure
39221 (Duplicate_Subexpr_No_Checks_Orig): New procedure
39222 Add 2002 to copyright notice
39224 * sem_util.adb: Use new Duplicate_Subexpr functions
39227 (Eval_Indexed_Component): This is the place to call
39228 Constant_Array_Ref and to replace the value. We simply merge
39229 the code of this function in here, since it is now no longer
39230 used elsewhere. This fixes the problem of the back end not
39231 realizing we were clever enough to see that this was
39233 (Expr_Val): Remove call to Constant_Array_Ref
39234 (Expr_Rep_Val): Remove call to Constant_Array_Ref
39236 (Constant_Array_Ref): Deal with string literals (patch
39237 suggested by Zack Weinberg on the gcc list)
39239 2001-03-28 Ed Schonberg <schonber@gnat.com>
39241 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
39242 Duplicate_Subexpr_Move_Checks.
39244 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
39245 Duplicate_Subexpr_Move_Checks.
39247 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
39248 value of array exists before retrieving it (it may a private
39249 protected component in a function).
39251 2002-03-28 Geert Bosch <bosch@gnat.com>
39253 * prj-pp.adb : New file.
39255 * prj-pp.ads : New file.
39257 2002-03-28 Andreas Jaeger <aj@suse.de>
39259 * Makefile.in (stamp-sdefault): Fix path for Makefile.
39261 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
39263 * misc.c (gnat_expand_expr): Move prototype.
39265 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
39267 * misc.c (insert_default_attributes): Remove.
39269 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
39271 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
39272 (gnat_init): Don't set hook.
39273 (gnat_expand_expr): Fix prototype.
39275 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
39277 * misc.c (ggc_p): Remove.
39279 2002-03-27 Geert Bosch <bosch@gnat.com>
39281 * prj-makr.ads, prj-makr.adb : New files.
39283 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
39285 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
39286 (lang_mark_tree): Make static, rename.
39288 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
39290 * misc.c (maybe_build_cleanup): Remove.
39292 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
39294 * gigi.h (yyparse): Remove.
39296 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
39298 From Ben Brosgol <brosgol@gnat.com>
39299 * gnat_rm.texi: Sync with ACT version.
39301 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
39303 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
39304 (gnat_init): Remove old hook.
39306 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
39308 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
39309 (yyparse): Rename gnat_parse_file.
39311 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
39313 Delete all lines containing "$Revision:".
39314 * xeinfo.adb: Don't look for revision numbers.
39315 * xnmake.adb: Likewise.
39316 * xsinfo.adb: Likewise.
39317 * xsnames.adb: Likewise.
39318 * xtreeprs.adb: Likewise.
39320 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
39322 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
39323 gnat_tree_code_name): Delete.
39324 (tree_code_type, tree_code_length, tree_code_name): Define.
39325 (gnat_init): Don't try to copy into the various tree_code
39328 2002-03-11 Richard Henderson <rth@redhat.com>
39330 * Makefile.in (.NOTPARALLEL): Add fake tag.
39332 2002-03-07 Geert Bosch <bosch@gnat.com>
39334 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
39335 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
39336 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
39337 switch-m.adb, switch-m.ads : New files.
39339 2002-03-07 Geert Bosch <bosch@gnat.com>
39341 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
39342 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
39343 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
39344 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
39345 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
39346 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
39347 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
39348 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
39349 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
39350 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
39351 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
39352 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
39353 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
39354 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
39355 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
39356 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
39357 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
39358 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
39359 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
39360 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
39361 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
39362 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
39363 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
39364 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
39365 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
39366 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
39367 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
39368 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
39369 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
39370 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
39371 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
39372 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
39373 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
39374 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
39375 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
39376 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
39377 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
39378 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
39379 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
39380 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
39381 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
39382 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
39383 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
39384 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
39385 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
39386 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
39387 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
39388 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
39389 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
39390 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
39391 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
39392 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
39393 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
39394 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
39395 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
39396 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
39397 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
39398 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
39399 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
39400 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
39401 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
39402 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
39403 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
39404 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
39405 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
39406 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
39407 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
39408 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
39409 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
39410 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
39411 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
39412 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
39413 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
39414 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
39415 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
39416 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
39417 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
39418 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
39419 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
39420 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
39421 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
39422 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
39423 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
39424 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
39425 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
39426 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
39427 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
39428 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
39429 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
39430 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
39431 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
39432 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
39433 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
39434 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
39435 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
39436 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
39437 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
39439 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
39440 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
39441 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
39442 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
39444 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
39445 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
39447 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
39448 to mdll-fil.ad[bs] and mdll-util.ad[bs]
39450 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
39451 from mdllfile.ad[bs] and mdlltool.ad[bs]
39453 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
39455 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
39456 lieu of explicit sizeof/sizeof.
39458 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
39460 * misc.c (copy_lang_decl): Remove.
39462 2002-02-27 Zack Weinberg <zack@codesourcery.com>
39464 * misc.c: Delete traditional-mode-related code copied from the
39465 C front end but not used, or used only to permit the compiler
39468 2002-02-07 Richard Henderson <rth@redhat.com>
39470 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
39471 * adaint.h (__gnat_to_gm_time): Update prototype.
39473 2002-01-30 Richard Henderson <rth@redhat.com>
39475 * trans.c (tree_transform) [N_Loop_Statement]: Use
39476 expand_exit_loop_top_cond.
39478 2001-12-23 Richard Henderson <rth@redhat.com>
39480 * utils.c (end_subprog_body): Push GC context around
39481 rest_of_compilation for nested functions.
39483 2001-12-23 Richard Henderson <rth@redhat.com>
39485 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
39487 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
39489 * gnat-style.texi (Declarations and Types): Remove ancient style
39490 rule which was mandated by code generation issues.
39492 * gnat-style.texi (header): Add @dircategory, @direntry.
39493 (title page): Remove date.
39494 (general) Add @./@: where approriate, and two spaces after the
39495 full stop at the end of a sentence. Use @samp markup when
39496 referring concrete lexical entities (keywords, attribute names
39497 etc.), and @syntax for ARM grammar elements. Use @r for English
39498 text in comments. Use @emph for emphasis. Change "if-statements"
39499 etc. to "if statements" (without @samp). Break long lines. Make
39500 casing of section names consistent.
39501 (Identifiers): Use @samp markup for variable names.
39502 (Comments): Use @samp markup for comment characters. Line-end
39503 comments may follow any Ada code, not just statements. Fix
39504 misspelling of "Integer" as "integer".
39505 (Loop statements): Do not use variable name "I", use "J".
39506 (Subprogram Declarations): Document alignment.
39507 (Subprogram Bodies, Block statements): Document empty line before
39510 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
39512 * make.adb (Add_Switch): Make Generic_Position a procedure. The
39513 function approach did not work well because of a side effect (the
39514 function call could reallocate the table which was being indexed
39515 using its result). Fixes ada/4851.
39517 2001-12-19 Robert Dewar <dewar@gnat.com>
39519 * bindgen.adb: Minor reformatting
39521 * cstand.adb: Minor reformatting
39523 * fmap.adb: Minor reformatting
39524 Change name from Add for Add_To_File_Map (Add is much too generic)
39525 Change Path_Name_Of to Mapped_Path_Name
39526 Change File_Name_Of to Mapped_File_Name
39527 Fix copyright dates in header
39530 Change name from Add for Add_To_File_Map (Add is much too generic)
39531 Change Path_Name_Of to Mapped_Path_Name
39532 Change File_Name_Of to Mapped_File_Name
39533 Fix copyright dates in header
39535 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
39536 Add use clause for Fmap.
39538 * make.adb: Minor reformatting
39540 * osint.adb: Minor reformatting. Change of names in Fmap.
39541 Add use clause for Fmap.
39543 * prj-env.adb: Minor reformatting
39545 * prj-env.ads: Minor reformatting
39547 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
39548 error found (there were odd exceptions to this general rule in
39549 -gnatec/-gnatem processing)
39551 2001-12-19 Olivier Hainque <hainque@gnat.com>
39553 * raise.c (__gnat_eh_personality): Exception handling personality
39554 routine for Ada. Still in rough state, inspired from the C++ version
39555 and still containing a bunch of debugging artifacts.
39556 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
39557 inspired from the C++ library.
39559 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
39560 exception handling integration.
39562 2001-12-19 Arnaud Charlet <charlet@gnat.com>
39564 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
39565 (HIE_SOURCES): Add s-secsta.ad{s,b}.
39566 (HIE_OBJS): Add s-fat*.o
39567 (RAVEN_SOURCES): Remove files that are no longer required. Add
39568 interrupt handling files.
39569 (RAVEN_MOD): Removed, no longer needed.
39571 2001-12-19 Robert Dewar <dewar@gnat.com>
39573 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
39574 Add 2001 to copyright date
39576 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
39577 need to force universal inlining for these cases.
39579 2001-12-19 Arnaud Charlet <charlet@gnat.com>
39581 * s-taprob.adb: Minor clean ups so that this unit can be used in
39584 * exp_ch7.adb: Allow use of secondary stack in HI mode.
39585 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
39587 2001-12-19 Vincent Celier <celier@gnat.com>
39589 * prj-tree.ads (Project_Node_Record): Add comments for components
39590 Pkg_Id and Case_Insensitive.
39592 2001-12-19 Pascal Obry <obry@gnat.com>
39594 * g-socket.adb: Minor reformatting. Found while reading code.
39596 2001-12-19 Robert Dewar <dewar@gnat.com>
39598 * prj-tree.ads: Minor reformatting
39600 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
39602 * config-lang.in (diff_excludes): Remove.
39604 2001-12-17 Ed Schonberg <schonber@gnat.com>
39606 * sem_res.adb (Resolve_Selected_Component): do not generate a
39607 discriminant check if the selected component is a component of
39608 the argument of an initialization procedure.
39610 * trans.c (tree_transform, case of arithmetic operators): If result
39611 type is private, the gnu_type is the base type of the full view,
39612 given that the full view itself may be a subtype.
39614 2001-12-17 Robert Dewar <dewar@gnat.com>
39616 * sem_res.adb: Minor reformatting
39618 * trans.c (tree_transform, case N_Real_Literal): Add missing third
39619 parameter in call to Machine (unknown horrible effects from this
39622 * urealp.h: Add definition of Round_Even for call to Machine
39623 Add third parameter for Machine
39625 2001-12-17 Ed Schonberg <schonber@gnat.com>
39627 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
39628 predefined units in No_Run_Time mode.
39630 2001-12-17 Richard Kenner <kenner@gnat.com>
39632 * misc.c (insn-codes.h): Now include.
39634 2001-12-17 Olivier Hainque <hainque@gnat.com>
39636 * a-except.adb: Preparation work for future integration of the GCC 3
39637 exception handling mechanism
39638 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
39639 to factorize previous code sequences and make them externally callable,
39640 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
39641 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
39642 Use the new notification routines.
39644 2001-12-17 Emmanuel Briot <briot@gnat.com>
39646 * prj-tree.ads (First_Choice_Of): Document the when others case
39648 2001-12-17 Arnaud Charlet <charlet@gnat.com>
39650 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
39651 HI-E mode, in order to support Ravenscar profile properly.
39653 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
39654 mode on 32 bits targets.
39656 2001-12-17 Vincent Celier <celier@gnat.com>
39658 * fmap.adb: Initial version.
39660 * fmap.ads: Initial version.
39662 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
39663 If search is successfully done, add to mapping.
39665 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
39668 (Gnatmake): Add new local variable Mapping_File_Name.
39669 Create mapping file when using project file(s).
39670 Delete mapping file before exiting.
39672 * opt.ads (Mapping_File_Name): New variable
39674 * osint.adb (Find_File): Use path name found in mapping, if any.
39676 * prj-env.adb (Create_Mapping_File): New procedure
39678 * prj-env.ads (Create_Mapping_File): New procedure.
39680 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
39683 * usage.adb: Add entry for new switch -gnatem.
39685 * Makefile.in: Add dependencies for fmap.o.
39687 2001-12-17 Ed Schonberg <schonber@gnat.com>
39689 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
39690 is a package instantiation rewritten as a package body.
39691 (Install_Withed_Unit): Undo previous change, now redundant.
39693 2001-12-17 Gary Dismuke <dismukes@gnat.com>
39696 (Compute_Length): Move conversion to Unsigned to callers.
39697 (Get_Max_Size): Convert Len expression to Unsigned after calls to
39698 Compute_Length and Determine_Range.
39699 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
39700 Compute_Length and Determine_Range.
39701 Above changes fix problem with length computation for supernull arrays
39702 where Max (Len, 0) wasn't getting applied due to the Unsigned
39703 conversion used by Compute_Length.
39705 2001-12-17 Arnaud Charlet <charlet@gnat.com>
39708 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
39709 System.Secondary_Stack.
39710 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
39712 Remove unused entity RE_Exception_Data.
39714 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
39716 * rident.ads (No_Secondary_Stack): New restriction.
39718 2001-12-17 Joel Brobecker <brobecke@gnat.com>
39720 * gnat_rm.texi: Fix minor typos. Found while reading the section
39721 regarding "Bit_Order Clauses" that was sent to a customer.
39722 Very interesting documentation!
39724 2001-12-17 Robert Dewar <dewar@gnat.com>
39726 * sem_case.adb (Choice_Image): Avoid creating improper character
39727 literal names by using the routine Set_Character_Literal_Name. This
39728 fixes bombs in certain error message cases.
39730 2001-12-17 Arnaud Charlet <charlet@gnat.com>
39732 * a-reatim.adb: Minor reformatting.
39734 2001-12-17 Ed Schonberg <schonber@gnat.com>
39736 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
39737 case where the formal is an extension of another formal in the current
39738 unit or in a parent generic unit.
39740 2001-12-17 Arnaud Charlet <charlet@gnat.com>
39742 * s-tposen.adb: Update comments. Minor reformatting.
39743 Minor code clean up.
39745 * s-tarest.adb: Update comments. Minor code reorganization.
39747 2001-12-17 Gary Dismukes <dismukes@gnat.com>
39749 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
39752 2001-12-17 Robert Dewa <dewar@gnat.com>
39754 * exp_attr.adb: Minor reformatting
39756 2001-12-17 Ed Schonberg <schonber@gnat.com>
39758 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
39759 derivations nested within a child unit: verify that the parent
39760 type is declared in an outer scope.
39762 2001-12-17 Robert Dewar <dewar@gnat.com>
39764 * sem_ch12.adb: Minor reformatting
39766 2001-12-17 Ed Schonberg <schonber@gnat.com>
39768 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
39769 warning if current unit is a predefined one, from which bodies may
39772 2001-12-17 Robert Dewar <dewar@gnat.com>
39774 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
39775 Fix header format. Add 2001 to copyright date.
39777 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
39778 which caused CE during compilation if checks were enabled.
39780 2001-12-17 Vincent Celier <celier@gnat.com>
39783 (Switches_Of): New function
39784 (Test_If_Relative_Path): New procedure
39785 (Add_Switches): Use new function Switches_Of
39786 (Collect_Arguments_And_Compile): Use new function Switches_Of.
39787 When using a project file, test if there are any relative
39788 search path. Fail if there are any.
39789 (Gnatmake): Only add switches for the primary directory when not using
39790 a project file. When using a project file, change directory to the
39791 object directory of the main project file. When using a project file,
39792 test if there are any relative search path. Fail if there are any.
39793 When using a project file, fail if specified executable is relative
39794 path with directory information, and prepend executable, if not
39795 specified as an absolute path, with the exec directory. Make sure
39796 that only one -o switch is transmitted to the linker.
39798 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
39801 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
39802 when using a non standard naming scheme.
39803 (Check_Ada_Naming_Scheme): Make sure that error messages
39804 do not raise exceptions.
39805 (Is_Illegal_Append): Return True if there is no dot in the suffix.
39806 (Language_Independent_Check): Check the exec directory.
39808 * prj.adb (Project_Empty): Add new component Exec_Directory
39811 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
39812 (Project_Data): Add component Exec_Directory
39814 * snames.adb: Updated to match snames.ads revision 1.215
39816 * snames.ads: Added Exec_Dir
39818 2001-12-17 Robert Dewar <dewar@gnat.com>
39820 * make.adb: Minor reformatting
39822 * prj-nmsc.adb: Minor reformatting
39824 * snames.adb: Updated to match snames.ads
39826 * snames.ads: Alphebetize entries for project file
39828 2001-12-17 Ed Schonberg <schonber@gnat.com>
39830 * trans.c (process_freeze_entity): Do nothing if the entity is a
39831 subprogram that was already elaborated.
39833 2001-12-17 Richard Kenner <kenner@gnat.com>
39835 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
39836 and Esize if object is referenced via pointer.
39838 2001-12-17 Ed Schonberg <schonber@gnat.com>
39840 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
39841 is discrete before analyzing choices.
39843 2001-12-17 Joel Brobecker <brobecke@gnat.com>
39845 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
39846 containing the name of the Ada Main Program. This string is mainly
39847 intended for the debugger.
39848 (Gen_Output_File_C): Do the equivalent change when generating a C file.
39850 2001-12-17 Robert Dewar <dewar@gnat.com>
39852 * ali.adb: Set new Dummy_Entry field in dependency entry
39854 * ali.ads: Add Dummy_Entry field to source dependency table
39856 * bcheck.adb (Check_Consistency): Ignore dummy D lines
39858 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
39860 * lib-writ.ads: Document dummy D lines for missing files.
39862 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
39864 2001-12-17 Robert Dewar <dewar@gnat.com>
39866 * ali.adb: Type reference does not reset current file.
39868 * ali.adb: Recognize and scan renaming reference
39870 * ali.ads: Add spec for storing renaming references.
39872 * lib-xref.ads: Add documentation for handling of renaming references
39874 * lib-xref.adb: Implement output of renaming reference.
39877 (Determine_Range): Document local variables
39878 (Determine_Range): Make sure Hbound is initialized. It looks as though
39879 there could be a real problem here with an uninitialized reference
39880 to Hbound, but no actual example of failure has been found.
39882 2001-12-17 Laurent Pautet <pautet@gnat.com>
39885 Fix comment of Shutdown_Socket and Close_Socket. These functions
39886 should not fail silently because if they are called twice, this
39887 probably means that there is a race condition in the user program.
39888 Anyway, this behaviour is consistent with the rest of this unit.
39889 When an error occurs, an exception is raised with the error message
39890 as exception message.
39892 2001-12-17 Robert Dewar <dewar@gnat.com>
39894 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
39895 that it happens before modification of Sloc values for -gnatD.
39897 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
39898 so that it happens before modification of Sloc values for -gnatD.
39900 * switch.adb: Minor reformatting
39902 2001-12-15 Richard Henderson <rth@redhat.com>
39904 * sem_ch7.adb: Wrap comment.
39906 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
39908 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
39909 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
39910 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
39911 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
39912 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
39913 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
39914 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
39915 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
39916 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
39917 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
39918 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
39919 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
39920 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
39921 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
39922 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
39923 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
39924 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
39925 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
39926 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
39927 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
39928 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
39929 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
39930 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
39931 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
39934 2001-12-14 Vincent Celier <celier@gnat.com>
39936 * osint.adb(Create_Debug_File): When an object file is specified,
39937 put the .dg file in the same directory as the object file.
39939 2001-12-14 Robert Dewar <dewar@gnat.com>
39941 * osint.adb: Minor reformatting
39943 * lib-xref.adb (Output_Instantiation): New procedure to generate
39944 instantiation references.
39946 * lib-xref.ads: Add documentation of handling of generic references.
39948 * ali.adb (Read_Instantiation_Ref): New procedure to read
39949 instantiation references
39951 * ali.ads: Add spec for storing instantiation references
39953 * bindusg.adb: Minor reformatting
39955 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
39957 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
39959 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
39961 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
39965 Add 2001 to copyright date
39966 Add entry for Latin-5 (Cyrillic ISO-8859-5)
39968 2001-12-14 Matt Gingell <gingell@gnat.com>
39970 * adaint.c: mktemp is a macro on Lynx and can not be used as an
39973 2001-12-14 Richard Kenner <kenner@gnat.com>
39975 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
39976 if operand is CONSTRUCTOR.
39978 2001-12-14 Ed Schonberg <schonber@gnat.com>
39980 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
39981 before emiting check on right-hand side, so that exception information
39984 2001-12-14 Richard Kenner <kenner@gnat.com>
39986 * utils.c (create_var_decl): Throw away initializing expression
39987 if just annotating types and non-constant.
39989 2001-12-14 Vincent Celier <celier@gnat.com>
39991 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
39994 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
39996 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
39998 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
40000 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
40002 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
40004 * ChangeLog: Remove piece of diff output.
40006 2001-12-14 Geert Bosch <bosch@gnat.com>
40008 * config-lang.in: Update copyright notice
40010 * layout.adb: Remove commented out code.
40012 * mdllfile.ads: Update copyright notice. Fix header format.
40014 * sem_case.ads: Likewise.
40016 * sem_ch3.adb: Minor reformatting.
40018 2001-12-12 Geert Bosch <bosch@gnat.com>
40020 * freeze.ads: Update copyright date.
40022 * g-comlin.ads: Minor reformatting.
40024 * gnat-style.texi: Fix typo.
40026 2001-12-12 Geert Bosch <bosch@gnat.com>
40028 * einfo.h: Regenerate.
40030 2001-12-12 Ed Schonberg <schonber@gnat.com>
40032 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
40033 on known node types, rather than untyped fields. Further cleanups.
40035 2001-12-12 Robert Dewar <dewar@gnat.com>
40038 (Save_Entity_Descendant): Minor comment update.
40039 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
40040 of an N_Attribute_Reference node. As per note below, this does not
40041 eliminate need for Associated_Node in attribute ref nodes.
40042 (Associated_Node): Documentation explicitly mentions attribute
40043 reference nodes, since this field is used in such nodes.
40045 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
40047 2001-12-12 Robert Dewar <dewar@gnat.com>
40049 * s-stalib.adb: Add more comments on with statements being needed
40051 * par-ch12.adb: Minor reformatting
40053 * prj-dect.ads: Fix copyright header
40055 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
40056 inputs fit in 32 bits, but the result still overflows.
40058 * s-fatgen.ads: Minor comment improvement
40060 2001-12-12 Ed Schonberg <schonber@gnat.com>
40062 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
40063 formal derived type, look for an inherited component from the full
40064 view of the parent, if any.
40066 2001-12-12 Robert Dewar <dewar@gnat.com>
40068 * checks.ads (Apply_Alignment_Check): New procedure.
40070 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
40071 ensure that the alignment of objects with address clauses is
40072 appropriate, and raise PE if not.
40074 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
40075 Exp_Pakd.Known_Aligned_Enough
40077 * mdllfile.ads: Minor reformatting
40079 * mlib-fil.ads: Minor reformatting
40081 2001-12-12 Ed Schonberg <schonber@gnat.com>
40083 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
40084 fix to any component reference if enclosing record has non-standard
40087 2001-12-12 Vincent Celier <celier@gnat.com>
40089 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
40092 2001-12-12 Ed Schonberg <schonber@gnat.com>
40094 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
40097 2001-12-12 Robert Dewar <dewar@gnat.com>
40099 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
40101 2001-12-12 Emmanuel Briot <briot@gnat.com>
40103 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
40104 and it adds dependencies to system.io.
40106 2001-12-12 Pascal Obry <obry@gnat.com>
40108 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
40111 2001-12-11 Ed Schonberg <schonber@gnat.com>
40113 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
40114 that is the parent of other generics, the instance body replaces the
40115 instance node. Retrieve the instance of the spec, which is the one
40116 that is visible in clients and within the body.
40118 2001-12-11 Vincent Celier <celier@gnat.com>
40120 * gnatmain.adb: Initial version.
40122 * gnatmain.ads: Initial version.
40124 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
40126 * snames.adb: Updated to match snames.ads.
40128 * snames.ads: Added Gnatstub.
40130 2001-12-11 Vincent Celier <celier@gnat.com>
40132 * prj-attr.adb (Initialization_Data): Change name from
40133 Initialisation_Data.
40135 2001-12-11 Emmanuel Briot <briot@gnat.com>
40137 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
40138 + and * applied to backslashed expressions like \r.
40140 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
40142 * g-os_lib.ads: String_List type added, Argument_List type is now
40143 subtype of String_List.
40145 2001-12-11 Robert Dewar <dewar@gnat.com>
40147 * g-os_lib.ads: Change copyright to FSF
40148 Add comments for String_List type
40150 2001-12-11 Vincent Celier <celier@gnat.com>
40152 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
40153 string to the buffer).
40155 2001-12-11 Ed Schonberg <schonber@gnat.com>
40157 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
40160 * sem_attr.adb: Simplify previous fix for Address.
40161 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
40162 to avoid anomalies where the bound of the type appears to raise
40165 2001-12-11 Robert Dewar <dewar@gnat.com>
40167 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
40170 2001-12-11 Ed Schonber <schonber@gnat.com>
40172 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
40173 renamed unit before checking for recursive instantiations.
40175 2001-12-11 Emmanuel Briot <briot@gnat.com>
40177 * prj.ads: Add comments for some of the fields.
40179 2001-12-11 Robert Dewar <dewar@gnat.com>
40181 * lib-xref.adb (Output_Refs): Don't output type references outside
40182 the main unit if they are not otherwise referenced.
40184 2001-12-11 Ed Schonberg <schonber@gnat.com>
40186 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
40187 code and diagnose additional illegal uses
40189 * sem_util.adb (Is_Object_Reference): An indexed component is an
40190 object only if the prefix is.
40192 2001-12-11 Vincent Celier <celier@gnat.com>
40194 * g-diopit.adb: Initial version.
40196 * g-diopit.ads: Initial version.
40199 (Expand_Path): Avoid use of Unbounded_String
40200 (Find, Wildcard_Iterator): Moved to child package Iteration
40202 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
40204 2001-12-11 Robert Dewar <dewar@gnat.com>
40206 * sem_attr.adb: Minor reformatting
40208 2001-12-11 Ed Schonberg <schonber@gnat.com>
40210 * sem_ch3.adb: Clarify some ???.
40212 2001-12-11 Robert Dewar <dewar@gnat.com>
40214 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
40215 Exp_Pakd.Known_Aligned_Enough
40217 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
40218 version is moved to Exp_Ch13.
40220 2001-12-11 Robert Dewar <dewar@gnat.com>
40222 * einfo.ads: Minor reformatting
40224 * exp_ch5.adb: Add comment for previous.change
40226 * ali.adb: New interface for extended typeref stuff.
40228 * ali.ads: New interface for typeref stuff.
40230 * checks.adb (Apply_Alignment_Check): New procedure.
40232 * debug.adb: Add -gnatdM for modified ALI output
40234 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
40236 * lib-xref.adb: Extend generation of <..> notation to cover
40237 subtype/object types. Note that this is a complete rewrite,
40238 getting rid of the very nasty quadratic algorithm previously
40239 used for derived type output.
40241 * lib-xref.ads: Extend description of <..> notation to cover
40242 subtype/object types. Uses {..} for these other cases.
40243 Also use (..) for pointer types.
40245 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
40247 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
40248 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
40250 2001-12-11 Vincent Celier <celier@gnat.com>
40253 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
40254 Changed /BIND_ONLY to /ACTIONS=BIND
40255 Changed /LINK_ONLY to /ACTIONS=LINK
40257 2001-12-11 Ed Schonberg <schonber@gnat.com>
40259 * sem_ch8.adb (Find_Selected_Component): improved search for a
40260 candidate package in case of error.
40262 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
40263 chain back on scope stack before reinstalling use clauses.
40265 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
40266 is enabled, do not kill the code for the condition, to preserve
40269 2001-12-11 Robert Dewar <dewar@gnat.com>
40271 * checks.adb (Insert_Valid_Check): Apply validity check to expression
40272 of conversion, not to result of conversion.
40274 2001-12-11 Ed Schonberg <schonber@gnat.com>
40276 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
40277 before freezing parent. If the declarations are mutually recursive,
40278 an access to the current record type may be frozen before the
40279 derivation is complete.
40281 2001-12-05 Vincent Celier <celier@gnat.com>
40283 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
40284 -c /COMPILE_ONLY, -l /LINK_ONLY
40287 (Bind_Only): New Flag
40288 (Link_Only): New flag
40290 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
40293 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
40296 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
40297 (Gnatmake): Set the step flags. Only perform a step if the
40298 corresponding step flag is True.
40299 (Scan_Make_Arg): Reset the bind and link step flags when -u
40300 or -gnatc has been specified.
40302 2001-12-05 Ed Schonberg <schonber@gnat.com>
40304 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
40305 get bounds from right operand.
40307 * sem_eval.adb: Minor reformatting
40309 * exp_util.adb (Make_Literal_Range): use bound of literal rather
40310 than Index'First, its lower bound may be different from 1.
40312 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
40315 2001-12-05 Vincent Celier <celier@gnat.com>
40317 * prj-nmsc.adb Minor reformatting
40319 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
40320 set and libraries are not supported.
40322 2001-12-05 Ed Schonberg <schonber@gnat.com>
40324 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
40325 private view explicitly, so the back-end can treat as a global
40328 2001-12-05 Ed Schonberg <schonber@gnat.com>
40330 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
40331 unit, always replace instance node with new body, for ASIS use.
40333 2001-12-05 Vincent Celier <celier@gnat.com>
40335 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
40336 libraries are not supported and both attributes Library_Name and
40337 Library_Dir are specified.
40339 * prj-proc.adb (Expression): Set location of Result to location of
40342 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
40343 (prj-nmsc is now importing MLib.Tgt)
40345 * prj-proc.adb: Put the change indicated above that was forgotten.
40347 2001-12-05 Robert Dewar <dewar@gnat.com>
40349 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
40351 2001-12-05 Ed Schonberg <schonber@gnat.com>
40353 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
40354 constraint, introduce explicit subtype declaration and derive from it.
40356 * sem_ch3.adb: Minor reformatting
40358 2001-12-05 Robert Dewar <dewar@gnat.com>
40360 * checks.adb (Determine_Range): Increase cache size for checks.
40363 * exp_ch6.adb: Minor reformatting
40364 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
40365 a parameter whose root type is System.Address, since treating such
40366 subprograms as pure in the code generator is almost surely a mistake
40367 that will lead to unexpected results.
40369 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
40370 change handling of conversions.
40372 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
40374 2001-12-05 Ed Schonberg <schonber@gnat.com>
40376 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
40377 aggregate with static wrong size, attach generated Raise node to
40380 2001-12-05 Robert Dewar <dewar@gnat.com>
40382 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
40383 Fixes compilation abandoned bomb in B24009B.
40385 2001-12-05 Ed Schonberg <schonber@gnat.com>
40388 Document use of Associated_Node on Selected_Components.
40389 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
40390 to clarify use of untyped descendant fields.
40392 2001-12-05 Robert Dewar <dewar@gnat.com>
40394 * prj-dect.ads: Add ??? comment
40395 Add 2001 to copyright notice (was not done in after all)
40397 * prj-part.adb: Minor reformatting. Reword one awkward error message.
40399 * prj.ads: Minor reformatting throughout, and add some ??? comments
40401 * snames.ads: Minor reformatting
40403 2001-12-05 Geert Bosch <bosch@gnat.com>
40405 * snames.adb: Autoupdate
40407 2001-12-05 Vincent Celier <celier@gnat.com>
40409 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
40411 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
40413 * prj-env.adb: Minor comment changes (modifying -> extends).
40415 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
40417 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
40420 * prj.adb (Initialize): Change Modifying to Extends.
40422 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
40424 * prj.ads: Minor comment change (Modifying -> extending).
40426 * snames.ads: Change modifying to extends.
40428 2001-12-05 Robert Dewar <dewar@gnat.com>
40430 * sem_warn.adb: Remove stuff for conditionals, we are not going to
40433 * sem_warn.ads: Remove stuff for conditionals, we are not going to
40434 do this after all. Add 2001 to copyright notice
40436 2001-12-04 Geert Bosch <bosch@gnat.com>
40438 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
40440 2001-12-04 Robert Dewar <dewar@gnat.com>
40442 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
40443 location if we already have errors. Stops some cases of cascaded
40446 * errout.adb: Improve comment.
40448 2001-12-04 Robert Dewar <dewar@gnat.com>
40451 (Analyze_Formal_Type_Definition): Defend against Error.
40452 (Analyze_Formal_Subprogram): Defend against Error.
40454 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
40455 remove following semicolon if present. Removes cascaded error.
40457 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
40460 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
40461 exceptions equals 0.
40462 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
40463 Fixes PIWG E tests (which have to be run with -gnatL).
40465 2001-12-04 Robert Dewar <dewar@gnat.com>
40467 * einfo.ads: Minor reformatting
40469 2001-12-04 Ed Schonberg <schonber@gnat.com>
40471 * einfo.ads: Block_Node points to the identifier of the block, not to
40472 the block node itself, to preserve the link when the block is
40473 rewritten, e.g. within an if-statement with a static condition.
40475 * inline.adb (Cleanup_Scopes): recover block statement from block
40476 entity using new meaning of Block_Node.
40478 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
40479 identifier of block node, rather than to node itself.
40481 2001-12-04 Gary Dismukes <dismukes@gnat.com>
40484 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
40485 (Discrimify): Go back to setting the Etypes of the selected component
40486 because the Vname component does not exist at this point and will
40487 fail name resolution. Also set Analyzed.
40488 Remove with and use of Sem_Res.
40490 2001-12-04 Arnaud Charlet <charlet@gnat.com>
40492 * Makefile.in: (HIE_SOURCES): add s-fat*.
40494 2001-12-04 Robert Dewar <dewar@gnat.com>
40497 (Compile_Time_Known_Attribute): New procedure.
40498 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
40499 proper range check.
40501 2001-12-04 Ed Schonberg <schonber@gnat.com>
40503 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
40504 processing discriminants to diagnose illegal default values.
40506 2001-12-04 Ed Schonberg <schonber@gnat.com>
40508 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
40509 access discriminant within a type extension that constrains its
40510 parent discriminants.
40512 2001-12-04 Ed Schonberg <schonber@gnat.com>
40514 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
40515 is malformed, use instance of Any_Id to allow analysis to proceed.
40517 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
40518 type definition is illegal.
40519 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
40522 2001-12-04 Ed Schonberg <schonber@gnat.com>
40524 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
40527 2001-12-04 Robert Dewar <dewar@gnat.com>
40529 * errout.adb: Minor reformatting
40531 2001-12-04 Robert Dewar <dewar@gnat.com>
40533 * exp_util.adb: Minor reformatting from last change
40535 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
40536 which is a rewriting of an expression, traverse the original
40537 expression to remove warnings that may have been posted on it.
40539 2001-12-04 Ed Schonberg <schonber@gnat.com>
40541 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
40542 record that has other packed components.
40544 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
40546 * adaint.c: Minor cleanups.
40548 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
40550 * adaint.c: Do not use utime.h on vxworks.
40552 2001-12-04 Arnaud Charlet <charlet@gnat.com>
40554 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
40555 more confusion than it solves.
40557 2001-12-04 Geert bosch <bosch@gnat.com>
40559 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
40561 2001-12-04 Geert Bosch <bosch@gnat.com>
40563 * Makefile.in (update-sources): New target.
40564 For use by gcc_release script.
40566 2001-12-04 Ed Schonberg <schonber@gnat.com>
40568 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
40569 a configuration pragma, it is now legal wherever a pragma can appear.
40571 2001-12-04 Zack Weinberg <zack@codesourcery.com>
40573 * Makefile.in: Don't set ALL. Delete @cross_defines@,
40574 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
40575 is now @CROSS@ -DIN_GCC; update comment.
40577 2001-12-04 Robert Dewar <dewar@gnat.com>
40579 * einfo.adb (Has_Pragma_Pure_Function): New flag.
40580 Fix problem that stopped ceinfo from working
40582 * einfo.ads (Has_Pragma_Pure_Function): New flag.
40584 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
40586 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
40589 (File_Time_Stamp): New procedure.
40590 (Preserve_Mode): New boolean.
40591 (Write_Unit): Pass time stamp.
40592 Implement -p switch (preserve time stamps).
40594 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
40596 * gnatchop.adb: Do usage info for -p switch
40598 * adaint.h (__gnat_set_file_time_name): New function
40600 * adaint.c (__gnat_set_file_time_name): Implement
40602 * adaint.h: Fix typo
40604 2001-12-03 Robert Dewar <dewar@gnat.com>
40606 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
40607 have Associated_Node.
40609 2001-12-03 Robert Dewar <dewar@gnat.com>
40611 * prj-proc.adb: Minor reformatting
40613 * make.adb: Minor reformatting
40615 2001-12-03 Geert Bosch <bosch@gnat.com>
40617 * make.adb: Minor reformatting.
40619 2001-12-03 Robert Dewar <dewar@gnat.com>
40621 * sem_ch12.adb: Minor reformatting
40623 2001-12-03 Ed Schonberg <schonber@gnat.com>
40625 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
40626 push Standard on the stack before analyzing the instance body,
40627 in order to have a clean visibility environment.
40629 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
40631 2001-12-03 Ed Schonberg <schonber@gnat.com>
40633 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
40634 instantiation of a body that contains an inlined body.
40636 2001-12-03 Ed Schonberg <schonber@gnat.com>
40639 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
40640 to prevent freezing within formal packages.
40641 (Freeze_Subprogram_Body): If body comes from another instance that
40642 appeared before its own body, place freeze node at end of current
40643 declarative part, to prevent a back-end crash.
40644 (Inline_Instance_Body): Handle properly a package instance within
40645 a subprogram instance that is a child unit.
40647 2001-12-01 Graham Stott <grahams@redhat.com>
40649 * Makefile.in (misc.o): Add missing $(srcdir) prefix
40650 and add optabs.h dependency.
40652 * misc.c: Include optabs.h
40653 (gnat_tree_code_type): Make static and const.
40654 (gnat_tree_code_length): Likewise.
40655 (gnat_tree_code_name): Likewise.
40656 (update_setjmp_buf): Obtain operands mode from insn_data.
40658 2001-11-29 Richard Henderson <rth@redhat.com>
40660 * init.c: Remove obsolete dwarf2 frame.h section.
40662 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
40664 * Make-lang.in (ada.generated-manpages): New dummy target.
40666 2001-11-29 Ed Schonberg <schonber@gnat.com>
40668 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
40669 into Command, an array conversion is illegal here. Uncovered by
40672 2001-11-28 Geert Bosch <bosch@gnat.com>
40674 * init.c: Minor whitespace changes.
40676 2001-11-28 Doug Rupp <rupp@gnat.com>
40678 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
40681 2001-11-28 Zack Weinberg <zack@codesourcery.com>
40683 * misc.c (gnat_expand_constant): Move declaration above
40684 definition of lang_hooks.
40685 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
40686 (gnat_init): lang_expand_constant no longer exists.
40688 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
40689 always have vprintf.
40690 (gnat_init): Always call set_internal_error_function.
40692 2001-11-27 Andreas Jaeger <aj@suse.de>
40694 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
40696 2001-11-27 Laurent Guerby <guerby@acm.org>
40698 * Makefile.in: Regenerate Ada dependencies.
40700 2001-11-26 Richard Henderson <rth@redhat.com>
40702 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
40703 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
40704 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
40706 2001-11-25 Laurent Guerby <guerby@acm.org>
40708 * sysdep.c (rts_get_*): Fix style.
40710 2001-11-19 Laurent Guerby <guerby@acm.org>
40712 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
40713 since it is of no apparent use and cause warnings.
40715 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
40717 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
40719 (gnat_init): Don't return NULL.
40720 (finish_parse): Remove.
40722 2001-11-17 Laurent Guerby <guerby@acm.org>
40724 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
40725 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
40726 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
40727 * lang-spec.h: Add missing struct field to silence warnings.
40728 * sysdep.c (rts_get_*): Provide K&R prototype.
40729 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
40730 * traceback.c (Unlock_Task, Lock_Task): Likewise.
40731 * tracebak.c (__gnat_backtrace): Remove unused variable.
40732 * utils.c (end_subprog_body): Move to K&R style.
40734 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
40736 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
40738 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
40740 * misc.c (gnat_init): Change prototype. Include the
40741 functionality of the old init_parse and init_decl_processing.
40742 (gnat_init_decl_processing): New prototype.
40743 (init_parse): Remove.
40744 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
40746 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
40748 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
40749 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
40750 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
40751 set_yydebug): Remove.
40753 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
40755 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
40756 (struct lang_hooks): Constify.
40757 (language_string, lang_identify): Remove.
40758 * utils.c (init_decl_processing): Update.
40760 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
40762 * misc.c: Include langhooks-def.h.
40763 * Makefile.in: Update.
40765 2001-10-30 Robert Dewar <dewar@gnat.com>
40768 (Check_Identifier): Rewrite circuit to be compatible with use of letters
40769 in the upper half of ASCII.
40770 (Check_Identifier): Minor reformatting
40772 2001-10-30 Geert Bosch <bosch@gnat.com>
40774 * (Associated_Node, Set_Associated_Node): Do not check for
40777 2001-10-30 Robert Dewar <dewar@gnat.com>
40779 * a-reatim.ads: Minor reformatting
40781 2001-10-30 Robert Dewar <dewar@gnat.com>
40783 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
40784 undocumented declarations.
40786 2001-10-30 Pascal Obry <obry@gnat.com>
40788 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
40789 to the binder and linker.
40792 * mdll.ads: Fix layout. Update copyright notice.
40794 * mdll.adb: Fix layout. Update copyright notice.
40796 2001-10-30 Robert Dewar <dewar@gnat.com>
40798 * usage.adb: Minor fix to output for -gnaty.
40800 2001-10-30 Ed Schonberg <schonber@gnat.com>
40802 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
40803 to accommodate all its possible values.
40805 * a-reatim.adb (Split): Special-case handling of Time_Span_First
40806 and of small absolute values of T.
40808 2001-10-30 Richard Kenner <kenner@gnat.com>
40810 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
40811 set_mem_attributes since not needed and wrong if RESULT if a REG;
40812 fixes ACATS failures.
40814 2001-10-30 Geert Bosch <bosch@gnat.com>
40816 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
40817 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
40819 2001-10-30 Robert Dewar <dewar@gnat.com>
40821 * bindusg.adb: Undocument -f switch.
40823 * gnatcmd.adb: Remove /FULL_ELABORATION.
40825 * opt.ads (Force_RM_Elaboration_Order): Document that this is
40828 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
40830 * gnatbind.adb: Minor update of warning msg.
40832 2001-10-30 Vincent Celier <celier@gnat.com>
40834 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
40835 for project file switches (-P (/PROJECT_FILE=),
40836 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
40839 2001-10-30 Geert Bosch <bosch@gnat.com>
40841 * decl.c: Minor whitespace fixes.
40843 2001-10-30 Richard Kenner <kenner@gnat.com>
40845 * utils2.c (build_allocator): Test for SIZE overflow in array case too
40847 2001-10-30 Geert Bosch <bosch@gnat.com>
40849 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
40850 Found due to GCC 3.0 warning of using uninitialized value.
40853 (Get_Max_Size): Use variant record for tracking value/expression.
40854 Makes logic clearer and prevents warnings for uninitialized variables.
40855 (Layout_Array_Type): Use variant record for tracking value/expression.
40856 Makes logic clearer and prevents warnings for uninitialized variables.
40858 2001-10-30 Robert Dewar <dewar@gnat.com>
40860 * lib.adb: Minor reformatting
40862 * s-taprop.ads: Minor reformatting
40864 2001-10-29 Laurent Guerby <guerby@acm.org>
40867 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
40869 (_gnat_error_handler): Make MSG const.
40871 2001-10-29 Richard Kenner <kenner@gnat.com>
40873 * sysdep.c: Fix localtime_r problem on LynxOS.
40874 Also remove #elif to avoid warnings.
40876 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
40879 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
40881 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
40883 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
40884 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
40885 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
40886 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
40887 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
40888 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
40889 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
40890 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
40891 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
40892 types.ads, urealp.adb: Fix spelling errors.
40894 2001-10-27 Laurent Guerby <guerby@acm.org>
40896 * trans.c (gigi): Fix non determinism leading to bootstrap
40897 comparison failures for debugging information.
40899 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
40901 * gnat_rm.texi: Use @./@: where appropriate.
40903 2001-10-26 Robert Dewar <dewar@gnat.com>
40905 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
40907 2001-10-26 Richard Kenner <kenner@gnat.com>
40909 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
40911 2001-10-26 Richard Kenner <kenner@gnat.com>
40913 * decl.c (validate_size): Modify message for bad size to avoid
40914 implication that compiler is modifying the size.
40916 2001-10-26 Robert Dewar <dewar@gnat.com>
40918 * prj-util.adb: Minor reformatting. Fix bad header format.
40920 2001-10-26 Robert Dewar <dewar@gnat.com>
40922 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
40924 * sinfo.ads: Clarify use of Associated_Node (documentation only).
40926 * sem_ch12.adb: Change Node4 to Associated_Node. Change
40927 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
40928 much more narrowly in places where needed. These are cleanups.
40930 2001-10-26 Joel Brobecker <brobecke@gnat.com>
40932 * 5zosinte.ads (null_pthread): new constant.
40935 (Initialize_TCB): Initialize thread ID to null, to be able to verify
40936 later that this field has been set.
40937 (Finalize_TCB): ditto.
40938 (Suspend_Task): Verify that the thread ID is not null before using it.
40939 (Resume_Task): ditto.
40942 (Resume_All_Tasks): Lock the tasks list before using it.
40943 (Suspend_All_Tasks): ditto.
40945 2001-10-26 Richard Kenner <kenner@gnat.com>
40947 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
40948 Make constant variant of designated type for Is_Access_Constant.
40949 Call update_pointer_to with main variant.
40951 * trans.c (process_freeze_entity, process_type):
40952 Call update_pointer_to on main variant.
40954 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
40955 If main variant, update all other variants.
40957 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
40960 2001-10-26 Robert Dewar <dewar@gnat.com>
40962 * prj-util.adb: Minor reformatting
40964 2001-10-26 Robert Dewar <dewar@gnat.com>
40966 * prj-util.adb: Minor reformatting
40968 2001-10-26 Robert Dewar <dewar@gnat.com>
40970 * prj-attr.adb: Minor reformatting throughout
40972 2001-10-26 Robert Dewar <dewar@gnat.com>
40974 * prj-attr.ads: Minor reformatting
40975 Add ??? comment (this whole spec has almost no comments)
40977 2001-10-26 Vincent Celier <celier@gnat.com>
40979 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
40980 ("//") that precede the drive letter on Interix.
40982 2001-10-26 Geert Bosch <bosch@gnat.com>
40984 * gnat_rm.texi: Add GNAT Reference Manual.
40986 2001-10-25 Robert Dewar <dewar@gnat.com>
40988 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
40989 is Error. Similar change for other renaming cases.
40991 2001-10-25 Robert Dewar <dewar@gnat.com>
40993 * s-atacco.ads: Add pragma Inline_Always for functions.
40994 Fix header format. Add copyright 2001
40996 2001-10-25 Ed Schonberg <schonber@gnat.com>
40998 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
40999 return Error rather than Empty so that analysis can proceed.
41001 2001-10-25 Ed Schonberg <schonber@gnat.com>
41003 * sem_util.adb (Enter_Name): better handling of cascaded error
41004 messages when a unit appears in its own context.
41006 2001-10-25 Ed Schonberg <schonber@gnat.com>
41008 * sem_util.adb (Defining_Entity): in case of error, attach created
41009 entity to specification, so that semantic analysis can proceed.
41011 2001-10-25 Robert Dewar <dewar@gnat.com>
41014 (Defining_Entity): Deal with Error.
41015 (Process_End_Label): Deal with bad end label for.
41017 2001-10-25 Ed Schonberg <schonber@gnat.com>
41019 * sem_elab.adb (Check_A_Call): refine message when call is in an
41020 instance but callee is not declared in the generic unit.
41022 2001-10-25 Ed Schonberg <schonber@gnat.com>
41024 * sem_elab.adb (Check_A_Call): check for renaming before finding the
41025 enclosing unit, which may already be different from the calling unit.
41027 2001-10-25 Geert Bosch <bosch@gnat.com>
41029 * 4gintnam.ads: fix header format.
41031 2001-10-25 Ed Schonberg <schonber@gnat.com>
41033 * sem_res.adb (Resolve_Call): if the call is actually an indexing
41034 operation on the result of a parameterless call, perform elaboration
41035 check after the node has been properly rewritten.
41037 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
41038 inlined within the generic tree, the defining identifier is not a
41041 2001-10-25 Ed Schonberg <schonber@gnat.com>
41043 * sem_res.adb (Resolve): special-case resolution of Null in an
41044 instance or an inlined body to avoid view conflicts.
41046 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
41047 compatibility by retrieving the access type of the generic copy.
41049 2001-10-25 Robert Dewar <dewar@gnat.com>
41052 (Analyze_Number_Declaration): Handle error expression.
41053 (Signed_Integer_Type_Declaration): Handle error bound.
41054 (Analyze_Subtype_Indication): Handle error range.
41056 * sem_util.adb (Get_Index_Bounds): Check for Error.
41058 2001-10-25 Robert Dewar <dewar@gnat.com>
41060 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
41061 in no run time mode.
41063 2001-10-25 Pascal Obry <obry@gnat.com>
41065 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
41066 mode case for ALLOC case.
41068 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
41069 all platforms. Improvement of last change.
41071 2001-10-25 Robert Dewar <dewar@gnat.com>
41073 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
41075 2001-10-25 Geert Bosch <bosch@gnat.com>
41077 * osint.adb (Is_Relative): Remove duplicate.
41079 2001-10-25 Pascal Obry <obry@gnat.com>
41081 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
41082 pathnames in UNIX and DOS style with drive letter.
41083 (Is_Relative): new routine.
41085 * osint.adb: Minor reformatting
41087 * osint.adb (Is_Relative): implementation using
41088 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
41090 2001-10-25 Pascal Obry <obry@gnat.com>
41092 * g-dirope.adb (Basename): correctly compute offset between the
41093 original Path and the translated one.
41095 * g-dirope.adb: (Base_Name): add some comments.
41097 2001-10-25 Robert Dewar <dewar@gnat.com>
41099 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
41100 in HIE mode, avoids compilation abandoned message
41102 * exp_imgv.adb: Correct typo in previous change
41104 * exp_imgv.adb: Correct typo in previous change (not my day!)
41106 2001-10-25 Robert Dewar <dewar@gnat.com>
41108 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
41110 2001-10-25 Pascal Obry <obry@gnat.com>
41112 * g-awk.ads: Move all pragma inlines next to the routine
41113 declarations. This is more uniform with other GNAT spec.
41115 2001-10-22 Geert Bosch <bosch@gnat.com>
41117 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
41119 2001-10-19 Geert Bosch <bosch@gnat.com>
41121 * Makefile.in (tools, gnattools): Remove gnatmem.
41123 2001-10-17 Richard Henderson <rth@redhat.com>
41125 * Makefile.in (misc.o): Depend on langhooks.h.
41126 * misc.c: Include it.
41127 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
41128 (LANG_HOOKS_DECODE_OPTION): New.
41129 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
41131 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
41133 * trans.c (tree_transform): Adjust to recent change in
41134 expand_asm_operands to implement named asm operands.
41136 2001-10-11 Ed Schonberg <schonber@gnat.com>
41138 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
41139 renaming of discriminant for mutable record type.
41141 2001-10-11 Robert Dewar <dewar@gnat.com>
41143 * validsw.adb: Properly save -gnatVn status.
41145 2001-10-11 Robert Dewar <dewar@gnat.com>
41147 * usage.adb: Add lines for V switch.
41149 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
41150 (/VALIDITY_CHECKING).
41152 2001-10-11 Ed Schonberg <schonber@gnat.com>
41154 * sem_type.adb (Add_One_Interp): an operator for a type declared in
41155 an extension of System is known to be visible.
41157 2001-10-11 Ed Schonberg <schonber@gnat.com>
41159 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
41160 properly. Fixes regression on ACATS C34005G.
41162 2001-10-11 Robert Dewar <dewar@gnat.com>
41164 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
41165 loop in generic instance, since this is likely not very useful.
41167 2001-10-11 Robert Dewar <dewar@gnat.com>
41169 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
41170 the error message for high integrity mode.
41172 * rtsfind.adb (RTE): Give message if we try to find an entity that
41173 is not available in high integrity mode.
41176 (OK_To_Use_In_HIE_Mode): New array.
41177 (RTE): May return Empty in high integrity mode.
41179 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
41180 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
41182 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
41183 unit if not inlined always and in no runtime mode. Fixes problem
41184 caused by new Rtsfind changes.
41186 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
41189 * rtsfind.adb (RTE): Make sure we do not try to load unit after
41190 giving message for entity not available in high integrity mode.
41192 2001-10-11 Pascal Obry <obry@gnat.com>
41194 * impunit.adb: Add GNAT.CRC32.
41196 2001-10-11 Ed Schonberg <schonber@gnat.com>
41198 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
41199 properly the case where one universal operand in a non-static
41200 exponentiation of a real literal.
41202 2001-10-11 Ed Schonberg <schonber@gnat.com>
41204 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
41205 clause, return the gobal finalization list, for lack of anthing else.
41207 2001-10-11 Ed Schonberg <schonber@gnat.com>
41209 * exp_ch7.adb (Make_Transient_Block): if statement is within
41210 exception handler, always use new transient scope to place Clean
41213 2001-10-11 Pascal Obry <obry@gnat.com>
41216 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
41217 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
41218 (GNATLS_RTL_OBJS): add g-crc32.o
41219 (GNATMAKE_RTL_OBJS): add g-crc32.o
41222 (CRC_Match): new function.
41223 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
41224 instead of the previous simple checksum algorithm.
41225 (Time_Stamp_Mismatch): use CRC_Match for comparison.
41226 (Set_Source_Table): idem.
41229 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
41230 instead of simple checksum.
41231 (CRC_Match): new function.
41232 (CRC_Error): new constant.
41234 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
41235 a CRC now and not a simple checksum. A CRC uses lower-case hex
41236 letters, fixes ambiguity in parsing.
41238 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
41239 is what this variable will store.
41241 * bcheck.adb: Change reference to chechsum in comments by CRC.
41242 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
41243 rename All_Checksum_Match to All_CRC_Match. Change due to API
41244 renaming since now GNAT does not use a simple checksum but a
41245 CRC using GNAT.CRC32.
41247 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
41248 now and not anymore a simple checksum.
41250 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
41253 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
41256 (Restore_Scan_State): rename Checksum to CRC.
41257 (Save_Scan_State): idem.
41261 (Checksum): rename to CRC.
41262 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
41264 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
41265 GNAT.CRC32). Update copyright notice.
41267 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
41268 GNAT.CRC32). Update copyright notice.
41271 (Accumulate_Checksum): removed.
41272 (Update): new procedure. Add a wide-character into the CRC.
41275 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
41276 (Load_File): fix initialization of S (change Source_Checksum to
41279 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
41280 Source_CRC in S initialization.
41282 * sinput.adb (Source_Checksum): renamed to Source_CRC.
41284 * sinput.ads (Source_Checksum): renamed to Source_CRC.
41285 Update comments for the CRC.
41287 * types.adb (Hex): Use lowercase for the letter part.
41289 * types.ads (Get_Hex_String): Returns the hexadecimal representation
41290 for a word. This is currently used only for CRC. In previous version,
41291 the checksum was using a representation with all letter being
41292 upper-case. With the new implementation (using CRC) we do not remove
41293 the 32th bit of the CRC, so we can have an upper-case starting letter
41294 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
41295 It is ambigous since the CRC was optional and could be followed by
41296 options like EB, EE. So now this routines uses lower-case letter for
41297 the hexadecimal representation. Strange enough only lower case letters
41298 where checked in Scan_ALI (even if this was not a possible case).
41300 * gnatvsn.ads (Library_Version): changed to 3.15a.
41302 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
41305 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
41308 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
41309 Add 2001 to copyright notice
41310 (Accumulate_Checksum): Modify to use System.CRC32.
41312 * ali-util.ads: Redo changes of previous revision to continue to use
41313 the word Checksum. Add 2001 to copyright notice.
41315 * ali.adb: Undo some of previous changes, not needed.
41316 Keep the change for lower case letters in the checksum.
41318 * ali.ads: Undo previous change not needed.
41320 * bcheck.adb: Undo most of previous change, not needed.
41321 But do use Checksums_Match for checksum comparison.
41323 * gnatls.adb: Undo most of previous change, not needed.
41324 But do use Checksums_Match for comparing checksums.
41326 * lib-load.adb: Undo previous change, not needed.
41328 * lib-writ.adb: Undo previous change, not needed.
41330 * lib-writ.ads: Document that checksums use lower case,
41331 not upper case letters.
41333 * scans.adb: Undo previous change, not needed
41335 * scans.ads: Undo previous change, not needed.
41337 * scn-nlit.adb: Undo previous changes, not needed.
41339 * scn-slit.adb: Undo previous change, not needed. Fix header format.
41342 (Accumulate_Checksum): Use System.CRC32.
41343 (Initialize_Checksum): New procedure.
41344 Remove other changes of previous revision.
41346 * sinput-p.adb: Undo previous change, not needed.
41348 * sinput.adb: Undo previous change, not needed.
41350 * sinput-l.adb: Undo previous change, not needed.
41352 * sinput.ads: Undo previous change, not needed. Keep only comment
41353 on new checksum algorithm
41355 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
41356 Also remove a-tags and a-stream from GNAT sources.
41358 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
41360 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
41362 2001-10-11 Geert Bosch <bosch@gnat.com>
41364 * einfo.h: Regenerate.
41366 * nmake.ads: Regenerate.
41368 * nmake.adb: Regenerate.
41370 * sinfo.h: Regenerate.
41372 * treeprs.adb: Regenerate.
41374 2001-10-10 Geert Bosch <bosch@gnat.com>
41376 * gnat-style.texi: New file describing coding guidelines for Ada.
41378 2001-10-10 Ed Schonberg <schonber@gnat.com>
41380 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
41383 2001-10-10 Geert Bosch <bosch@gnat.com>
41385 * snames.ads: Add new names for project facility.
41387 * snames.adb: Update to reflect snames.ads changes.
41389 * snames.h: Update to reflect snames.ads changes.
41391 2001-10-10 Vincent Celier <celier@gnat.com>
41394 (Add_Switches): reflect the changes for the switches attributes
41395 Default_Switches indexed by the programming language,
41396 Switches indexed by the file name.
41397 (Collect_Arguments_And_Compile): Idem.
41398 Reflect the attribute name changes.
41401 (Initialisation_Data): Change the names of some packages and
41403 (Initialize): process case insensitive associative arrays.
41406 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
41409 (Parse_Attribute_Declaration): For case insensitive associative
41410 arrays, set the index string to lower case.
41413 Reflect the changes of the project attributes.
41416 Replace Check_Naming_Scheme by Ada_Check and
41417 Language_Independent_Check.
41420 Replaced Check_Naming_Scheme by 2 procedures:
41421 Ada_Check and Language_Independent_Check.
41424 (Process_Declarative_Items): For case-insensitive associative
41425 arrays, set the index string to lower case.
41426 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
41427 Prj.Nmsc.Check_Naming_Scheme.
41430 (Case_Insensitive): New function
41431 (Set_Case_Insensitive): New procedure
41434 (Case_Insensitive): New function
41435 (Set_Case_Insensitive): New procedure
41436 (Project_Node_Record): New flag Case_Insensitive.
41439 (Value_Of): new function to get the string value of a single
41440 string variable or attribute.
41443 (Value_Of): new function to get the string value of a single
41444 string variable or attribute.
41447 (Ada_Default_Spec_Suffix): New function
41448 (Ada_Default_Impl_Suffix): New function
41449 Change definitions of several constants to reflect
41450 new components of record types.
41453 (Naming_Data): Change several components to reflect new
41454 elements of naming schemes.
41455 (Project_Data): New flags Sources_Present and
41456 Language_Independent_Checked.
41457 (Ada_Default_Spec_Suffix): New function.
41458 (Ada_Default_Impl_Suffix): New function.
41461 Modification of predefined names for project manager: added
41462 Implementation, Specification_Exceptions, Implementation_Exceptions,
41463 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
41464 Default_Switches, _Languages, Builder, Cross_Reference,
41465 Finder. Removed Body_Part, Specification_Append, Body_Append,
41466 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
41469 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
41472 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
41473 not that it is Nil_Variable_Value.
41475 * prj.ads: Add ??? for uncommented declarations
41477 2001-10-10 Ed Schonberg <schonber@gnat.com>
41479 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
41480 constant, do not indicate possible modification, so that gigi can
41481 treat it as a bona fide constant.
41483 2001-10-10 Robert Dewar <dewar@gnat.com>
41485 * sem_prag.adb: Add processing for pragma External.
41487 * snames.ads: Add entry for pragma External.
41489 * par-prag.adb: Add pragma External.
41491 * snames.adb: Updated to match snames.ads.
41493 2001-10-10 Ed Schonberg <schonber@gnat.com>
41495 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
41496 a dynamic task if the allocator appears in an indexed assignment
41497 or selected component assignment.
41499 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
41500 For a dynamic task in an assignment statement, use target of
41501 assignment to generate meaningful name.
41503 2001-10-10 Ed Schonberg <schonber@gnat.com>
41505 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
41508 * einfo.ads: Body_Entity is also defined for generic package.
41509 Documentation change only
41511 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
41512 others_choice for a discriminated component initialization,
41513 convert discriminant references into the corresponding discriminals.
41515 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
41516 only if original type is private and expression has to be wrapped
41520 (Apply_Constraint_Check): Do not perform length check
41521 if expression is an aggregate with only an others_choice.
41522 (Length_N_Cond): two references to the same in_parameter
41523 (typically the discriminal in an init_proc) denote the same value.
41524 Two useful optimization uncovered by bugfixes above.
41526 2001-10-10 Robert Dewar <dewar@gnat.com>
41528 * xeinfo.adb: Change int to char in translation of enumeration types.
41529 This fixes a problem in the C representation of component alignment.
41530 Add 2001 to copyright notice
41532 2001-10-10 Richard Kenner <kenner@gnat.com>
41534 * decl.c: (validate_size): Do check size of object of integral type
41535 if it is a packed array type.
41537 2001-10-10 Richard Kenner <kenner@gnat.com>
41539 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
41540 VAR_DECL for constant if not Is_Public but -O0.
41542 2001-10-10 Richard Kenner <kenner@gnat.com>
41544 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
41546 2001-10-10 Geert Bosch <bosch@gnat.com>
41548 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
41549 use '/' as switch character, allowing for absolute file names.
41551 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
41553 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
41556 2001-10-08 Geert Bosch <bosch@gnat.com>
41558 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
41559 Automatically build utilities when files need to be regenerated.
41561 2001-10-08 Geert Bosch <bosch@gnat.com>
41563 * xsnames.adb: New utility for updating snames.ads and snames.adb
41565 2001-10-08 Zack Weinberg <zack@codesourcery.com>
41567 * Make-lang.in (ADAFLAGS): Add -W -Wall.
41568 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
41569 (gnat1): Also depend on attribs.o.
41570 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
41571 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
41572 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
41573 (ADAFLAGS): Add -W -Wall.
41574 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
41577 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
41578 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
41579 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
41580 Use $(ADAC), not $(CC), as compilation command.
41582 (gnattools): Depend directly on tools to build, don't use
41584 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
41586 * einfo.h, sinfo.h: New files (autogenerated).
41588 2001-10-08 Richard Henderson <rth@redhat.com>
41590 * comperr.adb (Abort_In_Progress): New.
41591 (Compiler_Abort): Use it to prevent recursion.
41593 2001-10-08 Robert Dewar <dewar@gnat.com>
41595 * atree.adb: Set Error_Posted in Error node, helps error recovery.
41597 * par-endh.adb (Output_End_Expected): We should also not test
41598 Error_Posted on the Error node, since now it is always set.
41600 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
41601 to help error recovery. Part of general work on 9407-004.
41603 * par.adb: Add ??? for misuse of error
41606 (Resolve): Defend against Error, fixes 9407-003.
41607 (Resolve_Discrete_Subtype_Indication): Defend against Error.
41609 * sinfo.ads (N_Error): Now has Etype field (which will be set
41610 to Any_Type to help error recovery).
41612 2001-10-08 Richard Kenner <kenner@gnat.com>
41614 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
41615 Consistently set MEM attributes from expression; fixes
41616 bootstrap failure on x86.
41618 2001-10-08 Geert Bosch <bosch@gnat.com>
41620 * 5oosinte.adb: Add 2001 to copyright notice.
41622 2001-10-08 Geert Bosch <bosch@gnat.com>
41624 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
41626 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
41628 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
41630 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
41632 2001-10-05 Geert Bosch <bosch@gnat.com>
41634 * adaint.h: Small formatting fix.
41636 2001-10-04 Geert Bosch <bosch@gnat.com>
41638 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
41639 Arg is int, not FILE *, in dummy version of functions.
41641 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
41642 Arg is int, not FILE *.
41644 2001-10-04 Geert Bosch <bosch@gnat.com>
41646 * 3lsoccon.ads: Added file, missed with initial check ins.
41648 * 4lintnam.ads: Fix header format.
41649 Change Linux to GNU/Linux.
41651 * 5iosinte.adb: Change Linux to GNU/Linux.
41653 * 5iosinte.ads: Change Linux to GNU/Linux.
41655 * 5itaprop.adb: Change Linux to GNU/Linux.
41657 * 5itaspri.ads: Change Linux to GNU/Linux.
41658 Update copyright notice.
41660 * 5lintman.adb: Change Linux to GNU/Linux.
41662 * 5lml-tgt.adb: Change Linux to GNU/Linux.
41664 * 5losinte.ads: Change Linux to GNU/Linux.
41666 * 5lsystem.ads: Change Linux to GNU/Linux.
41668 * 5qosinte.adb: Change Linux to GNU/Linux.
41670 * 5qosinte.ads: Change Linux to GNU/Linux.
41672 * 5qparame.ads: Change Linux to GNU/Linux.
41674 * 5qtaprop.adb: Change Linux to GNU/Linux.
41676 * 5qtaspri.ads: Change Linux to GNU/Linux.
41677 Add 2001 to copyright notice.
41679 * 5vintman.ads: Change Linux to GNU/Linux.
41680 Fix header format. Add 2001 to copyright notice.
41682 * g-soccon.ads: Change Linux to GNU/Linux.
41684 * g-trasym.ads: Change Linux to GNU/Linux.
41685 Add 2001 to copyright notice.
41687 * memtrack.adb: Change Linux to GNU/Linux.
41689 * s-intman.ads: Change Linux to GNU/Linux.
41690 Add 2001 to copyright notice. Fix header format.
41692 * s-stache.adb: Change Linux to GNU/Linux.
41694 * adaint.c: Change Linux to GNU/Linux.
41696 * cio.c: Change Linux to GNU/Linux.
41698 * cstreams.c: Change Linux to GNU/Linux.
41700 * init.c: Change Linux to GNU/Linux.
41702 * gmem.c: Change Linux to GNU/Linux.
41704 * tracebak.c: Change Linux to GNU/Linux.
41707 2001-10-02 Geert Bosch <bosch@gnat.com>
41709 * misc.c (insert_default_attributes): Add dummy version.