1 2004-10-04 Ed Falis <falis@gnat.com>
3 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
5 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
7 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
10 2004-10-04 Robert Dewar <dewar@gnat.com>
12 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
14 (Analyze_Block_Statement): Add circuitry to detect following dead code
15 (Check_Unreachable_Code): Handle case of block exit
17 2004-10-04 Robert Dewar <dewar@gnat.com>
19 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
20 (XMatchD): Avoid warning for Logic_Error call
22 2004-10-04 Robert Dewar <dewar@gnat.com>
24 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
25 consider expressions buried within a procedure actual to be an actual.
26 This caused some blowups with uses of packed slices within a procedure
29 2004-10-04 Robert Dewar <dewar@gnat.com>
31 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
32 longer need to be initialized to zero.
33 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
36 * checks.adb (Expr_Known_Valid): Packed arrays are now always
37 considered valid, even if the representation is modular. That's correct
38 now that we no longer initialize packed modular arrays to zero.
40 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
41 suffixes. These are now documented as the only cases in which the
42 debugger ignores outer records.
43 Previously, the spec allowed arbitrary suffixes for this purpose.
44 Change name of LJM to JM for packed array pad records
45 Create separate section on packed array handling, and add a whole new
46 set of comments to this section describing the situation with packed
47 modular types and justification requirements depending on endianness.
49 2004-10-04 Robert Dewar <dewar@gnat.com>
51 * a-except.adb: Add a comment for last change
53 * einfo.ads: Minor spelling correction in comment
55 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
57 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
60 * sem_util.ads: Minor comment update
62 2004-10-04 Ed Schonberg <schonberg@gnat.com>
64 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
65 Inline_Always when in Configurable_Run_Time mode.
67 * sem_prag.adb (Process_Convention): If entity is an inherited
68 subprogram, apply convention to parent subprogram if in same scope.
69 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
70 when in Configurable_Run_Time mode.
72 2004-10-04 Ed Schonberg <schonberg@gnat.com>
74 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
75 class_wide type after component list has been inherited.
77 2004-10-04 Ed Schonberg <schonberg@gnat.com>
79 * sem_ch12.adb (Check_Generic_Actuals): New predicate
80 Denotes_Previous_Actual, to handle properly the case of a private
81 actual that is also the component type of a subsequent array actual.
82 The visibility status of the first actual is not affected when the
84 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
85 make fully recursive the treatment of formals of packages declared
87 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
88 the above on exit from an instantiation.
89 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
90 current instantiation which is now complete.
91 (Analyze_Package_Instantiation): No instantiated body is needed if the
92 main unit is generic. Efficient, and avoid anomalies when a instance
93 appears in a package accessed through rtsfind.
95 2004-10-04 Ed Schonberg <schonberg@gnat.com>
97 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
98 do not generate a declaration for a temporary if the call is part of a
99 library-level instantiation.
101 2004-10-04 Ed Schonberg <schonberg@gnat.com>
103 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
104 searching for a limited component to flag.
106 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
107 expansion of Input, to account for the fact that the implicit call
108 generated by the attribute reference must freeze the user-defined
109 stream subprogram. This is only relevant to 'Input, because it can
110 appear in an object declaration, prior to the body of the subprogram.
112 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
113 expansion can proceed and further errors uncovered.
114 (Minor clean up): Fix cases of using | instead of \ for continuation
117 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
119 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
121 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
122 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
123 Use gcc_assert and gcc_unreachable.
125 * decl.c (gnat_to_gnu_entity, case object): Check and process a
126 specified alignment before validating size.
127 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
128 stripped-down declaration for the type of the inner field when making
131 * utils.c (finish_record_type): Do not compute the size in units
132 incrementally. Instead compute it once for the rep clause case.
133 Use gcc_assert and gcc_unreachable.
135 2004-10-04 Vincent Celier <celier@gnat.com>
137 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
139 (Is_Valid_Path_Name): Take '/' as a directory separator.
141 2004-10-04 Vincent Celier <celier@gnat.com>
143 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
144 (Extended_Project) only if Extended_Project is defined, to avoid
146 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
148 (Parse_Single_Project): Ditto.
150 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
151 Add_To_Project_Path for virtual projects.
153 2004-10-04 Vincent Celier <celier@gnat.com>
155 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
156 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
157 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
158 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
161 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
162 Build_Dynamic_Library with an empty Options_2.
164 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
167 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
168 directory separator, if any.
169 (Gprmake): Do not allow mains on the command line for library projects.
170 Do not attempt to link when the project is a library project.
171 (Library_Opts): New table to store Library_Options.
172 (Build_Library): If Library_Options is specified, pass these options
173 when building a shared library.
175 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
177 * s-tposen.adb (Service_Entry): The object must be always unlocked at
178 the end of this procedure now that the unlock operation was inserted
181 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
183 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
184 corresponding to the Preallocated_Stacks flags in System.
185 (Get_Target_Parameters): Including the processing for
188 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
189 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
190 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
191 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
192 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
193 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
194 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
195 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
196 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
197 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
198 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
199 used to signal whether the compiler creates the required stacks and
200 descriptors for the different tasks (when True) or it is done by the
201 underlying operating system at run time (when False).
202 It is initially set to False in all targets.
204 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
205 if it is supported by the target.
206 (Make_Task_Create_Call): Pass the stack address if it has been
207 previously created. Otherwise pass a Null_Address.
209 * snames.adb: Add _stack.
211 * snames.ads: Add Name_uStack. Required to allow the expander to
212 statically allocated task stacks.
214 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
215 Stack_Address argument.
216 Check that its value is equal to Null_Address because this target does
217 not support the static stack allocation.
219 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
221 * usage.adb: Change "pragma inline" to "pragma Inline" in information
224 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
226 * exp_dist.adb: Split declaration of asynchronous flag out of
227 Add_RACW_Read_Attribute.
228 Minor reformatting for better alignment with PolyORB version.
229 Store the entity for the asynchronous flag of an RACW, rather than the
230 expression, in the asynchronous flags table. This will allow this flag
231 to be used in other subprograms beside Add_RACW_Read_Attribute.
233 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
235 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
236 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
237 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
238 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
239 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
240 sockets constant MSG_NOSIGNAL (Linux-specific).
241 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
243 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
244 from trigerring SIGPIPE.
245 Rename components to avoid clash with Ada 2005 possible reserved
247 (Check_Selector): When the select system call returns with an error
248 condition, propagate Socket_Error to the caller.
250 2004-10-01 Jan Hubicka <jh@suse.cz>
252 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
254 2004-09-23 Robert Dewar <dewar@gnat.com>
258 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
259 instead do this at freeze time (we won't do it if there is an address
261 Change "pragma inline" to "pragma Inline" in information and error
265 * freeze.adb (Check_Address_Clause): Remove previous change, not the
266 right way of doing things after all.
267 (Freeze_Entity): For object, set Is_Public for imported entities
268 unless there is an address clause present.
270 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
272 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
273 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
274 ensures proper handling of types with rep clauses, which might have
275 their TYPE_SIZE set already.
277 2004-09-21 Robert Dewar <dewar@gnat.com>
279 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
280 packed array types in both little- and big-endian cases. This change
281 ensures that we no longer count on the unused bits being initialized
282 for such types (and in particular ensures that equality testing will
283 only read the relevant bits).
284 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
285 These changes mean that we no longer need to initialize small packed
287 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
288 optimization to an LJM field as to its parent field.
290 * ada-tree.h, trans.c, utils.c, utils2.c:
291 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
293 2004-09-20 Jan Hubicka <jh@suse.cz>
295 * utils.c (gnat_finalize): Remove.
296 (end_subprog_body): Directly call cgraph_finalize_function;
297 do not lower the nested functions.
299 2004-09-20 Robert Dewar <dewar@gnat.com>
303 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
304 if an address clause is present, since that means that the Import
307 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
309 * 5tsystem.ads: Removed, no longer used.
311 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
312 Zack Weinberg <zack@codesourcery.com>
314 * ada-tree.def: Use tree_code_class enumeration constants
315 instead of code letters.
316 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
317 Update for new tree-class enumeration constants.
319 2004-09-17 Vincent Celier <celier@gnat.com>
321 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
322 capabilities of the general project manager.
324 2004-09-09 Vincent Celier <celier@gnat.com>
326 * a-direct.ads: Add pragma Ada_05
327 (Directory_Entry_Type): Give default value to component Kind to avoid
328 not initialized warnings.
330 * a-direct.adb (Current_Directory): Remove directory separator at the
332 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
333 an existing directory.
334 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
335 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
336 Convert the result to File_Size.
338 * prj.ads: (Project_Error): New exception
340 * prj-attr.adb: Except in procedure Initialize, Fail comes from
341 Prj.Com, not from Osint.
342 (Attrs, Package_Attributes): Tables moved to private part of spec
343 (Add_Attribute, Add_Unknown_Package): Moved to new child package
345 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
346 Prj.Project_Error after call to Fail.
347 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
348 Fail. Check that package name is not already in use.
350 * prj-attr.ads: Comment updates to indicate that all subprograms may be
351 used by tools, not only by the project manager, and to indicate that
352 exception Prj.Prj_Error may be raised in case of problem.
353 (Add_Unknown_Package, Add_Attribute): Moved to new child package
355 (Attrs, Package_Attributes): Table instantiations moved from the body to
356 the private part to be accessible from Prj.Attr.PM body.
358 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
359 from new package Prj.Attr.PM.
360 (Parse_Attribute_Declaration): Call Add_Attribute from new package
363 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
365 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
366 instead of Elaboration_Checks).
368 * a-calend.adb: Minor reformatting
370 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
372 * gigi.h (maybe_pad_type): New declaration.
373 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
375 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
377 * cuintp.c: Convert to use buildN.
379 * decl.c (maybe_pad_type): No longer static.
380 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
382 Convert to use buildN.
384 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
385 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
386 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
388 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
389 (gnat_gimplify_expr, case ADDR_EXPR): New case.
390 Convert to use buildN.
392 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
393 TREE_READONLY for const.
394 Convert to use buildN.
396 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
397 (create_var_decl): Refine when TREE_STATIC is set.
398 Convert to use buildN.
400 2004-09-09 Gary Dismukes <dismukes@gnat.com>
402 * gnat_ugn.texi: Delete text relating to checking of ali and object
405 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
408 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
410 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
411 pragmas recognized by GNAT.
413 * gnat_rm.texi: Document pragma Detect_Blocking.
415 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
416 raise Program_Error if called from a protected operation.
418 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
419 the protected action nesting level.
420 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
421 protected action nesting level.
422 (Unlock): When pragma Detect_Blocking is active decrease the protected
423 action nesting level.
425 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
426 Protected_Action_Nesting.
428 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
429 Common_ATCB record. It contains the dynamic level of protected action
430 nesting for each task. It is needed for checking whether potentially
431 blocking operations are called from protected operations.
432 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
433 Detect_Blocking is active or not in the partition.
435 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
436 raise Program_Error if called from a protected operation.
437 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
438 Program_Error if called from a protected operation.
439 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
440 Program_Error if called from a protected operation.
442 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
443 raise Program_Error if called from a protected operation.
445 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
446 raise Program_Error if called from a protected operation, and increase
447 the protected action nesting level.
448 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
449 Program_Error if called from a protected operation, and increase the
450 protected action nesting level.
451 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
452 protected action nesting level.
454 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
455 raise Program_Error if called from a protected operation, and increase
456 the protected action nesting level.
457 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
458 Program_Error if called from a protected operation, and increase the
459 protected action nesting level.
460 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
461 raise Program_Error if called from a protected operation.
462 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
463 active, raise Program_Error if called from a protected operation.
464 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
465 protected action nesting level.
467 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
468 insertion of the statement raising Program_Error. The run time
469 contains the required machinery for handling that.
471 * sem_util.ads: Change comment associated to procedure
472 Check_Potentially_Blocking_Operation.
473 This procedure does not insert a call for raising the exception because
474 that is currently done by the run time.
476 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
478 * init.c: Add the global variable __gl_detect_blocking that indicates
479 whether pragma Detect_Blocking is active (1) or not (0). Needed for
480 making the pragma available at run time.
481 (__gnat_set_globals): Pass and update the detect_blocking parameter.
483 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
484 pragma Detect_Blocking is active.
486 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
488 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
489 DB is found in the ali file. Any unit compiled with pragma
490 Detect_Blocking active forces its effect in the whole partition.
492 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
493 Detect_Blocking is active and delay is called from a protected
496 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
497 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
498 Detect_Blocking is active (0 otherwise).
499 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
500 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
503 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
505 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
506 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
509 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
510 (Register_Receiving_Stub): Add Subp_Info formal parameter.
511 Update API in placeholder implemetation of s-parint to reflect changes
512 in distribution runtime library.
514 * sem_ch3.adb (Expand_Derived_Record): Rename to
515 Expand_Record_Extension.
517 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
518 primitive operations of potentially distributed object types that have
519 non-controlling anonymous access formals.
521 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
523 New implementation of expansion for remote access-to-subprogram types,
524 based on the RACW infrastructure.
525 This version of sem_dist is compatible with PolyORB/DSA as well as
528 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
529 Asynchrronous that applies to a remote access-to-subprogram type, mark
530 the underlying RACW type as asynchronous.
532 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
533 __gnat_using_gnu_linker to 1.
535 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
536 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
537 GNAT.Perfect_Hash_Generators, and remove the empty
538 GNAT.Perfect_Hash package.
540 * atree.adb: Minor reformatting
542 * exp_ch3.adb (Expand_Derived_Record): Rename to
543 Expand_Record_Extension.
544 (Build_Record_Init_Proc.Build_Assignment): The default expression in
545 a component declaration must remain attached at that point in the
546 tree so New_Copy_Tree copies it if the enclosing record type is derived.
547 It is therefore necessary to take a copy of the expression when building
548 the corresponding assignment statement in the init proc.
549 As a side effect, in the case of a derived record type, we now see the
550 original expression, without any rewriting that could have occurred
551 during expansion of the ancestor type's init proc, and we do not need
552 to go back to Original_Node.
554 * exp_ch3.ads (Expand_Derived_Record): Rename to
555 Expand_Record_Extension.
557 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
558 Returns the RACW type used to implement a remote access-to-subprogram
560 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
561 New subprograms. Used to create a proxy tagged object for a remote
562 subprogram. The proxy object is used as the designated object
563 for RAS values on the same partition (unless All_Calls_Remote applies).
564 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
565 System.Partition_Interface.Get_Unique_Remote_Pointer.
566 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
567 Renamed from Add_RAS_*_Attribute.
568 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
570 New implementation of expansion for remote access-to-subprogram types,
571 based on the RACW infrastructure.
573 * exp_dist.ads (Copy_Specification): Update comment to note that this
574 function can copy the specification from either a subprogram
575 specification or an access-to-subprogram type definition.
577 2004-09-09 Ed Schonberg <schonberg@gnat.com>
579 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
580 in an instance, between an explicit subprogram an one inherited from a
581 type derived from an actual.
583 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
584 add a polling call if the subprogram is to be inlined by the back-end,
585 to avoid repeated calls with multiple inlinings.
587 * checks.adb (Apply_Alignment_Check): If the expression in the address
588 clause is a call whose name is not a static entity (e.g. a dispatching
589 call), treat as dynamic.
591 2004-09-09 Robert Dewar <dewar@gnat.com>
593 * g-trasym.ads: Minor reformatting
595 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
596 packed arrays, since unused bits are expected to be zero for a
599 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
601 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
604 2004-09-09 Pascal Obry <obry@gnat.com>
606 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
607 enable map file generation. Add the right option to generate the map
608 file if Map_File is set to True.
610 * gnatdll.adb (Gen_Map_File): New variable.
611 (Syntax): Add info about new -m (Map_File) option.
612 (Parse_Command_Line): Add support for -m option.
613 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
616 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
618 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
619 new gnatdist implementation.
620 Define a subpackage isolating the output routines specific to this
623 2004-09-09 Joel Brobecker <brobecker@gnat.com>
625 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
627 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
629 2004-09-09 Cyrille Comar <comar@act-europe.fr>
631 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
634 * opt.ads: Add Ada_Version_Runtime constant used to decide which
635 version of the language is used to compile the run time.
637 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
639 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
640 of variable length temporaries for function return now that the
641 back-end and gigi support it.
643 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
645 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
647 * trans.c (struct stmt_group): Delete field GLOBAL.
648 (gnat_init_stmt_group): Do not initialize it.
649 (call_to_gnu): Use save_expr, not protect_multiple_eval.
650 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
651 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
652 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
653 (start_stmt_group): Likewise.
654 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
656 * utils2.c (ggc.h): Include.
657 (build_call_raise): Call build_int_cst, not build_int_2.
659 * utils.c (gnat_init_decl_processing): Fix arg to
660 build_common_tree_nodes.
661 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
662 (gnat_define_builtin): Set built_in_decls.
663 (init_gigi_decls): Call build_int_cst, not build_int_2.
665 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
666 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
667 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
668 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
669 SET_TYPE_MODULE): Use them.
670 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
671 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
672 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
673 SET_TYPE_ADA_SIZE): Likewise.
674 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
675 (DECL_CONST_CORRESPONDING_VAR,
676 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
677 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
678 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
679 (TYPE_RM_SIZE_NUM): New macro.
680 (TYPE_RM_SIZE): Modified to use above.
682 * cuintp.c: (build_cst_from_int): New function.
685 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
686 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
687 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
688 MIN_EXPR for the size, copy it into new.
690 2004-09-01 Robert Dewar <dewar@gnat.com>
692 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
693 packed indexed component where array is an IN OUT formal. This
694 generated garbage code previously.
696 * gnat_ugn.texi: Document -fverbose-asm
698 * gnat-style.texi: Minor updates (note that boolean constants and
699 variables are joined with AND/OR rather than short circuit forms).
701 2004-09-01 Ed Schonberg <schonberg@gnat.com>
703 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
704 it is an upward conversion of an untagged type with no representation
707 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
709 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
710 System.Partition_Interface.
712 * checks.adb (Apply_Access_Checks): Do not generate checks when
713 expander is not active (but check for unset reference to prefix of
716 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
717 pragma Debug as an if statement with a constant condition, for
718 consistent treatment of entity references contained within the
719 enclosed procedure call.
721 2004-09-01 Vincent Celier <celier@gnat.com>
723 * bindgen.adb: (Set_EA_Last): New procedure
724 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
726 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
727 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
728 linked without errors.
729 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
731 (Gen_Exception_Table_C): Correct same bugs
733 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
735 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
736 on Windows, make sure that the drive letter is in upper case.
738 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
739 Windows, when the drive letter is added and Case_Sensitive is True, the
740 drive letter is forced to upper case.
742 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
743 to Options_2 for the call to MLib.Utl.Gcc.
745 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
746 directory separator when defining BASE_DIR.
748 2004-09-01 Pascal Obry <obry@gnat.com>
750 * gprcmd.adb (Extend): Do not output trailing directory separator. This
751 is not needed and it confuses Windows GNU/make which does not report
752 directory terminated by a slash as a directory.
753 (gprcmd): Idem for "pwd" internal command.
755 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
756 target names rewrite to fix regressions with recent version of
757 GNU/make. Starting with GNU/make 3.80 the pipe character was not
758 handled properly anymore.
760 2004-09-01 Andreas Schwab <schwab@suse.de>
762 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
763 * raise.c [!IN_RTS]: Undef abort.
765 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
767 * utils2.c (build_allocator): Use ssize_int.
769 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
771 2004-08-27 Andreas Schwab <schwab@suse.de>
773 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
775 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
776 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
778 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
780 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
782 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
783 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
784 * utils.c (init_gigi_decls): Likewise.
785 * utils2.c (build_call_raise, build_allocator): Likewise.
787 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
789 * utils.c (gnat_init_decl_processing): Adjust
790 build_common_tree_nodes call.
792 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
794 * utils2.c (build_allocator): Use build_int_cst for negative
797 2004-08-18 Richard Henderson <rth@redhat.com>
799 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
801 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
803 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
805 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
806 (gnat_to_gnu): Likewise.
808 2004-08-16 Pascal Obry <obry@gnat.com>
810 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
811 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
812 option and not mdll anymore. Update comment.
814 2004-08-16 Pascal Obry <obry@gnat.com>
816 * bld.adb (Put_Include_Project): Properly handle directory separators
819 2004-08-16 Ed Schonberg <schonberg@gnat.com>
821 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
822 decreasing the number of allocated junk nodes while searching for the
823 appropriate subprogram.
825 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
827 * cuintp.c (UI_To_gnu): Use build_int_cst..
828 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
829 * utils.c (init_gigi_decls): Likewise.
830 * utils2.c (build_call_raise): Likewise.
832 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
834 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
835 for a global aliased object with a variable size and an unconstrained
836 nominal subtype, pretend there is no initializer if the one we have is
837 incomplete, and avoid referencing an inexistant component in there. The
838 part we have will be rebuilt anyway and the reference may confuse
841 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
843 * einfo.ads: Minor reformatting
845 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
846 restrictions in the ALI if we only want to warn about violations.
848 2004-08-13 Vincent Celier <celier@gnat.com>
850 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
851 when creating a new Unit_Record in table Units.
853 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
854 that are violated, if any.
856 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
857 add directory separator if path already ends with a directory separator.
859 2004-08-13 Ed Schonberg <schonberg@gnat.com>
861 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
862 unit, this is an attempt to inline a construct that is not available in
863 the current restricted mode, so abort rather than trying to continue.
865 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
866 discriminants that rename those of the parent, recover names of
867 original discriminants for the constraint on the full view of the
869 (Complete_Private_Subtype): Do not create a subtype declaration if the
872 * gnat_rm.texi: Added section on implementation of discriminated
873 records with default values for discriminants.
875 2004-08-13 Ed Schonberg <schonberg@gnat.com>
878 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
879 the second operand is overloaded.
881 2004-08-10 Richard Henderson <rth@redhat.com>
883 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
884 add __builtin_alloca.
886 2004-08-10 Richard Henderson <rth@redhat.com>
888 * config-lang.in (boot_language): Yes.
890 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
892 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
893 from complaining on potential uninitialized reference.
894 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
895 new specification and test explicitly for non-zero return value.
897 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
898 returning C.int, to avoid using a derived boolean type.
900 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
901 Duplicate_Subexpr_No_Checks in preference to direct use of
902 Remove_Side_Effects and New_Copy_Tree.
903 Clear Comes_From_Source on prefix of 'Size attribute reference.
905 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
906 g-socthi-vxworks.adb: Change calls to
907 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
908 and test explicitly for non-zero return value.
910 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
911 (Is_Socket_In_Set): Declare imported function as returning C.int, to
912 avoid using a derived boolean type.
914 2004-08-09 Albert Lee <lee@gnat.com>
916 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
918 2004-08-09 Pascal Obry <obry@gnat.com>
920 * gnat_ugn.texi: Document new way to build DLLs on Windows using
921 GCC's -shared option.
923 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
924 Options_2 parameter (options put after object files).
926 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
928 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
929 ignore overflows on low and high bounds of an index to also account for
930 differences in signedness between sizetype and gnu_index_subtype.
931 These are as legitimate as the ones caused by a lower TYPE_PRECISION
934 2004-08-09 Robert Dewar <dewar@gnat.com>
936 * s-solita.ads, s-solita.adb: Minor reformatting
938 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
939 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
941 Add note that No_Implicit_Conditionals does not suppress
942 run time constraint checks.
944 * vms_conv.ads: Minor reformatting
946 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
947 and necessary for following change).
948 (Mark): Return new format Mark_Id containing sec stack address
949 (Release): Use sec stack address from Mark_Id avoiding Self call
951 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
952 pointer (cleanup and necessary for following change).
953 Define Mark_Id as record containing address of secondary stack, that way
954 Release does not need to find the stack again, decreasing the number of
955 calls to Self and improving efficiency.
957 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
959 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
960 case variable into the individual case branches when possible.
962 * sem_ch11.adb: Minor reformatting
964 * prj.ads: Correct spelling of suffixs
966 * prj-nmsc.adb: Minor reformatting
967 Correct spelling suffixs throughout (also in identifiers)
969 * freeze.adb: Minor spelling correction
971 * exp_ch2.adb: Cleanups to handling of Current_Value
972 (no functional effect).
974 * bld.adb: Correct spelling of suffixs
976 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
978 2004-08-09 Ed Schonberg <schonberg@gnat.com>
982 * sem_ch7.adb (Install_Private_Declarations): In the body of the
983 package or of a child, private entities are both immediately_visible
986 2004-08-09 Ed Schonberg <schonberg@gnat.com>
988 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
989 there are no range checks on the value of the literal.
991 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
992 wrapped is the triggering alternative of an asynchronous select, action
993 statements mustbe inserted before the select itself.
995 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
996 case where the prefix is a protected function call.
997 (Resolve_Attribute, case 'Access): The attribute reference on a
998 subprogram is legal in a generic body if the subprogram is declared
1001 2004-08-09 Vincent Celier <celier@gnat.com>
1003 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
1004 languages, otherwise building the library may fail with unresolved
1006 (Compile_Sources): Do not build libraries if -c switch is used
1008 * gnatlink.adb (Process_Args): New switches -M and -Mmap
1009 (Write_Usage): If map file creation is supported, output new switches
1011 (Gnatlink): When -M is specified, add the necessary switch(es) to the
1012 gcc call, when supported.
1014 * Makefile.in: Added indepsw.o to the object list for gnatlink
1015 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
1017 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
1018 indepsw.adb, indepsw.ads: New files.
1020 2004-08-09 Bernard Banner <banner@gnat.com>
1022 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
1024 * Makefile.in: add section for vxworks x86
1026 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
1028 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
1029 per-object constrained components where the discriminant is of an
1031 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
1032 the parent initialization procedure for derived Unchecked_Unions.
1033 Instead, derived Unchecked_Unions build their own initialization
1035 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
1036 Check the body of the subprogram for details.
1037 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
1038 functions for derived Unchecked_Union types by introducing a condition.
1039 Allow the creation of TSS equality functions for Unchecked_Unions.
1040 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
1041 Add formal parameter Discr to function signature. Discr is used to
1042 control the generated case statement for Unchecked_Union types.
1043 (Make_Eq_If): Rename formal parameter Node to E in function signature.
1045 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
1047 Check the body of the subprogram for details.
1048 (Expand_Composite_Equality): Augment composite type equality to include
1049 correct handling of Unchecked_Union components.
1050 (Expand_N_In): Add condition to detect illegal membership tests when the
1051 subtype mark is a constrained Unchecked_Union and the expression lacks
1052 inferable discriminants, and build a Raise_Program_Error node.
1053 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
1054 to detect types that contain components of unconstrained Unchecked_Union
1055 subtype. Add condition to detect equality between types that have an
1056 unconstrained Unchecked_Union component, and build a Raise_Program_Error
1057 node. Add condition to detect equality between Unchecked_Union types
1058 that lack inferable discriminants, and build a Raise_Program_Error node.
1059 Otherwise build a TSS equality function call.
1060 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
1061 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
1062 with the operand lacking inferable discriminants, and build a Raise_
1064 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
1066 (Has_Inferable_Discriminants): Implement new predicate for objects and
1067 expressions of Unchecked_Union type. Check the body of subprogram for
1069 (Has_Unconstrained_UU_Components): Add function
1070 Component_Is_Unconstrained_UU. It is used to detect whether a single
1071 component is of an unconstrained Unchecked_Union subtype. Add function
1072 Variant_Is_Unconstrained_UU. It is used to detect whether a single
1073 component inside a variant is of an unconstrained Unchecked_Union type.
1075 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
1076 inferred discriminant values. Add condition to generate a case
1077 statement with an inferred discriminant as the switch.
1078 (Make_Component_List_Assign): Introduce a Boolean flag that determines
1079 the behaviour of the subprogram in the presence of an Unchecked_Union.
1080 Add condition to trigger the usage of the inferred discriminant value
1081 as the generated case statement switch.
1082 (Make_Field_Assign): Introduce a Boolean flag that determines the
1083 behaviour of the subprogram in the presence of an Unchecked_Union. Add
1084 condition to trigger the usage of the inferred discriminant value as
1085 the right-hand side of the generated assignment.
1087 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
1088 parameter generation when dealing with Unchecked_Unions.
1090 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
1091 checks for Unchecked_Unions.
1093 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
1095 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
1096 Raise_Program_Error nodes for the execution of Read and Write
1097 attributes of Unchecked_Union types and the execution of Input and
1098 Output attributes of Unchecked_Union types that lack default
1099 discriminant values.
1101 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
1102 Unchecked_Union. Add procedure Check_Component. It is used to inspect
1103 per-object constrained components of Unchecked_Unions for being
1104 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
1105 check individual components withing a variant.
1107 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
1108 comparison of Unchecked_Unions.
1109 (Resolve_Equality_OP): Remove guard that prevents equality between
1112 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
1113 of component subtypes for Unchecked_Union components.
1114 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
1115 since it is the actual subtype.
1117 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
1118 pass of Unchecked_Union subtypes as generic actuals to formal types
1119 that lack known_discriminant_parts or that are derived Unchecked_Union
1120 types, and do nothing. In any other case, produce an error message.
1122 * sem_ch3.adb (Analyze_Component_Declaration): Add function
1123 Contains_POC. It determines whether a constraint uses the discriminant
1124 of an enclosing record type.
1125 Add condition to detect per-object constrained component and set the
1127 (Derived_Type_Declaration): Remove guard that prevents derivation from
1128 Unchecked_Union types.
1129 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
1132 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
1133 references to Unchecked_Union discriminants.
1135 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
1136 formal generation when dealing with Unchecked_Unions.
1137 (Set_Actual_Subtypes): Add condition to prevent generation of actual
1138 subtypes for Unchecked_Unions.
1140 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
1141 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
1142 completions of discriminated partial views by Unchecked_Unions and
1143 produce an error message.
1145 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1147 * trans.c (struct stmt_group): New field, GLOBAL.
1148 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
1149 (struct elab_info): New struct.
1150 (elab_info_list, gnu_elab_proc_stack): New variables.
1151 (Compilation_Unit_to_gnu): New procedure.
1152 (gigi): Call it and also handle elaboration procs we've saved.
1153 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
1154 global field from parent.
1155 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
1156 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
1157 (start_stmt_group): Initialize global field from parent.
1158 (add_decl_expr): Set to global for current statement group.
1159 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
1162 * utils.c (global_bindings_p): True when no current_function_decl; no
1163 longer check current_binding_level.
1165 2004-08-09 Ben Brosgol <brosgol@gnat.com>
1167 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
1170 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
1172 2004-08-06 Andreas Schwab <schwab@suse.de>
1174 * utils.c (gnat_define_builtin): Remove second parameter of
1176 (begin_subprog_body): Likewise.
1178 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
1180 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
1181 optimization, not supported by the tree-ssa back-end.
1183 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
1185 * s-mastop-irix.adb: Update comments.
1187 * a-except.adb (Exception_Information): Raise Constraint_Error if
1188 exception Id is Null_Id.
1189 This is required behavior, which is more reliably and clearly checked
1190 at the top level interface level.
1192 2004-07-26 Javier Miranda <miranda@gnat.com>
1194 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
1195 call if a component has no default_expression and the box is used.
1197 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
1198 default_expression and you use box, it behaves as if you had declared a
1200 (Resolve_Record_Aggregate): If a component has no default_expression and
1201 you use box, it behaves as if you had declared a stand-alone object.
1203 * sem_ch10.adb (Install_Siblings): Do not make visible the private
1204 entities of private-with siblings.
1206 2004-07-26 Ed Schonberg <schonberg@gnat.com>
1208 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
1209 for a component of an itype, set the parent pointer for analysis,
1210 there is no list in which to insert it.
1212 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
1213 bona-fide renamings, not for inherited operations.
1215 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
1216 actual for a formal that is an access parameter, create local
1217 finalization list even if the expression is not an aggregate.
1219 2004-07-26 Ed Schonberg <schonberg@gnat.com>
1222 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
1223 Diagnose properly illegal subprogram renamings that are library units.
1225 2004-07-26 Ed Schonberg <schonberg@gnat.com>
1228 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
1229 conversion rewritten as an unchecked conversion, check that original
1230 expression is a variable.
1232 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
1233 unchecked_conversion, create new node rather than rewriting in place,
1234 to preserve original construct.
1236 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1238 * gigi.h (gnat_expand_body): Deleted.
1240 * Make-lang.in: (trans.o): Depends on function.h.
1242 * misc.c: (gnat_expand_body): Moved to here.
1244 * trans.c (gnat_expand_body_1): Deleted.
1245 (gnat_expand_body): Moved from here.
1246 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
1247 (add_stmt): Check for marked visited with global_bindings_p.
1248 (gnat_gimplify_expr, case COMPONENT_REF): New case.
1249 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
1251 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
1252 VIEW_CONVERT_EXPR if not operation type.
1254 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
1257 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
1258 changes: reformatting of negation operators, removing unneeded
1259 inequality comparison with zero, converting equality comparisons with
1260 zero to negations, changing int/0/1 to bool/false/true, replace calls
1261 to gigi_abort with abort, and various other similar changes.
1263 2004-07-26 Vincent Celier <celier@gnat.com>
1265 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
1268 * make.adb (Gnatmake): Fail when a library is not present and there is
1269 no object directory.
1271 * mlib-prj.adb (Check_Library): No need to check if the library needs
1272 to be rebuilt if there is no object directory, hence no object files
1273 to build the library.
1275 * opt.ads (Setup_Projects): New Boolean flag.
1277 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
1279 Create directory when Kind /= "" and in "gnat setup". Report error if
1280 directory cannot be created.
1281 (Ada_Check): Create library interface copy dir if it does not exist
1282 and we are in "gnat setup".
1283 (Find_Sources): No error if in "gnat setup" and no Ada sources were
1285 (Language_Independent_Check): Create object directory, exec directory
1286 and/or library directory if they do not exist and we are in
1289 * vms_conv.ads: (Command_Type): New command Setup.
1291 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
1293 * vms_data.ads: Add qualifiers/switches for new built-in command
1296 2004-07-25 Richard Henderson <rth@redhat.com>
1298 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
1299 DECL_IGNORED_P on RESULT_DECL.
1301 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
1303 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
1304 allocation and potentially overflowing update with
1305 Tailored_Exception_Information. Use the sec-stack free procedural
1306 interface to output Exception_Information instead.
1308 * a-except.adb (To_Stderr): New subprogram for character, and string
1309 version moved from a-exextr to be visible from other separate units.
1310 (Tailored_Exception_Information): Remove the procedural version,
1311 previously used by the default Last_Chance_Handler and not any more.
1312 Adjust various comments.
1314 * a-exexda.adb: Generalize the exception information procedural
1315 interface, to minimize the use of secondary stack and the need for
1316 local buffers when the info is to be output to stderr:
1317 (Address_Image): Removed.
1318 (Append_Info_Character): New subprogram, checking for overflows and
1319 outputing to stderr if buffer to fill is of length 0.
1320 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
1321 (Append_Info_Address, Append_Info_Exception_Name,
1322 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
1323 Append_Info_Basic_Exception_Traceback,
1324 Append_Info_Exception_Information): New subprograms.
1325 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
1326 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
1327 Exception_Info_Maxlength, Exception_Name_Length,
1328 Exception_Message_Length): New subprograms.
1329 (Exception_Information): Use Append_Info_Exception_Information.
1330 (Tailored_Exception_Information): Use
1331 Append_Info_Basic_Exception_Information.
1332 Export services for the default Last_Chance_Handler.
1334 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
1335 other separate units.
1337 2004-07-20 Vincent Celier <celier@gnat.com>
1339 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
1341 2004-07-20 Ed Schonberg <schonberg@gnat.com>
1343 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
1344 emit itype references for the designated types of component types that
1345 are declared outside of the full record declaration, and that may
1346 denote a partial view of that record type.
1348 2004-07-20 Ed Schonberg <schonberg@gnat.com>
1351 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
1352 which is the designated type in an access component declaration, to the
1353 list of incomplete dependents of the parent type, to avoid elaboration
1354 issues with out-of-scope subtypes.
1355 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
1356 full view of the parent.
1358 2004-07-20 Ed Schonberg <schonberg@gnat.com>
1361 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
1362 entities that are hidden, such as references to generic actuals
1363 outside an instance.
1365 2004-07-20 Javier Miranda <miranda@gnat.com>
1367 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
1368 support to the new notation.
1369 (Analyze_Selected_Component): Add call to Try_Object_Operation.
1371 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
1373 * s-taprob.adb: Adding the elaboration code required for initializing
1374 the tasking soft links that are common to the full and the restricted
1377 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
1378 restricted run time has been moved to the package
1379 System.Soft_Links.Tasking.
1381 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
1382 restricted run time has been moved to the package
1383 System.Soft_Links.Tasking.
1385 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
1387 * s-solita.ads, s-solita.adb: New files.
1389 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1391 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
1392 Case_Statement_to_gnu): Split off from gnat_to_gnu.
1393 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
1394 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
1395 Exception_Handler_to_gnu_zcx): Likewise.
1397 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
1399 * gigi.h (builtin_function): Declare.
1401 2004-07-15 Robert Dewar <dewar@gnat.com>
1403 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
1406 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
1407 access values as an example of a warning.
1409 * gnat_rm.texi: Document new attribute Has_Access_Values
1411 * gnat-style.texi: Document that box comments belong on nested
1414 * sem_util.ads (Has_Access_Values): Improved documentation
1416 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
1418 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
1419 (Process_Interface_Name): Call to this new procedure
1420 (Set_Extended_Import_Export_External_Name): Call to this new procedure
1422 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
1424 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
1426 * einfo.ads: Minor comment typo fixed
1428 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
1430 * snames.adb: Add _atcb.
1432 * snames.ads: Add Name_uATCB.
1434 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
1435 (in the expanded code) when using the restricted run time.
1437 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
1438 a in parameter in order to allow ATCBs to be preallocated (in the
1441 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
1442 order to allow ATCBs to be preallocated. In case of error, the ATCB is
1443 deallocated in System.Tasking.Stages.
1445 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
1446 order to allow ATCBs to be preallocated.
1448 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
1449 here. It was previously done in Initialize_ATCB.
1451 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
1453 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
1454 Restricted run time.
1456 * exp_ch3.adb: When using the Restricted run time, pass the
1457 preallocated Ada_Task_Control_Block when creating a task.
1459 2004-07-15 Ed Schonberg <schonberg@gnat.com>
1461 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
1462 function call that is itself an actual in an enclosing call, diagnose
1463 problem here rather than assuming that resolution will catch it.
1465 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
1466 the local copy of a generic unit for a formal package, and the generic
1467 is a child unit, install private part of ancestors before compiling
1468 private part of spec.
1470 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
1471 use scope entities rather than tree structures, to handle properly
1472 parent units that are instances rewritten as bodies for inlining
1475 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
1476 Remove_Parents): Handle properly a parent unit that is an
1477 instantiation, when the unit has been rewritten as a body for inlining
1480 * par.adb (Goto_List): Global variable to collect goto statements in a
1481 given unit, for use in detecting natural loops.
1483 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
1484 use in detecting natural loops.
1486 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
1487 backwards goto's, and rewrite as a infinite loop, to improve locality
1490 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
1491 subcomponent that includes an indexed reference, to prevent the
1492 generation of copies that would miscompile the desired assignment
1494 (Build_Task_Image_Decls): Add a numeric suffix to
1495 generated name for string variable, to avoid spurious conflicts with
1496 the name of the type of a single protected object.
1498 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
1499 loop with an explicit exit statement, to avoid generating an
1500 out-of-range value with 'Succ leading to spurious constraint_errors
1501 when compiling with -gnatVo.
1503 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
1505 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
1506 might not be analyzed yet, even if its Etype is already set (case of an
1507 unchecked conversion built using Unchecked_Convert_To, for example).
1508 If the prefix has already been analyzed, this will be a nop anyway.
1510 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
1511 controller type, or an assignment of a record type with controlled
1512 components, copy only user data, and leave the finalization chain
1515 2004-07-15 Vincent Celier <celier@gnat.com>
1517 * make.adb (Collect_Arguments): Improve error message when attempting
1518 to compile a source not part of any project, when -x is not used.
1520 * prj.ads: (Defined_Variable_Kind): New subtype
1522 * prj-attr.adb (Register_New_Package): Two new procedures to register
1523 a package with or without its attributes.
1524 (Register_New_Attribute): Mew procedure to register a new attribute in a
1526 New attribute oriented subprograms: Attribute_Node_Id_Of,
1527 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
1528 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
1530 New package oriented subprograms: Package_Node_Id_Of,
1531 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
1533 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
1535 (Package_Node_Id): Now a private, self initialized type
1536 (Register_New_Package): New procedure to register a package with its
1538 New attribute oriented subprograms: Attribute_Node_Id_Of,
1539 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
1540 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
1542 New package oriented subprograms: Package_Node_Id_Of,
1543 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
1545 * prj-dect.adb (Parse_Attribute_Declaration,
1546 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
1548 * prj-makr.adb (Make): Parse existing project file before creating
1549 other files. Fail if there was an error during parsing.
1551 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
1552 new spec of Prj.Attr.
1554 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
1555 to new spec of Prj.Attr.
1557 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1559 * utils2.c: Fix typo in comment.
1561 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1563 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
1564 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
1566 2004-07-14 Andreas Schwab <schwab@suse.de>
1568 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
1570 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1572 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
1574 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
1577 * misc.c (gnat_types_compatible_p): New function.
1578 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
1579 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
1581 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
1582 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
1583 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
1584 (mark_visited): Don't mark dummy type.
1585 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
1586 parameter, we must remove any LJM building from GNU_NAME.
1587 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
1588 (pos_to_constructor): Use int_const_binop.
1589 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
1592 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
1593 (gnat_pushlevel): Set TREE_USE on BLOCK node.
1594 (gnat_install_builtins): Add __builtin_memset.
1596 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
1598 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
1599 for a renaming, stabilize the initialization expression if we are at a
1600 local level. At the local level, uses of the renaming may be performed
1601 by a direct dereference of the initializing expression, and we don't
1602 want possible variables there to be evaluated for every use.
1604 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
1605 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
1606 them on the way. Account for the fact that we may introduce side
1607 effects in the process.
1609 2004-07-13 Richard Henderson <rth@redhat.com>
1611 * misc.c (default_pass_by_ref): Use pass_by_reference.
1613 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
1615 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
1616 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
1618 2004-07-08 Richard Henderson <rth@redhat.com>
1620 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
1623 2004-07-06 Vincent Celier <celier@gnat.com>
1625 * vms_conv.ads: Minor reformatting.
1626 Alphabetical order for enumerated values of type Command_Type, to have
1627 the command in alphabetical order for the usage.
1629 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
1630 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
1632 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
1634 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
1635 (Add_Archive_Path): Only add the global archive if there is one.
1636 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
1637 or not any object file to put in the global archive, and don't build
1638 a global archive if there is none.
1639 (X_Switches): New table
1640 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
1641 in the X_Switches table, if any.
1642 (Initialize): Make sure the X_Switches table is empty
1643 (Scan_Arg): Record -X switches in table X_Switches
1645 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
1647 * make.adb: Minor comment fix
1649 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
1650 invoked with directory information, add the directory in front of the
1653 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
1654 invoked with directory information, add the directory in front of the
1657 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
1658 when Keep_Temporary_Files is False.
1659 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
1660 directory information, add the directory in front of the path.
1661 When not on VMS, handle new switch -dn before the command to set
1662 Keep_Temporary_Files to True.
1663 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
1666 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
1667 invoked with directory information, add the directory in front of the
1670 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
1672 * snames.ads, snames.adb (Name_Stub): New name for the distributed
1675 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
1676 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
1678 * g-socket.adb (To_Timeval): Fix incorrect conversion of
1679 Selector_Duration to Timeval for the case of 0.0.
1681 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
1682 documentation from Evolve_And_Then.
1684 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
1686 * s-taprop-tru64.adb, s-taprop-os2.adb,
1687 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
1689 2004-07-06 Robert Dewar <dewar@gnat.com>
1691 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
1692 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
1693 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
1694 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
1695 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
1696 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
1697 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
1698 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
1699 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
1700 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
1701 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
1702 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
1703 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
1704 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
1705 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
1706 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
1707 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
1708 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
1709 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
1710 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
1711 vms_data.ads: Minor reformatting,
1712 Fix bad box comment format.
1714 * gnat_rm.texi: Fix minor grammatical error
1716 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
1718 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
1719 more cases of discriminated records to be recognized as not needing a
1721 (Has_Access_Values): New function.
1723 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
1725 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
1726 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
1727 with LRM terminology).
1728 Change terminology in comments primitive type => elementary type.
1730 2004-07-06 Ed Schonberg <schonberg@gnat.com>
1733 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
1734 parameters do not impose any requirements on the presence of a body.
1736 2004-07-06 Ed Schonberg <schonberg@gnat.com>
1739 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
1740 compilation unit and is in an open scope at the point of instantiation,
1741 assume that a body may be present later.
1743 2004-07-06 Ed Schonberg <schonberg@gnat.com>
1745 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
1746 Improve error message when specified size is not supported.
1748 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
1749 is never a primitive operation.
1751 2004-07-05 Andreas Schwab <schwab@suse.de>
1753 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
1754 RECORD_OR_UNION_CHECK.
1755 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
1757 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
1759 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
1760 dependency on xgnatugn, instead build it via a submake.
1761 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
1763 2004-07-04 Richard Henderson <rth@redhat.com>
1765 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
1767 2004-07-01 Richard Henderson <rth@redhat.com>
1769 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
1770 * utils.c (max_size): Likewise.
1772 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1774 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
1775 and rest_of_type_compilation; add arg to create_*_decl.
1776 (annotate_decl_with_node): Deleted.
1777 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
1778 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
1779 (get_current_block_context, gnat_pushdecl): New declarations.
1780 (gnat_init_stmt_group): Likewise.
1781 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
1782 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
1783 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
1784 (gnat_init): Call gnat_init_stmt_group.
1785 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
1786 (gnu_pending_elaboration_list): Deleted.
1787 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
1788 (gigi): Rearrange initialization calls and move some to last above.
1789 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
1790 Delete calls to add_decl_expr; add arg to create_*_decl.
1791 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
1792 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
1793 begin_subprog_body and call it.
1794 Don't push and pop ggc context.
1795 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
1796 (add_stmt): Remove handling of DECL_EXPR from here.
1797 If not in function, mark visited.
1798 (add_decl_expr): Put global at top level.
1799 Check for cases of DECL_INITIAL we have to handle here.
1800 (process_type): Add extra arg to create_type_decl.
1801 (build_unit_elab): Rework to just gimplify.
1802 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
1803 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
1804 (get_pending_elaborations, pending_elaborations_p): Likewise.
1805 (push_pending_elaborations, pop_pending_elaborations): Likewise.
1806 (get_elaboration_location, insert_elaboration_list): Likewise.
1807 (gnat_binding_level): Renamed from ada_binding_level.
1808 (init_gnat_to_gnu): Don't clear pending_elaborations.
1809 (global_bindings_p): Treat as global if no current_binding_level.
1810 (set_current_block_context): New function.
1811 (gnat_pushdecl): Renamed from pushdecl; major rework.
1812 All callers changed.
1813 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
1814 (finish_record_type): Call call pushdecl for stub decl.
1815 (function_nesting_depth): Deleted.
1816 (begin_subprog_body): Delete obsolete code.
1817 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
1819 2004-06-28 Robert Dewar <dewar@gnat.com>
1821 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
1822 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
1823 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
1824 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
1825 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
1827 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
1828 deal with problem of inefficient slices on machines with strict
1829 alignment, when the slice is a component of a composite.
1831 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
1832 machines, we need the check there as well.
1834 2004-06-28 Ed Schonberg <schonberg@gnat.com>
1836 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
1837 determine safe copying direction for overlapping slice assignments
1838 when component is controlled.
1840 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
1841 formal derived type in the actual for a formal package are visible in
1842 the enclosing instance.
1844 2004-06-28 Ed Schonberg <schonberg@gnat.com>
1847 * sem_util.adb (Trace_Components): Diagnose properly an illegal
1848 circularity involving a private type whose completion includes a
1849 self-referential component.
1850 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
1851 renaming or an instantiation from an implicit derived operation.
1853 2004-06-28 Pascal Obry <obry@gnat.com>
1855 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
1857 (Library_File_Name_For): Idem.
1859 2004-06-28 Matthew Gingell <gingell@gnat.com>
1861 * g-traceb.ads: Add explanatory note on the format of addresses
1862 expected by addr2line.
1864 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
1866 * Makefile.in: Force debugging information on s-tasdeb.adb,
1867 a-except.adb and s-assert.adb needed by the debugger.
1869 2004-06-28 Vincent Celier <celier@gnat.com>
1871 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
1875 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
1877 * prj.adb: Minor reformatting
1878 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
1880 * prj.ads: Comment updates
1882 (Project_Data): Change Flag1 to Need_To_Build_Lib.
1883 Remove Flag2: not used.
1885 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
1888 * gnat_ugn.texi: Put a "null;" declaration in one project file example
1890 * gnat_rm.texi: Document Empty declarations "null;".
1892 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
1893 front of the linker options.
1894 (Link_Foreign): Put the global archives and the libraries in front of
1897 2004-06-28 Javier Miranda <miranda@gnat.com>
1899 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
1900 (RTU_Loaded): Code cleanup
1901 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
1902 withed predefined units.
1904 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
1905 explicitly withed predefined units.
1908 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
1909 explicitly withed predefined units.
1911 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1913 * ada-tree.def (DECL_STMT): Deleted.
1914 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
1915 (DECL_STMT_VAR): Deleted.
1916 * decl.c: add_decl_stmt now add_decl_expr.
1918 * trans.c: Likewise.
1919 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
1920 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
1921 (add_stmt): Only handle padded type here.
1922 (add_stmt_with_node): Allow gnat_node to not be present.
1923 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
1924 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
1925 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
1926 make a SAVE_EXPR for the entire fat pointer.
1927 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
1928 (create_index_type): Make a DECL_EXPR.
1929 (end_subprog_body): Don't call allocate_struct_function here but
1932 2004-06-25 Pascal Obry <obry@gnat.com>
1934 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
1935 Relocatable from Build_Dynamic_Library call.
1937 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
1938 Relocatable are now synonym.
1940 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
1942 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
1943 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
1946 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
1947 Lib_Address and Relocatable.
1948 (Default_DLL_Address): Removed.
1950 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
1951 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
1952 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
1953 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
1954 (Default_DLL_Address): Removed.
1956 * mlib-tgt-mingw.adb: Ditto.
1957 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
1959 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
1960 the initial thread stack size.
1962 * a-strmap.ads: Move package L to private part as it is not used in
1963 the spec. Found while reading code.
1965 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
1967 * tracebak.c: Introduce support for a GCC infrastructure based
1968 implementation of __gnat_backtrace.
1970 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
1971 any more. Use accessors instead. This eases maintenance and relaxes
1972 some alignment constraints.
1973 (_GNAT_Exception structure): Remove the Ada specific fields
1974 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
1976 (is_handled_by, __gnat_eh_personality): Replace component references to
1977 exception structure by use of the new accessors.
1979 * init.c (__gnat_initialize): Adjust comments to match the just
1980 reverted meaning of the -static link-time option.
1982 * adaint.c (convert_addresses): Arrange not to define a stub for
1983 mips-irix any more, as we now want to rely on a real version from a
1984 recent libaddr2line.
1986 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
1987 the personality routine can use them and not have to rely on a C
1988 counterpart of the record anymore. This simplifies maintenance and
1989 relaxes the constraint of having Standard'Maximum_Alignment match
1991 Update comments, and add a section on the common header alignment issue.
1993 2004-06-25 Geert Bosch <bosch@gnat.com>
1995 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
1996 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
1998 2004-06-25 Robert Dewar <dewar@gnat.com>
2000 * gnat_rm.texi: Fix section on component clauses to indicate that the
2001 restriction on byte boundary placement still applies for bit packed
2003 Add comment on stack usage from Initialize_Scalars
2005 * gnat_ugn.texi: Add documentation for -gnatyLnnn
2007 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
2008 limiting nesting level.
2010 * usage.adb: Add line for -gnatyLnnn switch
2012 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
2013 sem_ch13.adb, exp_aggr.adb: Minor reformatting
2015 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
2016 type as well as on the subtype. This corrects a problem in freeze in
2017 setting alignments of atomic types.
2019 * sem_eval.ads: Minor comment typo fixed
2021 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
2022 level. Minor reformatting.
2024 * fname.adb (Is_Predefined_File_Name): Require a letter after the
2025 minus sign. This means that file names like a--b.adb will not be
2026 considered predefined.
2028 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
2029 record Test new flag and give diagnostic for bad component clause.
2030 (Freeze_Entity): Set alignment of array from component alignment in
2031 cases where this is safe to do.
2033 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
2036 * cstand.adb: (Create_Standard): Set alignment of String to 1
2038 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
2040 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
2041 code in the common constrained array cases.
2043 * a-storio.adb: Change implementation to avoid possible alignment
2044 problems on machines requiring strict alignment (data should be moved
2045 as type Buffer, not type Elmt).
2047 * checks.adb (Apply_Array_Size_Check): Improve these checks by
2048 killing the overflow checks which we really do not need (64-bits is
2051 2004-06-25 Vincent Celier <celier@gnat.com>
2053 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
2054 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
2055 inconditionally for the main project.
2056 (Recursive_Add_Archives.Add_Archive_Path): New procedure
2057 (Link_Executables.Check_Time_Stamps): New procedure
2058 (Link_Executables.Link_Foreign): New procedure
2059 Changes made to reduce nesting level of this package
2060 (Check): New procedure
2061 (Add_Switches): When not in quiet output, check that a switch is not
2062 the concatenation of several valid switches. If it is, issue a warning.
2063 (Build_Global_Archive): If the global archive is rebuilt, linking need
2065 (Compile_Sources): Rebuilding a library archive does not imply
2066 rebuilding the global archive.
2067 (Build_Global_Archive): New procedure
2068 (Build_Library): New name for Build_Archive, now only for library
2070 (Check_Archive_Builder): New procedure
2071 (Create_Global_Archive_Dependency_File): New procedure
2072 (Gprmake): Call Build_Global_Archive before linking
2073 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
2075 (Scan_Arg): Display the Copyright notice when -v is used
2077 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
2080 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
2082 Add new GNAT LIST qualifier /FILES=
2083 Added qualifier /DIRECTORY= to GNAT METRIC
2084 Added qualifier /FILES= to GNAT METRIC
2085 Added qualifier /FILES to GNAT PRETTY
2087 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
2088 to take into account both versions of the switch.
2090 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
2091 always be the last switch to the gcc driver. Disable switch storing so
2092 that switches automatically added by the gcc driver are not put in the
2095 * prj.adb (Project_Empty): Take into account changes in components of
2098 * prj.ads (Languages_Processed): New enumaration value All_Languages.
2100 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
2101 used. Split Boolean component Ada_Sources_Present in two Boolean
2102 components Ada_Sources_Present and Other_Sources_Present.
2105 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
2106 instead of Sources_Present.
2107 (Set_Ada_Paths.Add.Recursive_Add): Ditto
2109 * prj-nmsc.adb: Minor reformatting
2110 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
2111 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
2112 Check_Ada_Naming_Scheme.
2113 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
2116 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
2118 Make sure that all cycles where there is at least one "limited with"
2120 (Parse_Single_Project): New Boolean parameter In_Limited
2122 * prj-proc.adb (Recursive_Check): When Process_Languages is
2123 All_Languages, call first Prj.Nmsc.Ada_Check, then
2124 Prj.Nmsc.Other_Languages_Check.
2126 * prj-proc.adb (Process): Use Ada_Sources_Present or
2127 Other_Sources_Present (instead of Sources_Present) depending on
2130 * lang-specs.h: Keep -g and -m switches in the same order, and as the
2133 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
2134 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
2136 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
2139 * lib.ads (Disable_Switch_Storing): New procedure.
2141 * make.adb: Modifications to reduce nesting level of this package.
2142 (Check_Standard_Library): New procedure
2143 (Gnatmake.Check_Mains): New procedure
2144 (Gnatmake.Create_Binder_Mapping_File): New procedure
2145 (Compile_Sources.Compile): Add switch -gnatez as the last option
2146 (Display): Never display -gnatez
2149 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
2151 * gnatcmd.adb (Check_Project): New function
2152 (Process_Link): New procedure to reduce nesting depth
2153 (Check_Files): New procedure to reduce the nesting depth.
2154 For GNAT METRIC, include the inherited sources in extending projects.
2155 (GNATCmd): When GNAT LS is invoked with a project file and no files,
2156 add the list of files from the sources of the project file. If this list
2157 is too long, put it in a temp text files and use switch -files=
2158 (Delete_Temp_Config_Files): Delete the temp text file that contains
2159 a list of source for gnatpp or gnatmetric, if one has been created.
2160 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
2161 in the project file is too large, create a temporary text file that
2162 list them and pass it to the tool with "-files=<temp text file>".
2163 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
2165 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
2166 generated file is in not in Ada.
2168 * gnatls.adb: Remove all parameters And_Save that are no longer used.
2169 (Scan_Ls_Arg): Add processing for -files=
2170 (Usage): Add line for -files=
2172 * g-os_lib.adb (On_Windows): New global constant Boolean flag
2173 (Normalize_Pathname): When on Windows and the path starts with a
2174 directory separator, make sure that the resulting path will start with
2177 * clean.adb (Clean_Archive): New procedure
2178 (Clean_Project): When there is non-Ada code, delete the global archive,
2179 the archive dependency files, the object files and their dependency
2180 files, if they exist.
2181 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
2183 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
2185 * sinfo.ads: Fix typo in comment.
2187 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
2188 the TSS for remote access-to-subprogram types, since these TSS are
2189 always present once the type has been analyzed.
2190 (RAS_E_Dereference): Same.
2192 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
2193 reference raises Bad_Attribute, mark the reference as analyzed so the
2194 node (and any children resulting from rewrites that could have occurred
2195 during the analysis that ultimately failed) is not analyzed again.
2197 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
2199 * exp_dist.adb: Minor comment fix.
2201 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
2202 type is an anonymous access type, no unchecked deallocation of the
2203 allocated object can occur. If the object is controlled, attach it with
2204 a count of 1. This allows attachment to the Global_Final_List, if
2205 no other relevant list is available.
2206 (Get_Allocator_Final_List): For an anonymous access type that is
2207 the type of a discriminant or record component, the corresponding
2208 finalisation list is the one of the scope of the type.
2210 2004-06-25 Ed Schonberg <schonberg@gnat.com>
2212 * sem_ch3.adb (Replace_Type): When computing the signature of an
2213 inherited subprogram, use the first subtype if the derived type
2214 declaration has no constraint.
2216 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
2217 before applying previous optimization. Minor code cleanup.
2219 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
2220 placed at the beginning of an unpacked record without explicit
2221 alignment, a slice of it will be aligned and does not need a copy when
2224 2004-06-25 Ed Schonberg <schonberg@gnat.com>
2228 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
2229 reference is written with expressions mimicking parameters.
2231 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
2234 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
2235 STEP 2a. The constraints of a full type declaration of a derived record
2236 type are checked for conformance with those declared in the
2237 corresponding private extension declaration. The message
2238 "not conformant with previous declaration" is emitted if an error is
2241 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
2243 * g-traceb.ads: Document the need for -E binder switch in the spec.
2245 * g-trasym.ads: Document the need for -E binder switch in the spec.
2247 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
2249 * sem_prag.adb: Add handling of pragma Detect_Blocking.
2251 * snames.h, snames.ads, snames.adb: Add entry for pragma
2254 * s-rident.ads: Change reference to pragma Detect_Blocking.
2256 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
2259 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
2260 to indicate whether pragma Detect_Blocking is active.
2262 * par-prag.adb: Add entry for pragma Detect_Blocking.
2264 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
2265 of not handling WITH.
2266 Note that this replaces the previous update which was incorrect.
2268 2004-06-25 Javier Miranda <miranda@gnat.com>
2270 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
2271 use-clauses to have a clean environment.
2273 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
2274 the installation of the use-clauses to stablish a clean environment in
2275 case of compilation of a separate unit; otherwise the call to
2276 use_one_package is protected by the barrier Applicable_Use.
2278 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
2279 the installation of the use-clauses to stablish a clean environment in
2280 case of compilation of a separate unit.
2281 (End_Use_Clauses): Minor comment cleanup.
2283 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
2285 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
2287 2004-06-23 Richard Henderson <rth@redhat.com>
2289 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
2291 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2293 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
2294 now bool instead of int.
2295 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
2296 * trans.c (gnu_switch_label_stack): New function.
2297 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
2298 elaboration of renamed entity returns.
2299 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
2300 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
2301 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
2302 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
2303 DECL_SIZE_UNIT and simplify variable-sized case.
2304 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
2305 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
2306 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
2307 (build_unit_elab): Disable for now.
2308 * utils.c (mark_visited): New function.
2309 (pushdecl): Walk tree to call it for global decl.
2310 (update_pointer_to): Update all variants of pointer and ref types.
2311 Add arg to COMPONENT_REF.
2312 (convert): Likewise.
2313 Move check for converting between variants lower down.
2314 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
2315 (build_allocator): Don't force type of MODIFY_EXPR.
2316 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
2319 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2321 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
2322 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
2323 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
2325 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
2326 all callers changed.
2327 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
2328 the way that EXIT_STMT finds the loop label.
2329 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
2330 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
2331 (add_stmt): Use annotate_with_locus insted of setting directly.
2332 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
2333 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
2334 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
2335 (build_vms_descriptor): Add extra args to ARRAY_REF.
2336 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
2337 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
2339 (build_binary_op): Don't make explicit CONVERT_EXPR.
2340 Add extra rgs to ARRAY_REF.
2342 2004-06-14 Pascal Obry <obry@gnat.com>
2344 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
2345 Windows. Fix minor typo.
2347 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
2348 which is now supported on Windows. With this implementation using the
2349 Library Project feature is no different on Windows than on UNIX.
2351 2004-06-14 Vincent Celier <celier@gnat.com>
2353 * makegpr.adb (Compile_Sources): Nothing to do when there are no
2356 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
2358 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
2359 found, show the project name and the path of the previously parsed
2362 2004-06-14 Ed Schonberg <schonberg@gnat.com>
2364 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
2365 array, avoid copying the actual before the call.
2367 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
2369 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
2370 Instead, allocate memory on worst-case alignment assumptions, and then
2371 return an aligned address within the allocated zone.
2373 2004-06-14 Robert Dewar <dewar@gnat.com>
2375 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
2376 elab entities in predefined units in No_Run_Time_Mode.
2377 (Gen_Adainit_C): Same fix
2378 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
2379 units in No_Run_Time_Mode
2380 (Gen_Elab_Calls_C): Same fix
2382 * symbols-vms-alpha.adb: Minor reformatting
2384 * g-debpoo.ads: Minor reformatting
2386 * lib.adb (In_Same_Extended_Unit): Version working on node id's
2388 * lib.ads (In_Same_Extended_Unit): Version working on node id's
2390 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
2393 * make.adb: Minor reformatting
2395 * par-ch12.adb: Minor reformatting
2397 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
2399 * prj-strt.adb: Minor reformatting
2401 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
2404 * sem_attr.adb: Minor reformatting
2406 * sem_ch7.adb: Minor reformatting
2408 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
2409 for type in the same unit as the object declaration.
2411 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
2412 static string expressions and not just string literals.
2414 (Set_Warning): Reset restriction warning flag for restriction pragma
2415 Implement pragma Profile_Warnings
2416 Implement pragma Profile (Restricted)
2417 Give obolescent messages for old restrictions and pragmas
2419 * snames.h, snames.ads, snames.adb: Add new entry for pragma
2422 * s-rident.ads: Add declarations for restrictions required by profile
2423 Restricted and profile Ravenscar.
2425 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
2427 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
2428 configuration pragmas.
2430 2004-06-11 Vincent Celier <celier@gnat.com>
2432 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
2433 gnatsym, when symbol policy is Restricted.
2435 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
2436 gnatsym, when symbol policy is Restricted.
2438 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
2439 read the symbol file.
2440 (Finalize): Fail in symbol policy Restricted if a symbol in the original
2441 symbol file is not in the object files. Do not create a new symbol file
2442 when symbol policy is Restricted.
2444 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
2447 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
2449 (Usage): Line for new switch -R
2451 * make.adb (Initialize): When the platform is not VMS, add the
2452 directory where gnatmake is invoked in the front of the path, if
2453 gnatmake is invoked with directory information. Change the Scan_Args
2454 while loop to a for loop.
2455 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
2456 if Depth is equal or greater than the proposed depth, there is nothing
2458 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
2461 * prj.ads: Add new symbol policy Restricted.
2463 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
2464 with the new parameters Check_All_Labels and Case_Location.
2466 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
2467 (Library_Symbol_File needs to be defined).
2469 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
2470 and Case_Location If Check_All_Labels is True, check that all values of
2471 the string type are used, and output warning(s) if they are not.
2473 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
2476 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
2478 * gnat_ugn.texi: Update documentation about the library directory in
2481 * makegpr.adb (Display_Command): In verbose mode, also display the
2482 value of the CPATH env var, when the compiler is gcc.
2483 (Initialize): Change the Scan_Args while loop to a for loop
2484 (Compile_Individual_Sources): Change directory to object directory
2485 before compilations.
2487 * symbols.ads: New symbol policy Restricted.
2489 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
2491 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
2492 is now taken care of internally in the Exception_Propagation package
2493 and does not require clients assistance any more.
2495 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
2496 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
2497 functions. Helpers to maintain a predicate required in the handling of
2498 occurrence transfer between tasks.
2499 This is now handled internally and does not require clients assistance
2500 for the setup/propagate separation anymore.
2501 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
2502 allocation strategy, handle the Setup_And_Not_Propagated predicate and
2505 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
2506 raise_after_setup, now that everything is handled internally within the
2507 setup/propagation engine.
2509 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
2511 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
2512 Add additional conditions for the case of an actual being a simple
2513 name or literal. Improve inlining by preventing the generation
2514 of temporaries with a short lifetime (one use).
2516 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
2520 * einfo.ads: Minor comment updates for Has_Completion and
2521 E_Constant list of flags.
2523 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
2524 and constant redeclarations now set the Has_Completion flag of their
2525 defining identifiers.
2527 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
2528 Inspect_Deferred_Constant_Completion.
2529 Used to detect private deferred constants that have not been completed
2530 either by a constant redeclaration or pragma Import. Emits error message
2531 "constant declaration requires initialization expression".
2533 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
2534 completes a deferred constant.
2536 2004-06-11 Geert Bosch <bosch@gnat.com>
2538 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
2540 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
2541 calculating exponent for scaling denormal numbers.
2542 (Leading_Part): Properly raise Constraint_Error for zero or negative
2544 (Remainder): Properly raise Constraint_Error for zero divisor.
2546 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
2548 * sem_util.adb: Minor reformatting.
2550 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
2551 dereference when accessing the entry parameter record.
2552 (Check_Array_Type): Always check for possible implicit dereference.
2553 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
2554 Abort if a pointer is still present (denoting that an implicit
2555 dereference was left in the tree by the front-end).
2557 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
2558 dereference when accessing the entry parameter record.
2559 (Check_Array_Type): Always check for possible implicit dereference.
2560 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
2561 Abort if a pointer is still present (denoting that an implicit
2562 dereference was left in the tree by the front-end).
2564 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
2566 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
2567 message, like the compiler itself does. Easier to parse the output.
2569 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
2571 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
2572 be base names, and not includes directories.
2574 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
2576 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
2577 so that dependencies are properly taken into account by make.
2579 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
2582 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
2583 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
2585 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
2587 * Makefile.in (install-gnatlib): install target-specific run-time files.
2589 * Make-lang.in: Remove obsolete targets.
2591 2004-06-11 Ed Schonberg <schonberg@gnat.com>
2593 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
2594 specification, to catch misuses of program unit names.
2596 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
2597 superfluous conversions in an instance.
2599 2004-06-11 Ed Schonberg <schonberg@gnat.com>
2603 * sem_ch12.adb (Save_References): If operator node has been folded to
2604 enumeration literal, associated_node must be discarded.
2606 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
2608 * s-stchop-vxworks.adb: Add required pragma Convention to
2609 Task_Descriptor because it is updated by a C function.
2611 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
2615 * Makefile.in: Remove target specific SO_OPT on IRIX
2617 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2619 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
2620 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
2621 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
2622 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
2623 (STMT_STMT, USE_STMT): New statement codes.
2624 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
2625 * ada-tree.h: Reflect above changes.
2626 (struct tree_loop_id): Deleted.
2627 (union lang_tree_node, struct lang_decl, struct lang_type):
2628 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
2629 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
2630 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
2631 (IS_ADA_STMT): New macro.
2632 * decl.c (annotate_decl_with_node): New function.
2633 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
2634 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
2635 Call add_stmt_with_node to do needed assignments.
2636 Add call to update setjmp buffer directly, not via EXPR_STMT.
2637 (maybe_variable): Argment GNAT_NODE deleted.
2638 * gigi.h (maybe_variable): Likewise.
2639 (make_transform, add_stmt_with_node, set_block_for_group): New.
2640 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
2641 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
2642 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
2643 (set_lineno, set_lineno_from_sloc): Likewise.
2644 (record_code_position, insert_code_for): Likewise.
2645 (gnat_poplevel): Now returns void.
2646 (end_subprog_body): Now takes argument.
2647 * misc.c (cgraph.h, tree-inline.h): New includes.
2648 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
2649 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
2650 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
2651 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
2652 (gnat_parse_file): Don't set immediate_size_expand.
2653 Call cgraph functions.
2654 (gnat_expand_expr): Remove most cases.
2655 (record_code_position, insert_code_for): Remove from here.
2656 * trans.c (toplev.h, tree-gimple.h): Now included.
2657 (discard_file_names): Deleted.
2658 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
2659 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
2660 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
2661 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
2662 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
2663 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
2664 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
2665 (set_block_for_group, add_stmt_list): Likewise.
2666 (start_stmt_group): Renamed from start_block_stmt.
2667 (end_stmt_group): Likewise, from end_block_stmt.
2668 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
2669 (gigi): Don't set discard_file_names or call set_lineno.
2670 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
2671 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
2672 Numerous changes throughout to reflect new names and complete
2673 function-at-a-time implementation.
2674 (gnat_expand_stmt): Delete or comment out all cases.
2675 (process_inlined_subprograms): Use add_stmt.
2676 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
2677 call set_lineno; also remove unneeded block handling.
2678 (process_type): Remove unneeded block handling.
2679 (build_unit_elab): Remove calls to deleted functions.
2680 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
2681 (tree-dump.h): Likewise.
2682 (struct ada_binding_level): Add field jmpbuf_decl.
2683 (gnat_define_builtin, gnat_install_builtins): New.
2684 (gnat_gimplify_function, gnat_finalize): Likewise.
2685 (gnat_poplevel): No longer return BLOCK, set it instead.
2686 Remove code dealing with nested functions.
2687 (gnat_init_decl_processing): Also set size_type_node.
2688 Call gnat_install_builtins.
2689 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
2690 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
2691 Remove special-case for "main".
2692 (end_subprog_body): Add arg and rework for tree-ssa.
2693 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
2694 Add case for BOOLEAN_TYPE.
2695 * utils2.c (rtl.h): Now include.
2696 (build_call_raise): Test Debug_Flag_NN directly.
2697 (build_call_alloc_dealloc): Don't use local stack allocation for now.
2698 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
2699 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
2701 2004-06-07 Robert Dewar <dewar@gnat.com>
2703 * a-direct.ads, einfo.ads: Minor comment updates
2705 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
2706 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
2707 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
2708 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
2709 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
2711 * s-interr-sigaction.adb: Remove unreferenced variable
2712 (Attached_Interrupts). Minor reformatting.
2713 Avoid use of variable I (replace by J).
2715 * par-ch10.adb: Fix text of one error message
2717 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
2718 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
2719 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
2720 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
2721 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
2722 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
2723 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
2724 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
2725 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
2726 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
2727 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
2730 2004-06-07 Doug Rupp <rupp@gnat.com>
2732 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
2734 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
2736 * mlib-tgt-vms-ia64.adb: New file.
2738 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
2739 Add mlib-tgt-vms-ia64.adb
2740 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
2741 Move to alpha specific ifeq section.
2742 Add VMS specific versions of symbols.adb
2743 Renaming of 5q vms files.
2745 * 5qsystem.ads renamed to system-vms_64.ads.
2747 2004-06-07 Vincent Celier <celier@gnat.com>
2749 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
2750 explain that when a time of day corresponding to the non existing hour
2751 on the day switching to DST is specified, Split may return a different
2754 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
2757 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
2758 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
2760 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
2762 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
2763 the linking options.
2764 (Build_Library.Check_Libs): On VMS, if there is a dependency on
2765 g-trasym.ads, set Gtrasymobj_Needed to True.
2767 * prj-attr.adb: Add new package Metrics for gnatmetric
2769 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
2770 canonical case to take into account files with upper case characters on
2772 (Ada_Check): Load the reference symbol file name in the name buffer to
2773 check it, not the symbol file name.
2775 * snames.ads, snames.adb: Add standard name Metrics (name of project
2776 file package for gnatmetric).
2778 * vms_conv.ads: Add Metric to Comment_Type
2780 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
2782 * vms_data.ads: Add qualifiers for GNAT METRIC
2784 * makegpr.adb (Link_Executables): Take into account the switches
2785 specified in package Linker of the main project.
2787 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
2789 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
2790 the index of the last element is Units.Last, not Units.Table'Last
2791 (which is usually not a valid index within the actually allocated
2792 storage for the table).
2794 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
2795 determines whether to generate a call to a checked storage pool
2797 Generate such a call only for a dereference that either comes from
2798 source, or is the result of rewriting a dereference that comes from
2801 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
2803 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
2805 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
2807 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
2808 file level, elaborate the stride for inner dimensions in alignment
2811 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
2814 2004-06-07 Javier Miranda <miranda@gnat.com>
2816 * exp_ch6.adb: Correct wrong modification in previous patch
2818 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
2820 * g-trasym.ads: Corrected comment to properly reflect level of support
2823 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
2825 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
2826 includes case of a variable referenced on the left hand side of an
2827 assignment, therefore remove redundant code. Variables and prefixes of
2828 indexed or selected components are now marked as referenced on left
2829 hand side. Warnings are now properly emitted when variables or prefixes
2830 are assigned but not read.
2832 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
2833 left hand side referenced variables. Private access types do not
2834 produce the warning "variable ... is assigned but never read".
2835 Add also additional checks to left hand side referenced variables.
2836 Aliased, renamed objects and access types do not produce the warning
2837 "variable ... is assigned but never read" since other entities may read
2838 the memory location.
2840 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
2842 * Makefile.in: In the powerpc/vxworks-specific section, restore
2843 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
2846 2004-06-07 Ed Schonberg <schonberg@gnat.com>
2848 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
2849 predefined operators.
2850 Removes spurious type errors from g-trasym-vms.adb.
2852 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
2853 distinct from the operator appearing in the source, call appropriate
2854 routine to insert conversions when needed, and complete resolution of
2856 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
2857 interpretations for rewritten right operand.
2858 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
2859 the other operand is overloaded and the context is a type conversion.
2861 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2863 * ada-tree.def (BLOCK_STMT): Now has two operands.
2866 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
2868 * gigi.h: (gnat_poplevel): Now returns a tree.
2870 * trans.c (end_block_stmt): Add arg; all callers changed.
2871 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
2872 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
2873 (add_stmt): Set TREE_TYPE.
2874 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
2875 (gnat_expand_stmt, case BREAK_STMT): New case.
2877 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
2879 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
2881 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
2882 procedure Set_Stack_Size that is not needed.
2884 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
2886 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
2887 used for gnatpp input file and for the files upon which it depends
2889 2004-06-07 Ben Brosgol <brosgol@gnat.com>
2891 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
2893 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
2895 * gnatvsn.ads: Bump version numbers appropriately.
2898 2004-06-07 Pascal Obry <obry@gnat.com>
2900 * gnat_ugn.texi: Improve comments about imported names and link names
2901 on Windows. Add a note about the requirement to use -k gnatdll's option
2902 when working with a DLL which has stripped stdcall symbols (no @nn
2905 2004-05-27 Vincent Celier <celier@gnat.com>
2907 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
2908 COMMENTS_LAYOUT=UNTOUCHED
2910 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
2911 symbols-vms-alpha.adb
2913 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
2915 * sem.ads: Clarify documentation on checks suppression.
2917 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
2919 2004-05-27 Ed Schonberg <schonberg@gnat.com>
2921 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
2922 the case of multiple derivations.
2923 (Is_Object_Reference): For a selected component, verify that the prefix
2924 is itself an object and not a value.
2926 * sem_ch12.adb (Same_Instantiated_Constant): New name for
2927 Same_Instantiated_Entity.
2928 (Same_Instantiated_Variable): Subsidiary to
2929 Check_Formal_Package_Instance, to recognize actuals for in-out generic
2930 formals that are obtained from a previous formal package.
2931 (Instantiate_Subprogram_Body): Emit proper error when
2932 generating code and the proper body of a stub is missing.
2934 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
2935 has a universal interpretation, do the disambiguation here.
2937 * exp_ch4.adb (Expand_N_Type_Conversion,
2938 Expand_N_Unchecked_Type_Conversion): Special handling when target type
2939 is Address, to avoid typing anomalies when Address is a visible integer
2942 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
2943 to determine whether a subprogram should not be marked Pure, even when
2944 declared in a pure package.
2946 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
2948 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
2950 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
2951 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
2952 Update the documentation about the Ravenscar profile, following the
2953 definition found in AI-249.
2955 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
2956 setting the Profile (Ravenscar). This must be done in addition to
2957 setting the required restrictions.
2959 * rtsfind.ads: Add the set of operations defined in package
2962 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
2965 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
2967 lang-specs.h: Always require -c or -S and always redirect to /dev/null
2968 if -gnatc or -gnats is passed.
2970 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
2972 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
2973 a significant reference. Warnings are now properly emitted when a
2974 discriminated type is not referenced.
2976 * lib-xref.adb (Generate_Reference): A deferred constant completion,
2977 record representation clause or record type discriminant does not
2978 produce a reference to its corresponding entity. Warnings are now
2979 properly emitted when deferred constants and record types are not
2982 2004-05-27 Geert Bosch <bosch@gnat.com>
2984 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
2985 Fixes ACATS Annex G tests.
2987 2004-05-27 Robert Dewar <dewar@gnat.com>
2989 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
2992 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
2994 * s-interr.adb (Server_Task): Take into account case of early return
2995 from sigwait under e.g. linux.
2997 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
2999 * gnat_ugn.texi: Add description for the new gnatpp options:
3000 -rnb - replace the original source without creating its backup copy
3001 -c0 - do not format comments
3003 2004-05-24 Geert Bosch <bosch@gnat.com>
3005 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
3006 with 192 bits of precision, sufficient to reduce a double-extended
3007 arguments X with a maximum relative error of T'Machine_Epsilon, for X
3008 in -2.0**32 .. 2.0**32.
3009 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
3010 reduction by the processor, which only uses a 68-bit approximation of
3012 (Tan): Always reduce arguments and compute function either using
3013 the processor's fptan instruction, or by dividing sin and cos as needed.
3015 2004-05-24 Doug Rupp <rupp@gnat.com>
3017 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
3018 gcc error on 32/64 bit VMS.
3020 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
3022 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
3023 since this is what we get for stack overflows although not documented
3025 Document the issues which may require adjustments to our signal
3028 2004-05-24 Ed Schonberg <schonberg@gnat.com>
3030 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
3031 enclosing dynamic scope if the instantiation is within a generic unit.
3033 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
3035 * exp_dbug.ads: Fix typo.
3037 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
3038 Rename it to its proper name: system-linux-ia64.ads
3039 (stamp-gnatlib1): Remove extra target specific run time files when
3040 setting up the rts directory.
3042 2004-05-24 Javier Miranda <miranda@gnat.com>
3044 * einfo.ads, einfo.adb (Limited_Views): Removed.
3045 (Limited_View): New attribute that replaces the previous one. It is
3046 now a bona fide package with the limited-view list through the
3047 first_entity and first_private attributes.
3049 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
3050 limited-private-with clause.
3051 (Install_Limited_Withed_Unit): Install the private declarations of a
3052 limited-private-withed package. Update the installation of the shadow
3053 entities according to the new structure (see Build_Limited_Views)
3054 (Build_Limited_Views): Replace the previous implementation of the
3055 limited view by a package entity that references the first shadow
3056 entity plus the first shadow private entity (required for limited-
3057 private-with clause)
3058 (New_Internal_Shadow_Entity): Code cleanup.
3059 (Remove_Limited_With_Clause): Update the implementation to undo the
3060 new work carried out by Build_Limited_Views.
3061 (Build_Chain): Complete documentation.
3062 Replace Ada0Y by Ada 0Y in comments
3065 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
3066 types the level of accessibility depends on the enclosing type
3069 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
3070 entities. Complete documentation of previous change.
3072 2004-05-24 Robert Dewar <dewar@gnat.com>
3074 * namet.adb: Minor reformatting
3075 Avoid use of name I (replace by J)
3076 Minor code restructuring
3078 * sem_ch6.adb: Minor reformatting
3080 * lib-writ.adb: Do not set restriction as active if this is a
3081 Restriction_Warning case.
3083 * sem_prag.adb: Reset restriction warning flag if real pragma
3084 restriction encountered.
3086 * s-htable.adb: Minor reformatting
3087 Change rotate count to 3 in Hash (improves hash for small strings)
3089 * 5qsystem.ads: Add comments for type Address (no literals allowed).
3091 * gnat_ugn.texi: Add new section of documentation "Code Generation
3092 Control", which describes the use of -m switches.
3094 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
3096 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
3097 through the DECL_INITIAL for renamed variables.
3099 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
3101 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
3103 2004-05-19 Joel Brobecker <brobecker@gnat.com>
3105 * exp_dbug.ads: Correct comments concerning handling of overloading,
3106 since we no longer use $ anymore.
3108 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
3110 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
3111 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
3112 with illegal subunits.
3114 2004-05-19 Ed Schonberg <schonberg@gnat.com>
3116 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
3117 body with front-end inlining enabled, check whether an inline pragma
3118 appears immediately after the body and applies to it.
3120 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
3121 enabled and the pragma appears after the body of the subprogram.
3123 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3125 Part of function-at-a-time conversion
3127 * misc.c (adjust_decl_rtl): Deleted.
3128 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
3131 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
3132 (add_decl_stmt, add_stmt, block_has_vars): New functions.
3133 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
3135 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
3137 (gnat_to_gnu_entity): Likewise.
3138 Use add_stmt to update setjmp buffer.
3139 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
3141 No longer call adjust_decl_rtl.
3142 (DECL_INIT_BY_ASSIGN_P): New macro.
3143 (DECL_STMT_VAR): Likewise.
3145 * trans.c (gigi): Call start_block_stmt to make the outermost
3147 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
3148 Call start_block_stmt and end_block_stmt temporarily.
3149 Use gnat_expand_stmt instead of expand_expr_stmt.
3150 (add_decl_stmt): New function.
3151 (tree_transform): Call it.
3152 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
3153 (end_block_stmt): Set type and NULL_STMT.
3154 (gnat_expand_stmt): Make recursize call instead of calling
3156 (gnat_expand_stmt, case DECL_STMT): New case.
3157 (set_lineno_from_sloc): Do nothing if global.
3158 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
3159 (start_block_stmt, add_stmt, end_block_stmt): New functions.
3160 (build_block_stmt): Call them.
3161 (gnat_to_code): Don't expand NULL_STMT.
3162 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
3164 (tree_transform): Likewise.
3165 (tree_transform, case N_Null_Statement): Return NULL_STMT.
3166 (gnat_expand_stmt, case NULL_STMT): New case.
3167 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
3170 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
3173 * utils.c (create_var_decl): Do not call expand_decl or
3175 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
3176 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
3178 (struct e_stack): Add chain_next to GTY.
3179 (struct binding_level): Deleted.
3180 (struct ada_binding_level): New struct.
3181 (free_block_chain): New.
3182 (global_binding_level, clear_binding_level): Deleted.
3183 (global_bindings_p): Rework to see if no chain.
3184 (kept_level_p, set_block): Deleted.
3185 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
3186 new data structure and work directly on BLOCK node.
3187 (gnat_poplevel): Similarly.
3188 (get_decls): Look at BLOCK_VARS.
3189 (insert_block): Work directly on BLOCK node.
3190 (block_has_var): New function.
3191 (pushdecl): Rework for new binding structures.
3192 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
3194 (build_subprog_body): Likewise.
3195 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
3197 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
3199 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
3200 (DECL_STMT_VAR): Likewise.
3202 2004-05-17 Robert Dewar <dewar@gnat.com>
3204 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
3207 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
3208 of restriction synonyums by using
3209 Restrict.Process_Restriction_Synonyms.
3211 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
3213 * s-restri.ads (Tasking_Allowed): Correct missing comment
3215 * s-rident.ads: Add entries for restriction synonyms
3217 * ali.adb: Fix some problems with badly formatted ALI files that can
3218 result in infinite loops.
3220 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
3221 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
3222 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
3223 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
3224 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
3225 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
3226 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
3227 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
3228 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
3229 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
3230 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
3231 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
3232 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
3233 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
3234 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
3235 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
3236 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
3237 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
3238 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
3239 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
3240 to Task_Id (minor cleanup).
3242 2004-05-17 Vincent Celier <celier@gnat.com>
3244 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
3245 directory separator.
3247 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
3248 project being extended, if Languages is not declared in extending
3251 2004-05-17 Javier Miranda <miranda@gnat.com>
3253 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
3254 limited view of a visible sibling.
3256 2004-05-14 Robert Dewar <dewar@gnat.com>
3258 * gnat_ugn.texi: Minor change to -gnatS documentation
3260 * sprint.adb: Remove some instances of Assert (False) and for this
3261 purpose replace them by output of a ??? string.
3263 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
3266 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
3267 flag processing. This was suppressing required dependencies in
3268 No_Run_Time mode and is not needed since the binder does not generate
3269 references for things in libgnat anyway.
3271 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
3274 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
3276 * gnat_ugn.texi: Document AIX-specific issue with initialization of
3279 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
3280 action for the case of an actual parameter in an init proc call.
3282 2004-05-14 Ed Schonberg <schonberg@gnat.com>
3284 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
3285 subtype, check visible entities in base type.
3287 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
3288 actions if the object is a renaming.
3290 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
3291 Check_Formal_Package_Instance, to determine more precisely when the
3292 formal and the actual denote the same entity.
3294 2004-05-14 Javier Miranda <miranda@gnat.com>
3296 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
3298 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
3299 corresponding to a private_with must be removed from visibility; it
3300 will be made visible later, just before we analyze the private part of
3302 (Check_Private_Child_Unit): Allow private_with clauses in public
3304 (Install_Siblings): Make visible the private entities of private-withed
3306 (Install_Withed_Unit): Do not install the private withed unit if we
3307 are compiling a package declaration and the Private_With_OK flag was
3308 not set by the caller. These declarations will be installed later,
3309 just before we analyze the private part of the package.
3311 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
3312 during the evaluation of the expression that initializes the object,
3313 decorate it with the expected type to avoid cascade errors.
3316 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
3317 subprogram we have to install the private_with clauses after its
3318 specification has been analyzed (as documented in AI-262.TXT).
3320 * sem_ch8.adb (Has_Private_With): New function. Determines if the
3321 current compilation unit has a private with on a given entity.
3322 (Find_Direct_Name): Detect the Beaujolais problem described in
3325 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
3326 provides the functionality of the function Is_Ancestor that was
3327 previously available in sem_ch10. It has been renamed to avoid
3330 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
3332 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3334 * utils.c (build_vms_descriptor): Use SImode pointers.
3336 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
3338 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
3340 2004-05-14 GNAT Script <nobody@gnat.com>
3342 * Make-lang.in: Makefile automatically updated
3344 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
3346 Renaming of target specific files for clarity
3348 * Makefile.in: Rename GNAT target specific files.
3350 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
3351 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
3352 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
3353 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
3354 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
3355 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
3356 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
3357 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
3358 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
3359 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
3360 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
3361 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
3362 51osinte.adb, 51osinte.ads, 51system.ads,
3363 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
3364 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
3365 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
3366 56tpopsp.adb, 57system.ads, 58system.ads,
3367 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
3368 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
3369 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
3370 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
3371 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
3372 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
3373 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
3374 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
3375 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
3376 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
3377 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
3378 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
3379 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
3380 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
3381 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
3382 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
3383 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
3384 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
3385 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
3386 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
3387 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
3388 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
3389 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
3390 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
3391 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
3392 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
3393 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
3394 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
3395 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
3396 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
3397 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
3398 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
3399 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
3400 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
3401 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
3402 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
3403 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
3404 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
3405 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
3406 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
3408 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
3409 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
3410 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
3411 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
3412 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
3413 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
3414 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
3415 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
3416 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
3417 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
3418 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
3419 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
3420 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
3421 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
3422 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
3423 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
3424 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
3425 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
3426 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
3427 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
3428 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
3429 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
3430 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
3431 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
3432 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
3433 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
3434 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
3435 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
3436 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
3437 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
3438 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
3439 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
3440 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
3441 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
3442 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
3443 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
3444 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
3445 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
3446 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
3447 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
3448 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
3449 s-osinte-vms.ads, s-osinte-vxworks.adb,
3450 s-osinte-vxworks.ads, s-osprim-mingw.adb,
3451 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
3452 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
3453 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
3454 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
3455 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
3456 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
3457 s-stchop-vxworks.adb, s-taprop-dummy.adb,
3458 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
3459 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
3460 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
3461 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
3462 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
3463 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
3464 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
3465 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
3466 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
3467 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
3468 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
3469 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
3470 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
3471 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
3472 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
3473 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
3474 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
3475 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
3476 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
3477 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
3478 system-irix-o32.ads, system-linux-x86_64.ads,
3479 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
3480 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
3481 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
3482 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
3483 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
3484 system-vxworks-mips.ads, system-vxworks-ppc.ads,
3485 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
3488 2004-05-13 Zack Weinberg <zack@codesourcery.com>
3490 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
3492 2004-05-13 Diego Novillo <dnovillo@redhat.com>
3494 Merge from tree-ssa-20020619-branch.
3496 * config-lang.in (boot_language, build_by_default): Set
3498 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
3499 (max_size): Add static chain op for call_expr.
3501 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
3504 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
3506 2004-05-11 Roger Sayle <roger@eyesopen.com>
3508 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
3511 2004-05-10 Doug Rupp <rupp@gnat.com>
3513 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
3516 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
3518 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
3520 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
3521 Fixes undefined symbols in IA64 gnatlib.
3523 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
3525 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
3526 Short_Address). This will be moved to system.auxdec.
3528 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
3530 * sem_util.adb: Replace test for presence of a node that is always
3531 present with a call to Discard_Node.
3533 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
3534 Analyze on the library unit node after generation of distribution stub
3535 constructs. The call was a no-op because Unit_Node has already been
3536 Analyzed, and the tree fragments for the distribution stubs are
3537 analyzed as they are inserted in Exp_Dist.
3538 Update comment regarding to distribution stubs to reflect that we
3539 do not generate stub in separate files anymore.
3541 * einfo.ads: Clarify the fact that a tagged private type has the
3542 E_Record_Type_With_Private Ekind.
3544 * erroutc.adb: Minor reformatting
3546 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
3547 values if line length is increased using -gnatyM (noticed during code
3550 * eval_fat.adb: Minor reformatting
3551 Put spaces around exponentiation operator
3553 2004-05-10 Ed Schonberg <schonberg@gnat.com>
3556 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
3557 has been rewritten as an explicit dereference, retrieve type of
3558 original node to check for possibly unconstrained record type.
3560 2004-05-10 Ed Schonberg <schonberg@gnat.com>
3562 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
3563 overriding, use the operation of the parent unconditionally.
3565 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
3566 operation when either operand is a literal, to avoid further
3569 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
3570 overridden by a previous explicit declaration, mark the previous entity
3573 * sem_disp.adb (Check_Dispatching_Operation): New predicate
3574 Is_Visibly_Controlled, to determine whether a declaration of a
3575 primitive control operation for a derived type overrides an inherited
3576 one. Add warning if the explicit declaration does not override.
3578 2004-05-10 Vincent Celier <celier@gnat.com>
3580 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
3581 some cases when the sources are no longer present.
3583 * make.adb (Collect_Arguments): Fail if an external source, not part
3584 of any project need to be compiled, when switch -x has not been
3587 * makeusg.adb: Document new switch -x
3589 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
3592 * switch-m.adb (Scan_Make_Switches): New switch -x
3594 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
3597 * gnat_ugn.texi: Document new gnatmake switch -x
3599 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
3601 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
3603 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
3604 (process_attributes): Likewise.
3606 2004-05-10 Joel Brobecker <brobecker@gnat.com>
3608 * s-inmaop.ads: Fix spelling mistake in one of the comments.
3610 2004-05-10 Robert Dewar <dewar@gnat.com>
3612 * gnat_ugn.texi: Document that for config pragma files, the maximum
3613 line length is always 32767.
3615 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
3616 literals is now allowed.
3618 * gnat-style.texi: Remove statement about splitting long lines before
3619 an operator rather than after, since we do not follow this rule at all.
3620 Clarify rule (really lack of rule) for spaces around exponentiation
3622 * sem_elim.adb: Allow concatenation of string literals as well as a
3623 single string literal for pragma arguments.
3625 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
3627 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
3628 written for append case.
3630 * frontend.adb: Changes to avoid checking max line length in config
3633 * g-os_lib.ads: Minor reformatting
3635 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
3636 wrong in any case. Instead use standard value. Noticed during code
3639 * opt.ads (Max_Line_Length): New field, used to implement removal of
3640 limitation on length of lines when scanning config pragma files.
3642 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
3643 makeutl.ads, makeutl.adb: Minor reformatting
3645 * scn.adb: Do not check line length while scanning config pragma files
3646 Do not check line length while scanning out license information
3648 * scng.adb: Changes to avoid line length checks while parsing config
3651 2004-05-10 GNAT Script <nobody@gnat.com>
3653 * Make-lang.in: Makefile automatically updated
3655 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
3657 * osint.adb (Find_Program_Name): Fix handling of VMS version
3660 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
3662 * g-os_lib.ads (Invalid_Time): New constant
3664 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
3665 return OS_Time instead of time_t to match what is imported by Ada.
3666 Now return -1 if the file doesn't exist, instead of a random value
3668 2004-05-05 Robert Dewar <dewar@gnat.com>
3670 * usage.adb: Add line for -gnatR?s switch
3672 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
3674 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
3675 and for Match (Data_First, Data_last)
3677 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
3678 written when we are dealing with multi-unit files.
3680 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
3682 * Makefile.in: Remove unused targets and variables.
3684 2004-05-05 Vincent Celier <celier@gnat.com>
3686 * switch-m.adb: New gnatmake switch -eI
3688 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
3689 of new gnatmake switch -eInnn.
3691 * makegpr.adb: Take into account new parameters Index and Src_Index in
3694 * clean.adb: Implement support for multi-unit sources, including new
3697 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
3700 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
3701 (Extract_From_Q): New out parameter Index
3702 (Mark, Is_Marked): Subprograms moved to Makeutl
3703 (Switches_Of): New parameter Source_Index
3704 (Add_Switch): New parameter Index
3705 (Check): New parameter Source_Index
3706 (Collect_Arguments): New parameter Source_Index
3707 (Collect_Arguments_And_Compile): New parameter Source_Index
3708 (Compile): New parameter Source_Index
3709 Put subprograms in alphabetical order
3710 Add support for multi-source sources, including in project files.
3712 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
3713 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
3716 * makeusg.adb: New gnatmake switch -eInnn
3718 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
3721 * opt.ads (Main_Index): New variable, defaulted to 0.
3723 * osint.ads, osinte.adb (Add_File): New parameter Index
3724 (Current_Source_Index): New function
3726 * prj.adb: Take into account new components Index and Src_Index
3728 * prj.ads (String_Element): New component Index
3729 (Variable_Value): New component Index
3730 (Array_Element): New component Src_Index
3732 * prj-attr.adb: Indicate that optional index may be specified for
3733 attributes Main, Executable, Spec, Body and some of Switches.
3735 * prj-attr.ads (Attribute_Kind): New values for optional indexes
3736 (Attribute_Record): New component Optional_Index
3738 * prj-com.ads (File_Name_Data): New component Index
3740 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
3742 * prj-env.adb (Put): Output optional index
3744 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
3745 attributes Spec and Body.
3747 * prj-nmsc.adb: Process optional indexes
3749 * prj-pp.adb: Ouput "at" for optional indexes
3751 * prj-proc.adb: Take into account optional indexes
3753 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
3754 Optional_Index. For string literal,
3755 process optional index when Optional_Index is True.
3756 (Parse_Expresion): New Boolean parameter Optional_Index
3758 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
3759 (Set_Source_Index_Of): New procedure
3761 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
3764 * prj-util.ads (Executable_Of): New parameter Index
3765 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
3766 New parameter Src_Index, defaulted to 0.
3768 2004-05-05 Ed Schonberg <schonberg@gnat.com>
3771 * sem_ch3.adb (Access_Definition): If this is an access parameter
3772 whose designated type is imported through a limited_with clause, do
3773 not add the enclosing subprogram to the list of private dependents of
3776 2004-05-05 Ed Schonberg <schonberg@gnat.com>
3779 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
3780 a limited_with clause, and the other is its non-limited view.
3782 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
3784 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
3786 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
3787 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
3788 Stand.Boolean_Literals to produce references to entities
3789 Standard_False and Standard_True from compile-time computed boolean
3792 * stand.ads (Boolean_Literals): New variable, provides the entity
3793 values for False and True, for use by the expander.
3795 2004-05-05 Doug Rupp <rupp@gnat.com>
3797 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
3798 5vinmaop.adb: Unchecked convert Short_Address vice Address
3800 * adaint.c, raise.c: Caste CRTL function return value
3801 to avoid gcc error on 32/64 bit IVMS.
3803 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
3806 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
3808 * 5qsystem.ads (Address): Declare as Long_Integer
3809 (Short_Address): Declare as 32 bit subtype of Address
3810 Declare abstract address operations to avoid gratuitous ambiguities.
3812 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
3814 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
3815 instead of the old Boolean_Entry_Barriers.
3816 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
3818 2004-05-05 GNAT Script <nobody@gnat.com>
3820 * Make-lang.in: Makefile automatically updated
3822 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
3824 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
3826 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
3830 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
3831 alone. Replacing object references by literals is inappropriate in a
3832 so low level context.
3834 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
3836 * a-exexpr.adb: Add comments
3838 2004-05-03 Joel Brobecker <brobecker@gnat.com>
3840 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
3841 declare the Ancestor_Tags array in Type_Specific_Data with a small size
3842 without risking a bounds check error when accessing one of its
3844 (Type_Specific_Data): Define Ancestor_Tags as a small array.
3845 This prevents us from hitting a limitation during the debug info
3846 generation when using stabs.
3848 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
3850 This prevents us from hitting a limitation during the debug info
3851 generation when using stabs.
3853 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
3855 lang-specs.h: Remove -gnatz* from specs.
3857 2004-05-03 Vincent Celier <celier@gnat.com>
3859 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
3861 * Make-lang.in, Makefile.in: Add gprmake
3863 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
3865 * sem_aggr.adb: Fix typo in comment.
3867 2004-05-03 Robert Dewar <dewar@gnat.com>
3869 * make.adb: Minor reformatting
3871 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
3873 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
3874 so that it works when address is not a private type.
3876 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
3877 properly with rewritten unchecked conversions. This prevents
3878 order-of-elaboration issues that can otherwise arise.
3879 (Minimum_Size): Don't check size of access types under VMS
3881 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
3882 interpretations of integer literals as type System.Address.
3884 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
3885 (Is_Descendent_Of): New function
3887 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
3889 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
3890 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
3891 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
3893 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
3894 of the old Max_Entry_Queue_Depth.
3896 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
3897 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
3898 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
3900 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
3901 New entry for proper handling of Max_Entry_Queue_Depth.
3902 New entry for proper handling of No_Dynamic_Interrupts.
3904 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
3905 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
3906 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
3907 the GNAT specific restriction Max_Entry_Queue_Depth.
3908 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
3909 the GNAT specific restriction No_Dynamic_Interrupts.
3911 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
3912 instead of the old Boolean_Entry_Barriers.
3913 Use the new restriction No_Dynamic_Attachment instead of the old
3914 No_Dynamic_Interrupts.
3916 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
3917 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
3919 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
3920 of the old Max_Entry_Queue_Depth.
3922 2004-05-03 GNAT Script <nobody@gnat.com>
3924 * Make-lang.in: Makefile automatically updated
3926 2004-04-29 Ed Schonberg <schonberg@gnat.com>
3928 * checks.adb (Enable_Range_Check): If the prefix of an index component
3929 is an access to an unconstrained array, perform check unconditionally.
3931 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3933 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
3936 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
3938 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
3939 alternate stack setting. There was no support for the tasking cases
3940 and the changes eventually caused a number of side-effect failures in
3941 the non-tasking case too.
3943 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
3945 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
3948 2004-04-29 Vincent Celier <celier@gnat.com>
3950 * make.adb (Gnatmake): Increase max size of argument array for
3951 gnatbind for the potential addition of -F.
3952 If there are Stand-Alone Library projects, invoke gnatbind with -F to
3953 be sure that elaboration flags will be checked.
3955 * switch-c.adb: Correct call to Scan_Pos for -gnateI
3957 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
3959 * sem_warn.adb (Check_References): Move '<access-variable> may be
3960 null' warning out of under Warn_On_No_Value_Assigned.
3962 2004-04-29 Ed Falis <falis@gnat.com>
3964 * gnat_ugn.texi: Fixed texi error
3966 2004-04-29 Robert Dewar <dewar@gnat.com>
3968 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
3969 abstract operations if they come from predefined files.
3971 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
3974 * s-addope.adb: Correct obvious error in mod function
3976 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
3978 * Makefile.in: Add target pairs for powerpc darwin*
3981 * a-intnam-darwin.ads, s-osinte-darwin.adb,
3982 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
3984 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
3986 * Makefile.in: Add target macro definitions for s390*-linux*.
3987 * system-linux-s390.ads: New file.
3988 * system-linux-s390x.ads: New file.
3990 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
3992 * gnat_ugn.texi: Correct argument to @setfilename.
3994 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
3996 * a-exexpr.adb (Unwind_Word): New data type.
3997 (Unwind_Exception): Use it as type of Private1 and Private2.
3999 * raise.c (db_action_for): Fix debug printf.
4001 2004-04-27 Ed Schonberg <schonberg@gnat.com>
4003 * a-wtmoio.ads: Formal type must be a modular type, not a signed
4006 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4008 * decl.c (gnat_to_gnu_entity, case object): Call
4009 __builtin_update_setjmp_buf.
4011 * gigi.h (update_setjmp_buf): Deleted.
4012 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
4014 * misc.c: (update_setjmp_buf): Deleted.
4016 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
4017 around block of RTL.
4019 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
4021 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
4023 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
4024 subprogram for which no pragma All_Calls_Remote applies, store the
4025 address of the real subprogram in the underlying record type, so local
4026 dereferences do not go through the PCS.
4028 2004-04-26 Robert Dewar <dewar@gnat.com>
4030 * i-c.ads: Add some type qualifications to avoid ambiguities when
4031 compiling with s-auxdec.ads and a non-private address type.
4033 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
4035 * Makefile.rtl: Fix error in previous check-in:
4036 Add s-addope.o to non tasking object list (rather than tasking object
4039 2004-04-26 Javier Miranda <miranda@gnat.com>
4041 * sem_aggr.adb: Fix typo in comments
4042 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
4043 Required to check the null-exclusion attribute.
4045 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
4046 case of anonymous access types in record and array components. For a
4047 component definition the level is the same of the enclosing composite
4050 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
4051 that are anonymous access types the level of accessibility depends on
4052 the enclosing type declaration. In order to have this information, set
4053 the scope of the anonymous access type to the enclosing record type
4055 (Array_Type_Declaration): In case of components that are anonymous
4056 access types the level of accessibility depends on the enclosing type
4057 declaration. In order to have this information, set the scope of the
4058 anonymous access type to the enclosing array type declaration.
4060 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
4063 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
4064 renaming of anonymous access-to-constant types allowed if and only if
4065 the renamed object is access-to-constant.
4067 * sem_util.adb (Type_Access_Level): In case of anonymous access types
4068 that are component_definition or discriminants of a nonlimited type,
4069 the level is the same as that of the enclosing component type.
4071 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
4073 * sem_elim.adb: Some minor code reorganization from code reading. Fix
4074 misprint in the function name (File_Name_Match).
4076 2004-04-23 Laurent GUERBY <laurent@guerby.net>
4078 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
4081 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4083 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
4085 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
4087 * adaint.c (__gnat_try_lock): No longer requires that the parent
4088 directory be writable, the directory itself is enough.
4089 (gnat_is_absolute_path): Change profile, so that the call from
4090 GNAT.OS_Lib can be made more efficient.
4092 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
4093 from GNAT.OS_Lib can be made more efficient.
4095 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
4096 one copy of the file name. Found by code reading.
4098 2004-04-23 Vincent Celier <celier@gnat.com>
4100 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
4101 Correct documentation on gnatmake switches transmitted to the compiler
4103 * ali.ads: Minor comment fix
4105 2004-04-23 Javier Miranda <miranda@gnat.com>
4107 * sem_ch6.adb: (Confirming Types): Code cleanup
4109 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
4110 subprogram types: E_Anonymous_Access_Subprogram_Type and
4111 E_Anonymous_Access_Protected_Subprogram_Type.
4113 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
4115 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
4116 whether a pragma All_Calls_Remote applies to the subprogram on which
4118 No functional change is introduced by this revision; the new parameter
4119 will be used to allow calls to local RCI subprograms to be optimized
4120 to not use the PCS in the case where no pragma All_Calls_Remote applies,
4121 as is already done in the PolyORB implementation of the DSA.
4123 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
4124 whether a pragma All_Calls_Remote applies to the subprogram on which
4126 No functional change is introduced by this revision; the new parameter
4127 will be used to allow calls to local RCI subprograms to be optimized
4128 to not use the PCS in the case where no pragma All_Calls_Remote applies,
4129 as is already done in the PolyORB implementation of the DSA.
4131 2004-04-23 Robert Dewar <dewar@gnat.com>
4133 * Makefile.rtl: Add entry for s-addope.o in run time library list
4134 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
4135 * s-addope.ads, s-addope.adb: New files.
4137 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
4138 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
4139 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
4140 System.Address to be non-private and signed.
4142 * sem_elim.adb: Minor reformatting (fairly extensive)
4143 Some minor code reorganization from code reading
4144 Add a couple of ??? comments
4146 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4148 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
4149 (tree_transform, case N_If_Statement): Remove non-determinism.
4151 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
4153 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
4155 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
4158 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
4159 no longer used as a parameter name for Eliminate pragma).
4161 2004-04-22 Laurent GUERBY <laurent@guerby.net>
4163 PR optimization/14984
4164 PR optimization/14985
4165 * trans.c (gigi): Fix non determinism leading to bootstrap
4166 comparison failures.
4168 2004-04-21 Pascal Obry <obry@gnat.com>
4170 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
4171 passed to spawnvp() to properly handle program pathname with spaces on
4174 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
4176 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
4177 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
4178 unlocked in case of exceptions.
4180 2004-04-21 Joel Brobecker <brobecker@gnat.com>
4182 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
4183 This function does not exist anymore.
4185 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
4187 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
4189 * link.c: Move variables to the __gnat name space.
4191 * Makefile.in: list link.o explicitly when needed.
4193 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
4195 2004-04-21 Javier Miranda <miranda@gnat.com>
4197 * einfo.adb (Original_Access_Type): New subprogram
4198 (Set_Original_Access_Type): New subprogram
4199 (Write_Field21_Name): Write the name of the new field
4201 * einfo.ads (Original_Access_Type): New field present in access to
4203 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
4204 E_Anonymous_Access_Protected_Subprogram_Type.
4206 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
4209 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
4210 to anonymous access to subprogram types.
4212 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
4213 to subprogram types.
4215 * sem_ch3.adb (Access_Definition): Complete decoration of entities
4216 corresponding to anonymous access to subprogram types.
4217 (Analyze_Component_Declaration): Add new actual to the call to
4218 subprogram replace_anonymous_access_to_protected_subprogram.
4219 (Array_Type_Declaration): Add new actual to the call to subprogram
4220 replace_anonymous_access_to_protected_subprogram.
4221 (Process_Discriminants): Add new actual to the call to subprogram
4222 replace_anonymous_access_to_protected_subprogram.
4223 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
4225 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
4228 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
4229 access to subprogram types.
4231 * sem_util.adb (Has_Declarations): Addition of package_specification
4234 2004-04-21 Ed Schonberg <schonberg@gnat.com>
4236 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
4237 inlined flags to renamed entity only if in current unit.
4239 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
4241 * s-parint.ads: Add DSA implementation marker.
4243 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
4244 value of System.Partition_Interface.DSA_Implementation to determine
4245 what version of the distributed systems annex is available (no
4246 implementation, GLADE, or PolyORB).
4248 2004-04-21 Joel Brobecker <brobecker@gnat.com>
4250 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
4252 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4254 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
4255 with new type if alias sets differ.
4256 Fixes ACATS c41103b.
4258 2004-04-21 Vincent Celier <celier@gnat.com>
4260 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
4261 Add array Lang_Args for the language specific compiling argument
4264 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
4266 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
4268 * gnat_rm.texi: Update the descripton of the Eliminate pragma
4269 according to the recent changes in the format of the parameters of the
4270 pragma (replacing Homonym_Number with Source_Location).
4272 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
4274 * 5isystem.ads: Removed, unused.
4276 * gnat_rm.texi: Redo 1.13 change.
4278 2004-04-19 Robert Dewar <dewar@gnat.com>
4280 * s-stoele.ads: Clean up definition of Storage_Offset (the new
4281 definition is cleaner, avoids the kludge of explicit Standard operator
4282 references, and also is consistent with a visible System.Address with
4283 no visible operations.
4285 * s-geveop.adb: Add declarations to avoid assumption of visible
4286 operations on type System.Address (since these might not be available
4287 if Address is a non-private type for which the operations
4290 * sem_eval.adb: Minor reformatting
4292 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
4293 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
4294 reformatting (new function spec format).
4296 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
4297 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
4298 s-caun64.adb: Add declarations to avoid assumption of visible
4299 operations on type System.Address (since these might not be available
4300 if Address is a non-private type for which the operations are made
4303 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
4305 * exp_intr.adb: Minor comment update
4307 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
4309 * 5omastop.adb: Add declarations to avoid assumption of visible
4310 operations on type System.Address (since these might not be available
4311 if Address is a non-private type for which the operations
4314 2004-04-19 Vincent Celier <celier@gnat.com>
4316 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
4318 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
4321 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
4323 Call Check with Process_Languages.
4324 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
4325 with Process_Languages.
4326 (Recursive_Check): New Boolean parameter Process_Languages. Call
4327 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
4330 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
4332 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
4333 parameter Ada_Main, defaulted to True.
4334 Check for Ada specific characteristics only when Ada_Main is True.
4336 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
4338 * prj.adb: (Project_Empty): Add new Project_Data components.
4340 * prj.ads: New types and tables for non Ada languages.
4341 (Project_Data): New components Languages, Impl_Suffixes,
4342 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
4343 Include_Path, Include_Data_Set.
4345 * prj-env.ads, prj-env.adb: Minor reformatting
4347 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
4348 Put subprograms in alphabetical order
4350 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
4351 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
4354 * mlib-prj.adb: Back out modification in last version, as they are
4356 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
4358 * make.adb: (Mains): Moved to package Makeutl
4359 (Linker_Opts): Moved to package Makeutl
4360 (Is_External_Assignment): Moved to package Makeutl
4361 (Test_If_Relative_Path): Moved to package Makeutl
4362 (Gnatmake): Move sorting of linker options to function
4363 Makeutl.Linker_Options_Switches.
4365 * makeutl.ads, makeutl.adb: New files.
4367 * Makefile.in: Add makeutl.o to the object files for gnatmake
4369 * makeusg.adb: Add line for new switch -eL.
4371 * gnatls.adb (Image): New function.
4372 (Output_Unit): If in verbose mode, output the list of restrictions
4373 specified by pragmas Restrictions.
4375 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
4378 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
4379 needed, to put it in the range 1970 (included) - 2026 (excluded).
4380 (Time_Of): Do not shift Unix_Min_Year (1970).
4381 Shift the date by multiple of 56 years, if needed, to put it in the
4382 range 1970 (included) - 2026 (excluded).
4384 * adaint.h, adaint.c (__gnat_set_executable): New function.
4386 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4388 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
4390 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
4391 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
4392 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
4393 (tree_transform, case N_Code_Statement): Likewise.
4394 (gnat_expand_stmt, case LABEL_STMT): Don't look at
4395 LABEL_STMT_FIRST_IN_EH.
4396 (gnat_expand_stmt, case ASM_STMT): New case.
4398 * utils2.c (build_unary_op): Properly set TREE_READONLY of
4399 UNCONSTRAINED_ARRAY_REF.
4401 * utils.c (poplevel): Temporarily push/pop GC context around inline
4404 * decl.c (maybe_variable): Properly set TREE_READONLY of
4405 UNCONSTRAINED_ARRAY_REF.
4406 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
4408 * ada-tree.def: (ASM_STMT): New.
4410 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
4411 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
4412 ASM_STMT_INPUT): New.
4413 (ASM_STMT_CLOBBER): Likewise.
4415 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
4417 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
4418 general rcheck mechanism to raise Program_Error for E.4(18), instead
4419 of a custom raiser in System.Partition_Interface.
4420 Part of general cleanup work before PolyORB integration.
4422 * snames.ads, snames.adb: Add new runtime library entities and names
4425 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
4427 (Build_Subprogram_Id): New subprogram provided by exp_dist
4428 Code reorganisation in preparation for PolyORB integration.
4430 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
4432 (Build_Subprogram_Id): New subprogram provided by exp_dist
4434 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
4435 actual parameter types for call to dereference of an
4436 access-to-subprogram type.
4438 * rtsfind.ads: Add new runtime library entities and names for PolyORB
4441 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
4442 instead, which has the same behaviour here since we never pass it a
4445 * link.c (run_path_option, Solaris case): Use -Wl, as for other
4448 * Makefile.in: adjust object file lists for gnatlink and gnatmake
4449 to account for new dependency upon Interfaces.C.Strings + link.o
4450 For x86 FreeBSD, use 86numaux.
4452 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
4453 from Mlib.Tgt to Mlib.
4455 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
4458 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
4459 target-specific versions of this subprogram, now implemented as a
4460 target-independent function in Mlib.
4462 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
4463 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
4464 (Linker_Library_Path_Option): Remove target-specific versions of this
4465 subprogram, now implemented as a target-independent function in Mlib.
4467 * atree.adb: (Allocate_Initialize_Node): New subprogram.
4468 Factors out node table slots allocation.
4469 (Fix_Parents): New subprogram.
4470 Encapsulate the pattern of fixing up parent pointers for syntactic
4471 children of a rewritten node.
4472 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
4473 (Rewrite): Use New_Copy when creating saved copy of original node.
4474 (Replace): Use Copy_Node to copy nodes.
4476 2004-04-19 Javier Miranda <miranda@gnat.com>
4478 * sprint.adb (Sprint_Node_Actual): Give support to the new
4479 Access_To_Subprogram node available in Access_Definition nodes. In
4480 addition, give support to the AI-231 node fields: null-exclusion,
4481 all-present, constant-present.
4483 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
4485 * sinfo.ads, sinfo.adb:
4486 New field Access_To_Subprogram_Definition in Access_Definition nodes
4488 * sem_ch6.adb (Process_Formals): Move here the code that creates and
4489 decorates internal subtype declaration corresponding to the
4490 null-excluding formal. This code was previously in Set_Actual_Subtypes.
4491 In addition, carry out some code cleanup on this code. In case of
4492 access to protected subprogram call
4493 Replace_Anonymous_Access_To_Protected_Subprogram.
4494 (Set_Actual_Subtypes): Code cleanup.
4496 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
4497 Find_Type in case of anonymous access renamings. Add warning in case of
4498 null-excluding attribute used in anonymous access renaming.
4500 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
4503 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
4505 (Access_Definition): In case of anonymous access to subprograms call
4506 the corresponding semantic routine to decorate the node.
4507 (Access_Subprogram_Declaration): Addition of some comments indicating
4508 some code that probably should be added here. Detected by comparison
4509 with the access_definition subprogram.
4510 (Analyze_Component_Declaration): In case of access to protected
4511 subprogram call Replace_Anonymous_Access_To_Protected.
4512 (Array_Type_Declaration): In case of access to protected subprogram call
4513 Replace_Anonymous_Access_To_Protected_Subprogram.
4514 (Process_Discriminants): In case of access to protected subprogram call
4515 Replace_Anonymous_Access_To_Protected_Subprogram.
4517 * par.adb (P_Access_Definition): New formal that indicates if the
4518 null-exclusion part was present.
4519 (P_Access_Type_Definition): New formal that indicates if the caller has
4520 already parsed the null-excluding part.
4522 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
4523 (P_Identifier_Declarations): Code cleanup and give support to renamings
4524 of anonymous access to subprogram types.
4525 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
4526 (P_Array_Type_Definition): Give support to AI-254.
4527 (P_Component_Items): Give support to AI-254.
4528 (P_Access_Definition): New formal that indicates if the header was
4529 already parsed by the caller.
4530 (P_Access_Type_Definition): New formal that indicates if the caller has
4531 already parsed the null-excluding part.
4533 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
4534 call to P_Access_Definition.
4536 2004-04-19 Geert Bosch <bosch@gnat.com>
4538 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
4539 the delicate semantics of floating-point to integer conversion.
4540 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
4542 * eval_fat.adb (Machine_Mantissa): Moved to spec.
4543 (Machine_Radix): New function.
4545 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
4547 (Machine_Radix): New function also for use in conversion checks.
4549 2004-04-19 Ed Schonberg <schonberg@gnat.com>
4551 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
4553 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
4554 to decorate the access-to-protected subprogram and the equivalent type.
4556 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
4557 to anonymous access to subprogram types.
4559 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
4560 constant-folding, for legality checks in contexts that require an RM
4563 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
4564 temporary but stack checking is not enabled, increment serial number
4565 to so that symbol generation is consistent with and without stack
4568 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
4569 independent on whether stack checking is enabled, caller must check
4570 the corresponding flag.
4572 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
4574 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
4575 parent if it has discriminants.
4576 (Build_Derived_Private_Type): Constructed full view does
4577 not come from source.
4578 (Process_Discriminants): Default discriminants on a tagged type are
4579 legal if this is the internal completion of a private untagged
4582 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
4583 no constraint checks, because it corresponds to an existing object.
4585 * sem_prag.adb (Process_Convention): Pragma applies
4586 only to subprograms in the same declarative part, i.e. the same unit,
4589 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
4590 ignore type mismatch on a numeric conversion if expression comes from
4593 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
4595 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
4596 Homonym_Number parameter, add processing for Source_Location parameter
4598 (Check_Eliminated): Remove the check for homonym numbers, add the check
4599 for source location traces.
4601 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
4602 with Arg_Source_Location corresponding to the changes in the format of
4605 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
4606 Eliminate pragma corresponding to the changes in the format of the
4607 pragma: Homonym_Number is replaced with Source_Location, two ways of
4608 distinguishing homonyms are mutially-exclusive.
4610 2004-04-19 Joel Brobecker <brobecker@gnat.com>
4612 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
4614 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
4615 No_Dollar_In_Label, no longer necessary, as it is always True.
4616 (Strip_Suffixes): Likewise.
4618 2004-04-19 Gary Dismukes <dismukes@gnat.com>
4620 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
4621 modulus for compatibility with size clause on targets with 16-bit
4624 * layout.adb (Discrimify): In the case of private types, set Vtyp to
4625 full type to fix type mismatches on calls to size functions for
4626 discriminant-dependent array components.
4628 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
4630 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
4633 2004-04-19 Pascal Obry <obry@gnat.com>
4635 * mdll-utl.adb (Locate): New version is idempotent.
4637 2004-04-17 Laurent Guerby <laurent@guerby.net>
4639 PR ada/14988 (partial)
4640 * impunit.adb: Fix typo.
4642 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
4644 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
4645 and install-rts-cert targets. Remove all gnatlib and gnattools
4646 targets and all other rts-* targets (moved to libada). Remove (now)
4647 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
4648 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
4650 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4652 * trans.c (tree_transform): Shortcut returning error_mark_node for
4653 statements in annotate_only_mode.
4654 (tree_transform, case N_Label, case N_Return_Statement,
4655 N_Goto_Statement): Make statement tree instead of generating code.
4656 (tree_transform, case N_Assignment_Statement): No longer check
4658 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
4660 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
4662 (gnat_to_gnu): Collect any RTL generated and deal with it.
4663 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
4664 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
4665 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
4667 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
4669 * ada-tree.def (EXPR_STMT): Fix typo in name.
4670 (BLOCK_STMT, IF_STMT): New nodes.
4672 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
4673 LABEL_STMT_FIRST_IN_EH): New macros.
4674 (RETURN_STMT_EXPR): Likewise.
4676 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
4677 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
4679 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
4681 * atree.ads: Correct documentation on extended nodes.
4683 * link.c: Set run_path_option for FreeBSD.
4685 2004-04-08 Vincent Celier <celier@gnat.com>
4687 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
4688 one of the ALI file, do not link with DEC lib.
4690 * par.adb Remove the last two characters ("%s" or "%b") when checking
4691 if a language defined unit may be recompiled.
4693 2004-04-08 Ed Schonberg <schonberg@gnat.com>
4695 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
4696 removal of abstract operation leaves no possible interpretation for
4699 * sem_eval.adb (Eval_Qualified_Expression): Use
4700 Set_Raises_Constraint_Error on node when needed, so that it does not
4701 get optimized away by subsequent optimizations.
4703 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
4704 operands even when they are not wrapped in a type conversion.
4706 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
4708 * sem_prag.adb (Set_Exported): Warn about making static as result of
4709 export only when the export is coming from source. This may be not
4710 be true e.g. on VMS where we expand export pragmas for exception codes
4711 together with imported or exported exceptions, and we don't want the
4712 user to be warned about something he didn't write.
4714 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
4716 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
4717 duplication between normal entities and those declared as renamings.
4718 No functional change.
4720 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
4721 inline functions returning an unconstrained result.
4723 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
4725 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
4726 conform to what other front-ends do.
4728 2004-04-08 Doug Rupp <rupp@gnat.com>
4730 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
4733 2004-04-06 Pascal Obry <obry@gnat.com>
4735 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
4737 * osint.adb (Program_Name): Do not look past a directory separator.
4739 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
4741 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
4743 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
4744 requirement for preserving a copy of the original assignment node.
4746 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
4748 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
4750 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
4753 2004-04-06 Ed Schonberg <schonberg@gnat.com>
4755 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
4756 operator calls in functional notation, and apply
4757 Universal_Interpretation to operands, not to their type.
4759 2004-04-06 Robert Dewar <dewar@gnat.com>
4761 * 5wdirval.adb: Minor reformatting
4763 2004-04-06 Ed Falis <falis@gnat.com>
4765 * gnat_rm.texi: Improve a reference to the GCC manual
4767 2004-04-05 Vincent Celier <celier@gnat.com>
4769 * adaint.h, adaint.c: Add function __gnat_named_file_length
4771 * impunit.adb: Add Ada.Directories to the list
4773 * Makefile.in: Add VMS and Windows versions of
4774 Ada.Directories.Validity package body.
4776 * Makefile.rtl: Add a-direct and a-dirval
4778 * mlib-tgt.ads: Minor comment update.
4780 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
4781 a-direct.ads, a-direct.adb: New files.
4783 2004-04-05 Vincent Celier <celier@gnat.com>
4786 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
4787 just to the compiler.
4789 2004-04-05 Robert Dewar <dewar@gnat.com>
4791 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
4792 returned string is 1.
4794 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
4796 * eval_fat.ads: Minor reformatting
4798 * g-curexc.ads: Document that lower bound of returned string values
4801 * gnatlink.adb: Add ??? comment for previous change
4802 (need to document why this is VMS specific)
4804 * s-stoele.ads: Minor reformatting
4806 * tbuild.ads: Minor reformatting throughout (new function specs)
4808 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
4811 * scng.adb: Minor reformatting
4813 2004-04-05 Geert Bosch <bosch@gnat.com>
4815 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
4816 (Leading_Part): Still perform truncation to machine number if the
4817 specified radix_digits is greater or equal to machine_mantissa.
4819 2004-04-05 Javier Miranda <miranda@gnat.com>
4821 * par-ch3.adb: Complete documentation of previous change
4822 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
4823 (aliased must appear before constant).
4825 * par-ch4.adb: Complete documentation of previous change.
4827 * par-ch6.adb: Complete documentation of previous change.
4829 * sinfo.ads: Fix typo in commment.
4831 2004-04-05 Ed Schonberg <schonberg@gnat.com>
4833 * sem_ch3.adb (Inherit_Components): If derived type is private and has
4834 stored discriminants, use its discriminants to constrain parent type,
4835 as is done for non-private derived record types.
4837 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
4838 Ada 2005 AI-310: an abstract non-dispatching operation is not a
4839 candidate interpretation in an overloaded call.
4841 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
4842 expression is Null and target type is not an access type (e.g. a
4843 non-private address type).
4845 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
4847 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
4848 statement whose right-hand side is an inlined call, save a copy of the
4849 original assignment subtree to preserve enough consistency for
4850 Analyze_Assignment to proceed.
4852 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
4853 complete assignment subtree which is now unnecessary, as the expansion
4854 of inlined call has been improved to preserve a consistent assignment
4855 tree. Note_Possible_Modification must be called only
4856 after checks have been applied, or else unnecessary checks will
4859 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
4860 of explicit dereferences that do not Come_From_Source:
4861 - be selective on cases where we must go back to the dereferenced
4862 pointer (an assignment to an implicit dereference must not be
4863 recorded as modifying the pointer);
4864 - do not rely on Original_Node being present (Analyze_Assignment
4865 calls Note_Possible_Modification on a copied tree).
4867 * sem_warn.adb (Check_References): When an unset reference to a pointer
4868 that is never assigned is encountered, prefer '<pointer> may be null'
4869 warning over '<pointer> is never assigned a value'.
4871 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
4873 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
4876 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
4878 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
4879 libexc. We currently don't reference anything in this library and
4880 linking it in triggers linker warnings we don't want to see.
4882 * init.c: Update comments.
4884 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4886 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
4887 * utils.c (create_field_decl): Likewise.
4888 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
4890 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
4892 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
4893 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
4894 Add info directory entry and category.
4896 2004-04-02 Jan Hubicka <jh@suse.cz>
4898 * utils.c: Include function.h
4899 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
4901 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
4904 * Make-lang.in: Clean up generation of documentation
4906 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
4908 * xgnatug.adb: Removed, replaced by xgnatugn.adb
4910 * xgnatugn.adb: Replaces xgnatug.adb
4912 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
4914 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
4916 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
4917 gnat_ug_wnt.texi: Removed.
4919 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
4921 * utils2.c: Update copyright notice.
4923 2004-04-01 Robert Dewar <dewar@gnat.com>
4925 * checks.adb: Minor reformatting throughout
4926 Note that prev checkin added RM reference to alignment warning
4928 2004-04-01 Ed Schonberg <schonberg@gnat.com>
4930 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
4931 non-static when building aggregate for bit-packed array.
4933 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
4934 function call that is itself the actual in a procedure call, build
4937 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
4938 a string literal, create a temporary for it, constant folding only
4939 handles scalars here.
4941 2004-04-01 Vincent Celier <celier@gnat.com>
4943 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
4944 Error_Msg_SP): New empty procedures to instantiate the Scanner.
4945 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
4947 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
4948 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
4949 and get the checksum.
4951 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
4953 Increase the Marking_Label at the end of the Multiple_Main_Loop,
4954 instead of at the beginning.
4956 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
4958 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
4961 * osint.ads (Multi_Unit_Index_Character): New Character global variable
4963 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
4966 * par.adb: Remove test on file name to detect language defined units.
4967 Add test on unit name, after parsing, to detect language defined units
4968 that are not compiled with -gnatg (except System.RPC and its children)
4970 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
4971 following units without style checking.
4973 * switch-c.adb: Change -gnatC to -gnateI
4975 * usage.adb: Document new switch -gnateInnn
4977 * scng.adb (Accumulate_Token_Checksum): New procedure
4978 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
4979 word or literal number.
4980 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
4983 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
4986 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
4987 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
4988 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
4989 5vtpopde.adb: Add missing 'constant' keywords.
4991 2004-04-01 Javier Miranda <miranda@gnat.com>
4993 * par-ch4.adb: (P_Allocator): Code cleanup
4995 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
4998 * sinfo.ads: Complete documentation of previous change
5000 2004-04-01 Pascal Obry <obry@gnat.com>
5002 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
5003 only on VMS. This special handling was done because an old GNU/ld bug
5004 on Windows which has been fixed.
5006 2004-04-01 GNAT Script <nobody@gnat.com>
5008 * Make-lang.in: Makefile automatically updated
5010 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5012 * decl.c (gnat_to_gnu_entity, make_type_from_size):
5013 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
5014 * trans.c (tree_transform, convert_with_check): Likewise.
5015 * utils.c (gnat_signed_or_unsigned_type): Likewise.
5016 (build_vms_descriptor, unchecked_convert): Likewise.
5017 * utils2.c (nonbinary_modular_operation): Likewise.
5019 2004-03-29 Javier Miranda <miranda@gnat.com>
5021 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
5022 (Install_Null_Excluding_Check): Local subprogram that determines whether
5023 an access node requires a runtime access check and if so inserts the
5024 appropriate run-time check.
5025 (Apply_Access_Check): Call Install_Null_Excluding check if required
5026 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
5028 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
5030 * einfo.ads: Fix typo in comment
5032 * exp_ch3.adb (Build_Assignment): Generate conversion to the
5033 null-excluding type to force the corresponding run-time check.
5034 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
5035 type to force the corresponding run-time check.
5037 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
5038 the null-excluding type to force the corresponding run-time check.
5040 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
5041 case of access types unless they have the null-excluding attribute.
5043 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
5046 * exp_util.ads: Fix typo in comment
5048 * par.adb (P_Null_Exclusion): New subprogram
5049 (P_Subtype_Indication): New formal that indicates if the null-excluding
5050 part has been scanned-out and it was present
5052 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
5054 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
5055 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
5056 type to force the corresponding run-time check
5057 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
5059 (Resolve_Array_Aggregate): Carry out some static checks
5060 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
5062 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
5063 attribute must be set only if specified by means of the null-excluding
5064 part. In addition, we must also propagate the access-constant attribute
5066 (Access_Subprogram_Declaration, Access_Type_Declaration,
5067 Analyze_Component_Declaration, Analyze_Object_Declaration,
5068 Array_Type_Declaration, Process_Discriminants,
5069 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
5070 and carry out some static checks.
5071 (Build_Derived_Access_Type): Set the null-excluding attribute
5072 (Derived_Type_Declaration, Process_Subtype): Carry out some static
5075 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
5077 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
5079 * sem_ch6.adb (Process_Formals): Carry out some static checks.
5080 (Set_Actual_Subtypes): Generate null-excluding subtype if the
5081 null-excluding part was present; it is not required to be done here in
5082 case of anonymous access types.
5083 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
5086 * sem_res.adb (Resolve_Actuals): Carry out some static check
5087 (Resolve_Null): Allow null in anonymous access
5089 * sinfo.adb: New subprogram Null_Exclusion_Present
5090 All_Present and Constant_Present available on access_definition nodes
5092 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
5093 object_declaration, derived_type_definition, component_definition,
5094 discriminant_specification, access_to_object_definition,
5095 access_function_definition, allocator, access_procedure_definition,
5096 access_definition, parameter_specification, All_Present and
5097 Constant_Present flags available on access_definition nodes.
5099 2004-03-29 Robert Dewar <dewar@gnat.com>
5101 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
5102 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
5103 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
5104 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
5105 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
5106 sem_prag.adb: Updates to handle multiple units/file
5108 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
5110 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
5111 sem_util.adb: Minor reformatting
5113 * sem_ch12.adb: Add comment for previous change
5115 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
5117 * osint.adb (Executable_Prefix): Set Exec_Name to the current
5118 executable name when not initialized. Otherwise, use its current value.
5120 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
5121 initialize it to another executable name than the current one. This
5122 allows to configure paths for an executable name (gnatmake) different
5123 from the current one (gnatdist).
5125 2004-03-29 Ed Schonberg <schonberg@gnat.com>
5127 * exp_ch6.adb (Expand_Call): A call to a function declared in the
5128 current unit cannot be inlined if it appears in the body of a withed
5129 unit, to avoid order of elaboration problems in gigi.
5131 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
5132 information for protected (wrapper) operation as well, to simplify gdb
5135 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
5136 protected body, indicate that the entity for the generated spec comes
5137 from source, to ensure that references are properly generated for it.
5138 (Build_Body_To_Inline): Do not inline a function that returns a
5141 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
5142 apply convention to homonyms that are declared explicitly.
5144 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
5145 that renames an equality operator and the operands are overloaded,
5146 resolve them with the declared formal types, before rewriting as an
5149 2004-03-29 GNAT Script <nobody@gnat.com>
5151 * Make-lang.in: Makefile automatically updated
5153 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
5155 * memtrack.adb: Log realloc calls, which are treated as free followed
5158 2004-03-25 Vincent Celier <celier@gnat.com>
5160 * prj-makr.adb (Process_Directories): Detect when a file contains
5161 several units. Do not include such files in the config pragmas or
5162 in the naming scheme.
5164 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
5165 Resolve links only when not in Trusted_Mode.
5166 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
5167 Do not resolve links for the display names.
5169 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
5170 resolve links when computing the display names.
5172 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
5174 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
5175 attribute reference does not denote a subtype, it can be any
5176 expression that has a classwide type, potentially after an implicit
5177 dereference. In particular, the prefix can be a view conversion for
5178 a classwide type (for which Is_Object_Reference holds), but it can
5179 also be a value conversion for an access-to-classwide type. In the
5180 latter case, there is an implicit dereference, and the original node
5181 for the prefix does not verify Is_Object_Reference.
5183 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
5184 conversion of a discriminant-dependent component of a mutable object
5187 2004-03-25 Ed Schonberg <schonberg@gnat.com>
5189 * freeze.adb (Freeze_Entity): When an inherited subprogram is
5190 inherited, has convention C, and has unconstrained array parameters,
5191 place the corresponding warning on the derived type declaration rather
5192 than the original subprogram.
5194 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
5195 indication on renaming declaration, if formal has a box and actual
5198 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
5199 determine whether to generate an implicit or explicit reference to
5202 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
5203 subprogram renaming comes from a defaulted formal subprogram in an
5206 2004-03-25 Gary Dismukes <dismukes@gnat.com>
5208 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
5209 value expressions to ensure that calls within a component definition
5210 will be checked (since those are evaluated during the record type's
5213 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
5215 * s-tpobop.adb: Code clean up:
5216 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
5218 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
5220 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
5222 * Makefile.in: Clean up in the ravenscar run time.
5224 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5226 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
5227 of No_Strict_Aliasing to build_pointer_type_for_mode.
5228 * utils.c (update_pointer_to): Walk pointer and ref chains.
5230 2004-03-22 Cyrille Comar <comar@act-europe.fr>
5232 * ali.ads: Fix Comment about Dynamic_Elab.
5234 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
5235 Has_RACW, Is_Generic, etc.)
5236 (Output_Object, Gnatls): Take into account ALI files not attached to
5239 2004-03-22 Vincent Celier <celier@gnat.com>
5241 * gprep.adb: Change all String_Access to Name_Id
5242 (Is_ASCII_Letter): new function
5243 (Double_File_Name_Buffer): New procedure
5244 (Preprocess_Infile_Name): New procedure
5245 (Process_Files): New procedure
5246 (Gnatprep): Check if output and input are existing directories.
5247 Call Process_Files to do the real job.
5249 2004-03-22 Robert Dewar <dewar@gnat.com>
5251 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
5252 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
5254 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
5256 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
5257 case when the source contains only comments.
5259 2004-03-22 Ed Schonberg <schonberg@gnat.com>
5261 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
5262 declaration for a child subprogram body that acts as a spec, indicate
5263 that the entity in the declaration needs debugging information.
5265 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
5266 full view if the subtype is created for a constrained record component;
5267 gigi has enough information to construct the record, and there is no
5268 place in the tree for the declaration.
5270 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
5271 serial number for the dummy body that is built for analysis, to avoid
5272 inconsistencies in the generation of internal names when compiling
5275 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
5277 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
5280 2004-03-22 GNAT Script <nobody@gnat.com>
5282 * Make-lang.in: Makefile automatically updated
5284 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5286 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
5287 * trans.c (tree_transform, emit_index_check): Likewise.
5288 * utils.c (build_template): Likewise.
5289 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
5290 (maybe_unconstrained_array, unchecked_convert): Likewise.
5291 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
5292 (build_unary_op): Likewise.
5293 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
5294 (fill_vms_descriptor): Likewise.
5295 (build_call_alloc_dealloc): Likewise.
5297 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
5299 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
5302 * gnat_ug.texi: Add info directory category and entry.
5303 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
5304 gnat_ug_wnt.texi: Regenerate.
5306 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
5308 * ada-tree.h: Update copyright notice.
5311 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
5313 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
5314 as regular exception objects and not as mere integers representing the
5315 condition code. The latter approach required some dynamics to mask off
5316 severity bits, which did not fit well into the GCC table based model.
5317 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
5318 exception data objects. We don't it and it would conflict with the other
5319 external symbol we have to generate for such exceptions.
5321 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
5322 the special code for VMS exceptions, since these are now represented
5323 as regular exceptions objects.
5325 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5327 * decl.c (debug_no_type_hash): Remove.
5328 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
5329 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
5331 2004-03-19 Laurent Guerby <laurent@guerby.net>
5333 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
5334 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
5336 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5338 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
5339 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
5340 (TYPE_RM_SIZE_INT): Directly use type.values.
5341 (TREE_LOOP_ID): Clean up check.
5342 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
5343 TYPE_VALUES, not TYPE_FIELDS.
5344 * trans.c (convert_with_check): Delay access of bounds of basetype
5345 until sure is numeric.
5347 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
5349 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
5352 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
5353 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
5354 Specific.Set instead of direct call to e.g pthread_setspecific.
5356 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
5358 * adaint.c: Update comments.
5360 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
5361 GNATLIB_SHARED for FreeBSD.
5363 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
5365 * init.c [VxWorks]: Do not fix the stack size for the environment task.
5366 When needed (stack checking) the stack size is retrieved
5367 from the VxWorks kernel.
5369 * Makefile.in: Flag -nostdinc is required when building the run time
5370 for avoiding looking for files in the base compiler.
5371 Add the VxWorks specific version of the package body for
5372 System.Stack_checking.Operations (5zstchop.adb).
5374 * Make-lang.in: Add the object file for
5375 System.Stack_Checking.Operations.
5377 * Makefile.rtl: Add object file for the package
5378 System.Stack_Checking.Operations.
5380 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
5382 * s-stache.ads, s-stache.adb: Move the operations related to stack
5383 checking from this package to package System.Stack_Checking.Operations.
5384 This way, stack checking operations are only linked in the final
5385 executable when using the -fstack-check flag.
5387 2004-03-18 Doug Rupp <rupp@gnat.com>
5389 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
5392 * 5qsystem.ads, 5xcrtl.ads: New files.
5394 2004-03-18 Vincent Celier <celier@gnat.com>
5396 * prj.adb (Reset): Reset hash table Files_Htable
5398 * prj-env.adb (Source_Paths, Object_Paths): New tables.
5399 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
5400 the procedures Add_To_Path_File.
5401 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
5402 making sure that each directory is present only once and, for object
5403 dirs, when a directory already present is added, the duplicate is
5404 removed and the directory is always put as the last in the table.
5405 Write the path files at the end of these accumulations.
5407 * prj-nmsc.adb (Record_Source): Add source file name in hash table
5408 Files_Htable for all sources.
5410 * prj-proc.adb (Process): Remove restrictions between not directly
5411 related extending projects.
5413 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
5415 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
5416 (Find_Sources): Minor speed optimization.
5418 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
5419 parameter Trusted_Mode.
5421 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
5423 * scn.adb (Determine_License): Take into account a degenerated case
5424 when the source contains only comments.
5426 2004-03-18 Ed Schonberg <schonberg@gnat.com>
5428 * sem_warn.adb (Check_References): For a warning on a selected
5429 component that does not come from source, locate an uninitialized
5430 component of the record type to produce a more precise error message.
5432 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
5434 * 3zsoccon.ads: Fix multicast options.
5436 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
5439 2004-03-15 Robert Dewar <dewar@gnat.com>
5441 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
5442 pragma used for a private type.
5444 * lib-xref.adb (Generate_Reference): Do not generate warning if
5445 reference is in a different unit from the pragma Unreferenced.
5447 * 5vtpopde.adb: Minor reformatting
5448 Fix casing of To_Task_ID
5450 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
5451 flag if we have an unchecked conversion to an access type in the same
5454 2004-03-15 Geert Bosch <bosch@gnat.com>
5456 * a-ngcoty.adb (Modulus): In alternate formula for large real or
5457 imaginary parts, use Double precision throughout.
5459 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
5460 we want to be able to compile run-time with -gnata for testing, but
5461 this may also be instantiated in user code that is compiled with -gnata.
5463 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
5465 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
5466 codes. Having a separate type for this is useful to enforce consistency
5467 throughout the various run-time units.
5468 (Exception_Data): Use Exception_Code for Import_Code.
5470 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
5471 Natural and Integer in various places.
5472 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
5473 with the severity bits masked off.
5474 (Register_VMS_Exception): Handle the additional exception data pointer
5477 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
5478 component, now reflected by an exported accessor.
5479 (is_handled_by): New routine to compute whether the propagated
5480 occurrence matches some handler choice specification. Extracted out of
5481 get_action_description_for, and expanded to take care of the VMS
5483 (get_action_description_for): Use is_handled_by instead of an explicit
5484 complex condition to decide if the current choice at hand catches the
5485 propagated occurrence.
5487 * raise.h (Exception_Code): New type for C.
5489 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
5490 System.Standard_Library.Exception_Code, to allow references from the
5491 pragma import/export expander.
5493 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
5494 New accessors to allow easy access to GNAT exception data
5496 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
5497 redundant Handled_By_Others component, helper for the personality
5498 routine which will now be able to call the appropriate exception data
5501 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
5502 component of Standard_Exception_Type to be the closest possible to
5503 Exception_Code in System.Standard_Library, that we cannot get at this
5504 point. Expand a ??? comment to notify that this type node should
5505 probably be rewritten later on.
5507 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
5508 registration call to include a pointer to the exception object in the
5511 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
5512 instead of int and explicit bitmasks.
5514 2004-03-15 Vincent Celier <celier@gnat.com>
5516 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
5517 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
5519 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
5520 longer needed now that it is in the spec of
5521 System.Tasking.Task_Attributes.
5523 * adaint.h, adaint.c: (__gnat_create_output_file): New function
5525 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
5527 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
5529 * make.adb (Gnatmake): Do not check the executable suffix; it is being
5530 taken care of in Scan_Make_Arg.
5531 (Scan_Make_Arg): Add the executable suffix only if the argument
5532 following -o, in canonical case, does not end with the executable
5533 suffix. When in verbose mode and executable file name does not end
5534 with executable suffix, output the executable name, in canonical case.
5536 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
5537 to avoid warnings when instantiating Ada.Task_Attributes.
5540 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
5541 in the correct order.
5543 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
5544 redirect standard output and error to a file for the invocation of the
5545 compiler, then read the file.
5547 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
5548 directory, instead of the Value.
5549 (Find_Source_Dirs): Remove useless code & comments.
5551 2004-03-15 Ed Schonberg <schonberg@gnat.com>
5553 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
5554 tagged type is inherited, and the parent operation is not frozen yet,
5555 force generation of a freeze node for the inherited operation, so the
5556 corresponding dispatch entry is properly initialized.
5557 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
5558 when looking for user-defined equality operation.
5560 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
5561 boolean when locating primitive equality of tagged component.
5563 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
5564 bit-aligned field and the right-hand side a string literal, introduce
5565 a temporary before expanding assignment into a loop.
5567 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
5568 priority in full, to ensure that any expanded subepxressions of it are
5569 elaborated in the scope of the init_proc.
5571 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
5572 after object declaration, skipping over code that may have been
5573 generated for validity checks.
5575 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
5576 discriminants, ignore the known discriminants of its full view, if
5577 any, to check legality.
5579 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
5580 component if type has unknown discriminants.
5581 (Analyze_Private_Extension_Declaration): Discriminant constraint is
5582 null if type has unknown discriminants.
5584 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
5585 for end label when present.
5587 * s-fileio.adb (Open): When called with a C_Stream, use given name for
5588 temporary file, rather than an empty string.
5590 2004-03-15 Ed Falis <falis@gnat.com>
5592 * s-thread.adb: Removed, no longer used.
5594 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5596 * decl.c (target.h): Now include.
5597 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
5598 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
5599 (validate_size): For POINTER_TYPE, get smallest size permitted on
5602 * fe.h: Sort Einfo decls and add Set_Mechanism.
5604 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
5605 (ada/decl.o): Depends on target.h.
5607 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
5608 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
5610 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
5612 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
5614 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
5615 Insert_Dereference_Action when rewriting an implicit dereference into
5616 an explicit one, this will be taken care of during expansion of the
5617 explicit dereference.
5618 (Expand_N_Slice): Same. Always do the rewriting, even for the case
5619 of non-packed slices, since the dereference action generated by
5620 expansion of the explicit dereference is needed in any case.
5621 (Expand_N_Selected_Component): When rewriting an implicit dereference,
5622 analyze and resolve the rewritten explicit dereference so it is seen
5624 (Insert_Dereference_Action): This procedure is now called only for the
5625 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
5626 dereferences that do not come from source (including explicit
5627 dereferences resulting from rewriting implicit ones), but do not
5628 recursively insert a check for the dereference nodes contained within
5630 (Insert_Dereference_Action): Clarify and correct comment.
5632 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
5635 Move language detection to the top level.
5636 * config-lang.in: Build by default.
5638 2004-03-05 Robert Dewar <dewar@gnat.com>
5640 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
5642 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
5643 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
5644 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
5645 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
5646 unchecked conversion to spec to avoid warnings.
5648 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
5651 * 7stpopsp.adb: Correct casing in To_Task_ID call
5653 * a-strsea.ads, a-strsea.adb: Minor reformatting
5655 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
5657 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
5658 Adjust Max_Msg_Length to be clearly large enough.
5660 * fe.h: Define In_Same_Source_Unit
5662 * osint.adb: Add pragma Warnings Off to suppress warnings
5663 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
5666 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
5668 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
5670 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
5672 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
5674 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
5676 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
5677 node. We now do generate them for gcc back end.
5679 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
5682 * sinput-c.adb: Fix bad name in header.
5683 Add pragma Warnings Off to suppress aliasing warning.
5685 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
5687 * snames.h, snames.ads, snames.adb: Add entry for pragma
5690 2004-03-05 Vincent Celier <celier@gnat.com>
5692 * prj-com.ads: Add hash table Files_Htable to check when a file name
5693 is already a source of another project.
5695 * prj-nmsc.adb (Record_Source): Before recording a new source, check
5696 if its file name is not already a source of another project. Report an
5699 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
5700 source file name, call gnatpp with all the sources of the main project.
5702 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
5705 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
5706 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
5707 /RUNTIME_SYSTEM=, converted to --RTS=
5708 /NOTABS, converted to -notabs
5710 2004-03-05 Pascal Obry <obry@gnat.com>
5712 * make.adb: Minor reformatting.
5714 2004-03-05 Ed Schonberg <schonberg@gnat.com>
5716 Part of implemention of AI-262.
5717 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
5719 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
5722 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
5723 when component type is a partially constrained class-wide subtype.
5724 (Constrain_Discriminated_Type): If parent type has unknown
5725 discriminants, a constraint is illegal, even if full view has
5727 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
5728 with unknown discriminants whose full view is a discriminated record.
5730 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
5731 flag, to handle properly derivations of tagged types with unknown
5733 (Analyze_Package_Spec, Analyze_Package_Body): Install
5734 Private_With_Clauses before analyzing private part or body.
5736 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
5737 Has_Discriminants can be true for a given type (documentation).
5739 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
5741 * s-restri.ads: Fix license (GPL->GMGPL).
5743 * s-tassta.adb: Minor reformatting.
5745 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
5746 by calls to Exit_One_ATC_Level, since additional clean up is performed
5749 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
5750 by calls to Exit_One_ATC_Level, since additional clean up is performed
5753 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5755 * trans.c: Reflect GCC changes to fix bootstrap problem.
5756 Add warning for suspicious aliasing unchecked conversion.
5758 2004-03-05 GNAT Script <nobody@gnat.com>
5760 * Make-lang.in: Makefile automatically updated
5762 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
5764 * ali.adb (Read_Instantiation_Instance): Do not modify the
5765 current_file_num when reading information about instantiations, since
5766 this corrupts files in later references.
5768 2004-03-02 Vincent Celier <celier@gnat.com>
5770 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
5771 before checking if it is read-only.
5773 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
5774 of SRC_DIRS and eliminate duplicates.
5776 * gprcmd.adb: Replace command "path" with command "path_sep" to return
5778 (Usage): Document path_sep
5780 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
5781 C++ compiler. No need for a script.
5782 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
5783 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
5786 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
5787 where there are Ada sources.
5788 (Set_Ada_Paths): Only add to the include path the source dirs of project
5790 (Add_To_Path): Add the Display_Values of the directories, not their
5793 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
5796 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
5798 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
5799 Value is canonicalized.
5800 (Language_Independent_Check): Do not copy Value to Display_Value when
5801 canonicalizing Value.
5803 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
5804 path to find limited with cycles.
5805 (Parse_Single_Project): Use canonical cased path to find the end of a
5808 2004-03-02 Ed Schonberg <schonberg@gnat.com>
5810 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
5811 and not a child unit.
5813 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
5814 appear in a with_clause.
5816 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
5817 only happen in type_annotate mode, do not try to elaborate it.
5819 * exp_util.adb (Force_Evaluation): If expression is a selected
5820 component on the left of an assignment, use a renaming rather than a
5821 temporary to remove side effects.
5823 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
5824 inlined instance body, which is analyzed before the end of the
5827 2004-03-02 Robert Dewar <dewar@gnat.com>
5829 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
5830 sem_ch4.adb: Use new feature for substitution of keywords in VMS
5832 * errout.ads, errout.adb: Implement new circuit for substitution of
5835 * sem_case.adb (Analyze_Choices): Place message properly when case is
5836 a subtype reference rather than an explicit range.
5838 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
5840 2004-03-02 Doug Rupp <rupp@gnat.com>
5842 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
5844 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
5846 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
5848 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5850 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
5853 2004-02-25 Robert Dewar <dewar@gnat.com>
5855 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
5856 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
5857 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
5858 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
5859 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
5860 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
5861 the defining instance of the type to avoid aliasing problems.
5862 Fix copyright header. Fix bad comments in package header.
5864 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
5866 2004-02-25 Ed Schonberg <schonberg@gnat.com>
5868 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
5869 rewritten as references when aliased through an address clause.
5871 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
5872 whether call can be interpreted as an indirect call to the result of a
5873 parameterless function call returning an access subprogram.
5875 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
5878 * exp_ch7.adb (Make_Clean): Remove generation of calls to
5879 Unlock[_Entries], since this is now done by Service_Entries directly.
5881 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
5883 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
5884 Requeue_Call for better code readability. Change spec and update calls:
5885 PO_Service_Entries now unlock the PO on exit.
5886 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
5889 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
5891 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
5893 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
5895 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
5896 protected subprogram call and analyzing the result of such expanding
5897 in case when the called protected subprogram is eliminated.
5899 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
5902 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
5904 * Makefile.in: Clean ups.
5906 2004-02-23 Ed Schonberg <schonberg@gnat.com>
5908 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
5909 protected operations if original subprogram is flagged as eliminated.
5910 (Expand_N_Subprogram_Body): For a protected operation, create
5911 discriminals for next operation before checking whether the operation
5914 * exp_ch9.adb (Expand_N_Protected_Body,
5915 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
5916 for internal protected operations if the original subprogram is
5919 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
5920 declared in a single protected object.
5922 2004-02-23 Vincent Celier <celier@gnat.com>
5924 * prj-attr.adb: Make attribute Builder'Executable an associative array,
5925 case insensitive if file names are case insensitive, instead of a
5926 standard associative array.
5928 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
5929 them as case insensitive on platforms where the file names are case
5932 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
5933 project file has already been parsed that canonical path are compared.
5935 2004-02-23 Robert Dewar <dewar@gnat.com>
5937 * sinput-c.ads: Correct bad unit title in header
5939 * freeze.adb: Minor reformatting
5941 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5943 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
5944 nonaddressable COMPONENT_REF that is removing padding that we are
5945 taking the address of, take the address of the padded record instead
5946 if item is variable size.
5948 2004-02-20 Robert Dewar <dewar@gnat.com>
5950 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
5952 2004-02-20 Ed Schonberg <schonberg@gnat.com>
5954 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
5955 itype references for the constrained designated type of a component
5956 whose base type is already frozen.
5958 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
5960 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
5963 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
5965 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
5966 identifier for a phantom package that rewrites the formal package
5967 declaration with a box. The Add semantic decorations for the defining
5968 identifier from the original node (that represents the formal package).
5970 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
5972 * Make-lang.in (ada/stamp-sdefault): Use the top level
5975 2004-02-19 Richard Henderson <rth@redhat.com>
5977 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
5979 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
5981 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
5982 Scan_ALI can be used for multiple ALI files without reinitializing
5985 2004-02-18 Robert Dewar <dewar@gnat.com>
5987 * debug.adb: Minor reformatting.
5989 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5991 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
5992 to zero if there is an address clause.
5994 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
5996 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
5998 2004-02-18 Gary Dismukes <dismukes@gnat.com>
6000 * layout.adb (Layout_Component_List): Revise generation of call to
6001 discriminant-checking function to pass selections of all of the type's
6002 discriminants rather than just the variant-controlling discriminant.
6004 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
6006 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
6007 fail in the current setup and triggers spurious system error messages.
6008 Pretend it occurred and failed instead.
6010 2004-02-18 Vincent Celier <celier@gnat.com>
6012 * bld.adb: Mark FLDFLAGS as saved
6013 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
6014 it is not the root project. Put each directory to be
6015 extended between double quotes to prevent it to be expanded on Windows.
6016 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
6017 the project file. Set them back to their initial values if they have not
6018 been set in the project file.
6020 * gprcmd.adb: (Gprdebug, Debug): New global variables
6021 (Display_Command): New procedure
6022 (Usage): Document new command "linkopts"
6023 Call Display_Command when env var GPRDEBUG has the value "TRUE"
6024 Implement new command "linkopts"
6025 Remove quotes that may be around arguments for "extend"
6026 Always call Normalize_Pathname with arguments formatted for the platform
6028 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
6029 Change @echo to @$(display) in target clean to be able to clean silently
6031 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
6033 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
6036 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
6037 = Extending_All when current project is an extending all project.
6039 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
6040 set to True only for LINK command, after Unix switch -o.
6041 (Process_Arguments): Set Output_File_Expected to True for LINK command
6042 after Unix switch -o. When Output_File_Expected is True, never add an
6043 extension to a file name.
6045 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
6046 option file name, only to the --for-linker= switch.
6047 (Option_File_Name): If option file name do not end with ".opt", append
6050 2004-02-18 GNAT Script <nobody@gnat.com>
6052 * Make-lang.in: Makefile automatically updated
6054 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
6056 * Make-lang.in (stamp-sdefault): Do not depend on
6059 2004-02-12 Zack Weinberg <zack@codesourcery.com>
6061 * config-lang.in: Disable Ada by default until probe logic for
6062 a bootstrap Ada compiler can be moved to the top level configure
6065 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
6067 * decl.c (components_to_record): Don't claim that the internal fields
6068 we make to hold the variant parts are semantically addressable, because
6071 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
6072 adjust the comment describing the modular type form when we can use it.
6073 (Install_PAT): Account for the Esiz renaming.
6075 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
6076 sc_onstack context indication before raising the exception to which
6077 the signal is mapped. Allows better handling of later signals possibly
6078 triggered by the resumed user code if the exception is handled.
6080 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
6082 * 5zinit.adb: Removed, no longer used.
6084 2004-02-12 Robert Dewar <dewar@gnat.com>
6086 * ali.adb: Remove separating space between parameters on R line. Makes
6087 format consistent with format used by the binder for Set_Globals call.
6089 * atree.ads, atree.adb: Minor reformatting (new function header format)
6091 * bindgen.adb: Add Run-Time Globals documentation section containing
6092 detailed documentation of the globals passed from the binder file to
6095 * gnatls.adb: Minor reformatting
6097 * init.c (__gnat_set_globals): Add note pointing to documentation in
6100 * lib-writ.ads, lib-writ.adb: Remove separating space between
6101 parameters on R line.
6102 Makes format consistent with format used by the binder for Set_Globals
6105 * osint.ads: Add 2004 to copyright notice
6108 * snames.ads: Correct capitalization of FIFO_Within_Priorities
6109 Noticed during code reading, documentation issue only
6111 * usage.adb: Remove junk line for obsolete C switch
6112 Noticed during code reading
6114 2004-02-12 Vincent Celier <celier@gnat.com>
6116 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
6117 extend for each directory, so that multiple /** directories are
6118 extended individually.
6119 (Recursive_Process): Set the default for LANGUAGES to ada
6121 * gprcmd.adb: Define new command "ignore", to do nothing.
6122 Implement new comment "path".
6124 * Makefile.generic: Suppress output when SILENT is set
6125 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
6126 used, so that the correct compiler is invoked.
6127 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
6128 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
6130 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
6132 * Makefile.in: Clean ups and remove obsolete targets.
6134 2004-02-12 Ed Schonberg <schonberg@gnat.com>
6136 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
6137 predicate declared in exp_util.
6139 * exp_util.adb: Add comments.
6141 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
6142 visibility before compiling context of the subunit.
6144 * sem_res.adb (Check_Parameterless_Call): If the context expects a
6145 value but the name is a procedure, do not attempt to analyze as a call,
6146 in order to obtain more telling diagnostics.
6148 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
6149 'Access on parameterless function calls.
6150 (Normalize_Actuals): For a parameterless function call with missing
6151 actuals, defer diagnostic until resolution of enclosing call.
6153 * sem_util.adb (Wrong_Type): If the context type is an access to
6154 subprogram and the expression is a procedure name, suggest a missing
6157 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
6158 Nathanael Nerode <neroden@gcc.gnu.org>
6160 PR ada/6637, PR ada/5911
6161 Merge with libada-branch:
6162 * config-lang.in: Build libada only when ada is built.
6164 2004-02-09 Ed Schonberg <schonberg@gnat.com>
6166 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
6167 for a tagged type, verify that both formals have the same type.
6169 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
6170 temporary when the formal is an in-parameter and the actual a possibly
6173 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
6174 when expansion is disabled, to ensure proper name capture with
6175 overloaded literals. Condition can be of any boolean type, resolve
6178 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
6179 renaming is for a formal subprogram with a default operator name, and
6180 there is a usable operator that is visible at the point of
6183 2004-02-09 Robert Dewar <dewar@gnat.com>
6185 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
6186 rewrite to ignore errors in ali files, intended to allow tools downward
6187 compatibility with new versions of ali files.
6189 * ali.ads: Add new parameter Ignore_Errors
6191 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
6192 duplicating the error message giving the file with restrictions.
6194 * debug.adb: Add debug flag I for gnatbind
6196 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
6197 operators for the case where the operator is a defining operator.
6199 * exp_ch3.adb: Minor reformatting (new function spec format).
6201 * exp_ch4.adb: Add comment for previous change, and make minor
6202 adjustment to loop to always check for improper loop termination.
6203 Minor reformatting throughout (new function spec format).
6205 * gnatbind.adb: Implement -di debug flag for gnatbind
6207 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
6209 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
6211 * lib-load.adb: Fix bad assertion.
6212 Found by testing and code reading.
6215 * lib-load.ads: Minor reformatting.
6217 * lib-writ.adb: There is only one R line now.
6219 * lib-writ.ads: Add documentation on making downward compatible changes
6220 to ali files so old tools work with new ali files.
6221 There is only one R line now.
6222 Add documentation on format incompatibilities (with special GPS note)
6224 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
6226 * par-load.adb: Minor reformatting
6228 * sem_ch8.adb: Fix to error message from last update
6229 Minor reformatting and restructuring of code from last update
6231 * par-prag.adb, snames.adb, snames.ads, snames.h,
6232 sem_prag.adb: Implement pragma Profile.
6234 * stylesw.adb: Implement -gnatyN switch to turn off all style check
6237 * usage.adb: Add line for -gnatyN switch
6239 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
6241 2004-02-09 Albert Lee <lee@gnat.com>
6243 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
6245 2004-02-09 Ed Schonberg <schonberg@gnat.com>
6247 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
6250 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
6251 is nested in an instance that is not frozen yet, to avoid
6252 order-of-elaboration problems in gigi.
6254 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
6255 body the attribute is legal.
6257 2004-02-09 Robert Dewar <dewar@gnat.com>
6259 * s-rident.ads: Minor comment correction
6261 * targparm.adb: Remove dependence on uintp completely. There was
6262 always a bug in Make in that it called Targparm before initializing
6263 the Uint package. The old code appeared to get away with this, but
6264 the new code did not! This caused an assertion error in gnatmake.
6266 * targparm.ads: Fix bad comment, restriction pragmas with parameters
6267 are indeed fully supported.
6269 2004-02-06 Alan Modra <amodra@bigpond.net.au>
6271 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
6273 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
6275 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
6276 with targetm.calls.promote_prototypes.
6278 2004-02-04 Robert Dewar <dewar@gnat.com>
6280 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
6281 ali.ads, gprcmd.adb: Minor reformatting
6283 * bindgen.adb: Output restrictions string for new style restrictions
6286 * impunit.adb: Add s-rident.ads (System.Rident) and
6287 s-restri (System.Restrictions)
6289 * lib-writ.adb: Fix bug in writing restrictions string (last few
6292 * s-restri.ads, s-restri.adb: Change name Restrictions to
6293 Run_Time_Restrictions to avoid conflict with package name.
6294 Add circuit to read and acquire run time restrictions.
6296 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
6298 * restrict.ads, restrict.adb: Use the new restriction
6299 No_Task_Attributes_Package instead of the old No_Task_Attributes.
6301 * sem_prag.adb: No_Task_Attributes is a synonym of
6302 No_Task_Attributes_Package.
6304 * snames.ads, snames.adb: New entry for proper handling of
6307 * s-rident.ads: Adding restriction No_Task_Attributes_Package
6308 (AI-00249) that supersedes the GNAT specific restriction
6311 2004-02-04 Ed Schonberg <schonberg@gnat.com>
6314 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
6315 body, an identifier may be wrapped in an unchecked conversion.
6317 2004-02-04 Vincent Celier <celier@gnat.com>
6319 * lib-writ.ads: Comment update for the W lines
6321 * bld.adb: (Expression): An empty string list is static
6323 * fname-uf.adb: Minor comment update
6325 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
6327 * gnatbind.adb: Initialize Cumulative_Restrictions with the
6328 restrictions on the target.
6330 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
6332 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
6335 2004-02-02 Arnaud Charlet <charlet@gnat.com>
6337 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
6339 2004-02-02 Vincent Celier <celier@gnat.com>
6341 * gprcmd.adb (Check_Args): If condition is false, print the invoked
6342 comment before the usage.
6343 Gprcmd: Fail when command is not recognized.
6344 (Usage): Document command "prefix"
6346 * g-md5.adb (Digest): Process last block.
6347 (Update): Do not process last block. Store remaining characters and
6350 * g-md5.ads (Update): Document that several call to update are
6351 equivalent to one call with the concatenated string.
6352 (Context): Add fields to allow new Update behaviour.
6354 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
6356 When May_Fail is True and no existing file can be found, return No_File.
6358 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
6361 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
6362 spec file name instead on the W line.
6364 2004-02-02 Robert Dewar <dewar@gnat.com>
6366 * ali.adb: Read and acquire info from new format restrictions lines
6368 * bcheck.adb: Add circuits for checking restrictions with parameters
6370 * bindgen.adb: Output dummy restrictions data
6373 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
6374 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
6375 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
6376 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
6377 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
6379 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
6380 the warning message on access to possibly uninitialized variable S)
6381 Minor changes for new restrictions handling.
6383 * gnatbind.adb: Minor reformatting
6384 Minor changes for new restrictions handling
6385 Move circuit for -r processing here from bcheck (cleaner)
6387 * gnatcmd.adb, gnatlink.adb: Minor reformatting
6389 * lib-writ.adb: Output new format restrictions lines
6391 * lib-writ.ads: Document new R format lines for new restrictions
6394 * s-restri.ads/adb: New files
6396 * Makefile.rtl: Add entry for s-restri.ads/adb
6398 * par-ch3.adb: Fix bad error messages starting with upper case letter
6401 * restrict.adb: Major rewrite throughout for new restrictions handling
6402 Major point is to handle restrictions with parameters
6404 * restrict.ads: Major changes in interface to handle restrictions with
6405 parameters. Also generally simplifies setting of restrictions.
6407 * snames.ads/adb: New entry for proper handling of No_Requeue
6409 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
6410 restriction counting.
6411 Other minor changes for new restrictions handling
6413 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
6414 Restriction_Warnings now allows full parameter notation
6415 Major rewrite of Restrictions for new restrictions handling
6417 2004-02-02 Javier Miranda <miranda@gnat.com>
6419 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
6420 syntax rule for object renaming declarations.
6421 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
6422 component definitions.
6424 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
6426 (Array_Type_Declaration): Give support to access components. In addition
6427 it was also modified to reflect the name of the object in anonymous
6428 array types. The old code did not take into account that it is possible
6429 to have an unconstrained anonymous array with an initial value.
6430 (Check_Or_Process_Discriminants): Allow access discriminant in
6432 (Process_Discriminants): Allow access discriminant in non-limited types
6433 Initialize the new Access_Definition field in N_Object_Renaming_Decl
6434 node. Change Ada0Y to Ada 0Y in comments
6436 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
6438 Change Ada0Y to Ada 0Y in comments
6440 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
6441 renamings Change Ada0Y to Ada 0Y in comments
6443 * sem_type.adb (Find_Unique_Type): Give support to the equality
6444 operators for universal access types
6445 Change Ada0Y to Ada 0Y in comments
6447 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
6449 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
6451 (N_Object_Renaming_Declaration): Addition of Access_Definition field
6452 Change Ada0Y to Ada 0Y in comments
6454 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
6455 component definition and object renaming nodes
6456 Change Ada0Y to Ada 0Y in comments
6458 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
6460 * restrict.adb: Use the new restriction identifier
6461 No_Requeue_Statements instead of the old No_Requeue for defining the
6464 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
6465 No_Requeue_Statements.
6467 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
6468 that supersedes the GNAT specific restriction No_Requeue. The later is
6469 kept for backward compatibility.
6471 2004-02-02 Ed Schonberg <schonberg@gnat.com>
6473 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
6474 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
6475 pragma and fix incorrect ones.
6477 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
6478 warning if the pragma is redundant.
6480 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
6482 * 5staprop.adb: Add missing 'constant' keywords.
6484 * Makefile.in: use consistent value for SYMLIB on
6485 platforms where libaddr2line is supported.
6487 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6489 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
6492 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
6494 * init.c (__gnat_install_handler): Setup an alternate stack for signal
6495 handlers in the environment thread. This allows proper propagation of
6496 an exception on stack overflows in this thread even when the builtin
6497 ABI stack-checking scheme is used without support for a stack reserve
6500 * utils.c (create_field_decl): Augment the head comment about bitfield
6501 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
6502 here, because the former is not accurate enough at this point.
6503 Let finish_record_type decide instead.
6504 Don't make a bitfield if the field is to be addressable.
6505 Always set a size for the field if the record is packed, to ensure the
6506 checks for bitfield creation are triggered.
6507 (finish_record_type): During last pass over the fields, clear
6508 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
6509 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
6510 from DECL_BIT_FIELD.
6512 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
6514 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
6515 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
6516 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
6518 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6520 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
6522 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
6523 (ZCX_By_Default): Likewise.
6524 (Front_End_ZCX_Support): Likewise.
6526 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
6527 (Initialize_Lock): Mark Level unreferenced.
6528 (Sleep): Mark Reason unreferenced.
6529 (Timed_Sleep): Likewise.
6531 (Exit_Task): Use Result.
6532 (Check_No_Locks): Mark Self_ID unreferenced.
6534 * 5gtasinf.adb (New_Sproc): Make Attr constant.
6535 (Bound_Thread_Attributes): Make Sproc constant.
6536 (New_Bound_Thread_Attributes): Likewise.
6538 2004-01-26 Ed Schonberg <schonberg@gnat.com>
6540 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
6541 one-dimensional array an slice assignments, when component type is
6544 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
6545 component type is controlled, and control_actions are in effect, use
6546 TSS procedure rather than generating inline code.
6548 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
6549 arrays with controlled components.
6551 2004-01-26 Vincent Celier <celier@gnat.com>
6553 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
6554 command line for the non VMS case.
6556 * gnatlink.adb (Process_Binder_File): When building object file, if
6557 GNU linker is used, put all object paths between quotes, to prevent ld
6558 error when there are unusual characters (such as '!') in the paths.
6560 * Makefile.generic: When there are sources in Ada and the main is in
6561 C/C++, invoke gnatmake with -B, instead of -z.
6563 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
6564 from VMS_Conversion.
6565 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
6566 specification of argument file on the command line.
6568 2004-01-26 Bernard Banner <banner@gnat.com>
6570 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
6572 2004-01-26 Ed Schonberg <schonberg@gnat.com>
6574 * snames.adb: Update copyright notice.
6575 Add info on slice assignment for controlled arrays.
6577 2004-01-23 Robert Dewar <dewar@gnat.com>
6579 * exp_aggr.adb: Minor reformatting
6581 * exp_ch9.adb: Minor code clean up
6583 Fix bad character in comment
6586 * targparm.adb (Get_Target_Parameters): Give clean abort error on
6587 unexpected end of file, along with more detailed message.
6589 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6591 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
6594 * decl.c (copy_alias_set): New function.
6595 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
6597 2004-01-23 Doug Rupp <rupp@gnat.com>
6599 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
6600 lib$${file} in case subsequent character is not a separator.
6602 2004-01-23 Vincent Celier <celier@gnat.com>
6604 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
6605 when the GCC version is at least 3.
6607 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
6608 Remove all "Opt.", to prepare for opt split
6610 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
6611 Extends_All. Set to True when the project parsed is an extending all
6612 project. Fails for importing an extending all project only when the
6613 imported project is an extending all project.
6614 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
6615 depending on the value of Extends_All returned.
6617 * prj-proc.adb (Process): Check that no project shares its object
6618 directory with a project that extends it, directly or indirectly,
6619 including a virtual project.
6620 Check that no project extended by another project shares its object
6621 directory with another also extended project.
6623 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
6624 Kind = N_With_Clause
6626 * prj-tree.ads: Minor reformatting
6627 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
6629 2004-01-23 Ed Schonberg <schonberg@gnat.com>
6631 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
6632 applies to a type with an incomplete view, use full view in Name of
6633 clause, for consistency with uses of Get_Attribute_Definition_Clause.
6635 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
6637 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
6638 SCHED_RR, since other values are not supported by this policy.
6639 (Initialize): Move initialization of mutex attribute to package
6640 elaboration, to prevent early access to this variable.
6642 * Makefile.in: Remove mention of Makefile.adalib, unused.
6644 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
6645 1ssecsta.ads: Removed, unused.
6647 2004-01-21 Javier Miranda <miranda@gnat.com>
6649 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
6650 entity if already built in the current scope.
6652 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
6653 reminder in internal scopes. Required for nested limited aggregates.
6655 2004-01-21 Doug Rupp <rupp@gnat.com>
6657 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
6658 VMS. Replace all occurences of libgnat- and libgnarl- with
6659 libgnat$(hyphen) and libgnarl$(hyphen).
6660 Fixed shared library build problem on VMS.
6662 2004-01-21 Robert Dewar <dewar@gnat.com>
6664 * mlib-prj.adb: Minor reformatting
6666 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
6668 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
6669 'constant' keywords for declaration of pointers that are not modified.
6671 * exp_pakd.adb: Fix English in comment.
6673 2004-01-21 Ed Schonberg <schonberg@gnat.com>
6676 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
6677 copy all attributes of the parent, including the foreign language
6680 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
6683 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
6684 for 'delay until' statement.
6686 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
6688 * Make-lang.in: Replace $(docdir) with doc.
6689 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
6690 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
6691 to use consistent MAKEINFO rule.
6692 (ada.man, ada.srcman): Dummy entry.
6693 (ADA_INFOFILES): Define.
6694 (ada.info, ada.srcinfo): New rules.
6696 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
6698 * utils.c: Update copyright notice, missed in previous change.
6700 2004-01-19 Vincent Celier <celier@gnat.com>
6702 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
6703 args if Bind is True. Set First_ALI, if not already done.
6704 (Build_Library): For Stand Alone Libraries, extract from one ALI file
6705 an eventual --RTS switch, for gnatbind, and all backend switches +
6708 2004-01-19 Robert Dewar <dewar@gnat.com>
6710 * sem_attr.adb, memtrack.adb: Minor reformatting
6712 2004-01-19 Ed Schonberg <schonberg@gnat.com>
6714 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
6715 that rename enumeration literals. This is properly done in sem_eval.
6717 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
6718 to functions that rename enumeration literals.
6720 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
6721 functions that rename enumeration literals.
6723 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
6725 * Make-lang.in (utils.o): Depend on target.h.
6726 * utils.c: Include target.h.
6727 (process_attributes): Use targetm.have_named_sections instead
6728 of ASM_OUTPUT_SECTION_NAME.
6730 2004-01-16 Andreas Jaeger <aj@suse.de>
6732 * Makefile.in: Add $(DESTDIR).
6734 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
6736 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
6737 also when not defining if a Size clause applies. That information is
6740 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
6742 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
6743 symbolic links for the shared gnat run time when needed.
6745 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
6747 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
6748 for writing, and terminate with an error message if not.
6750 2004-01-15 Ed Schonberg <schonberg@gnat.com>
6752 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
6753 warning on an access to subprogram in an instance, when the target
6754 type is declared in the same generic unit.
6755 (Eval_Attribute): If 'access is known to fail accessibility check,
6756 rewrite as a raise statement.
6758 2004-01-15 GNAT Script <nobody@gnat.com>
6760 * Make-lang.in: Makefile automatically updated
6762 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
6764 * Make-lang.in (ada.srcextra): Dummy entry.
6766 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
6768 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
6770 2004-01-13 Ed Schonberg <schonberg@gnat.com>
6772 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
6773 components that are initialized with aggregates.
6775 2004-01-13 Vincent Celier <celier@gnat.com>
6777 * gnatlink.adb (Process_Binder_File): To find directory of shared
6778 libgcc, if "gcc-lib" is not a subdirectory, look for the last
6779 subdirectory "lib" in the path of the shared libgnat or libgnarl.
6781 * make.adb (Gnatmake): If GCC version is at least 3, link with
6782 -shared-libgcc, when there is at least one shared library project.
6784 * opt.ads (GCC_Version): New integer constant.
6786 * adaint.c (get_gcc_version): New function.
6788 2004-01-13 Robert Dewar <dewar@gnat.com>
6790 * sem_dist.adb, sem_res.adb, sem_util.adb,
6791 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
6792 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
6794 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
6796 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
6797 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
6800 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
6802 * misc.c: Remove trailing spaces.
6803 Update copyright notice missed in previous change.
6806 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
6809 * Makefile.generic: Update copyright.
6812 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
6813 of prefix/share/make.
6815 * Makefile.prolog: Update copyright.
6818 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
6820 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
6821 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
6822 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
6825 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
6828 2004-01-12 Javier Miranda <miranda@gnat.com>
6830 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
6831 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
6832 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
6833 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
6834 Component_Definition node.
6836 2004-01-12 Ed Falis <falis@gnat.com>
6838 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
6840 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
6842 * link.c: Change default libgnat kind to STATIC for FreeBSD.
6844 2004-01-12 Bernard Banner <banner@gnat.com>
6846 * Makefile.in: map 86numaux to a-numaux for x86_64
6848 2004-01-12 Ed Schonberg <schonberg@gnat.com>
6850 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
6851 generated to rename a generic actual, go to the actual itself, the
6852 subtype is not a user-visible entity.
6854 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
6855 part is a private subtype, reset the visibility of its full view, if
6856 any, to be consistent.
6859 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
6860 to use a generic package G as a formal package for another generic
6863 2004-01-12 Robert Dewar <dewar@gnat.com>
6865 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
6867 * usage.adb: Remove mention of obsolete -gnatwb switch
6868 Noticed during code reading
6870 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
6872 * 1ssecsta.adb: Minor changes for -gnatwa warnings
6874 2004-01-12 GNAT Script <nobody@gnat.com>
6876 * Make-lang.in: Makefile automatically updated
6878 2004-01-09 Mark Mitchell <mark@codesourcery.com>
6880 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
6882 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6884 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
6886 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
6888 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
6889 Update comment and copyright date.
6890 * stamp-xgnatug: Delete.
6892 2004-01-05 Robert Dewar <dewar@gnat.com>
6894 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
6895 be modified by the binder generated main program if the -D switch is
6898 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
6899 imported functions (since now we expect this to be done for imported
6902 * 5vtaprop.adb: Add several ??? for sections requiring more comments
6903 Minor reformatting throughout
6905 * 5zinit.adb: Minor reformatting
6906 Add 2004 to copyright date
6907 Minor changes to avoid -gnatwa warnings
6908 Correct some instances of using OR instead of OR ELSE (noted while
6911 * sprint.adb: Minor updates to avoid -gnatwa warnings
6913 * s-secsta.ads, s-secsta.adb:
6914 (SS_Get_Max): New function to obtain high water mark for ss stack
6915 Default_Secondary_Stack is not a constant since it may be modified by
6916 the binder generated main program if the -D switch is used.
6918 * switch-b.adb: New -Dnnn switch for binder
6921 Make -gnatg imply all warnings currently in -gnatwa
6923 * vms_conv.adb: Minor reformatting
6924 Add 2004 to copyright notice
6925 Add 2004 to printed copyright notice
6927 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
6928 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
6929 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
6930 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
6931 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
6932 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
6933 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
6934 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
6935 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
6936 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
6937 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
6938 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
6939 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
6940 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
6941 checks.adb, clean.adb, cstand.adb, einfo.ads,
6942 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
6943 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
6944 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
6945 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
6946 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
6947 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
6948 Minor reformatting and code clean ups.
6949 Minor changes to prevent -gnatwa warnings
6951 * ali.adb: Minor reformatting and cleanup of code
6952 Acquire new SS indication of secondary stack use from ali files
6954 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
6955 (since now we expect this to be done for imported functions)
6957 * bindgen.adb: Generate call to modify default secondary stack size if
6960 * bindusg.adb: Add line for new -D switch
6962 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
6963 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
6964 Add circuitry for both records and arrays to avoid gigi
6965 processing if the type involved has non-bit-aligned components
6967 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
6968 N_String_Literal node always references an E_String_Literal_Subtype
6969 entity. This may not be true in the future.
6970 (Possible_Bit_Aligned_Component): Move processing of
6971 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
6973 * exp_ch6.adb (Expand_Thread_Body): Pick up
6974 Default_Secondary_Stack_Size as variable so that we get value modified
6975 by possible -Dnnn binder parameter.
6977 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
6978 (Type_May_Have_Bit_Aligned_Components): New function.
6980 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
6981 (Type_May_Have_Bit_Aligned_Components): New function.
6983 * fe.h: (Set_Identifier_Casing): Fix prototype.
6984 Add declaration for Sem_Elim.Eliminate_Error_Msg.
6987 * freeze.adb (Freeze_Entity): Add RM reference to error message about
6988 importing constant atomic/volatile objects.
6989 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
6990 unless explicit Pure_Function pragma given, to avoid insidious bug of
6991 call to non-pure imported function getting eliminated.
6993 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
6994 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
6995 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
6996 Add 2004 to printed copyright notice
6998 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
7001 * Makefile.rtl: Add entry for g-sestin.o
7002 g-sestin.ads: New file.
7004 * mdll.adb: Minor changes to avoid -gnatwa warnings
7006 * mlib-tgt.adb: Minor reformatting
7008 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
7009 New switch Sec_Stack_Used (GNAT, GNATBIND)
7010 Make Default_Secondary_Stack_Size a variable instead of a constant,
7011 so that it can be modified by the new -Dnnn bind switch.
7013 * rtsfind.adb (Load_Fail): Give full error message in configurable
7014 run-time mode if all_errors mode is set. This was not done in the case
7015 of a file not found, which was an oversight.
7016 Note if secondary stack unit is used by compiler.
7018 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
7019 ineffective elaborate all pragmas on non-visible packages (this
7020 happened when a renamed subprogram was called). Now the elaborate all
7021 always goes on the package containing the renaming rather than the one
7022 containing the renamed subprogram.
7024 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
7025 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
7027 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
7028 has an Etype that references an E_String_Literal.
7029 (Eval_String_Literal): Avoid assumption that N_String_Literal node
7030 always references an E_String_Literal_Subtype entity. This may not
7031 be true in the future.
7033 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
7036 * sem_res.adb (Resolve): Specialize msg for function name used in proc
7039 2004-01-05 Ed Falis <falis@gnat.com>
7041 * g-debuti.adb: Replaced direct boolean operator with short-circuit
7044 2004-01-05 Vincent Celier <celier@gnat.com>
7046 * bld.adb: Minor comment updates
7047 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
7050 * make.adb (Gnatmake): Special process for files to compile/check when
7051 -B is specified. Fail when there are only foreign mains in attribute
7052 Main of the project file and -B is not specified. Do not skip bind/link
7053 steps when -B is specified.
7055 * makeusg.adb: Document new switch -B
7057 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
7059 * switch-m.adb: (Scan_Make_Switches): Process -B switch
7061 * vms_data.ads: Add new GNAT PRETTY qualifier
7062 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
7064 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7066 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
7069 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
7070 Set_Identifier_Casing.
7072 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
7073 has size that overflows.
7075 2004-01-05 Gary Dismukes <dismukes@gnat.com>
7077 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
7078 -gnatwa warning on static condition.
7080 2004-01-05 Doug Rupp <rupp@gnat.com>
7082 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
7084 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
7086 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
7087 all attributes, including read-only attribute.
7089 2004-01-05 Pascal Obry <obry@gnat.com>
7091 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
7092 library naming scheme.
7094 * mlib-prj.adb (Build_Library): Generate different names for the static
7095 or dynamic version of the GNAT runtime. This is needed to support the
7096 new shared library naming scheme.
7097 (Process_Binder_File): Add detection of shared library in binder file
7098 based on the new naming scheme.
7100 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
7101 scheme for the shared runtime libraries.
7104 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
7106 (install-gnatlib): Do not create symlinks for shared libraries.
7107 (gnatlib-shared-default): Idem.
7108 (gnatlib-shared-dual-win32): New target. Not used for now as the
7109 auto-import feature does not support arrays/records.
7110 (gnatlib-shared-win32): Do not create copy for the shared libraries.
7111 (gnatlib-shared-vms): Fix shared runtime libraries names.
7113 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
7114 dependent runtime shared library name.
7116 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
7118 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
7121 2004-01-05 Ed Schonberg <schonberg@gnat.com>
7123 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
7124 protected objects when allocator has a subtype indication, not a
7125 qualified expression. Note that qualified expressions may have to be
7126 checked when limited aggregates are implemented.
7128 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
7130 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
7131 subprogram is imported, remove warning.
7133 2004-01-05 Geert Bosch <bosch@gnat.com>
7135 * s-poosiz.adb: Update copyright notice.
7136 (Allocate): Use Task_Lock to protect against concurrent access.
7137 (Deallocate): Likewise.
7139 2004-01-05 Joel Brobecker <brobecker@gnat.com>
7141 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
7144 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
7146 * gnat_ug.texi: Force a CVS commit by updating copyright.
7147 * gnat_ug_vxw.texi: Regenerate.
7148 * gnat_ug_wnt.texi: Regenerate.
7149 * gnat_ug_vms.texi: Regenerate.
7150 * gnat_ug_unx.texi: Regenerate.
7152 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
7154 * trans.c: Remove uses of "register" specifier in
7155 declarations of local variables.
7157 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
7159 * stamp-xgnatug: New stamp file.
7160 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
7161 (ada/doctools/xgnatug): Add $(build_exeext).
7162 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
7163 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
7165 2003-12-17 Ed Falis <falis@gnat.com>
7167 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
7170 * a-exextr.adb: Add context clause for
7171 Ada.Exceptions.Last_Chance_Handler.
7173 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
7175 * cstand.adb (Create_Standard): Change the way how the declaration of
7176 the Duration type is created (making it the same way as it is for all
7177 the other standard types).
7179 2003-12-17 Robert Dewar <dewar@gnat.com>
7181 * s-crtl.ads: Fix header format
7182 Change Pure to Preelaborate
7184 2003-12-17 Ed Schonberg <schonberg@gnat.com>
7186 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
7187 the expression type only if it is declared in the current unit.
7189 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
7190 are universal and already analyzed, as can occur in constrained
7191 subcomponents that depend on discriminants, when one constraint is a
7194 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
7195 type Any_Fixed is legal as the argument of a conversion, if only one
7196 fixed-point type is in context.
7198 2003-12-17 GNAT Script <nobody@gnat.com>
7200 * Make-lang.in: Makefile automatically updated
7202 2003-12-15 Robert Dewar <dewar@gnat.com>
7204 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
7207 2003-12-15 Vincent Celier <celier@gnat.com>
7209 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
7210 (Gnatchop): Do not set failure status when reporting the number of
7213 2003-12-15 Doug Rupp <rupp@gnat.com>
7215 * s-ctrl.ads: New file.
7217 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
7219 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
7220 (GNATBIND_OBJS): Add ada/s-crtl.o.
7222 * Makefile.in [VMS]: Clean up ifeq rules.
7224 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
7225 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
7226 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
7227 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
7228 s-tasdeb.adb: Update copyright.
7230 Make minor modifications to use System.CRTL declared functions instead
7231 of importing locally.
7233 2003-12-15 GNAT Script <nobody@gnat.com>
7235 * Make-lang.in: Makefile automatically updated
7237 2003-12-11 Ed Falis <falis@gnat.com>
7239 * 5zinit.adb: Clean up.
7241 * 5zintman.adb (Notify_Exception): replaced case statement with a call
7242 to __gnat_map_signal, imported from init.c to support
7243 signal -> exception mappings that depend on the vxWorks version.
7246 Created and exported __gnat_map_signal to support signal -> exception
7247 mapping that is dependent on the VxWorks version.
7248 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
7250 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
7252 * 5wosinte.ads: Link with -mthreads switch.
7254 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
7256 * init.c (__gnat_install_handler [NetBSD]): Set
7257 __gnat_handler_installed, as done on all other platforms.
7258 Remove duplicated code.
7260 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
7262 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
7264 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
7266 * sinfo.ads: Fix inconsistent example code in comment.
7268 2003-12-11 Robert Dewar <dewar@gnat.com>
7270 * a-tiinau.adb: Add a couple of comments
7272 * sem_ch3.adb: Minor reformatting
7275 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
7276 Minor reformatting throughout
7278 2003-12-11 Ed Schonberg <schonberg@gnat.com>
7280 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
7281 bounds of a loop, create a separate block in order to generate proper
7282 cleanup actions to prevent memory leaks.
7284 * sem_res.adb (Resolve_Call): After a call to
7285 Establish_Transient_Scope, the call may be rewritten and relocated, in
7286 which case no further processing is needed.
7288 * sem_util.adb: (Wrong_Type): Refine previous fix.
7289 Fixes ACATS regressions.
7293 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
7296 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
7298 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
7299 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
7302 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
7305 2003-12-08 Robert Dewar <dewar@gnat.com>
7307 * 7sintman.adb: Minor reformatting
7309 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
7310 standard linker options to get standard libraries linked. We now plan
7311 to provide dummy versions of these libraries to match the appropriate
7312 configurable run-time (e.g. if a library is not needed at all, provide
7313 a dummy empty library).
7315 * targparm.ads: Configurable_Run_Time mode no longer affects linker
7316 options (-L parameters and standard libraries). What we plan to do is
7317 to provide dummy libraries where the libraries are not required.
7319 * gnatbind.adb: Minor comment improvement
7321 2003-12-08 Javier Miranda <miranda@gnat.com>
7323 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
7324 aggregate in the parent. Otherwise constants with limited aggregates
7325 are not supported. Add new formal to pass the component type (Ctype).
7326 It is required to call the corresponding IP subprogram in case of
7327 default initialized components.
7328 (Gen_Assign): In case of default-initialized component, generate a
7329 call to the IP subprogram associated with the component.
7330 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
7331 of aggregate with default initialized components.
7332 (Has_Default_Init_Comps): Improve implementation to recursively check
7333 all the present expressions.
7335 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
7336 to indicate that the initialization call corresponds to a
7337 default-initialized component of an aggregate.
7338 In case of default initialized aggregate with tasks this parameter is
7339 used to generate a null string (this is just a workaround that must be
7340 improved later). In case of discriminants, this parameter is used to
7341 generate a selected component node that gives access to the discriminant
7344 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
7345 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
7346 allocated aggregates with default-initialized components.
7348 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
7349 the box notation is used in positional aggregates.
7351 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
7353 * lib.ads: Fix typo in comment
7355 2003-12-08 Vincent Celier <celier@gnat.com>
7357 * prj.adb (Project_Empty): New component Unkept_Comments
7358 (Scan): Remove procedure; moved to Prj.Err.
7360 * prj.ads (Project_Data): New Boolean component Unkept_Comments
7361 (Scan): Remove procedure; moved to Prj.Err.
7363 * prj-dect.adb: Manage comments for the different declarations.
7365 * prj-part.adb (With_Record): New component Node
7366 (Parse): New Boolean parameter Store_Comments, defaulted to False.
7367 Set the scanner to return ends of line and comments as tokens, if
7368 Store_Comments is True.
7369 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
7370 comments are associated with these nodes. Store the node IDs in the
7372 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
7374 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
7375 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
7376 current project. Call Tree.Restore afterwards. Set the various nodes
7377 for comment storage (Next_End, End_Of_Line, Previous_Line,
7380 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
7383 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
7384 to False. When Truncated is True, truncate the string, never go to the
7386 (Write_End_Of_Line_Comment): New procedure
7387 (Print): Process comments for nodes N_With_Clause,
7388 N_Package_Declaration, N_String_Type_Declaration,
7389 N_Attribute_Declaration, N_Typed_Variable_Declaration,
7390 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
7391 Process nodes N_Comment.
7393 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
7394 without comments and there are some comments, set the flag
7395 Unkept_Comments to True.
7396 (Scan): If there are comments, set the flag Unkept_Comments to True and
7398 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
7399 (Next_End_Nodes: New table
7400 (Comment_Zones_Of): New function
7401 (Scan): New procedure; moved from Prj. Accumulate comments in the
7402 Comments table and set end of line comments, comments after, after end
7404 (Add_Comments): New procedure
7405 (Save, Restore, Seset_State): New procedures
7406 (There_Are_Unkept_Comments): New function
7407 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
7408 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
7410 (First_Comment_After, First_Comment_After_End): New functions
7411 (First_Comment_Before, First_Comment_Before_End): New functions
7412 (Next_Comment): New function
7413 (End_Of_Line_Comment, Follows_Empty_Line,
7414 Is_Followed_By_Empty_Line): New functions
7415 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
7416 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
7417 (Set_Next_Comment): New procedure
7418 (Default_Project_Node): Associate comment before if the node can store
7421 * scans.ads (Token_Type): New enumeration value Tok_Comment
7422 (Comment_Id): New global variable
7424 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
7426 (Scan): Store position of start of comment. If comments are tokens, set
7427 Comment_Id and set Token to Tok_Comment when scanning a comment.
7428 (Set_Comment_As_Token): New procedure
7430 * sinput-p.adb: Update Copyright notice
7431 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
7432 that no longer exists.
7434 2003-12-08 Javier Miranda <miranda@gnat.com>
7436 * sem_aggr.adb: Add dependence on Exp_Tss package
7437 Correct typo in comment
7438 (Resolve_Aggregate): In case of array aggregates set the estimated
7439 type of the aggregate before calling resolve. This is needed to know
7440 the name of the corresponding IP in case of limited array aggregates.
7441 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
7442 in case of default initialized array components.
7444 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
7445 types. Required to give support to limited aggregates in generic
7448 2003-12-08 Ed Schonberg <schonberg@gnat.com>
7450 * sem_ch3.adb (Check_Initialization): For legality purposes, an
7451 inlined body functions like an instantiation.
7452 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
7453 until bounds are analyzed, to diagnose premature use of type.
7455 * sem_util.adb (Wrong_Type): Improve error message when the type of
7456 the expression is used prematurely.
7458 2003-12-08 GNAT Script <nobody@gnat.com>
7460 * Make-lang.in: Makefile automatically updated
7462 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
7464 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
7465 they are automatically generated by Make-lang.in and cause nothing but
7466 maintenance troubles.
7468 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
7470 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
7471 version of this unit).
7473 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
7475 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
7476 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
7477 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
7478 the body of System.Interrupt_Management common to several targets.
7479 Update copyright notice when appropriate.
7481 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
7484 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
7485 to ensure that the kernel fills in the interrupted context structure
7486 before calling a signal handler, which is necessary to be able to
7487 unwind past it. Update the copyright notice.
7489 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
7491 * a-elchha.ads: New file.
7493 * a-elchha.adb: New default last chance handler. Contents taken from
7494 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
7496 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
7497 is moved to a-elchha.adb to provide a target-independent default last
7500 * Makefile.rtl: Add a-elchha.o
7502 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
7504 2003-12-05 Ed Schonberg <schonberg@gnat.com>
7506 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
7507 declared in an instance, do not inline the call if the instance is not
7508 frozen yet, to prevent order of elaboration problems.
7510 * sem_prag.adb: Add comments for previous fix.
7512 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
7514 * g-table.adb: Use the right variable in Set_Item.
7515 Update copyright notice.
7517 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
7519 * Makefile.in: Remove unused rules.
7521 2003-12-05 Vincent Celier <celier@gnat.com>
7523 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
7524 -nostdlib. Not needed here after all.
7526 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
7530 * adaint.h, adaint.c, g-os_lib.ads:
7531 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
7532 on some platforms (including FreeBSD), it is a 64 bit value.
7533 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
7535 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
7537 * gnatvsn.ads (Library_Version): Now contain only the relevant
7539 (Verbose_Library_Version): New constant.
7541 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
7542 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
7543 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
7545 * gnatlbr.adb: Clean up: replace Library_Version by
7546 Verbose_Library_Version.
7548 * make.adb, lib-writ.adb, exp_attr.adb:
7549 Clean up: replace Library_Version by Verbose_Library_Version.
7551 * 5lintman.adb: Removed.
7554 Update and simplify computation of LIBRARY_VERSION.
7555 Fix computation of GSMATCH_VERSION.
7556 5lintman.adb is no longer used: replaced by 7sintman.adb.
7558 2003-12-03 Robert Dewar <dewar@gnat.com>
7561 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
7562 name. Modified to consider small non-bit-packed arrays as troublesome
7563 and in need of component-by-component assigment expansion.
7565 2003-12-03 Vincent Celier <celier@gnat.com>
7567 * lang-specs.h: Process nostdlib as nostdinc
7569 * back_end.adb: Update Copyright notice
7570 (Scan_Compiler_Arguments): Process -nostdlib directly.
7572 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
7575 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
7576 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
7577 included in HIE_NONE_TARGET_PAIRS.
7579 2003-12-03 Ed Schonberg <schonberg@gnat.com>
7582 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
7583 is legal in an instance, because legality is cheched in the template.
7586 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
7587 appplied to an unchecked conversion of a formal parameter.
7590 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
7593 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
7595 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
7596 routines. The second one is new functionality to deal with backtracing
7597 through signal handlers.
7598 (unwind): Split into the two separate subroutines above.
7599 Update the documentation, and deal properly with sizeof (REG) different
7600 from sizeof (void*).
7602 2003-12-01 Nicolas Setton <setton@act-europe.fr>
7604 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
7605 so that the debugger can reliably access the value of the parameter,
7606 and therefore is able to display the exception name when an exception
7607 breakpoint is reached.
7609 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
7611 * fmap.adb: Fix typo in warning message.
7613 * g-socket.ads, g-socket.adb: Make Free a visible instance of
7614 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
7616 2003-12-01 Vincent Celier <celier@gnat.com>
7618 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
7620 (Build_Library): Get the switches only if Default_Switches is declared
7623 2003-12-01 Ed Schonberg <schonberg@gnat.com>
7625 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
7626 actuals that are indexed components, reanalyze actual to ensure that
7627 packed array references are properly expanded.
7629 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
7630 attempted assignment to a discriminant.
7632 2003-12-01 Robert Dewar <dewar@gnat.com>
7634 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
7637 * switch-c.adb: Minor reformatting of comments
7639 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
7641 * Makefile.in: Clean ups.
7643 2003-12-01 GNAT Script <nobody@gnat.com>
7645 * Make-lang.in: Makefile automatically updated
7647 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
7649 * 5wsystem.ads: Disable zero cost exception, not ready yet.
7651 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
7653 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
7654 to force serialization.
7656 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
7658 * g-socket.ads, g-socket.adb:
7659 Clarify documentation of function Stream. Introduce a Free procedure
7660 to release the returned Stream once it becomes unused.
7662 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
7664 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
7666 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
7667 since NT 4 cannot handle timeout values that are too large,
7668 e.g. DWORD'Last - 1.
7670 2003-11-26 Ed Schonberg <schonberg@gnat.com>
7673 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
7674 in procedure calls and whose expansion must be deferred.
7676 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
7680 (Build_Derived_Array_Type): Create operator for unconstrained type
7681 if ancestor is unconstrained.
7683 2003-11-26 Vincent Celier <celier@gnat.com>
7685 * make.adb (Project_Object_Directory): New global variable
7686 (Change_To_Object_Directory): New procedure
7687 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
7688 of Change_Dir directly. Do not change working directory to object
7689 directory of main project after each compilation.
7690 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
7692 Change to object directory of main project before binding step.
7693 (Initialize): Initialize Project_Object_Directory to No_Project
7696 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
7697 binding a Stand-Alone Library.
7699 * output.adb: Update Copyright notice
7700 (Write_Char): Output buffer when full
7702 2003-11-26 Robert Dewar <dewar@gnat.com>
7704 * sem_ch13.adb: (Check_Size): Reset size if size is too small
7707 (Check_Size): Fix documentation to include bit-packed array case
7709 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
7711 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
7713 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
7715 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
7718 * utils.c (init_gigi_decls): Change name of built-in setjmp to
7719 __builtin_setjmp, since this is apparently needed by recent
7722 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7724 * adadecode.c: Only include ctype.h if not IN_GCC.
7725 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
7727 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
7730 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
7731 signals and interrupts.
7733 * 5zintman.ads: New File.
7735 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
7736 add exception signals to the set of unmasked signals.
7739 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
7740 between signals and interrupts.
7741 Add to Unblocked_Signal_Mask the set of signals that are in
7745 Adding a check to see whether the Interrupt_ID we want to unmask is in
7746 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
7747 reason is that the index type of the Keep_Unmasked array is not always
7748 Interrupt_ID; it may be a subtype of Interrupt_ID.
7750 2003-11-24 Gary Dismukes <dismukes@gnat.com>
7753 (Remove_Side_Effects): Condition constantness of object created for a
7754 an unchecked type conversion on the constantness of the expression
7755 to ensure the correct value for 'Constrained when passing components
7756 of view-converted class-wide objects.
7758 2003-11-24 Robert Dewar <dewar@gnat.com>
7760 * par-load.adb (Load): Improve handling of misspelled and missing units
7761 Removes several cases of compilation abandoned messages
7763 * lib.adb: (Remove_Unit): New procedure
7765 * lib.ads: (Remove_Unit): New procedure
7767 * lib-load.adb: Minor reformatting
7769 2003-11-24 Vincent Celier <celier@gnat.com>
7772 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
7773 (Marking_Label): Label to mark processed source files. Incremented for
7775 (Gnatmake): Increase Marking_Labet for each executable
7776 (Is_Marked): Compare against marking label
7777 (Mark): Mark with marking label
7779 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
7782 Move the declaration of the TSD for System.Threads to System.Soft_Links.
7785 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
7786 (rts-cert): build a single relocatable object for the run-time lib.
7789 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
7792 Use gnatls rather than gcc to obtain the location of GNAT RTL for
7795 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
7797 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
7798 can not use it as before (that is, as a variable) when dumping it into
7799 the tree file. Add a local variable to store the result of this
7800 function and to be used as the string to be written into the tree.
7802 * scn.adb (Initialize_Scanner): Add comments explaining the recent
7805 * sinput.adb (Source_First, Source_Last): In case of
7806 Internal_Source_File, replace returning attributes of
7807 Internal_Source_Ptr (which is wrong) with returning attributes of
7810 2003-11-24 Ed Schonberg <schonberg@gnat.com>
7813 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
7814 used for implicit concatenation operators.
7818 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
7819 task bodies that are in the scope of a Suppress pragma.
7820 (Check_A Call): Use the flag to prevent spurious elaboration checks.
7822 * sinfo.ads, sinfo.adb:
7823 New flag No_Elaboration_Check on function/procedure calls, to properly
7824 suppress checks on calls in task bodies that are within a local suppress
7828 (Expand_Concatenate_Other): Use the proper integer type for the
7829 expression for the upper bound, to avoid universal_integer computations
7832 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
7834 * .cvsignore: Delete.
7836 2003-11-21 Andreas Schwab <schwab@suse.de>
7838 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
7840 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
7842 * 5wsystem.ads: Enable zero cost exception.
7844 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
7846 * 5ztiitho.adb: Remove an unreferenced variable.
7848 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
7850 * adaint.c: For FreeBSD, use mkstemp.
7852 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
7854 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
7856 2003-11-21 Robert Dewar <dewar@gnat.com>
7858 * bld.adb: Remove useless USE of gnatvsn
7860 * gnatchop.adb: Minor reformatting
7861 Clean up version handling to be more consistent
7863 * gnatxref.adb: Minor reformatting
7865 * gprcmd.adb: Minor reformatting
7866 Fix output of copyright to be more consistent with other tools
7868 2003-11-21 Vincent Celier <celier@gnat.com>
7870 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
7872 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
7874 * atree.adb (Initialize): Add initializations for global variables
7875 used in New_Copy_Tree.
7877 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
7878 Internal_Source_File as the actual).
7879 Put the set of statements creating Any_Character before the set of
7880 statements creating Any_Array to have Any_Character fully initialized
7881 when it is used in creating Any_Array.
7883 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
7884 not call Scan in case if the actual is Internal_Source_File
7885 Add 2003 to copyright note.
7887 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
7888 processing Internal_Source_File.
7890 * types.ads: Add the constant Internal_Source_File representing the
7891 source buffer for artificial source-code-like strings created within
7892 the compiler (the definition of Source_File_Index is changed).
7894 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
7896 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
7897 56system.ads: New file, FreeBSD version.
7899 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
7901 * Make-lang.in (ada.extraclean): Delete.
7903 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
7905 * gnatmem.adb: Clean up verbose output.
7907 * gprcmd.adb: Change copyright to FSF.
7909 2003-11-19 Vincent Celier <celier@gnat.com>
7911 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
7912 and Version (ignored).
7914 * symbols.ads: (Policy): New type
7915 (Initialize): New parameter Reference, Symbol_Policy and
7917 Remove parameter Force.
7920 * snames.ads, snames.adbadb: New standard names
7921 Library_Reference_Symbol_File and Library_Symbol_Policy
7924 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
7928 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
7930 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
7932 * prj.adb: (Project_Empty): New component Symbol_Data
7934 * prj.ads: (Policy, Symbol_Record): New types
7935 (Project_Data): New component Symbol_Data
7938 New attributes Library_Symbol_File, Library_Symbol_Policy and
7939 Library_Reference_Symbol_File.
7942 (Ada_Check): When project is a Stand-Alone library project, process
7943 attribute Library_Symbol_File, Library_Symbol_Policy and
7944 Library_Reference_Symbol_File.
7946 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
7947 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
7948 5sml-tgt.adb (Build_Dynamic_Library): New parameter
7949 Symbol_Data (ignored).
7951 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
7952 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
7953 functions Option_File_Name and Version_String. Set new options of
7954 gnatsym related to symbol file, symbol policy and reference symbol
7958 Extensive modifications to take into account the reference symbol file,
7959 the symbol policy, the library version and to put in the symbol file the
7960 minor and major IDs.
7962 * bld.adb (Process_Declarative_Items): Put second argument of
7963 gprcmd to_absolute between single quotes, to avoid problems with
7966 * bld-io.adb: Update Copyright notice.
7967 (Flush): Remove last character of a line, if it is a back slash, to
7968 avoid make problems.
7971 Implement new scheme with reference symbol file and symbol policy.
7973 * g-os_lib.ads: (Is_Directory): Clarify comment
7975 2003-11-19 Robert Dewar <dewar@gnat.com>
7977 * atree.adb: Move New_Copy_Tree global variables to head of package
7979 * errout.adb: Minor reformatting
7981 2003-11-19 Javier Miranda <miranda@gnat.com>
7983 * sem_ch4.adb: (Diagnose_Call): Improve error message.
7984 Add reference to Ada0Y (AI-50217)
7986 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
7987 sem_util.adb: Add reference to AI-50217
7989 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
7991 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
7993 * sem_aggr.adb: Complete documentation of AI-287 changes
7995 * par-ch4.adb: Document previous changes.
7997 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
7998 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
8001 * exp_aggr.adb: Add references to AI-287 in previous changes
8003 2003-11-19 Ed Schonberg <schonberg@gnat.com>
8006 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
8007 in the rewriting is the result of an inlined call.
8009 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
8010 parameter is a type conversion, use original node to construct the
8011 post-call assignment, because expression may have been rewritten, e.g.
8012 if it is a packed array.
8015 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
8016 body, just as it is in an instance.
8017 Categorization routines
8019 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
8020 Instantiate_Object): Set proper sloc reference for message on missing
8023 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
8025 * Makefile.in: Add FreeBSD libgnat pairs.
8027 * usage.adb: Fix typo in usage message.
8029 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
8031 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
8032 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
8034 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
8036 * s-thread.adb: This file is now a dummy implementation of
8039 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
8041 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
8043 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
8045 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
8046 instanciation references in the parent type description.
8048 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8050 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
8052 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
8053 TYPE_PRECISION directly from esize.
8055 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
8058 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
8060 * init.c: Initialization routines for FreeBSD
8062 * link.c: Link info for FreeBSD
8064 * sysdep.c: Add the case of FreeBSD
8066 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
8068 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
8069 already called in System.Threads.
8071 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
8072 environment task, as it has been moved to System.Threads.Initialization.
8074 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
8076 * adaint.c (__gnatlib_install_locks): Only reference
8077 __gnat_install_locks on VMS, since other platforms can avoid using
8078 --enable-threads=gnat
8080 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8082 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
8084 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
8085 TYPE_PACKED_ARRAY_TYPE_P.
8086 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
8088 Part of PR ada/12806
8089 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
8090 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
8092 2003-11-17 Vincent Celier <celier@gnat.com>
8094 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
8096 Do not set exit status to Failure when Warning is True.
8097 (Gnatchop): Make errors "no compilation units found" and
8098 "no source files written" warnings only.
8100 * make.adb (Gnatmake): When using a project file, set
8101 Look_In_Primary_Dir to False.
8102 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
8103 and Local_Configuration_Pragmas in the project where they are declared
8104 not an extending project which might have inherited them.
8106 * osint.adb (Locate_File): If Name is already an absolute path, do not
8107 look for a directory.
8109 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
8110 -gnats (Check_Syntax) is used, issue only a warning, not an error.
8112 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
8113 in objects of type Variable_Value.
8115 * prj.ads: (Variable_Value): New component Project
8117 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
8118 is in a project extended by Project.
8120 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
8121 Project of Variable_Values to this new parameter value.
8122 (Expression): Set component Project of Variable_Values.
8123 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
8124 Set the component Project in array elements.
8126 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
8128 * errout.adb: (Initialize): Add initialization for error nodes.
8130 * sem_ch12.adb (Initialize): Add missing initializations for
8131 Exchanged_Views and Hidden_Entities.
8133 2003-11-17 Ed Schonberg <schonberg@gnat.com>
8135 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
8136 already instantiated tree for use in subsequent inlining.
8137 (Analyze_Associations, Instantiate_Formal_Subprogram,
8138 Instantiate_Object): improve error message for mismatch in
8141 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
8142 instantiations of subprograms declared in instances.
8144 2003-11-17 Javier Miranda <miranda@gnat.com>
8146 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
8147 executed only under the Extensions_Allowed flag.
8149 2003-11-17 Robert Dewar <dewar@gnat.com>
8151 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
8153 (Address_Image): Fix bug of returning 0x instead of 0x0
8154 Minor reformatting (function specs).
8156 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
8157 (missed case of 33-63)
8159 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
8161 * s-thread.adb: Add comments for pragma Restriction
8163 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
8164 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
8166 2003-11-17 Ed Falis <falis@gnat.com>
8168 * s-thread.adb: Added No_Tasking restriction for this implementation.
8170 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
8172 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
8173 instanciation references in the parent type description.
8175 2003-11-17 GNAT Script <nobody@gnat.com>
8177 * Make-lang.in: Makefile automatically updated
8179 2003-11-16 Jason Merrill <jason@redhat.com>
8181 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
8182 and TAGS files that include them for each front end.
8184 2003-11-14 Andreas Jaeger <aj@suse.de>
8186 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
8187 is the canonical version.
8188 * misc.c (gnat_handle_option): Likewise.
8190 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
8192 * 5nsystem.ads: New file for x86_64-linux-gnu.
8194 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
8196 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
8198 * comperr.adb: Fix logic in previous change.
8200 2003-11-13 Vincent Celier <celier@gnat.com>
8202 * 5bml-tgt.adb (Build_Dynamic_Library): Use
8203 Osint.Include_Dir_Default_Prefix instead of
8204 Sdefault.Include_Dir_Default_Name.
8206 * gnatlbr.adb: Update Copyright notice
8207 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
8208 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
8209 instead of Sdefault.Object_Dir_Default_Name
8212 (Process_Binder_File): Never suppress the option following -Xlinker
8215 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
8216 Sdefault.Object_Dir_Default_Name.
8218 * osint.ads, osint.adb:
8219 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
8222 * vms_conv.ads: Minor reformating
8223 Remove GNAT STANDARD and GNAT PSTA
8226 Allow GNAT MAKE to have several files on the command line.
8227 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
8228 Sdefault.Object_Dir_Default_Name.
8230 Remove data for GNAT STANDARD
8233 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
8234 Remove data for GNAT STANDARD
8235 Remove options and documentation for -gnatwb/-gnatwB: these warning
8236 options no longer exist.
8238 2003-11-13 Ed Falis <falis@gnat.com>
8240 * 5zthrini.adb: (Init_RTS): Made visible
8243 (Register): Removed unnecessary call to taskVarGet that checked whether
8244 an ATSD was already set as a task var for the argument thread.
8247 Updated comment to reflect that this is a VxWorks version
8248 Added context clause for System.Threads.Initialization
8249 Added call to System.Threads.Initialization.Init_RTS
8251 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
8254 (Init_RTS): New procedure, for the initialization of the run-time lib.
8257 Remove dependancy on System.Init, so that this file can be used in the
8258 AE653 sequential run-time lib.
8260 2003-11-13 Robert Dewar <dewar@gnat.com>
8262 * bindgen.adb: Minor reformatting
8264 2003-11-13 Ed Schonberg <schonberg@gnat.com>
8267 (Apply_Discriminant_Check): Do no apply check if target type is derived
8268 from source type with no applicable constraint.
8271 (Ensure_System_Dependency): Do not apply the style checks that may have
8272 been specified for the main unit.
8275 (Find_Selected_Component): Further improvement in error message, with
8279 (Resolve): Handle properly the case of an illegal overloaded protected
8282 2003-11-13 Javier Miranda <miranda@gnat.com>
8285 (Has_Default_Init_Comps): New function to check the presence of
8286 default initialization in an aggregate.
8287 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
8288 extension aggregate of a limited record. In addition, a new formal
8289 was added to do not initialize the record controller (if any) during
8290 this recursive expansion of ancestors.
8291 (Init_Controller): Add support for limited record components.
8292 (Expand_Record_Aggregate): In case of default initialized components
8293 convert the aggregate into a set of assignments.
8295 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
8296 describing the new syntax.
8297 Nothing else needed to be done because this subprogram delegates part of
8298 its work to P_Precord_Or_Array_Component_Association.
8299 (P_Record_Or_Array_Component_Association): Give support to the new
8300 syntax for default initialization of components.
8303 (Resolve_Aggregate): Relax the strictness of the frontend in case of
8305 (Resolve_Record_Aggregate): Give support to default initialized
8307 (Get_Value): In case of default initialized components, duplicate
8308 the corresponding default expression (from the record type
8309 declaration). In case of default initialization in the *others*
8310 choice, do not check that all components have the same type.
8311 (Resolve_Extension_Aggregate): Give support to limited extension
8315 (Check_Initialization): Relax the strictness of the front-end in case
8316 of aggregate and extension aggregates. This test is now done in
8317 Get_Value in a per-component manner.
8319 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
8320 expression corresponds to a limited aggregate. This test is now done
8323 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
8326 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
8327 present in an N_Component_Association node
8329 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
8331 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
8332 type-conformant entry only if they are homographs.
8334 2003-11-13 GNAT Script <nobody@gnat.com>
8336 * Make-lang.in: Makefile automatically updated
8338 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8340 * adadecode.c: Use <> form of include for ctype.h.
8341 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
8343 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8345 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
8346 Works around PR middle-end/6552.
8348 2003-11-10 Ed Falis <falis@gnat.com>
8350 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
8352 * 5zinit.adb: (Install_Handler): Moved back to spec
8353 (Install_Signal_Handlers): Deleted
8355 * 5zthrini.adb: Added context clause for System.Storage_Elements
8356 (Register): Only handles creation of taskVar; initialization moved to
8358 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
8359 Added declaration of environment task secondary stack and
8362 * s-thread.adb: Implement bodies for thread body processing
8365 Added comment identifying supported targets for pragma Thread_Body.
8367 2003-11-10 Pascal Obry <obry@gnat.com>
8369 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
8373 (Open): Properly check for string length before copying into the buffer.
8374 Raises Name_Error if buffer is too small. Note that this was a potential
8377 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
8379 * bindgen.adb, comperr.adb: Code clean ups.
8380 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
8382 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
8384 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
8386 2003-11-10 Vincent Celier <celier@gnat.com>
8389 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
8392 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
8394 * prj.adb: (Project_Empty): Add new boolean component Virtual
8396 * prj.ads: (Virtual_Prefix): New constant string
8397 (Project_Data): New boolean component Virtual
8399 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
8400 a library project is extended by a virtual extending project.
8403 Modifications throughout to implement extending-all project, including:
8404 (Virtual_Hash, Processed_Hash): New hash tables
8405 (Create_Virtual_Extending_Project): New procedure
8406 (Look_For_Virtual_Projects_For): New procedure
8409 (Process): After checking the projects, if main project is an
8410 extending-all project, set the object directory of all virtual extending
8411 project to the object directory of the main project.
8412 Adjust error message when a virtual extending project has the same
8413 object directory as an project being extended.
8414 (Recursive_Process): If name starts with the virtual prefix, set Virtual
8415 to True in the project data.
8418 (Default_Project_Node): Add new boolean component Extending_All
8419 (Is_Extending_All): New function
8420 (Set_Is_Extending_All): New procedure
8422 * prj-tree.ads: (Is_Extending_All): New function
8423 (Set_Is_Extending_All): New procedure
8424 (Project_Node_Record): New boolean component Extending_All
8426 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
8429 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
8431 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
8432 "gprcmd prefix" to define it.
8434 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
8436 * einfo.ads: Fix a typo and remove an extraneous word in comments.
8439 (Create_Dummy_Package_Unit): Set the scope of the entity for the
8440 created dummy package to Standard_Standard, not to itself, to
8441 defend other parts of the front-end against encoutering a cycle in
8445 (Analyze_With_Clause): When setting the entities for the successive
8446 N_Expanded_Names that constitute the name of a child unit, do not
8447 attempt to go further than Standard_Standard in the chain of scopes.
8448 This case arises from the placeholder units created by
8449 Create_Dummy_Package_Unit in the case of a with_clause for a
8450 nonexistent child unit.
8452 2003-11-10 Ed Schonberg <schonberg@gnat.com>
8455 (Expand_Thread_Body): Place subprogram on scope stack, so that new
8456 declarations are given the proper scope.
8459 (Check_Expr_Constants): Reject an expression that contains a constant
8460 created during expansion, and that appears after the object to which
8461 the address clause applies.
8463 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
8464 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
8465 that uses 'Range of a function call with controlled components, so
8466 that the function result can be finalized before starting the loop.
8469 (Find_Selected_Component): Improve error message when prefix is
8470 an implicit dereference of an incomplete type.
8472 2003-11-10 Robert Dewar <dewar@gnat.com>
8474 * opt.ads: New Print_Standard flag for -gnatS switch
8476 * sem_ch13.adb: Remove some additional checks for unaligned arrays
8478 * cstand.adb (Create_Standard): Print out package standard if -gnatS
8481 * debug.adb: Update doc for -gnatds to discuss relationship with new
8484 * sinfo.adb: Add new field Entity_Or_Associated_Node
8486 * sinfo.ads: Add new field Entity_Or_Associated_Node
8487 Update documentation for Associated_Node and Entity fields to clarify
8488 relationship and usage.
8491 (Write_Id): Properly process Associated_Node field in generic template
8494 Recognize new -gnatS switch for printing package Standard
8495 This replaces gnatpsta
8498 Add line for new -gnatS switch for printing package Standard
8499 This replaces gnatpsta
8501 2003-11-10 Andreas Jaeger <aj@suse.de>
8503 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
8506 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
8508 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
8511 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
8513 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
8516 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
8518 * sysdep.c: Add handling of cygwin.
8520 2003-11-10 GNAT Script <nobody@gnat.com>
8522 * Make-lang.in: Makefile automatically updated
8524 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
8527 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
8528 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
8529 Replace GNAT_ROOT by GCC_ROOT.
8531 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
8533 2003-11-06 Zack Weinberg <zack@codesourcery.com>
8535 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
8536 and update for changed meaning of GET_MODE_BITSIZE.
8538 2003-11-04 Doug Rupp <rupp@gnat.com>
8540 * sysdep.c: Problem discovered during IA64 VMS port.
8541 [VMS] #include <unixio.h> to get proper prototypes.
8544 Issues discovered/problems fixed during IA64 VMS port.
8545 [VMS] #define _POSIX_EXIT for proper semantics.
8546 [VMS] #include <unixio.h> for proper prototypes.
8547 [VMS] (fork): #define IA64 version.
8548 (__gnat_os_exit): Remove unnecessary VMS specific code.
8550 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8552 Part of PR ada/12806
8554 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
8558 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
8561 * targtyps.c, decl.c, misc.c,
8562 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
8563 routines to work around change in FP sizing semantics in GCC.
8566 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
8568 * gigi.h: (enumerate_modes): New function.
8570 * Make-lang.in: (ada/misc.o): Add real.h.
8572 * misc.c: (enumerate_modes): New function.
8574 2003-11-04 Robert Dewar <dewar@gnat.com>
8576 * 3vtrasym.adb: Minor reformatting
8577 Use terminology encoded/decoded name, rather than C++ specific notion
8578 of mangling (this is the terminology used throughout GNAT).
8580 * einfo.h: Regenerated
8582 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
8585 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
8587 * par-prag.adb: Add dummy entry for Thread_Body pragma
8590 Add entries for System.Threads entities for thread body processing
8593 (Analyze_Pragma, Access attributes): Check these are not applied to a
8594 thread body, since this is not permitted
8596 * sem_prag.adb: Add processing for Thread_Body pragma.
8600 (Resolve_Call): Check for incorrect attempt to call a thread body
8601 procedure with a direct call.
8603 * snames.ads, snames.adb: Add entry for Thread_Body pragma
8604 Add names associated with thread body expansion
8606 * snames.h: Add entry for Thread_Body pragma
8608 * s-thread.adb: Add entries for thread body processing
8609 These are dummy bodies so far
8611 * s-thread.ads: Add documentation on thread body handling.
8612 Add entries for thread body processing.
8614 2003-11-04 Javier Miranda <miranda@gnat.com>
8617 (Build_Limited_Views): Return after posting an error in case of limited
8618 with_clause on subprograms, generics, instances or generic renamings
8619 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
8620 on subprograms, generics, instances or generic renamings
8622 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
8624 * raise.c (setup_to_install): Correct mistake in last revision; two
8625 arguments out of order.
8627 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
8628 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
8629 notice, missed in previous change.
8630 Remove trailing blanks and other style errors introduced in previous
8633 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
8635 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
8636 rid of the wrapper for a LJM type, ensuring we don't do that if the
8637 field is addressable. This avoids potential low level type view
8638 mismatches later on, for instance in a by-reference argument passing
8641 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8643 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
8644 aligned at byte boundary.
8646 2003-11-04 Joel Brobecker <brobecker@gnat.com>
8648 * decl.c (components_to_record): Do not delete the empty variants from
8649 the end of the union type.
8651 2003-11-04 Ed Schonberg <schonberg@gnat.com>
8653 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
8654 operation for a derived type, an explicit declaration may use a local
8657 2003-11-04 Vincent Celier <celier@gnat.com>
8659 * make.adb (Gnatmake): Allow main sources on the command line with a
8660 library project when it is only for compilation (no binding or
8663 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8665 * Makefile.in: Remove many duplicate variables.
8667 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
8669 * Make-lang.in (dvi): Move targets to $(docobjdir).
8670 (gnat_ug_vms.dvi): Simplify rule and adjust target.
8671 (gnat_ug_wnt.dvi): Likewise.
8672 (gnat_ug_unx.dvi): Likewise.
8673 (gnat_ug_vxw.dvi): Likewise.
8674 (gnat_rm.dvi): Likewise.
8675 (gnat-style.dvi): Likewise.
8677 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
8679 * gigi.h: Missed commit from update for C90.
8681 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
8683 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
8685 2003-10-31 Andreas Schwab <schwab@suse.de>
8687 * raise.c (get_action_description_for): Fix typo in last change.
8689 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
8692 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
8693 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
8695 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
8697 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
8698 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
8699 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
8700 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
8701 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
8703 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
8706 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
8707 numbers when symbol name is too long.
8709 2003-10-30 Ed Falis <falis@gnat.com>
8711 * g-signal.ads, g-signal.adb: New files
8713 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
8715 * Makefile.rtl: Introduce GNAT.Signals
8717 2003-10-30 Robert Dewar <dewar@gnat.com>
8719 * freeze.adb: Minor reformatting
8721 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
8723 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
8724 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
8725 New handling of Id_Check parameter to improve recognition of keywords
8726 used as identifiers.
8727 Update copyright notice to include 2003
8729 2003-10-29 Robert Dewar <dewar@gnat.com>
8731 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
8732 sem_ch10.adb: Minor reformatting
8734 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
8735 (Expand_Assign_Record): Test right hand side for bit unaligned as well
8737 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
8739 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
8740 Support for TBK$SYMBOLIZE-based symbolic traceback.
8742 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
8745 Revert previous change, that did not work well when pragma No_Run_Time
8746 was used in conjunction with a run-time other than ZFP.
8748 2003-10-29 Vincent Celier <celier@gnat.com>
8751 (Gnatmake): When there are no Ada mains in attribute Main, disable the
8752 bind and link steps only is switch -z is not used.
8754 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
8756 * Makefile.generic: Remove duplicated setting of CC.
8758 * Makefile.prolog: Set CC to gcc by default, to override make's
8761 * einfo.h: Regenerated.
8763 2003-10-29 Ed Schonberg <schonberg@gnat.com>
8765 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
8766 current body, after compiling subunit.
8768 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
8769 when in deleted code, because gigi needs properly ordered freeze
8770 actions to annotate types.
8772 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
8773 prevent the premature freezing of record type that contains
8774 subcomponents with a private type that does not yet have a completion.
8776 2003-10-29 Javier Miranda <miranda@gnat.com>
8779 (Analyze_Package_Instantiation): Check that instances can not be used in
8780 limited with_clauses.
8783 (Analyze_Package_Renaming): Check that limited withed packages cannot
8784 be renamed. Improve text on error messages related to limited
8787 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
8789 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
8790 Update copyright notice.
8792 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
8793 (Install_Limited_Context_Clauses): New subprogram that isolates all the
8794 checks required for limited context_clauses and installs the limited
8796 (Install_Limited_Withed_Unit): Complete its documentation.
8797 (Analyze_Context): Check that limited with_clauses are only allowed in
8799 (Install_Context): Call Install_Limited_Context_Clauses after the
8800 parents have been installed.
8801 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
8802 package as 'From_With_Type'; this mark indicates that the limited view
8803 is installed. Used to check bad usages of limited with_clauses.
8804 (Build_Limited_Views): Do not add shadow entities to the scope's list
8805 of entities. Do not add real entities to the Non_Limited_Views chain.
8806 Improve error notification.
8807 (Remove_Context_Clauses): Remove context clauses in two phases:
8808 limited views first and regular views later (to maintain the
8810 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
8811 its visible entities.
8813 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
8815 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
8816 with any type that Is_Fixed_Point_Type.
8818 * sinfo.ads: Fix documentation for Associated_Node attribute.
8820 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
8822 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
8823 both '-gnatc' and '-gnatt' are specified.
8825 * atree.adb (Initialize): Add initialization for Node_Count (set to
8828 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8830 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
8831 do not consider as Pure.
8833 Part of implementation of function-at-a-time:
8835 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
8836 (tree_transform): Add new argument to build_component_ref.
8837 (tree_transform, case N_Assignment_Statement): Make and return an
8839 (tree_transform): If result IS_STMT, set flags and return it.
8840 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
8842 * utils2.c (build_simple_component_ref, build_component_ref): Add new
8844 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
8845 (build_allocator): Likewise.
8847 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
8848 Add new arg to build_component_ref.
8849 (maybe_unconstrained_array, unchecked_convert): Likewise.
8851 * ada-tree.def (EXPR_STMT): New code.
8853 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
8855 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
8856 build_component_ref calls.
8858 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
8860 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
8861 (build_component_ref): Add new argument, NO_FOLD_P.
8863 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
8865 * Makefile.generic: Add missing substitution on object_deps handling.
8868 * Make-lang.in (check-ada): Enable ACATS test suite.
8870 2003-10-27 Robert Dewar <dewar@gnat.com>
8873 (Freeze_Array_Type): We do not need an initialization routine for types
8874 derived from String or Wide_String. They should be treated the same
8875 as String and Wide_String themselves. This caused problems with the
8876 use of Initialize_Scalars.
8879 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
8880 composites. This allows use of component clauses that are not byte
8884 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
8885 is an attempt to pack an array of atomic objects.
8887 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
8889 2003-10-27 Pascal Obry <obry@gnat.com>
8892 (Basename): Check for drive letters in a pathname only on DOS based OS.
8894 2003-10-27 Vincent Celier <celier@gnat.com>
8897 (Gnatmake): When unable to change dir to the object dir, display the
8898 content of the parent dir of the obj dir, to try to understand why this
8901 2003-10-27 GNAT Script <nobody@gnat.com>
8903 * Make-lang.in: Makefile automatically updated
8905 2003-10-27 Ed Schonberg <schonberg@gnat.com>
8908 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
8909 should not be done in Save/Restore_Scope_Stack, because it is performed
8913 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
8914 whether use clauses should be removed/restored.
8917 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
8918 whether use clauses should be removed/restored.
8920 2003-10-26 Andreas Jaeger <aj@suse.de>
8922 * Makefile.in: Remove duplicated lines.
8924 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
8926 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
8927 minimize the differences with ACT tree.
8929 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
8930 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
8931 Gnatvsn.Gnat_Static_Version_String to reduce differences between
8934 2003-10-24 Pascal Obry <obry@gnat.com>
8936 * adadecode.c (ostrcpy): New function.
8937 (__gnat_decode): Use ostrcpy of strcpy.
8938 (has_prefix): Set first parameter a const.
8939 (has_suffix): Set first parameter a const.
8940 Update copyright notice. Fix source name in header.
8941 Removes a trailing space.
8944 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
8947 Remove the test against being in No_Run_Time_Mode before generating a
8948 call to Register_Tag. It is redundant with the test against the
8949 availability of the function Register_Tag.
8951 2003-10-24 Vincent Celier <celier@gnat.com>
8953 * g-catiio.adb: (Month_Name): Correct spelling of February
8955 * make.adb: (Mains): New package
8956 (Initialize): Call Mains.Delete
8957 (Gnatmake): Check that each main on the command line is a source of a
8958 project file and, if there are several mains, each of them is a source
8959 of the same project file.
8960 (Gnatmake): When a foreign language is specified in attribute Languages,
8961 no main is specified on the command line and attribute Mains is not
8962 empty, only build the Ada main. If there is no Ada main, just compile
8963 the Ada sources and their closure.
8964 (Gnatmake): If a main is specified on the command line with directory
8965 information, check that the source exists and, if it does, that the path
8966 is the actual path of a source of a project.
8969 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
8970 Full_Path is True, return the full path instead of the simple file name.
8971 (Project_Of): New function
8974 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
8976 (Project_Of): New function
8978 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
8981 Ensure objects of main project are always checked and rebuilt if needed.
8982 Set CC to gcc by default.
8983 Prepare new handling of link by creating a global archive (not activated
8986 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
8987 stringt.h: Update copyright notice. Remove trailing blanks.
8988 Fix source name in header.
8990 2003-10-24 Robert Dewar <dewar@gnat.com>
8992 * sem_ch12.adb: Minor reformatting
8995 Minor reformatting (including new function return style throughout)
8998 Minor reformatting (including new function return style throughout)
9000 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
9002 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
9003 stringt.h: Update copyright notice. Remove trailing blanks.
9004 Fix source name in header.
9006 2003-10-24 GNAT Script <nobody@gnat.com>
9008 * Make-lang.in: Makefile automatically updated
9010 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
9012 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
9013 stringt.h: Convert to ISO C90 declarations and definitions.
9015 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
9018 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
9019 External_Tag attribute definition clauses.
9021 2003-10-23 Ed Schonberg <schonberg@gnat.com>
9024 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
9025 child unit, generate a fully qualified name to avoid spurious errors
9026 when the context contains renamings of different child units with
9027 the same simple name.
9029 * exp_dbug.ads: Add documentation on name qualification for renamings
9032 2003-10-23 Robert Dewar <dewar@gnat.com>
9034 * g-regpat.ads, g-regpat.adb: Minor reformatting
9036 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
9038 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
9040 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9042 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
9045 * urealp.h: (Machine): Update to proper definition.
9047 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
9049 * init.c, adaint.c: Minor reformatting.
9051 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
9053 * adaint.c (w32_epoch_offset): Define static const at file level.
9054 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
9055 rather than t_create, t_access in call to GetFileTime. Use union
9056 to convert between FILETIME and unsigned long long.
9057 (__gnat_file_time_name): Test for invalid file handle.
9058 (__gnat_set_filetime_name): Support win32 targets using
9061 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
9063 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
9065 * ctrl_c.c (__gnat_int_handler): Remove declaration.
9067 * decl.c (creat_concat_name): Const-ify prefix.
9069 * adaint.c: Include ctype.h if __MINGW32__.
9070 (__gnat_readlink): Mark arguments as possibly unused.
9071 (__gnat_symlink): Likewise.
9072 (__gnat_is_symbolic_link): Likewise.
9073 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
9075 (__gnat_file_time_name): Don't declare struct stat statbuf when
9077 (__gnat_is_absolute_path): Add parenthesis around condition of
9078 'if' statement to avoid warning.
9079 (__gnat_plist_init): Specify void as parameter.
9080 (plist_enter): Likewise.
9081 (plist_leave): Likewise.
9082 (remove_handle): Make static. Initialize prev.
9084 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
9086 * Makefile.in: Disable build of gnatpsta. PR ada/10110.
9087 * cstreams.c (__gnat_full_name): Minor improvements and clean up
9090 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9092 * tracebak.c (MAX): Avoid redefinition warning.
9094 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
9095 Change msg to const char *.
9096 (__gnat_install_handler): Remove ss, unused.
9097 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
9099 * cstreams.c (__gnat_full_name): Declare p only when used.
9100 (__gnat_full_name) [sgi] Return buffer.
9102 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
9104 * mingw32.h: New file.
9105 * gnat_wrapper.adb: New file.
9107 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
9109 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
9110 string match a pre compiled regular expression (the corresponding
9111 version of the function working on a raw regular expression)
9112 Fix typos in various comments
9113 Update copyright notice in spec
9115 2003-10-21 Gary Dismukes <dismukes@gnat.com>
9118 (Component_Needs_Simple_Initialization): Return False when the type is a
9119 packed bit array. Revise spec comments to document this case.
9122 (Expand_Pragma_Import): Set any expression on the imported object to
9123 empty to avoid initializing imported objects (in particular this
9124 covers the case of zero-initialization of bit arrays).
9125 Update copyright notice.
9127 2003-10-21 Ed Schonberg <schonberg@gnat.com>
9130 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
9131 a subunit is missing.
9132 (Instantiate_Subprogram_Body): If body of function is missing, set type
9133 of return expression explicitly in dummy body, to prevent cascaded
9134 errors when a subunit is missing.
9138 (Access_Subprogram_Declaration): Verify that return type is valid.
9142 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
9147 (Corresponding_Discriminant): If the scope of the discriminant is a
9148 private type without discriminant, use its full view.
9151 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
9153 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
9154 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
9155 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
9156 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
9157 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
9158 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
9159 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
9160 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
9161 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
9162 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
9163 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
9164 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
9165 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
9166 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
9167 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
9168 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
9169 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
9170 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
9171 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
9172 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
9173 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
9174 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
9175 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
9176 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
9177 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
9178 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
9179 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
9180 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
9181 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
9182 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
9183 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
9184 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
9185 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
9186 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
9187 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
9188 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
9189 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
9190 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
9191 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
9192 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
9193 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
9194 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
9195 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
9196 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
9197 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
9198 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
9199 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
9200 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
9201 vms_conv.ads, vms_conv.adb, vms_data.ads,
9202 vxaddr2line.adb: Files added. Merge with ACT tree.
9204 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
9205 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
9206 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
9207 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
9208 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
9209 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
9210 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
9211 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
9212 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
9213 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
9215 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
9216 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
9217 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
9218 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
9219 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
9220 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
9221 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
9222 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
9223 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
9224 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
9225 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
9226 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
9227 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
9228 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
9229 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
9230 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
9231 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
9232 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
9233 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
9234 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
9235 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
9236 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
9237 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
9238 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
9239 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
9240 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
9241 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
9242 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
9243 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
9244 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
9245 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
9246 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
9247 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
9248 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
9249 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
9250 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
9251 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
9252 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
9253 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
9254 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
9255 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
9256 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
9257 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
9258 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
9259 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
9260 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
9261 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
9262 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
9263 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
9264 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
9265 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
9266 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
9267 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
9268 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
9269 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
9270 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
9271 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
9272 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
9273 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
9274 checks.adb, checks.ads, cio.c, comperr.adb,
9275 comperr.ads, csets.adb, cstand.adb, cstreams.c,
9276 debug_a.adb, debug_a.ads, debug.adb, decl.c,
9277 einfo.adb, einfo.ads, errout.adb, errout.ads,
9278 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
9279 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
9280 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
9281 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
9282 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
9283 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
9284 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
9285 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
9286 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
9287 fe.h, fmap.adb, fmap.ads, fname.adb,
9288 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
9289 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
9290 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
9291 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
9292 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
9293 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
9294 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
9295 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
9296 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
9297 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
9298 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
9299 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
9300 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
9301 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
9302 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
9303 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
9304 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
9305 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
9306 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
9307 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
9308 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
9309 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
9310 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
9311 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
9312 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
9313 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
9314 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
9315 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
9316 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
9317 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
9318 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
9319 layout.adb, lib.adb, lib.ads, lib-list.adb,
9320 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
9321 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
9322 link.c, live.adb, make.adb, make.ads,
9323 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
9324 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
9325 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
9326 misc.c, mkdir.c, mlib.adb, mlib.ads,
9327 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
9328 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
9329 namet.adb, namet.ads, namet.h, nlists.ads,
9330 nlists.h, nmake.adt, opt.adb, opt.ads,
9331 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
9332 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
9333 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
9334 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
9335 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
9336 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
9337 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
9338 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
9339 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
9340 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
9341 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
9342 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
9343 prj-util.adb, prj-util.ads, raise.c, raise.h,
9344 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
9345 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
9346 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
9347 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
9348 scans.ads, scn.adb, scn.ads, s-crc32.adb,
9349 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
9350 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
9351 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
9352 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
9353 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
9354 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
9355 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
9356 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
9357 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
9358 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
9359 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
9360 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
9361 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
9362 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
9363 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
9364 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
9365 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
9366 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
9367 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
9368 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
9369 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
9370 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
9371 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
9372 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
9373 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
9374 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
9375 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
9376 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
9377 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
9378 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
9379 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
9380 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
9381 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
9382 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
9383 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
9384 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
9385 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
9386 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
9387 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
9388 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
9389 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
9390 stringt.adb, stringt.ads, stringt.h, style.ads,
9391 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
9392 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
9393 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
9394 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
9395 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
9396 table.adb, table.ads, targparm.adb, targparm.ads,
9397 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
9398 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
9399 ttypes.ads, types.ads, types.h, uintp.adb,
9400 uintp.ads, uintp.h, uname.adb, urealp.adb,
9401 urealp.ads, urealp.h, usage.adb, utils2.c,
9402 utils.c, validsw.adb, validsw.ads, widechar.adb,
9403 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
9404 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
9405 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
9406 gnatvsn.ads: Merge with ACT tree.
9408 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
9410 2003-10-20 Mark Mitchell <mark@codesourcery.com>
9412 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
9413 (gnat_ug_vmx.info): Likewise.
9414 (gnat_ug_vxw.info): Likewise.
9415 (gnat_ug_wnt.info): Likewise.
9416 (gnat_rm.info): Likewise.
9417 (gnat-style.info): Likewise.
9419 * Make-lang.in (ada.install-info): Remove target.
9421 (install-info): Likewise.
9422 (gnat_ug_unx.info): Simplify rule.
9423 (gnat_ug_vmx.info): Likewise.
9424 (gnat_ug_vxw.info): Likewise.
9425 (gnat_ug_wnt.info): Likewise.
9426 (gnat_rm.info): Likewise.
9427 (gnat-style.info): Likewise.
9429 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
9431 * Make-lang.in: Replace uses of $(target_alias) with
9432 $(target_noncanonical).
9433 * ada/Makefile.in: Remove unused mention of $(target_alias).
9435 2003-10-06 Mark Mitchell <mark@codesourcery.com>
9437 * Make-lang.in (ada.info): Replace with ...
9439 (ada.dvi): Replace with ...
9442 2003-09-29 Zack Weinberg <zack@codesourcery.com>
9444 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
9445 initialize dconstp5 and dconstmp5.
9447 2003-09-28 Richard Henderson <rth@redhat.com>
9449 * trans.c (tree_transform): Update call to expand_asm_operands.
9451 2003-09-21 Richard Henderson <rth@redhat.com>
9453 * trans.c, utils.c: Revert.
9455 2003-09-21 Richard Henderson <rth@redhat.com>
9457 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
9460 2003-09-04 Michael Matz <matz@suse.de>
9462 * misc.c: Include "target.h".
9463 * Make-lang.in (misc.o): Add dependency on target.h.
9465 2003-09-03 DJ Delorie <dj@redhat.com>
9467 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
9470 2003-08-30 Zack Weinberg <zack@codesourcery.com>
9472 * Makefile.in: Update substitutions to match changes to
9473 configure. Use include directives instead of @-insertions
9474 to read in host and target fragments. Add a rule to
9475 regenerate ada/Makefile.
9477 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
9479 * lang-options.h: Remove.
9480 * lang.opt: Add help text.
9482 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
9484 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
9487 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
9489 * misc.c (gnat_handle_option): Don't handle filenames.
9491 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
9493 * Make-lang.in: Replace PWD with PWD_COMMAND.
9494 * Makefile.adalib: Likewise.
9495 * Makefile.in: Likewise.
9497 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
9499 * misc.c (gnat_argv): Revert last change.
9500 (gnat_handle_option, gnat_init_options): Copy arguments.
9502 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
9504 * misc.c (gnat_argv): Make const.
9506 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
9508 * misc.c (save_argc, save_argv): Keep non-static!
9510 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
9512 * misc.c (save_argc, save_argv): Make static.
9513 (gnat_init_options): New prototype.
9514 (gnat_init_options): Update.
9516 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
9518 * gnat_ug.texi: Remove unlikely characters from @vars.
9519 * gnat_ug_vms.texi: Regenerate.
9521 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
9523 * misc.c (record_code_position): Adjust emit_note call.
9525 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
9527 * misc.c (gnat_handle_option): Don't check for missing arguments.
9529 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
9531 * utils.c (end_subprog_body): Adjust expand_function_end call.
9533 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
9535 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
9538 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
9540 * lang.opt: Declare Ada.
9541 * misc.c (gnat_init_options): Update.
9543 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
9545 * utils.c (begin_subprog_body): Adjust init_function_start call.
9547 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
9549 * Make-lang.in: Update to use options.c and options.h.
9550 * misc.c: Include options.h not aoptions.h.
9551 (gnat_handle_option): Abort on unrecognized switch.
9552 (gnat_init_options): Request Ada switches.
9554 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
9556 * lang.opt: Add -Wall.
9557 * misc.c (gnat_handle_option): Handle it.
9559 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
9561 * misc.c (gnat_handle_option): Fix warnings.
9563 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
9565 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
9567 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
9569 * Make-lang.in: Update to handle command-line options.
9570 * lang.opt: New file.
9571 * misc.c: Include aoptions.h.
9572 (cl_options_count, cl_options): Remove.
9573 (gnat_handle_option): New.
9574 (gnat_decode_option): Remove.
9575 (LANG_HOOKS_DECODE_OPTION): Remove.
9576 (LANG_HOOKS_HANDLE_OPTION): Override.
9578 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
9580 * init.c, misc.c, trans.c, utils.c: Remove dead code.
9582 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
9584 * Makefile.in: Replace "host_canonical" with "host" for autoconf
9587 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
9589 * Make-lang.in: Update.
9590 * misc.c: Include opts.h. Define cl_options_count and cl_options.
9592 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
9594 * misc.c (gnat_init_options): Update.
9596 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
9598 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
9599 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
9600 __attribute__ ((__unused__)).
9602 2003-06-05 Jan Hubicka <jh@suse.cz>
9604 * Make-lang.in: Add support for stageprofile and stagefeedback
9606 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
9608 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
9609 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
9611 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
9613 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
9614 Remove non-VMS directive.
9615 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
9617 (Examples of gnatls Usage): Remove VMS alternative.
9619 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
9622 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
9623 and turn ZCX_By_Default back to False since the underlying support
9624 is not quite there yet.
9626 2003-06-01 Andreas Jaeger <aj@suse.de>
9628 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
9629 and ROUND_TYPE_SIZE_UNIT.
9631 2003-05-22 Geert Bosch <bosch@gnat.com>
9633 * gnat_rm.texi : Remove reference to Ada Core Technologies.
9635 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
9637 * trans.c (tree_transform): Use location_t and input_location
9639 (build_unit_elab): Likewise.
9640 * utils.c (create_label_decl): Likewise.
9642 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
9644 * trans.c (tree_transform, build_unit_elab,
9645 set_lineno): Rename lineno to input_line.
9646 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
9647 end_subprog_body): Likewise.
9648 * utils2.c (build_call_raise): Likewise.
9650 2003-05-01 Laurent Guerby <guerby@acm.org>
9653 * 5iosinte.ads: Increase pthread_cond_t size to match recent
9654 LinuxThread and NPTL version, merge from ACT.
9656 2003-04-28 Zack Weinberg <zack@codesourcery.com>
9658 * utils.c (convert): No need to clear TREE_CST_RTL.
9660 2003-04-23 Geert Bosch <bosch@gnat.com>
9662 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
9663 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
9664 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
9665 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
9666 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
9667 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
9668 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
9669 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
9670 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
9671 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
9672 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
9673 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
9674 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
9675 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
9676 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
9677 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
9678 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
9679 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
9680 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
9681 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
9682 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
9683 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
9684 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
9685 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
9686 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
9687 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
9688 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
9689 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
9690 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
9691 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
9692 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
9693 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
9694 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
9695 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
9696 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
9697 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
9698 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
9699 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
9700 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
9701 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
9702 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
9703 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
9704 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
9705 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
9706 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
9707 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
9708 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
9709 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
9710 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
9711 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
9712 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
9713 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
9714 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
9715 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
9716 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
9717 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
9718 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
9719 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
9720 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
9721 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
9722 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
9723 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
9724 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
9725 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
9726 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
9727 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
9728 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
9729 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
9730 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
9731 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
9732 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
9733 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
9734 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
9735 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
9736 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
9737 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
9738 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
9739 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
9740 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
9741 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
9742 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
9743 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
9744 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
9745 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
9746 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
9747 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
9748 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
9749 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
9750 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
9751 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
9752 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
9753 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
9754 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
9755 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
9756 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
9757 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
9758 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
9759 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
9760 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
9761 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
9762 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
9763 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
9764 ali.adb, ali.ads, alloc.ads, argv.c,
9765 atree.adb, atree.ads, atree.h, aux-io.c,
9766 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
9767 binde.adb, binde.ads, binderr.adb, binderr.ads,
9768 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
9769 butil.adb, butil.ads, cal.c, calendar.ads,
9770 casing.adb, casing.ads, ceinfo.adb, checks.adb,
9771 checks.ads, cio.c, comperr.adb, comperr.ads,
9772 config-lang.in, csets.adb, csets.ads, csinfo.adb,
9773 cstand.adb, cstand.ads, cuintp.c, debug.adb,
9774 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
9775 dec-io.ads, dec.ads, deftarg.c, directio.ads,
9776 einfo.adb, einfo.ads, elists.adb, elists.ads,
9777 elists.h, errno.c, errout.adb, errout.ads,
9778 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
9779 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
9780 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
9781 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
9782 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
9783 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
9784 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
9785 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
9786 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
9787 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
9788 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
9789 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
9790 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
9791 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
9792 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
9793 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
9794 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
9795 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
9796 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
9797 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
9798 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
9799 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
9800 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
9801 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
9802 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
9803 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
9804 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
9805 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
9806 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
9807 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
9808 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
9809 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
9810 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
9811 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
9812 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
9813 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
9814 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
9815 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
9816 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
9817 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
9818 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
9819 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
9820 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
9821 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
9822 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
9823 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
9824 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
9825 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
9826 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
9827 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
9828 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
9829 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
9830 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
9831 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
9832 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
9833 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
9834 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
9835 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
9836 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
9837 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
9838 lib.adb, lib.ads, live.adb, live.ads,
9839 machcode.ads, make.adb, make.ads, makeusg.adb,
9840 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
9841 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
9842 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
9843 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
9844 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
9845 mlib.ads, namet.adb, namet.ads, nlists.adb,
9846 nlists.ads, opt.adb, opt.ads, osint-b.adb,
9847 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
9848 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
9849 osint.ads, output.adb, output.ads, par-ch10.adb,
9850 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
9851 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
9852 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
9853 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
9854 par-tchk.adb, par-util.adb, par.adb, par.ads,
9855 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
9856 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
9857 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
9858 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
9859 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
9860 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
9861 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
9862 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
9863 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
9864 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
9865 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
9866 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
9867 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
9868 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
9869 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
9870 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
9871 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
9872 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
9873 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
9874 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
9875 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
9876 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
9877 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
9878 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
9879 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
9880 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
9881 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
9882 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
9883 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
9884 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
9885 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
9886 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
9887 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
9888 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
9889 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
9890 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
9891 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
9892 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
9893 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
9894 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
9895 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
9896 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
9897 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
9898 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
9899 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
9900 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
9901 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
9902 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
9903 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
9904 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
9905 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
9906 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
9907 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
9908 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
9909 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
9910 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
9911 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
9912 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
9913 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
9914 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
9915 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
9916 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
9917 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
9918 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
9919 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
9920 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
9921 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
9922 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
9923 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
9924 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
9925 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
9926 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
9927 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
9928 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
9929 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
9930 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
9931 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
9932 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
9933 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
9934 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
9935 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
9936 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
9937 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
9938 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
9939 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
9940 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
9941 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
9942 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
9943 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
9944 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
9945 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
9946 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
9947 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
9948 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
9949 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
9950 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
9951 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
9952 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
9953 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
9954 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
9955 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
9956 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
9957 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
9958 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
9959 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
9960 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
9961 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
9962 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
9963 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
9964 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
9965 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
9966 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
9967 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
9968 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
9969 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
9970 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
9971 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
9972 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
9973 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
9974 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
9975 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
9976 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
9977 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
9978 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
9979 snames.ads, sprint.adb, sprint.ads, stand.adb,
9980 stand.ads, stringt.adb, stringt.ads, style.adb,
9981 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
9982 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
9983 switch-m.ads, switch.adb, switch.ads, system.ads,
9984 table.adb, table.ads, targparm.adb, targparm.ads,
9985 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
9986 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
9987 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
9988 ttypef.ads, ttypes.ads, types.adb, types.ads,
9989 uintp.adb, uintp.ads, uname.adb, uname.ads,
9990 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
9991 usage.adb, usage.ads, validsw.adb, validsw.ads,
9992 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
9993 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
9994 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
9995 formatting and other trivial changes from ACT.
9997 2003-04-12 Zack Weinberg <zack@codesourcery.com>
9999 * gigi.h, utils2.c (build_constructor):
10000 Rename gnat_build_constructor. Use build_constructor.
10001 * decl.c (gnat_to_gnu_entity)
10002 * trans.c (tree_transform, pos_to_constructor, extract_values)
10003 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
10004 (unchecked_convert)
10005 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
10006 (fill_vms_descriptor):
10009 2003-04-06 Zack Weinberg <zack@codesourcery.com>
10011 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
10012 * misc.c (gnat_tree_size): New function.
10013 (LANG_HOOKS_TREE_SIZE): Override.
10015 2003-04-03 Jason Merrill <jason@redhat.com>
10017 * misc.c (gnat_adjust_rli): #if 0.
10019 2003-03-31 Geert Bosch <bosch@gnat.com>
10022 * link.c : Fix misspelled "const" keyword
10024 2003-03-23 Mark Mitchell <mark@codesourcery.com>
10027 * utils2.c: Adjust calls to put_var_into_stack.
10029 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
10031 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
10033 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
10035 * misc.c (gnat_init): Update for new prototype.
10037 2003-03-05 Olivier Hainque <hainque@gnat.com>
10040 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
10041 warning, and fix return type for the IN_RTS && !SJLJ case.
10043 2003-03-04 Tom Tromey <tromey@redhat.com>
10045 * Make-lang.in (ada.tags): New target.
10047 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
10050 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
10051 wrapper, which name remains constant whatever underlying GCC
10054 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
10055 the stable interface needed for a-except.
10057 2003-03-02 Andreas Jaeger <aj@suse.de>
10059 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
10060 gnat_ug_wnt.texi: Regenerate.
10062 2003-03-02 Laurent Guerby <guerby@acm.org>
10064 * Makefile.in (install-gnatlib): Match previous change there
10067 2003-02-28 Andreas Schwab <schwab@suse.de>
10069 * Make-lang.in (install-gnatlib): Change to ada directory before
10070 running make instead of using ada/Makefile directly.
10072 2003-02-18 Ben Elliston <bje@redhat.com>
10074 Part of fix for PR ada/9406
10075 * gnat_ug.texi (Binder output file): Grammar fix.
10077 2003-02-18 Ben Elliston <bje@redhat.com>
10080 * 5qtaprop.adb (Sleep): Fix typo in comment.
10082 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
10084 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
10085 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
10086 gnat_ug_wnt.texi: Regenerate.
10088 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
10090 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
10091 be created if necessary.
10092 (ada.install-common): Let $(DESTDIR)$(bindir) be created
10093 if necessary. Remove erroneous and redundant gnatchop
10094 installation commands. Test for gnatdll before attempting
10096 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
10097 and gnatdll from all plausible locations.
10099 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
10101 * utils2.c (build_unary_op): Don't check flag_volatile.
10102 * gnat_ug.texi: Remove -fvolatile from example.
10103 * gnat_ug_vxw.texi: Likewise.
10105 2003-01-29 Laurent Guerby <guerby@acm.org>
10108 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
10109 * Makefile.in: match previous change.
10110 * Make-lang.in: match previous change.
10112 2003-01-29 Joel Sherrill <joel@OARcorp.com>
10114 * 5rosinte.ads: Add SIGXCPU.
10115 * 5rtpopsp.adb: New file.
10116 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
10117 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
10118 specific file 5rtpopsp.adb.
10119 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
10120 is likely needed for all newlib targets.
10121 * init.c: Add RTEMS specific version of __gnat_initialize().
10123 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10125 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
10127 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10129 * init.c (__gnat_error_handler): Make msg const.
10131 * gmem.c (convert_addresses): Move declaration ...
10132 * adaint.h: ... here.
10133 * adaint.c (convert_addresses): Adapt addrs type to match
10136 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
10138 2003-01-24 Andreas Schwab <schwab@suse.de>
10140 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
10141 size_t to avoid warning.
10143 2003-01-21 Zack Weinberg <zack@codesourcery.com>
10145 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
10147 2003-01-09 Geoffrey Keating <geoffk@apple.com>
10149 * gnat_rm.texi: Remove RCS version number.
10151 * ada-tree.h (union lang_tree_node): Add chain_next option.
10153 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
10155 * Make-lang.in (ada.install-info, ada.install-common,
10156 ada.uninstall): Prepend $(DESTDIR) to the destination
10157 directory in all (un)installation commands.
10158 * Makefile.in (install-gnatlib, install-rts): Ditto.
10160 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
10162 * gnat_rm.texi, gnat_ug.texi: Use @copying.
10163 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
10164 gnat_ug_wnt.texi: Regenerate.
10166 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
10168 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
10170 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
10171 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
10172 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
10173 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
10174 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
10175 $(srcdir)/doc/include/gcc-common.texi.
10177 2002-12-15 Geert Bosch <bosch@gnat.com>
10179 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
10181 2002-12-14 Geert Bosch <bosch@gnat.com>
10183 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
10184 case of a body created for a Renaming_As_Body, on which
10185 conformance checks are not performed. Fixes PR ada/5690.
10187 2002-11-30 Zack Weinberg <zack@codesourcery.com>
10189 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
10190 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
10191 not already included.
10192 * Make-lang.in: Update dependencies.
10194 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
10195 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
10196 solution to buffer overflow bug on GNU/Linux.
10198 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
10199 Closes PR ada/5856 and PR ada/6919 !
10200 * bindgen.adb: Remove all references to Public_Version.
10201 * comperr.adb: Remove all references to Public_Version and
10202 GNATPRO_Version; correct bug reporting instructions.
10203 * comperr.ads: Change to match bug box.
10204 * gnatvsn.ads: Remove all references to Public version and
10207 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
10209 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
10213 * config-lang.in: Remove diff_excludes.
10215 2002-11-05 Graham Stott <graham.stott@btinternet.com>
10217 * trans.c (gnu_pending_elaboration_lists): New GC root.
10218 (build_unit_elab): Use..
10220 2002-10-30 Geert Bosch <bosch@gnat.com>
10222 * misc.c : Include optabs.h
10224 * Make-lang.in (misc.o): Add dependency on optabs.h
10226 2002-10-29 Geert Bosch <bosch@gnat.com>
10228 * Make-lang.in (gnatbind): Depend on CONFIG_H
10230 2002-10-29 Geert bosch <bosch@gnat.com>
10232 * misc.c: Unrevert misc.c (1.13)
10234 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
10236 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
10237 maintainership comments.
10239 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
10241 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
10242 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
10243 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
10244 7staprop.adb: Correct statements in comments about
10245 maintainership of GNAT.
10248 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
10249 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
10250 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
10251 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
10252 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
10253 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
10254 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
10255 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
10256 comments about maintainership of GNAT.
10258 PR ada/6919 (forward port of patch for PR ada/5904)
10259 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
10260 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
10261 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
10262 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
10263 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
10264 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
10265 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
10266 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
10267 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
10268 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
10269 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
10270 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
10271 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
10272 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
10273 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
10274 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
10275 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
10276 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
10277 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
10278 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
10279 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
10280 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
10281 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
10282 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
10283 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
10284 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
10285 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
10286 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
10287 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
10288 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
10289 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
10290 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
10291 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
10292 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
10293 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
10294 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
10295 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
10296 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
10297 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
10298 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
10299 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
10300 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
10301 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
10302 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
10303 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
10304 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
10305 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
10306 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
10307 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
10308 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
10309 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
10310 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
10311 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
10312 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
10313 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
10314 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
10315 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
10316 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
10317 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
10318 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
10319 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
10320 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
10321 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
10322 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
10323 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
10324 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
10325 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
10326 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
10327 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
10328 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
10329 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
10330 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
10331 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
10332 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
10333 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
10334 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
10335 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
10336 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
10337 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
10338 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
10339 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
10340 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
10341 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
10342 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
10343 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
10344 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
10345 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
10346 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
10347 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
10348 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
10349 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
10350 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
10351 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
10352 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
10353 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
10354 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
10355 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
10356 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
10357 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
10358 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
10359 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
10360 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
10361 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
10362 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
10363 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
10364 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
10365 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
10366 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
10367 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
10368 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
10369 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
10370 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
10371 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
10372 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
10373 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
10374 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
10375 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
10376 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
10377 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
10378 par-endh.adb par-labl.adb par-load.adb par-prag.adb
10379 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
10380 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
10381 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
10382 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
10383 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
10384 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
10385 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
10386 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
10387 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
10388 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
10389 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
10390 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
10391 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
10392 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
10393 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
10394 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
10395 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
10396 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
10397 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
10398 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
10399 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
10400 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
10401 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
10402 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
10403 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
10404 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
10405 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
10406 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
10407 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
10408 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
10409 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
10410 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
10411 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
10412 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
10413 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
10414 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
10415 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
10416 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
10417 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
10418 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
10419 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
10420 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
10421 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
10422 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
10423 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
10424 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
10425 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
10426 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
10427 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
10428 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
10429 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
10430 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
10431 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
10432 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
10433 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
10434 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
10435 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
10436 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
10437 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
10438 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
10439 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
10440 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
10441 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
10442 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
10443 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
10444 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
10445 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
10446 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
10447 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
10448 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
10449 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
10450 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
10451 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
10452 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
10453 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
10454 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
10455 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
10456 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
10457 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
10458 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
10459 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
10460 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
10461 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
10462 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
10463 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
10464 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
10465 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
10466 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
10467 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
10468 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
10469 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
10470 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
10471 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
10472 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
10473 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
10474 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
10475 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
10476 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
10477 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
10478 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
10479 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
10480 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
10481 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
10482 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
10483 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
10484 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
10485 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
10486 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
10487 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
10488 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
10489 stringt.ads stringt.h style.adb style.ads stylesw.adb
10490 stylesw.ads switch.adb switch.ads sysdep.c system.ads
10491 table.adb table.ads targparm.adb targparm.ads targtyps.c
10492 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
10493 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
10494 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
10495 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
10496 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
10497 usage.ads utils.c utils2.c validsw.adb validsw.ads
10498 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
10499 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
10500 xtreeprs.adb: Correct statements in comments about maintainership
10503 2002-09-23 Zack Weinberg <zack@codesourcery.com>
10505 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
10506 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
10507 * gnatvsn.ads: Gnat_Version_String is now a function.
10508 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
10509 copy the C version_string into a String and return it.
10510 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
10511 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
10512 Remove pragma Ident (Gnat_Version_String). If this was the
10513 sole use of package Gnatvsn, remove the with statement too.
10514 * gnat1drv.adb: Tweak -gnatv output.
10516 2002-09-17 Richard Henderson <rth@redhat.com>
10518 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
10519 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
10520 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
10521 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
10522 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
10523 and real_2expN instead of a loop.
10524 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
10525 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
10527 2002-08-25 Andre Leis <a.leis@gmx.net>
10528 David Billinghurst (David.Billinghurst@riotinto.com>
10530 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
10532 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10534 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
10535 Remove $(CONFIG_H) dependency.
10537 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
10539 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
10541 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10543 * adadecode.c (ada_demangle): Use xstrdup in lieu of
10545 * misc.c (gnat_decode_option): Likewise.
10547 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
10549 * make.adb (Add_Switch): Make Generic_Position a procedure. The
10550 function approach did not work well because of a side effect (the
10551 function call could reallocate the table which was being indexed
10552 using its result). Fixes ada/4851. [RESURRECTED]
10554 2002-07-01 Roger Sayle <roger@eyesopen.com>
10556 * ada/utils.c (builtin_function): Accept an additional parameter.
10558 2002-06-28 Andreas Jaeger <aj@suse.de>
10561 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
10564 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10566 * Makefile.in (SHELL): Set to @SHELL@.
10568 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10570 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
10571 array size calculation.
10573 2002-06-04 Andreas Jaeger <aj@suse.de>
10575 * Make-lang.in (gnatbind): Readd rule that has been lost in last
10578 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
10580 Merge from pch-branch:
10582 * config-lang.in (gtfiles): Add ada-tree.h.
10583 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
10584 (SET_TYPE_MODULUS): New.
10585 (SET_TYPE_INDEX): New.
10586 (SET_TYPE_DIGITS_VALUE): New.
10587 (SET_TYPE_RM_SIZE): New.
10588 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
10589 (SET_TYPE_ADA_SIZE): New.
10590 (SET_TYPE_ACTUAL_BOUNDS): New.
10591 (SET_DECL_CONST_CORRESPONDING_VAR): New.
10592 (SET_DECL_ORIGINAL_FIELD): New.
10593 (TREE_LOOP_ID): Correct typo.
10594 * decl.c: Use new macros.
10595 * utils.c: Include debug.h, use new macros.
10596 * utils2.c: Use new macros.
10598 * ada-tree.h: Update all macros for new tree description.
10599 (struct tree_loop_id): New.
10600 (union lang_tree_node): New.
10601 (struct lang_decl): New.
10602 (struct lang_type): New.
10603 * misc.c (gnat_mark_tree): Delete.
10604 (LANG_HOOKS_MARK_TREE): Delete.
10605 * trans.c (tree_transform): No longer any need to cast
10608 * utils.c (struct language_function): New dummy structure.
10610 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
10611 (misc.o): Likewise.
10612 (utils.o): Likewise; also gtype-ada.h.
10613 * Make-lang.in (gnat1): Add dependency on s-gtype.
10614 (gnatbind): Add dependency on $(CONFIG_H).
10615 * utils.c: Correct last #include.
10616 (stuct e_stack): Remove unnecessary 'static'.
10617 (mark_e_stack): Remove unused prototype.
10619 * scn-nlit.adb: Remove whitespace after version number to
10620 keep lines under 80 chars.
10621 * snames.adb: Likewise.
10622 * treepr.ads: Likewise.
10624 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
10625 (misc.o): Likewise.
10626 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
10627 * config-lang.in (gtfiles): New.
10628 * decl.c: Use gengtype for roots.
10629 * gigi.h: Use gengtype for roots.
10630 * trans.c: Use gengtype for roots.
10631 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
10633 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
10635 * misc.c (gnat_init): Adjust setting of internal_error_function.
10637 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
10639 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
10640 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
10641 gnat_ug_wnt.texi: Regenerate.
10643 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
10645 * 5ntaprop.adb (with System.OS_Primitives): Remove.
10647 * cstreams.c (max_path_len): Move from here ...
10648 * adaint.c (__gnat_max_path_len): ... to here.
10649 * adaint.c (__gnat_max_path_len): Declare.
10650 * g-dirope.adb (Max_Path): Adjust.
10651 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
10652 * i-cstrea.ads (max_path_len): Adjust.
10653 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
10654 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
10656 * Makefile.in, Make-lang.in: Documentation is now built in
10657 Make-lang.in. Store Info and generated Texinfo files in the
10659 * gnat_ug.texi: Remove CVS keywords, correct version number.
10660 Set file name correctly.
10662 * gnat_ug_*.texi: Add.
10663 * .cvsignore: Ignore generated Texinfo files.
10665 2002-05-30 Zack Weinberg <zack@codesourcery.com>
10667 * ada.h: Add MI guard macro.
10668 (SUBTYPE): Define constants with an anonymous enum, not static
10670 (IN): Cast constants to appropriate type before use.
10672 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
10674 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
10677 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10679 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
10680 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
10681 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
10682 (ALL_ADA_CFLAGS): Likewise.
10683 (ADA_INCLUDES): Likewise.
10684 Adapt for new working dir.
10685 (GNATBIND): Use Makefile.in version.
10686 (.SUFFIXES): Copy from Makefile.in.
10687 (ada-warn): Define.
10688 (.adb.o, .ads.o): Copy from Makefile.in.
10689 Added $(OUTPUT_OPTION).
10690 (GNAT1_C_OBJS): Moved from Makefile.in.
10691 Prefix with ada subdir.
10692 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
10693 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
10694 Adapt for new working dir.
10695 (EXTRA_GNATBIND_OBJS): Likewise.
10696 (ADA_BACKEND): Moved from Makefile.in.
10697 Renamed to avoid conflict with global BACKEND.
10699 (TARGET_ADA_SRCS): Moved from Makefile.in.
10700 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
10702 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
10703 (ada_extra_files): Moved from Makefile.in.
10704 Prefix with ada subdir.
10705 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
10706 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
10707 (ada/nmake.ads): Likewise.
10708 (update-sources): Moved from Makefile.in.
10709 Prefix with ada subdir.
10710 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
10711 (ADA_TREE_H): Likewise.
10712 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
10713 (ada/memtrack.o): Likewise.
10714 (ada/adadecode.o): Likewise.
10715 Update dependencies.
10716 (ada/adaint.o): New.
10717 (ada/argv.o): Moved from Makefile.in.
10718 Prefix with ada subdir.
10719 Update dependencies.
10720 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
10721 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
10722 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
10723 Prefix with ada subdir.
10724 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
10725 (GNAT DEPENDENCIES): Regenerate.
10726 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
10727 toplevel Makefile.in.
10728 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
10729 (TARGET_ADA_SRCS): Removed.
10730 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
10731 (GNATBIND_OBJS): Likewise.
10732 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
10733 (BACKEND): Removed.
10734 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
10735 (TREE_H): Likewise.
10736 (ada_extra_files): Likewise.
10737 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
10738 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
10739 (update-sources): Likewise.
10740 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
10741 (ADA_TREE_H): Likewise.
10742 (adadecoce.o): Likewise.
10743 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
10744 (GNAT DEPENDENCIES): Likewise.
10746 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10748 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
10749 * Makefile.in: Likewise.
10751 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10753 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
10754 Restore $(CONFIG_H) and prefix.o dependencies.
10755 (ada.stage[1-4]): Depend on stage?-start.
10757 * Makefile.in (b_gnatb.c): Depend on interfac.o.
10759 2002-05-02 Jim Wilson <wilson@redhat.com>
10761 * utils.c (finish_record_type): Change record_size to record_type.
10763 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
10765 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
10766 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
10767 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
10769 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
10771 * misc.c (gnat_parse_file): Update.
10773 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
10775 * misc.c (gnat_init): Don't set lang_attribute_common.
10777 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
10779 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
10781 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
10783 * gnat_ug.texi: New file.
10785 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
10786 instead of gfdl.texi
10788 * xgnatug.adb, ug_words: New files.
10790 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
10791 gnat_rm and gnat-style manuals.
10793 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
10795 * gigi.h (incomplete_type_error): Remove.
10796 * utils.c (incomplete_type_error): Remove.
10798 2002-04-16 Mark Mitchell <mark@codesourcery.com>
10800 * trans.c (tree_transform): Add has_scope argument to
10801 expand_start_stmt_expr.
10803 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
10805 * gigi.h (truthvalue_conversion): Rename.
10806 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
10807 * trans.c (tree_transform): Update.
10808 * utils2.c (truthvalue_conversion): Rename, update.
10809 (build_binary_op, build_unary_op): Update.
10811 2002-04-04 Laurent Guerby <guerby@acm.org>
10813 * make.adb: Implement -margs, remove restriction about file name placement.
10814 * makeusg.adb: Documentation update.
10815 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
10816 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
10818 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
10820 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
10821 (builtin_function): Similarly.
10823 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
10825 * decl.c (gnat_to_gnu_entity): Update.
10826 * gigi.h (mark_addressable): Rename.
10827 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
10828 * trans.c (tree_transform): Update.
10829 * utils.c (create_var_decl): Update.
10830 * util2.c (build_binary_op, build_unary_op,
10831 fill_vms_descriptor): Update.
10832 (mark_addressable): Rename, update.
10834 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
10836 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
10838 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
10839 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
10840 * trans.c (tree_transform, convert_with_check): Update.
10841 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
10844 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
10846 * gigi.h (finish_incomplete_decl): Rename.
10847 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
10848 * utils.c (gnat_init_decl_processing): Don't set hook.
10849 (finish_incomplete_decl): Rename.
10851 2002-03-29 Andreas Schwab <schwab@suse.de>
10853 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
10856 2001-03-28 Robert Dewar <dewar@gnat.com>
10859 (Remove_Checks): New procedure
10862 (Remove_Checks): New procedure
10865 Use new Duplicate_Subexpr functions
10866 (Duplicate_Subexpr_No_Checks): New procedure
10867 (Duplicate_Subexpr_No_Checks_Orig): New procedure
10868 (Duplicate_Subexpr): Restore original form (checks duplicated)
10869 (Duplicate_Subexpr): Call Remove_Checks
10872 (Duplicate_Subexpr_No_Checks): New procedure
10873 (Duplicate_Subexpr_No_Checks_Orig): New procedure
10874 Add 2002 to copyright notice
10876 * sem_util.adb: Use new Duplicate_Subexpr functions
10879 (Eval_Indexed_Component): This is the place to call
10880 Constant_Array_Ref and to replace the value. We simply merge
10881 the code of this function in here, since it is now no longer
10882 used elsewhere. This fixes the problem of the back end not
10883 realizing we were clever enough to see that this was
10885 (Expr_Val): Remove call to Constant_Array_Ref
10886 (Expr_Rep_Val): Remove call to Constant_Array_Ref
10888 (Constant_Array_Ref): Deal with string literals (patch
10889 suggested by Zack Weinberg on the gcc list)
10891 2001-03-28 Ed Schonberg <schonber@gnat.com>
10893 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
10894 Duplicate_Subexpr_Move_Checks.
10896 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
10897 Duplicate_Subexpr_Move_Checks.
10899 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
10900 value of array exists before retrieving it (it may a private
10901 protected component in a function).
10903 2002-03-28 Geert Bosch <bosch@gnat.com>
10905 * prj-pp.adb : New file.
10907 * prj-pp.ads : New file.
10909 2002-03-28 Andreas Jaeger <aj@suse.de>
10911 * Makefile.in (stamp-sdefault): Fix path for Makefile.
10913 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
10915 * misc.c (gnat_expand_expr): Move prototype.
10917 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
10919 * misc.c (insert_default_attributes): Remove.
10921 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
10923 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
10924 (gnat_init): Don't set hook.
10925 (gnat_expand_expr): Fix prototype.
10927 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
10929 * misc.c (ggc_p): Remove.
10931 2002-03-27 Geert Bosch <bosch@gnat.com>
10933 * prj-makr.ads, prj-makr.adb : New files.
10935 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
10937 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
10938 (lang_mark_tree): Make static, rename.
10940 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
10942 * misc.c (maybe_build_cleanup): Remove.
10944 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
10946 * gigi.h (yyparse): Remove.
10948 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
10950 * gnat_rm.texi: Sync with ACT version.
10951 (From Ben Brosgol <brosgol@gnat.com>)
10953 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
10955 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
10956 (gnat_init): Remove old hook.
10958 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
10960 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
10961 (yyparse): Rename gnat_parse_file.
10963 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
10965 Delete all lines containing "$Revision:".
10966 * xeinfo.adb: Don't look for revision numbers.
10967 * xnmake.adb: Likewise.
10968 * xsinfo.adb: Likewise.
10969 * xsnames.adb: Likewise.
10970 * xtreeprs.adb: Likewise.
10972 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10974 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
10975 gnat_tree_code_name): Delete.
10976 (tree_code_type, tree_code_length, tree_code_name): Define.
10977 (gnat_init): Don't try to copy into the various tree_code
10980 2002-03-11 Richard Henderson <rth@redhat.com>
10982 * Makefile.in (.NOTPARALLEL): Add fake tag.
10984 2002-03-07 Geert Bosch <bosch@gnat.com>
10986 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
10987 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
10988 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
10989 switch-m.adb, switch-m.ads : New files.
10991 2002-03-07 Geert Bosch <bosch@gnat.com>
10993 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
10994 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
10995 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
10996 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
10997 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
10998 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
10999 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
11000 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
11001 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
11002 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
11003 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
11004 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
11005 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
11006 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
11007 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
11008 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
11009 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
11010 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
11011 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
11012 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
11013 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
11014 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
11015 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
11016 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
11017 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
11018 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
11019 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
11020 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
11021 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
11022 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
11023 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
11024 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
11025 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
11026 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
11027 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
11028 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
11029 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
11030 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
11031 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
11032 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
11033 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
11034 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
11035 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
11036 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
11037 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
11038 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
11039 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
11040 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
11041 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
11042 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
11043 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
11044 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
11045 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
11046 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
11047 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
11048 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
11049 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
11050 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
11051 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
11052 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
11053 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
11054 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
11055 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
11056 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
11057 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
11058 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
11059 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
11060 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
11061 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
11062 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
11063 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
11064 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
11065 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
11066 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
11067 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
11068 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
11069 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
11070 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
11071 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
11072 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
11073 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
11074 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
11075 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
11076 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
11077 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
11078 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
11079 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
11080 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
11081 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
11082 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
11083 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
11084 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
11085 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
11086 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
11087 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
11088 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
11089 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
11091 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
11092 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
11093 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
11094 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
11096 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
11097 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
11099 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
11100 to mdll-fil.ad[bs] and mdll-util.ad[bs]
11102 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
11103 from mdllfile.ad[bs] and mdlltool.ad[bs]
11105 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11107 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
11108 lieu of explicit sizeof/sizeof.
11110 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
11112 * misc.c (copy_lang_decl): Remove.
11114 2002-02-27 Zack Weinberg <zack@codesourcery.com>
11116 * misc.c: Delete traditional-mode-related code copied from the
11117 C front end but not used, or used only to permit the compiler
11120 2002-02-07 Richard Henderson <rth@redhat.com>
11122 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
11123 * adaint.h (__gnat_to_gm_time): Update prototype.
11125 2002-01-30 Richard Henderson <rth@redhat.com>
11127 * trans.c (tree_transform) [N_Loop_Statement]: Use
11128 expand_exit_loop_top_cond.
11130 2001-12-23 Richard Henderson <rth@redhat.com>
11132 * utils.c (end_subprog_body): Push GC context around
11133 rest_of_compilation for nested functions.
11135 2001-12-23 Richard Henderson <rth@redhat.com>
11137 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
11139 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
11141 * gnat-style.texi (Declarations and Types): Remove ancient style
11142 rule which was mandated by code generation issues.
11144 * gnat-style.texi (header): Add @dircategory, @direntry.
11145 (title page): Remove date.
11146 (general) Add @./@: where approriate, and two spaces after the
11147 full stop at the end of a sentence. Use @samp markup when
11148 referring concrete lexical entities (keywords, attribute names
11149 etc.), and @syntax for ARM grammar elements. Use @r for English
11150 text in comments. Use @emph for emphasis. Change "if-statements"
11151 etc. to "if statements" (without @samp). Break long lines. Make
11152 casing of section names consistent.
11153 (Identifiers): Use @samp markup for variable names.
11154 (Comments): Use @samp markup for comment characters. Line-end
11155 comments may follow any Ada code, not just statements. Fix
11156 misspelling of "Integer" as "integer".
11157 (Loop statements): Do not use variable name "I", use "J".
11158 (Subprogram Declarations): Document alignment.
11159 (Subprogram Bodies, Block statements): Document empty line before
11162 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
11164 * make.adb (Add_Switch): Make Generic_Position a procedure. The
11165 function approach did not work well because of a side effect (the
11166 function call could reallocate the table which was being indexed
11167 using its result). Fixes ada/4851.
11169 2001-12-19 Robert Dewar <dewar@gnat.com>
11171 * bindgen.adb: Minor reformatting
11173 * cstand.adb: Minor reformatting
11175 * fmap.adb: Minor reformatting
11176 Change name from Add for Add_To_File_Map (Add is much too generic)
11177 Change Path_Name_Of to Mapped_Path_Name
11178 Change File_Name_Of to Mapped_File_Name
11179 Fix copyright dates in header
11182 Change name from Add for Add_To_File_Map (Add is much too generic)
11183 Change Path_Name_Of to Mapped_Path_Name
11184 Change File_Name_Of to Mapped_File_Name
11185 Fix copyright dates in header
11187 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
11188 Add use clause for Fmap.
11190 * make.adb: Minor reformatting
11192 * osint.adb: Minor reformatting. Change of names in Fmap.
11193 Add use clause for Fmap.
11195 * prj-env.adb: Minor reformatting
11197 * prj-env.ads: Minor reformatting
11199 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
11200 error found (there were odd exceptions to this general rule in
11201 -gnatec/-gnatem processing)
11203 2001-12-19 Olivier Hainque <hainque@gnat.com>
11205 * raise.c (__gnat_eh_personality): Exception handling personality
11206 routine for Ada. Still in rough state, inspired from the C++ version
11207 and still containing a bunch of debugging artifacts.
11208 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
11209 inspired from the C++ library.
11211 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
11212 exception handling integration.
11214 2001-12-19 Arnaud Charlet <charlet@gnat.com>
11216 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
11217 (HIE_SOURCES): Add s-secsta.ad{s,b}.
11218 (HIE_OBJS): Add s-fat*.o
11219 (RAVEN_SOURCES): Remove files that are no longer required. Add
11220 interrupt handling files.
11221 (RAVEN_MOD): Removed, no longer needed.
11223 2001-12-19 Robert Dewar <dewar@gnat.com>
11225 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
11226 Add 2001 to copyright date
11228 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
11229 need to force universal inlining for these cases.
11231 2001-12-19 Arnaud Charlet <charlet@gnat.com>
11233 * s-taprob.adb: Minor clean ups so that this unit can be used in
11236 * exp_ch7.adb: Allow use of secondary stack in HI mode.
11237 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
11239 2001-12-19 Vincent Celier <celier@gnat.com>
11241 * prj-tree.ads (Project_Node_Record): Add comments for components
11242 Pkg_Id and Case_Insensitive.
11244 2001-12-19 Pascal Obry <obry@gnat.com>
11246 * g-socket.adb: Minor reformatting. Found while reading code.
11248 2001-12-19 Robert Dewar <dewar@gnat.com>
11250 * prj-tree.ads: Minor reformatting
11252 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
11254 * config-lang.in (diff_excludes): Remove.
11256 2001-12-17 Ed Schonberg <schonber@gnat.com>
11258 * sem_res.adb (Resolve_Selected_Component): do not generate a
11259 discriminant check if the selected component is a component of
11260 the argument of an initialization procedure.
11262 * trans.c (tree_transform, case of arithmetic operators): If result
11263 type is private, the gnu_type is the base type of the full view,
11264 given that the full view itself may be a subtype.
11266 2001-12-17 Robert Dewar <dewar@gnat.com>
11268 * sem_res.adb: Minor reformatting
11270 * trans.c (tree_transform, case N_Real_Literal): Add missing third
11271 parameter in call to Machine (unknown horrible effects from this
11274 * urealp.h: Add definition of Round_Even for call to Machine
11275 Add third parameter for Machine
11277 2001-12-17 Ed Schonberg <schonber@gnat.com>
11279 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
11280 predefined units in No_Run_Time mode.
11282 2001-12-17 Richard Kenner <kenner@gnat.com>
11284 * misc.c (insn-codes.h): Now include.
11286 2001-12-17 Olivier Hainque <hainque@gnat.com>
11288 * a-except.adb: Preparation work for future integration of the GCC 3
11289 exception handling mechanism
11290 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
11291 to factorize previous code sequences and make them externally callable,
11292 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
11293 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
11294 Use the new notification routines.
11296 2001-12-17 Emmanuel Briot <briot@gnat.com>
11298 * prj-tree.ads (First_Choice_Of): Document the when others case
11300 2001-12-17 Arnaud Charlet <charlet@gnat.com>
11302 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
11303 HI-E mode, in order to support Ravenscar profile properly.
11305 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
11306 mode on 32 bits targets.
11308 2001-12-17 Vincent Celier <celier@gnat.com>
11310 * fmap.adb: Initial version.
11312 * fmap.ads: Initial version.
11314 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
11315 If search is successfully done, add to mapping.
11317 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
11320 (Gnatmake): Add new local variable Mapping_File_Name.
11321 Create mapping file when using project file(s).
11322 Delete mapping file before exiting.
11324 * opt.ads (Mapping_File_Name): New variable
11326 * osint.adb (Find_File): Use path name found in mapping, if any.
11328 * prj-env.adb (Create_Mapping_File): New procedure
11330 * prj-env.ads (Create_Mapping_File): New procedure.
11332 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
11335 * usage.adb: Add entry for new switch -gnatem.
11337 * Makefile.in: Add dependencies for fmap.o.
11339 2001-12-17 Ed Schonberg <schonber@gnat.com>
11341 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
11342 is a package instantiation rewritten as a package body.
11343 (Install_Withed_Unit): Undo previous change, now redundant.
11345 2001-12-17 Gary Dismukes <dismukes@gnat.com>
11348 (Compute_Length): Move conversion to Unsigned to callers.
11349 (Get_Max_Size): Convert Len expression to Unsigned after calls to
11350 Compute_Length and Determine_Range.
11351 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
11352 Compute_Length and Determine_Range.
11353 Above changes fix problem with length computation for supernull arrays
11354 where Max (Len, 0) wasn't getting applied due to the Unsigned
11355 conversion used by Compute_Length.
11357 2001-12-17 Arnaud Charlet <charlet@gnat.com>
11360 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
11361 System.Secondary_Stack.
11362 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
11364 Remove unused entity RE_Exception_Data.
11366 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
11368 * rident.ads (No_Secondary_Stack): New restriction.
11370 2001-12-17 Joel Brobecker <brobecke@gnat.com>
11372 * gnat_rm.texi: Fix minor typos. Found while reading the section
11373 regarding "Bit_Order Clauses" that was sent to a customer.
11374 Very interesting documentation!
11376 2001-12-17 Robert Dewar <dewar@gnat.com>
11378 * sem_case.adb (Choice_Image): Avoid creating improper character
11379 literal names by using the routine Set_Character_Literal_Name. This
11380 fixes bombs in certain error message cases.
11382 2001-12-17 Arnaud Charlet <charlet@gnat.com>
11384 * a-reatim.adb: Minor reformatting.
11386 2001-12-17 Ed Schonberg <schonber@gnat.com>
11388 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
11389 case where the formal is an extension of another formal in the current
11390 unit or in a parent generic unit.
11392 2001-12-17 Arnaud Charlet <charlet@gnat.com>
11394 * s-tposen.adb: Update comments. Minor reformatting.
11395 Minor code clean up.
11397 * s-tarest.adb: Update comments. Minor code reorganization.
11399 2001-12-17 Gary Dismukes <dismukes@gnat.com>
11401 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
11404 2001-12-17 Robert Dewar <dewar@gnat.com>
11406 * exp_attr.adb: Minor reformatting
11408 2001-12-17 Ed Schonberg <schonber@gnat.com>
11410 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
11411 derivations nested within a child unit: verify that the parent
11412 type is declared in an outer scope.
11414 2001-12-17 Robert Dewar <dewar@gnat.com>
11416 * sem_ch12.adb: Minor reformatting
11418 2001-12-17 Ed Schonberg <schonber@gnat.com>
11420 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
11421 warning if current unit is a predefined one, from which bodies may
11424 2001-12-17 Robert Dewar <dewar@gnat.com>
11426 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
11427 Fix header format. Add 2001 to copyright date.
11429 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
11430 which caused CE during compilation if checks were enabled.
11432 2001-12-17 Vincent Celier <celier@gnat.com>
11435 (Switches_Of): New function
11436 (Test_If_Relative_Path): New procedure
11437 (Add_Switches): Use new function Switches_Of
11438 (Collect_Arguments_And_Compile): Use new function Switches_Of.
11439 When using a project file, test if there are any relative
11440 search path. Fail if there are any.
11441 (Gnatmake): Only add switches for the primary directory when not using
11442 a project file. When using a project file, change directory to the
11443 object directory of the main project file. When using a project file,
11444 test if there are any relative search path. Fail if there are any.
11445 When using a project file, fail if specified executable is relative
11446 path with directory information, and prepend executable, if not
11447 specified as an absolute path, with the exec directory. Make sure
11448 that only one -o switch is transmitted to the linker.
11450 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
11453 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
11454 when using a non standard naming scheme.
11455 (Check_Ada_Naming_Scheme): Make sure that error messages
11456 do not raise exceptions.
11457 (Is_Illegal_Append): Return True if there is no dot in the suffix.
11458 (Language_Independent_Check): Check the exec directory.
11460 * prj.adb (Project_Empty): Add new component Exec_Directory
11463 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
11464 (Project_Data): Add component Exec_Directory
11466 * snames.adb: Updated to match snames.ads revision 1.215
11468 * snames.ads: Added Exec_Dir
11470 2001-12-17 Robert Dewar <dewar@gnat.com>
11472 * make.adb: Minor reformatting
11474 * prj-nmsc.adb: Minor reformatting
11476 * snames.adb: Updated to match snames.ads
11478 * snames.ads: Alphebetize entries for project file
11480 2001-12-17 Ed Schonberg <schonber@gnat.com>
11482 * trans.c (process_freeze_entity): Do nothing if the entity is a
11483 subprogram that was already elaborated.
11485 2001-12-17 Richard Kenner <kenner@gnat.com>
11487 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
11488 and Esize if object is referenced via pointer.
11490 2001-12-17 Ed Schonberg <schonber@gnat.com>
11492 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
11493 is discrete before analyzing choices.
11495 2001-12-17 Joel Brobecker <brobecke@gnat.com>
11497 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
11498 containing the name of the Ada Main Program. This string is mainly
11499 intended for the debugger.
11500 (Gen_Output_File_C): Do the equivalent change when generating a C file.
11502 2001-12-17 Robert Dewar <dewar@gnat.com>
11504 * ali.adb: Set new Dummy_Entry field in dependency entry
11506 * ali.ads: Add Dummy_Entry field to source dependency table
11508 * bcheck.adb (Check_Consistency): Ignore dummy D lines
11510 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
11512 * lib-writ.ads: Document dummy D lines for missing files.
11514 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
11516 2001-12-17 Robert Dewar <dewar@gnat.com>
11518 * ali.adb: Type reference does not reset current file.
11520 * ali.adb: Recognize and scan renaming reference
11522 * ali.ads: Add spec for storing renaming references.
11524 * lib-xref.ads: Add documentation for handling of renaming references
11526 * lib-xref.adb: Implement output of renaming reference.
11529 (Determine_Range): Document local variables
11530 (Determine_Range): Make sure Hbound is initialized. It looks as though
11531 there could be a real problem here with an uninitialized reference
11532 to Hbound, but no actual example of failure has been found.
11534 2001-12-17 Laurent Pautet <pautet@gnat.com>
11537 Fix comment of Shutdown_Socket and Close_Socket. These functions
11538 should not fail silently because if they are called twice, this
11539 probably means that there is a race condition in the user program.
11540 Anyway, this behaviour is consistent with the rest of this unit.
11541 When an error occurs, an exception is raised with the error message
11542 as exception message.
11544 2001-12-17 Robert Dewar <dewar@gnat.com>
11546 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
11547 that it happens before modification of Sloc values for -gnatD.
11549 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
11550 so that it happens before modification of Sloc values for -gnatD.
11552 * switch.adb: Minor reformatting
11554 2001-12-15 Richard Henderson <rth@redhat.com>
11556 * sem_ch7.adb: Wrap comment.
11558 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
11560 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
11561 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
11562 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
11563 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
11564 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
11565 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
11566 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
11567 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
11568 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
11569 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
11570 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
11571 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
11572 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
11573 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
11574 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
11575 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
11576 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
11577 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
11578 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
11579 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
11580 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
11581 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
11582 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
11583 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
11586 2001-12-14 Vincent Celier <celier@gnat.com>
11588 * osint.adb(Create_Debug_File): When an object file is specified,
11589 put the .dg file in the same directory as the object file.
11591 2001-12-14 Robert Dewar <dewar@gnat.com>
11593 * osint.adb: Minor reformatting
11595 * lib-xref.adb (Output_Instantiation): New procedure to generate
11596 instantiation references.
11598 * lib-xref.ads: Add documentation of handling of generic references.
11600 * ali.adb (Read_Instantiation_Ref): New procedure to read
11601 instantiation references
11603 * ali.ads: Add spec for storing instantiation references
11605 * bindusg.adb: Minor reformatting
11607 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
11609 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
11611 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
11613 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
11617 Add 2001 to copyright date
11618 Add entry for Latin-5 (Cyrillic ISO-8859-5)
11620 2001-12-14 Matt Gingell <gingell@gnat.com>
11622 * adaint.c: mktemp is a macro on Lynx and can not be used as an
11625 2001-12-14 Richard Kenner <kenner@gnat.com>
11627 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
11628 if operand is CONSTRUCTOR.
11630 2001-12-14 Ed Schonberg <schonber@gnat.com>
11632 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
11633 before emiting check on right-hand side, so that exception information
11636 2001-12-14 Richard Kenner <kenner@gnat.com>
11638 * utils.c (create_var_decl): Throw away initializing expression
11639 if just annotating types and non-constant.
11641 2001-12-14 Vincent Celier <celier@gnat.com>
11643 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
11646 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
11648 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
11650 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
11652 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
11654 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
11656 * ChangeLog: Remove piece of diff output.
11658 2001-12-14 Geert Bosch <bosch@gnat.com>
11660 * config-lang.in: Update copyright notice
11662 * layout.adb: Remove commented out code.
11664 * mdllfile.ads: Update copyright notice. Fix header format.
11666 * sem_case.ads: Likewise.
11668 * sem_ch3.adb: Minor reformatting.
11670 2001-12-12 Geert Bosch <bosch@gnat.com>
11672 * freeze.ads: Update copyright date.
11674 * g-comlin.ads: Minor reformatting.
11676 * gnat-style.texi: Fix typo.
11678 2001-12-12 Geert Bosch <bosch@gnat.com>
11680 * einfo.h: Regenerate.
11682 2001-12-12 Ed Schonberg <schonber@gnat.com>
11684 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
11685 on known node types, rather than untyped fields. Further cleanups.
11687 2001-12-12 Robert Dewar <dewar@gnat.com>
11690 (Save_Entity_Descendant): Minor comment update.
11691 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
11692 of an N_Attribute_Reference node. As per note below, this does not
11693 eliminate need for Associated_Node in attribute ref nodes.
11694 (Associated_Node): Documentation explicitly mentions attribute
11695 reference nodes, since this field is used in such nodes.
11697 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
11699 2001-12-12 Robert Dewar <dewar@gnat.com>
11701 * s-stalib.adb: Add more comments on with statements being needed
11703 * par-ch12.adb: Minor reformatting
11705 * prj-dect.ads: Fix copyright header
11707 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
11708 inputs fit in 32 bits, but the result still overflows.
11710 * s-fatgen.ads: Minor comment improvement
11712 2001-12-12 Ed Schonberg <schonber@gnat.com>
11714 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
11715 formal derived type, look for an inherited component from the full
11716 view of the parent, if any.
11718 2001-12-12 Robert Dewar <dewar@gnat.com>
11720 * checks.ads (Apply_Alignment_Check): New procedure.
11722 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
11723 ensure that the alignment of objects with address clauses is
11724 appropriate, and raise PE if not.
11726 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
11727 Exp_Pakd.Known_Aligned_Enough
11729 * mdllfile.ads: Minor reformatting
11731 * mlib-fil.ads: Minor reformatting
11733 2001-12-12 Ed Schonberg <schonber@gnat.com>
11735 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
11736 fix to any component reference if enclosing record has non-standard
11739 2001-12-12 Vincent Celier <celier@gnat.com>
11741 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
11744 2001-12-12 Ed Schonberg <schonber@gnat.com>
11746 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
11749 2001-12-12 Robert Dewar <dewar@gnat.com>
11751 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
11753 2001-12-12 Emmanuel Briot <briot@gnat.com>
11755 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
11756 and it adds dependencies to system.io.
11758 2001-12-12 Pascal Obry <obry@gnat.com>
11760 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
11763 2001-12-11 Ed Schonberg <schonber@gnat.com>
11765 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
11766 that is the parent of other generics, the instance body replaces the
11767 instance node. Retrieve the instance of the spec, which is the one
11768 that is visible in clients and within the body.
11770 2001-12-11 Vincent Celier <celier@gnat.com>
11772 * gnatmain.adb: Initial version.
11774 * gnatmain.ads: Initial version.
11776 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
11778 * snames.adb: Updated to match snames.ads.
11780 * snames.ads: Added Gnatstub.
11782 2001-12-11 Vincent Celier <celier@gnat.com>
11784 * prj-attr.adb (Initialization_Data): Change name from
11785 Initialisation_Data.
11787 2001-12-11 Emmanuel Briot <briot@gnat.com>
11789 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
11790 + and * applied to backslashed expressions like \r.
11792 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
11794 * g-os_lib.ads: String_List type added, Argument_List type is now
11795 subtype of String_List.
11797 2001-12-11 Robert Dewar <dewar@gnat.com>
11799 * g-os_lib.ads: Change copyright to FSF
11800 Add comments for String_List type
11802 2001-12-11 Vincent Celier <celier@gnat.com>
11804 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
11805 string to the buffer).
11807 2001-12-11 Ed Schonberg <schonber@gnat.com>
11809 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
11812 * sem_attr.adb: Simplify previous fix for Address.
11813 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
11814 to avoid anomalies where the bound of the type appears to raise
11817 2001-12-11 Robert Dewar <dewar@gnat.com>
11819 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
11822 2001-12-11 Ed Schonberg <schonber@gnat.com>
11824 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
11825 renamed unit before checking for recursive instantiations.
11827 2001-12-11 Emmanuel Briot <briot@gnat.com>
11829 * prj.ads: Add comments for some of the fields.
11831 2001-12-11 Robert Dewar <dewar@gnat.com>
11833 * lib-xref.adb (Output_Refs): Don't output type references outside
11834 the main unit if they are not otherwise referenced.
11836 2001-12-11 Ed Schonberg <schonber@gnat.com>
11838 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
11839 code and diagnose additional illegal uses
11841 * sem_util.adb (Is_Object_Reference): An indexed component is an
11842 object only if the prefix is.
11844 2001-12-11 Vincent Celier <celier@gnat.com>
11846 * g-diopit.adb: Initial version.
11848 * g-diopit.ads: Initial version.
11851 (Expand_Path): Avoid use of Unbounded_String
11852 (Find, Wildcard_Iterator): Moved to child package Iteration
11854 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
11856 2001-12-11 Robert Dewar <dewar@gnat.com>
11858 * sem_attr.adb: Minor reformatting
11860 2001-12-11 Ed Schonberg <schonber@gnat.com>
11862 * sem_ch3.adb: Clarify some ???.
11864 2001-12-11 Robert Dewar <dewar@gnat.com>
11866 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
11867 Exp_Pakd.Known_Aligned_Enough
11869 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
11870 version is moved to Exp_Ch13.
11872 2001-12-11 Robert Dewar <dewar@gnat.com>
11874 * einfo.ads: Minor reformatting
11876 * exp_ch5.adb: Add comment for previous.change
11878 * ali.adb: New interface for extended typeref stuff.
11880 * ali.ads: New interface for typeref stuff.
11882 * checks.adb (Apply_Alignment_Check): New procedure.
11884 * debug.adb: Add -gnatdM for modified ALI output
11886 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
11888 * lib-xref.adb: Extend generation of <..> notation to cover
11889 subtype/object types. Note that this is a complete rewrite,
11890 getting rid of the very nasty quadratic algorithm previously
11891 used for derived type output.
11893 * lib-xref.ads: Extend description of <..> notation to cover
11894 subtype/object types. Uses {..} for these other cases.
11895 Also use (..) for pointer types.
11897 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
11899 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
11900 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
11902 2001-12-11 Vincent Celier <celier@gnat.com>
11905 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
11906 Changed /BIND_ONLY to /ACTIONS=BIND
11907 Changed /LINK_ONLY to /ACTIONS=LINK
11909 2001-12-11 Ed Schonberg <schonber@gnat.com>
11911 * sem_ch8.adb (Find_Selected_Component): improved search for a
11912 candidate package in case of error.
11914 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
11915 chain back on scope stack before reinstalling use clauses.
11917 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
11918 is enabled, do not kill the code for the condition, to preserve
11921 2001-12-11 Robert Dewar <dewar@gnat.com>
11923 * checks.adb (Insert_Valid_Check): Apply validity check to expression
11924 of conversion, not to result of conversion.
11926 2001-12-11 Ed Schonberg <schonber@gnat.com>
11928 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
11929 before freezing parent. If the declarations are mutually recursive,
11930 an access to the current record type may be frozen before the
11931 derivation is complete.
11933 2001-12-05 Vincent Celier <celier@gnat.com>
11935 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
11936 -c /COMPILE_ONLY, -l /LINK_ONLY
11939 (Bind_Only): New Flag
11940 (Link_Only): New flag
11942 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
11945 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
11948 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
11949 (Gnatmake): Set the step flags. Only perform a step if the
11950 corresponding step flag is True.
11951 (Scan_Make_Arg): Reset the bind and link step flags when -u
11952 or -gnatc has been specified.
11954 2001-12-05 Ed Schonberg <schonber@gnat.com>
11956 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
11957 get bounds from right operand.
11959 * sem_eval.adb: Minor reformatting
11961 * exp_util.adb (Make_Literal_Range): use bound of literal rather
11962 than Index'First, its lower bound may be different from 1.
11964 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
11967 2001-12-05 Vincent Celier <celier@gnat.com>
11969 * prj-nmsc.adb Minor reformatting
11971 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
11972 set and libraries are not supported.
11974 2001-12-05 Ed Schonberg <schonber@gnat.com>
11976 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
11977 private view explicitly, so the back-end can treat as a global
11980 2001-12-05 Ed Schonberg <schonber@gnat.com>
11982 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
11983 unit, always replace instance node with new body, for ASIS use.
11985 2001-12-05 Vincent Celier <celier@gnat.com>
11987 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
11988 libraries are not supported and both attributes Library_Name and
11989 Library_Dir are specified.
11991 * prj-proc.adb (Expression): Set location of Result to location of
11994 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
11995 (prj-nmsc is now importing MLib.Tgt)
11997 * prj-proc.adb: Put the change indicated above that was forgotten.
11999 2001-12-05 Robert Dewar <dewar@gnat.com>
12001 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
12003 2001-12-05 Ed Schonberg <schonber@gnat.com>
12005 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
12006 constraint, introduce explicit subtype declaration and derive from it.
12008 * sem_ch3.adb: Minor reformatting
12010 2001-12-05 Robert Dewar <dewar@gnat.com>
12012 * checks.adb (Determine_Range): Increase cache size for checks.
12015 * exp_ch6.adb: Minor reformatting
12016 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
12017 a parameter whose root type is System.Address, since treating such
12018 subprograms as pure in the code generator is almost surely a mistake
12019 that will lead to unexpected results.
12021 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
12022 change handling of conversions.
12024 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
12026 2001-12-05 Ed Schonberg <schonber@gnat.com>
12028 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
12029 aggregate with static wrong size, attach generated Raise node to
12032 2001-12-05 Robert Dewar <dewar@gnat.com>
12034 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
12035 Fixes compilation abandoned bomb in B24009B.
12037 2001-12-05 Ed Schonberg <schonber@gnat.com>
12040 Document use of Associated_Node on Selected_Components.
12041 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
12042 to clarify use of untyped descendant fields.
12044 2001-12-05 Robert Dewar <dewar@gnat.com>
12046 * prj-dect.ads: Add ??? comment
12047 Add 2001 to copyright notice (was not done in after all)
12049 * prj-part.adb: Minor reformatting. Reword one awkward error message.
12051 * prj.ads: Minor reformatting throughout, and add some ??? comments
12053 * snames.ads: Minor reformatting
12055 2001-12-05 Geert Bosch <bosch@gnat.com>
12057 * snames.adb: Autoupdate
12059 2001-12-05 Vincent Celier <celier@gnat.com>
12061 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
12063 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
12065 * prj-env.adb: Minor comment changes (modifying -> extends).
12067 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
12069 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
12072 * prj.adb (Initialize): Change Modifying to Extends.
12074 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
12076 * prj.ads: Minor comment change (Modifying -> extending).
12078 * snames.ads: Change modifying to extends.
12080 2001-12-05 Robert Dewar <dewar@gnat.com>
12082 * sem_warn.adb: Remove stuff for conditionals, we are not going to
12085 * sem_warn.ads: Remove stuff for conditionals, we are not going to
12086 do this after all. Add 2001 to copyright notice
12088 2001-12-04 Geert Bosch <bosch@gnat.com>
12090 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
12092 2001-12-04 Robert Dewar <dewar@gnat.com>
12094 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
12095 location if we already have errors. Stops some cases of cascaded
12098 * errout.adb: Improve comment.
12100 2001-12-04 Robert Dewar <dewar@gnat.com>
12103 (Analyze_Formal_Type_Definition): Defend against Error.
12104 (Analyze_Formal_Subprogram): Defend against Error.
12106 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
12107 remove following semicolon if present. Removes cascaded error.
12109 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
12112 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
12113 exceptions equals 0.
12114 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
12115 Fixes PIWG E tests (which have to be run with -gnatL).
12117 2001-12-04 Robert Dewar <dewar@gnat.com>
12119 * einfo.ads: Minor reformatting
12121 2001-12-04 Ed Schonberg <schonber@gnat.com>
12123 * einfo.ads: Block_Node points to the identifier of the block, not to
12124 the block node itself, to preserve the link when the block is
12125 rewritten, e.g. within an if-statement with a static condition.
12127 * inline.adb (Cleanup_Scopes): recover block statement from block
12128 entity using new meaning of Block_Node.
12130 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
12131 identifier of block node, rather than to node itself.
12133 2001-12-04 Gary Dismukes <dismukes@gnat.com>
12136 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
12137 (Discrimify): Go back to setting the Etypes of the selected component
12138 because the Vname component does not exist at this point and will
12139 fail name resolution. Also set Analyzed.
12140 Remove with and use of Sem_Res.
12142 2001-12-04 Arnaud Charlet <charlet@gnat.com>
12144 * Makefile.in: (HIE_SOURCES): add s-fat*.
12146 2001-12-04 Robert Dewar <dewar@gnat.com>
12149 (Compile_Time_Known_Attribute): New procedure.
12150 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
12151 proper range check.
12153 2001-12-04 Ed Schonberg <schonber@gnat.com>
12155 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
12156 processing discriminants to diagnose illegal default values.
12158 2001-12-04 Ed Schonberg <schonber@gnat.com>
12160 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
12161 access discriminant within a type extension that constrains its
12162 parent discriminants.
12164 2001-12-04 Ed Schonberg <schonber@gnat.com>
12166 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
12167 is malformed, use instance of Any_Id to allow analysis to proceed.
12169 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
12170 type definition is illegal.
12171 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
12174 2001-12-04 Ed Schonberg <schonber@gnat.com>
12176 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
12179 2001-12-04 Robert Dewar <dewar@gnat.com>
12181 * errout.adb: Minor reformatting
12183 2001-12-04 Robert Dewar <dewar@gnat.com>
12185 * exp_util.adb: Minor reformatting from last change
12187 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
12188 which is a rewriting of an expression, traverse the original
12189 expression to remove warnings that may have been posted on it.
12191 2001-12-04 Ed Schonberg <schonber@gnat.com>
12193 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
12194 record that has other packed components.
12196 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
12198 * adaint.c: Minor cleanups.
12200 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
12202 * adaint.c: Do not use utime.h on vxworks.
12204 2001-12-04 Arnaud Charlet <charlet@gnat.com>
12206 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
12207 more confusion than it solves.
12209 2001-12-04 Geert bosch <bosch@gnat.com>
12211 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
12213 2001-12-04 Geert Bosch <bosch@gnat.com>
12215 * Makefile.in (update-sources): New target.
12216 For use by gcc_release script.
12218 2001-12-04 Ed Schonberg <schonber@gnat.com>
12220 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
12221 a configuration pragma, it is now legal wherever a pragma can appear.
12223 2001-12-04 Zack Weinberg <zack@codesourcery.com>
12225 * Makefile.in: Don't set ALL. Delete @cross_defines@,
12226 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
12227 is now @CROSS@ -DIN_GCC; update comment.
12229 2001-12-04 Robert Dewar <dewar@gnat.com>
12231 * einfo.adb (Has_Pragma_Pure_Function): New flag.
12232 Fix problem that stopped ceinfo from working
12234 * einfo.ads (Has_Pragma_Pure_Function): New flag.
12236 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
12238 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
12241 (File_Time_Stamp): New procedure.
12242 (Preserve_Mode): New boolean.
12243 (Write_Unit): Pass time stamp.
12244 Implement -p switch (preserve time stamps).
12246 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
12248 * gnatchop.adb: Do usage info for -p switch
12250 * adaint.h (__gnat_set_file_time_name): New function
12252 * adaint.c (__gnat_set_file_time_name): Implement
12254 * adaint.h: Fix typo
12256 2001-12-03 Robert Dewar <dewar@gnat.com>
12258 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
12259 have Associated_Node.
12261 2001-12-03 Robert Dewar <dewar@gnat.com>
12263 * prj-proc.adb: Minor reformatting
12265 * make.adb: Minor reformatting
12267 2001-12-03 Geert Bosch <bosch@gnat.com>
12269 * make.adb: Minor reformatting.
12271 2001-12-03 Robert Dewar <dewar@gnat.com>
12273 * sem_ch12.adb: Minor reformatting
12275 2001-12-03 Ed Schonberg <schonber@gnat.com>
12277 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
12278 push Standard on the stack before analyzing the instance body,
12279 in order to have a clean visibility environment.
12281 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
12283 2001-12-03 Ed Schonberg <schonber@gnat.com>
12285 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
12286 instantiation of a body that contains an inlined body.
12288 2001-12-03 Ed Schonberg <schonber@gnat.com>
12291 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
12292 to prevent freezing within formal packages.
12293 (Freeze_Subprogram_Body): If body comes from another instance that
12294 appeared before its own body, place freeze node at end of current
12295 declarative part, to prevent a back-end crash.
12296 (Inline_Instance_Body): Handle properly a package instance within
12297 a subprogram instance that is a child unit.
12299 2001-12-01 Graham Stott <grahams@redhat.com>
12301 * Makefile.in (misc.o): Add missing $(srcdir) prefix
12302 and add optabs.h dependency.
12304 * misc.c: Include optabs.h
12305 (gnat_tree_code_type): Make static and const.
12306 (gnat_tree_code_length): Likewise.
12307 (gnat_tree_code_name): Likewise.
12308 (update_setjmp_buf): Obtain operands mode from insn_data.
12310 2001-11-29 Richard Henderson <rth@redhat.com>
12312 * init.c: Remove obsolete dwarf2 frame.h section.
12314 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
12316 * Make-lang.in (ada.generated-manpages): New dummy target.
12318 2001-11-29 Ed Schonberg <schonber@gnat.com>
12320 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
12321 into Command, an array conversion is illegal here. Uncovered by
12324 2001/11/28 Geert Bosch <bosch@gnat.com>
12326 * init.c: Minor whitespace changes.
12328 2001-11-28 Doug Rupp <rupp@gnat.com>
12330 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
12333 2001-11-28 Zack Weinberg <zack@codesourcery.com>
12335 * misc.c (gnat_expand_constant): Move declaration above
12336 definition of lang_hooks.
12337 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
12338 (gnat_init): lang_expand_constant no longer exists.
12340 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
12341 always have vprintf.
12342 (gnat_init): Always call set_internal_error_function.
12344 2001-11-27 Andreas Jaeger <aj@suse.de>
12346 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
12348 2001-11-27 Laurent Guerby <guerby@acm.org>
12350 * Makefile.in: Regenerate Ada dependencies.
12352 2001-11-26 Richard Henderson <rth@redhat.com>
12354 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
12355 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
12356 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
12358 2001-11-25 Laurent Guerby <guerby@acm.org>
12360 * sysdep.c (rts_get_*): Fix style.
12362 2001-11-19 Laurent Guerby <guerby@acm.org>
12364 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
12365 since it is of no apparent use and cause warnings.
12367 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
12369 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
12371 (gnat_init): Don't return NULL.
12372 (finish_parse): Remove.
12374 2001-11-17 Laurent Guerby <guerby@acm.org>
12376 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
12377 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
12378 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
12379 * lang-spec.h: Add missing struct field to silence warnings.
12380 * sysdep.c (rts_get_*): Provide K&R prototype.
12381 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
12382 * traceback.c (Unlock_Task, Lock_Task): Likewise.
12383 * tracebak.c (__gnat_backtrace): Remove unused variable.
12384 * utils.c (end_subprog_body): Move to K&R style.
12386 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12388 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
12390 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
12392 * misc.c (gnat_init): Change prototype. Include the
12393 functionality of the old init_parse and init_decl_processing.
12394 (gnat_init_decl_processing): New prototype.
12395 (init_parse): Remove.
12396 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
12398 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
12400 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
12401 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
12402 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
12403 set_yydebug): Remove.
12405 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
12407 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
12408 (struct lang_hooks): Constify.
12409 (language_string, lang_identify): Remove.
12410 * utils.c (init_decl_processing): Update.
12412 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
12414 * misc.c: Include langhooks-def.h.
12415 * Makefile.in: Update.
12417 2001-10-30 Robert Dewar <dewar@gnat.com>
12420 (Check_Identifier): Rewrite circuit to be compatible with use of letters
12421 in the upper half of ASCII.
12422 (Check_Identifier): Minor reformatting
12424 2001-10-30 Geert Bosch <bosch@gnat.com>
12426 * (Associated_Node, Set_Associated_Node): Do not check for
12429 2001-10-30 Robert Dewar <dewar@gnat.com>
12431 * a-reatim.ads: Minor reformatting
12433 2001-10-30 Robert Dewar <dewar@gnat.com>
12435 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
12436 undocumented declarations.
12438 2001-10-30 Pascal Obry <obry@gnat.com>
12440 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
12441 to the binder and linker.
12444 * mdll.ads: Fix layout. Update copyright notice.
12446 * mdll.adb: Fix layout. Update copyright notice.
12448 2001-10-30 Robert Dewar <dewar@gnat.com>
12450 * usage.adb: Minor fix to output for -gnaty.
12452 2001-10-30 Ed Schonberg <schonber@gnat.com>
12454 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
12455 to accommodate all its possible values.
12457 * a-reatim.adb (Split): Special-case handling of Time_Span_First
12458 and of small absolute values of T.
12460 2001-10-30 Richard Kenner <kenner@gnat.com>
12462 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
12463 set_mem_attributes since not needed and wrong if RESULT if a REG;
12464 fixes ACATS failures.
12466 2001-10-30 Geert Bosch <bosch@gnat.com>
12468 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
12469 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
12471 2001-10-30 Robert Dewar <dewar@gnat.com>
12473 * bindusg.adb: Undocument -f switch.
12475 * gnatcmd.adb: Remove /FULL_ELABORATION.
12477 * opt.ads (Force_RM_Elaboration_Order): Document that this is
12480 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
12482 * gnatbind.adb: Minor update of warning msg.
12484 2001-10-30 Vincent Celier <celier@gnat.com>
12486 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
12487 for project file switches (-P (/PROJECT_FILE=),
12488 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
12491 2001-10-30 Geert Bosch <bosch@gnat.com>
12493 * decl.c: Minor whitespace fixes.
12495 2001-10-30 Richard Kenner <kenner@gnat.com>
12497 * utils2.c (build_allocator): Test for SIZE overflow in array case too
12499 2001-10-30 Geert Bosch <bosch@gnat.com>
12501 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
12502 Found due to GCC 3.0 warning of using uninitialized value.
12505 (Get_Max_Size): Use variant record for tracking value/expression.
12506 Makes logic clearer and prevents warnings for uninitialized variables.
12507 (Layout_Array_Type): Use variant record for tracking value/expression.
12508 Makes logic clearer and prevents warnings for uninitialized variables.
12510 2001-10-30 Robert Dewar <dewar@gnat.com>
12512 * lib.adb: Minor reformatting
12514 * s-taprop.ads: Minor reformatting
12516 2001-10-29 Laurent Guerby <guerby@acm.org>
12519 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
12521 (_gnat_error_handler): Make MSG const.
12523 2001-10-29 Richard Kenner <kenner@gnat.com>
12525 * sysdep.c: Fix localtime_r problem on LynxOS.
12526 Also remove #elif to avoid warnings.
12528 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
12531 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
12533 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
12535 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
12536 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
12537 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
12538 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
12539 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
12540 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
12541 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
12542 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
12543 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
12544 types.ads, urealp.adb: Fix spelling errors.
12546 2001-10-27 Laurent Guerby <guerby@acm.org>
12548 * trans.c (gigi): Fix non determinism leading to bootstrap
12549 comparison failures for debugging information.
12551 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
12553 * gnat_rm.texi: Use @./@: where appropriate.
12555 2001-10-26 Robert Dewar <dewar@gnat.com>
12557 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
12559 2001-10-26 Richard Kenner <kenner@gnat.com>
12561 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
12563 2001-10-26 Richard Kenner <kenner@gnat.com>
12565 * decl.c (validate_size): Modify message for bad size to avoid
12566 implication that compiler is modifying the size.
12568 2001-10-26 Robert Dewar <dewar@gnat.com>
12570 * prj-util.adb: Minor reformatting. Fix bad header format.
12572 2001-10-26 Robert Dewar <dewar@gnat.com>
12574 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
12576 * sinfo.ads: Clarify use of Associated_Node (documentation only).
12578 * sem_ch12.adb: Change Node4 to Associated_Node. Change
12579 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
12580 much more narrowly in places where needed. These are cleanups.
12582 2001-10-26 Joel Brobecker <brobecke@gnat.com>
12584 * 5zosinte.ads (null_pthread): new constant.
12587 (Initialize_TCB): Initialize thread ID to null, to be able to verify
12588 later that this field has been set.
12589 (Finalize_TCB): ditto.
12590 (Suspend_Task): Verify that the thread ID is not null before using it.
12591 (Resume_Task): ditto.
12594 (Resume_All_Tasks): Lock the tasks list before using it.
12595 (Suspend_All_Tasks): ditto.
12597 2001-10-26 Richard Kenner <kenner@gnat.com>
12599 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
12600 Make constant variant of designated type for Is_Access_Constant.
12601 Call update_pointer_to with main variant.
12603 * trans.c (process_freeze_entity, process_type):
12604 Call update_pointer_to on main variant.
12606 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
12607 If main variant, update all other variants.
12609 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
12612 2001-10-26 Robert Dewar <dewar@gnat.com>
12614 * prj-util.adb: Minor reformatting
12616 2001-10-26 Robert Dewar <dewar@gnat.com>
12618 * prj-util.adb: Minor reformatting
12620 2001-10-26 Robert Dewar <dewar@gnat.com>
12622 * prj-attr.adb: Minor reformatting throughout
12624 2001-10-26 Robert Dewar <dewar@gnat.com>
12626 * prj-attr.ads: Minor reformatting
12627 Add ??? comment (this whole spec has almost no comments)
12629 2001-10-26 Vincent Celier <celier@gnat.com>
12631 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
12632 ("//") that precede the drive letter on Interix.
12634 2001-10-26 Geert Bosch <bosch@gnat.com>
12636 * gnat_rm.texi: Add GNAT Reference Manual.
12638 2001-10-25 Robert Dewar <dewar@gnat.com>
12640 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
12641 is Error. Similar change for other renaming cases.
12643 2001-10-25 Robert Dewar <dewar@gnat.com>
12645 * s-atacco.ads: Add pragma Inline_Always for functions.
12646 Fix header format. Add copyright 2001
12648 2001-10-25 Ed Schonberg <schonber@gnat.com>
12650 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
12651 return Error rather than Empty so that analysis can proceed.
12653 2001-10-25 Ed Schonberg <schonber@gnat.com>
12655 * sem_util.adb (Enter_Name): better handling of cascaded error
12656 messages when a unit appears in its own context.
12658 2001-10-25 Ed Schonberg <schonber@gnat.com>
12660 * sem_util.adb (Defining_Entity): in case of error, attach created
12661 entity to specification, so that semantic analysis can proceed.
12663 2001-10-25 Robert Dewar <dewar@gnat.com>
12666 (Defining_Entity): Deal with Error.
12667 (Process_End_Label): Deal with bad end label for.
12669 2001-10-25 Ed Schonberg <schonber@gnat.com>
12671 * sem_elab.adb (Check_A_Call): refine message when call is in an
12672 instance but callee is not declared in the generic unit.
12674 2001-10-25 Ed Schonberg <schonber@gnat.com>
12676 * sem_elab.adb (Check_A_Call): check for renaming before finding the
12677 enclosing unit, which may already be different from the calling unit.
12679 2001-10-25 Geert Bosch <bosch@gnat.com>
12681 * 4gintnam.ads: fix header format.
12683 2001-10-25 Ed Schonberg <schonber@gnat.com>
12685 * sem_res.adb (Resolve_Call): if the call is actually an indexing
12686 operation on the result of a parameterless call, perform elaboration
12687 check after the node has been properly rewritten.
12689 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
12690 inlined within the generic tree, the defining identifier is not a
12693 2001-10-25 Ed Schonberg <schonber@gnat.com>
12695 * sem_res.adb (Resolve): special-case resolution of Null in an
12696 instance or an inlined body to avoid view conflicts.
12698 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
12699 compatibility by retrieving the access type of the generic copy.
12701 2001-10-25 Robert Dewar <dewar@gnat.com>
12704 (Analyze_Number_Declaration): Handle error expression.
12705 (Signed_Integer_Type_Declaration): Handle error bound.
12706 (Analyze_Subtype_Indication): Handle error range.
12708 * sem_util.adb (Get_Index_Bounds): Check for Error.
12710 2001-10-25 Robert Dewar <dewar@gnat.com>
12712 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
12713 in no run time mode.
12715 2001-10-25 Pascal Obry <obry@gnat.com>
12717 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
12718 mode case for ALLOC case.
12720 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
12721 all platforms. Improvement of last change.
12723 2001-10-25 Robert Dewar <dewar@gnat.com>
12725 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
12727 2001-10-25 Geert Bosch <bosch@gnat.com>
12729 * osint.adb (Is_Relative): Remove duplicate.
12731 2001-10-25 Pascal Obry <obry@gnat.com>
12733 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
12734 pathnames in UNIX and DOS style with drive letter.
12735 (Is_Relative): new routine.
12737 * osint.adb: Minor reformatting
12739 * osint.adb (Is_Relative): implementation using
12740 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
12742 2001-10-25 Pascal Obry <obry@gnat.com>
12744 * g-dirope.adb (Basename): correctly compute offset between the
12745 original Path and the translated one.
12747 * g-dirope.adb: (Base_Name): add some comments.
12749 2001-10-25 Robert Dewar <dewar@gnat.com>
12751 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
12752 in HIE mode, avoids compilation abandoned message
12754 * exp_imgv.adb: Correct typo in previous change
12756 * exp_imgv.adb: Correct typo in previous change (not my day!)
12758 2001-10-25 Robert Dewar <dewar@gnat.com>
12760 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
12762 2001-10-25 Pascal Obry <obry@gnat.com>
12764 * g-awk.ads: Move all pragma inlines next to the routine
12765 declarations. This is more uniform with other GNAT spec.
12767 2001-10-22 Geert Bosch <bosch@gnat.com>
12769 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
12771 2001-10-19 Geert Bosch <bosch@gnat.com>
12773 * Makefile.in (tools, gnattools): Remove gnatmem.
12775 2001-10-17 Richard Henderson <rth@redhat.com>
12777 * Makefile.in (misc.o): Depend on langhooks.h.
12778 * misc.c: Include it.
12779 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
12780 (LANG_HOOKS_DECODE_OPTION): New.
12781 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
12783 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
12785 * trans.c (tree_transform): Adjust to recent change in
12786 expand_asm_operands to implement named asm operands.
12788 2001-10-11 Ed Schonberg <schonber@gnat.com>
12790 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
12791 renaming of discriminant for mutable record type.
12793 2001-10-11 Robert Dewar <dewar@gnat.com>
12795 * validsw.adb: Properly save -gnatVn status.
12797 2001-10-11 Robert Dewar <dewar@gnat.com>
12799 * usage.adb: Add lines for V switch.
12801 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
12802 (/VALIDITY_CHECKING).
12804 2001-10-11 Ed Schonberg <schonber@gnat.com>
12806 * sem_type.adb (Add_One_Interp): an operator for a type declared in
12807 an extension of System is known to be visible.
12809 2001-10-11 Ed Schonberg <schonber@gnat.com>
12811 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
12812 properly. Fixes regression on ACATS C34005G.
12814 2001-10-11 Robert Dewar <dewar@gnat.com>
12816 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
12817 loop in generic instance, since this is likely not very useful.
12819 2001-10-11 Robert Dewar <dewar@gnat.com>
12821 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
12822 the error message for high integrity mode.
12824 * rtsfind.adb (RTE): Give message if we try to find an entity that
12825 is not available in high integrity mode.
12828 (OK_To_Use_In_HIE_Mode): New array.
12829 (RTE): May return Empty in high integrity mode.
12831 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
12832 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
12834 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
12835 unit if not inlined always and in no runtime mode. Fixes problem
12836 caused by new Rtsfind changes.
12838 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
12841 * rtsfind.adb (RTE): Make sure we do not try to load unit after
12842 giving message for entity not available in high integrity mode.
12844 2001-10-11 Pascal Obry <obry@gnat.com>
12846 * impunit.adb: Add GNAT.CRC32.
12848 2001-10-11 Ed Schonberg <schonber@gnat.com>
12850 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
12851 properly the case where one universal operand in a non-static
12852 exponentiation of a real literal.
12854 2001-10-11 Ed Schonberg <schonber@gnat.com>
12856 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
12857 clause, return the gobal finalization list, for lack of anthing else.
12859 2001-10-11 Ed Schonberg <schonber@gnat.com>
12861 * exp_ch7.adb (Make_Transient_Block): if statement is within
12862 exception handler, always use new transient scope to place Clean
12865 2001-10-11 Pascal Obry <obry@gnat.com>
12868 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
12869 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
12870 (GNATLS_RTL_OBJS): add g-crc32.o
12871 (GNATMAKE_RTL_OBJS): add g-crc32.o
12874 (CRC_Match): new function.
12875 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
12876 instead of the previous simple checksum algorithm.
12877 (Time_Stamp_Mismatch): use CRC_Match for comparison.
12878 (Set_Source_Table): idem.
12881 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
12882 instead of simple checksum.
12883 (CRC_Match): new function.
12884 (CRC_Error): new constant.
12886 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
12887 a CRC now and not a simple checksum. A CRC uses lower-case hex
12888 letters, fixes ambiguity in parsing.
12890 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
12891 is what this variable will store.
12893 * bcheck.adb: Change reference to chechsum in comments by CRC.
12894 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
12895 rename All_Checksum_Match to All_CRC_Match. Change due to API
12896 renaming since now GNAT does not use a simple checksum but a
12897 CRC using GNAT.CRC32.
12899 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
12900 now and not anymore a simple checksum.
12902 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
12905 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
12908 (Restore_Scan_State): rename Checksum to CRC.
12909 (Save_Scan_State): idem.
12913 (Checksum): rename to CRC.
12914 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
12916 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
12917 GNAT.CRC32). Update copyright notice.
12919 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
12920 GNAT.CRC32). Update copyright notice.
12923 (Accumulate_Checksum): removed.
12924 (Update): new procedure. Add a wide-character into the CRC.
12927 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
12928 (Load_File): fix initialization of S (change Source_Checksum to
12931 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
12932 Source_CRC in S initialization.
12934 * sinput.adb (Source_Checksum): renamed to Source_CRC.
12936 * sinput.ads (Source_Checksum): renamed to Source_CRC.
12937 Update comments for the CRC.
12939 * types.adb (Hex): Use lowercase for the letter part.
12941 * types.ads (Get_Hex_String): Returns the hexadecimal representation
12942 for a word. This is currently used only for CRC. In previous version,
12943 the checksum was using a representation with all letter being
12944 upper-case. With the new implementation (using CRC) we do not remove
12945 the 32th bit of the CRC, so we can have an upper-case starting letter
12946 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
12947 It is ambigous since the CRC was optional and could be followed by
12948 options like EB, EE. So now this routines uses lower-case letter for
12949 the hexadecimal representation. Strange enough only lower case letters
12950 where checked in Scan_ALI (even if this was not a possible case).
12952 * gnatvsn.ads (Library_Version): changed to 3.15a.
12954 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
12957 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
12960 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
12961 Add 2001 to copyright notice
12962 (Accumulate_Checksum): Modify to use System.CRC32.
12964 * ali-util.ads: Redo changes of previous revision to continue to use
12965 the word Checksum. Add 2001 to copyright notice.
12967 * ali.adb: Undo some of previous changes, not needed.
12968 Keep the change for lower case letters in the checksum.
12970 * ali.ads: Undo previous change not needed.
12972 * bcheck.adb: Undo most of previous change, not needed.
12973 But do use Checksums_Match for checksum comparison.
12975 * gnatls.adb: Undo most of previous change, not needed.
12976 But do use Checksums_Match for comparing checksums.
12978 * lib-load.adb: Undo previous change, not needed.
12980 * lib-writ.adb: Undo previous change, not needed.
12982 * lib-writ.ads: Document that checksums use lower case,
12983 not upper case letters.
12985 * scans.adb: Undo previous change, not needed
12987 * scans.ads: Undo previous change, not needed.
12989 * scn-nlit.adb: Undo previous changes, not needed.
12991 * scn-slit.adb: Undo previous change, not needed. Fix header format.
12994 (Accumulate_Checksum): Use System.CRC32.
12995 (Initialize_Checksum): New procedure.
12996 Remove other changes of previous revision.
12998 * sinput-p.adb: Undo previous change, not needed.
13000 * sinput.adb: Undo previous change, not needed.
13002 * sinput-l.adb: Undo previous change, not needed.
13004 * sinput.ads: Undo previous change, not needed. Keep only comment
13005 on new checksum algorithm
13007 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
13008 Also remove a-tags and a-stream from GNAT sources.
13010 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
13012 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
13014 2001-10-11 Geert Bosch <bosch@gnat.com>
13016 * einfo.h: Regenerate.
13018 * nmake.ads: Regenerate.
13020 * nmake.adb: Regenerate.
13022 * sinfo.h: Regenerate.
13024 * treeprs.adb: Regenerate.
13026 2001-10-10 Geert Bosch <bosch@gnat.com>
13028 * gnat-style.texi: New file describing coding guidelines for Ada.
13030 2001-10-10 Ed Schonberg <schonber@gnat.com>
13032 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
13035 2001-10-10 Geert Bosch <bosch@gnat.com>
13037 * snames.ads: Add new names for project facility.
13039 * snames.adb: Update to reflect snames.ads changes.
13041 * snames.h: Update to reflect snames.ads changes.
13043 2001-10-10 Vincent Celier <celier@gnat.com>
13046 (Add_Switches): reflect the changes for the switches attributes
13047 Default_Switches indexed by the programming language,
13048 Switches indexed by the file name.
13049 (Collect_Arguments_And_Compile): Idem.
13050 Reflect the attribute name changes.
13053 (Initialisation_Data): Change the names of some packages and
13055 (Initialize): process case insensitive associative arrays.
13058 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
13061 (Parse_Attribute_Declaration): For case insensitive associative
13062 arrays, set the index string to lower case.
13065 Reflect the changes of the project attributes.
13068 Replace Check_Naming_Scheme by Ada_Check and
13069 Language_Independent_Check.
13072 Replaced Check_Naming_Scheme by 2 procedures:
13073 Ada_Check and Language_Independent_Check.
13076 (Process_Declarative_Items): For case-insensitive associative
13077 arrays, set the index string to lower case.
13078 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
13079 Prj.Nmsc.Check_Naming_Scheme.
13082 (Case_Insensitive): New function
13083 (Set_Case_Insensitive): New procedure
13086 (Case_Insensitive): New function
13087 (Set_Case_Insensitive): New procedure
13088 (Project_Node_Record): New flag Case_Insensitive.
13091 (Value_Of): new function to get the string value of a single
13092 string variable or attribute.
13095 (Value_Of): new function to get the string value of a single
13096 string variable or attribute.
13099 (Ada_Default_Spec_Suffix): New function
13100 (Ada_Default_Impl_Suffix): New function
13101 Change definitions of several constants to reflect
13102 new components of record types.
13105 (Naming_Data): Change several components to reflect new
13106 elements of naming schemes.
13107 (Project_Data): New flags Sources_Present and
13108 Language_Independent_Checked.
13109 (Ada_Default_Spec_Suffix): New function.
13110 (Ada_Default_Impl_Suffix): New function.
13113 Modification of predefined names for project manager: added
13114 Implementation, Specification_Exceptions, Implementation_Exceptions,
13115 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
13116 Default_Switches, _Languages, Builder, Cross_Reference,
13117 Finder. Removed Body_Part, Specification_Append, Body_Append,
13118 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
13121 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
13124 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
13125 not that it is Nil_Variable_Value.
13127 * prj.ads: Add ??? for uncommented declarations
13129 2001-10-10 Ed Schonberg <schonber@gnat.com>
13131 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
13132 constant, do not indicate possible modification, so that gigi can
13133 treat it as a bona fide constant.
13135 2001-10-10 Robert Dewar <dewar@gnat.com>
13137 * sem_prag.adb: Add processing for pragma External.
13139 * snames.ads: Add entry for pragma External.
13141 * par-prag.adb: Add pragma External.
13143 * snames.adb: Updated to match snames.ads.
13145 2001-10-10 Ed Schonberg <schonber@gnat.com>
13147 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
13148 a dynamic task if the allocator appears in an indexed assignment
13149 or selected component assignment.
13151 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
13152 For a dynamic task in an assignment statement, use target of
13153 assignment to generate meaningful name.
13155 2001-10-10 Ed Schonberg <schonber@gnat.com>
13157 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
13160 * einfo.ads: Body_Entity is also defined for generic package.
13161 Documentation change only
13163 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
13164 others_choice for a discriminated component initialization,
13165 convert discriminant references into the corresponding discriminals.
13167 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
13168 only if original type is private and expression has to be wrapped
13172 (Apply_Constraint_Check): Do not perform length check
13173 if expression is an aggregate with only an others_choice.
13174 (Length_N_Cond): two references to the same in_parameter
13175 (typically the discriminal in an init_proc) denote the same value.
13176 Two useful optimization uncovered by bugfixes above.
13178 2001-10-10 Robert Dewar <dewar@gnat.com>
13180 * xeinfo.adb: Change int to char in translation of enumeration types.
13181 This fixes a problem in the C representation of component alignment.
13182 Add 2001 to copyright notice
13184 2001-10-10 Richard Kenner <kenner@gnat.com>
13186 * decl.c: (validate_size): Do check size of object of integral type
13187 if it is a packed array type.
13189 2001-10-10 Richard Kenner <kenner@gnat.com>
13191 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
13192 VAR_DECL for constant if not Is_Public but -O0.
13194 2001-10-10 Richard Kenner <kenner@gnat.com>
13196 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
13198 2001-10-10 Geert Bosch <bosch@gnat.com>
13200 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
13201 use '/' as switch character, allowing for absolute file names.
13203 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
13205 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
13208 2001-10-08 Geert Bosch <bosch@gnat.com>
13210 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
13211 Automatically build utilities when files need to be regenerated.
13213 2001-10-08 Geert Bosch <bosch@gnat.com>
13215 * xsnames.adb: New utility for updating snames.ads and snames.adb
13217 2001-10-08 Zack Weinberg <zack@codesourcery.com>
13219 * Make-lang.in (ADAFLAGS): Add -W -Wall.
13220 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
13221 (gnat1): Also depend on attribs.o.
13222 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
13223 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
13224 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
13225 (ADAFLAGS): Add -W -Wall.
13226 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
13229 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
13230 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
13231 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
13232 Use $(ADAC), not $(CC), as compilation command.
13234 (gnattools): Depend directly on tools to build, don't use
13236 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
13238 * einfo.h, sinfo.h: New files (autogenerated).
13240 2001-10-08 Richard Henderson <rth@redhat.com>
13242 * comperr.adb (Abort_In_Progress): New.
13243 (Compiler_Abort): Use it to prevent recursion.
13245 2001-10-08 Robert Dewar <dewar@gnat.com>
13247 * atree.adb: Set Error_Posted in Error node, helps error recovery.
13249 * par-endh.adb (Output_End_Expected): We should also not test
13250 Error_Posted on the Error node, since now it is always set.
13252 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
13253 to help error recovery. Part of general work on 9407-004.
13255 * par.adb: Add ??? for misuse of error
13258 (Resolve): Defend against Error, fixes 9407-003.
13259 (Resolve_Discrete_Subtype_Indication): Defend against Error.
13261 * sinfo.ads (N_Error): Now has Etype field (which will be set
13262 to Any_Type to help error recovery).
13264 2001-10-08 Richard Kenner (kenner@gnat.com)
13266 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
13267 Consistently set MEM attributes from expression; fixes
13268 bootstrap failure on x86.
13270 2001-10-08 Geert Bosch (bosch@gnat.com)
13272 * 5oosinte.adb: Add 2001 to copyright notice.
13274 2001-10-08 Geert Bosch (bosch@gnat.com)
13276 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
13278 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
13280 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
13282 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
13284 2001-10-05 Geert Bosch (bosch@gnat.com)
13286 * adaint.h: Small formatting fix.
13288 2001-10-04 Geert Bosch <bosch@gnat.com>
13290 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
13291 Arg is int, not FILE *, in dummy version of functions.
13293 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
13294 Arg is int, not FILE *.
13296 2001-10-04 Geert Bosch <bosch@gnat.com>
13298 * 3lsoccon.ads: Added file, missed with initial check ins.
13300 * 4lintnam.ads: Fix header format.
13301 Change Linux to GNU/Linux.
13303 * 5iosinte.adb: Change Linux to GNU/Linux.
13305 * 5iosinte.ads: Change Linux to GNU/Linux.
13307 * 5itaprop.adb: Change Linux to GNU/Linux.
13309 * 5itaspri.ads: Change Linux to GNU/Linux.
13310 Update copyright notice.
13312 * 5lintman.adb: Change Linux to GNU/Linux.
13314 * 5lml-tgt.adb: Change Linux to GNU/Linux.
13316 * 5losinte.ads: Change Linux to GNU/Linux.
13318 * 5lsystem.ads: Change Linux to GNU/Linux.
13320 * 5qosinte.adb: Change Linux to GNU/Linux.
13322 * 5qosinte.ads: Change Linux to GNU/Linux.
13324 * 5qparame.ads: Change Linux to GNU/Linux.
13326 * 5qtaprop.adb: Change Linux to GNU/Linux.
13328 * 5qtaspri.ads: Change Linux to GNU/Linux.
13329 Add 2001 to copyright notice.
13331 * 5vintman.ads: Change Linux to GNU/Linux.
13332 Fix header format. Add 2001 to copyright notice.
13334 * g-soccon.ads: Change Linux to GNU/Linux.
13336 * g-trasym.ads: Change Linux to GNU/Linux.
13337 Add 2001 to copyright notice.
13339 * memtrack.adb: Change Linux to GNU/Linux.
13341 * s-intman.ads: Change Linux to GNU/Linux.
13342 Add 2001 to copyright notice. Fix header format.
13344 * s-stache.adb: Change Linux to GNU/Linux.
13346 * adaint.c: Change Linux to GNU/Linux.
13348 * cio.c: Change Linux to GNU/Linux.
13350 * cstreams.c: Change Linux to GNU/Linux.
13352 * init.c: Change Linux to GNU/Linux.
13354 * gmem.c: Change Linux to GNU/Linux.
13356 * tracebak.c: Change Linux to GNU/Linux.
13359 2001-10-02 Geert Bosch <bosch@gnat.com>
13361 * misc.c (insert_default_attributes): Add dummy version.