1 2004-09-17 Vincent Celier <celier@gnat.com>
3 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
4 capabilities of the general project manager.
6 2004-09-09 Vincent Celier <celier@gnat.com>
8 * a-direct.ads: Add pragma Ada_05
9 (Directory_Entry_Type): Give default value to component Kind to avoid
10 not initialized warnings.
12 * a-direct.adb (Current_Directory): Remove directory separator at the
14 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
15 an existing directory.
16 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
17 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
18 Convert the result to File_Size.
20 * prj.ads: (Project_Error): New exception
22 * prj-attr.adb: Except in procedure Initialize, Fail comes from
23 Prj.Com, not from Osint.
24 (Attrs, Package_Attributes): Tables moved to private part of spec
25 (Add_Attribute, Add_Unknown_Package): Moved to new child package
27 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
28 Prj.Project_Error after call to Fail.
29 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
30 Fail. Check that package name is not already in use.
32 * prj-attr.ads: Comment updates to indicate that all subprograms may be
33 used by tools, not only by the project manager, and to indicate that
34 exception Prj.Prj_Error may be raised in case of problem.
35 (Add_Unknown_Package, Add_Attribute): Moved to new child package
37 (Attrs, Package_Attributes): Table instantiations moved from the body to
38 the private part to be accessible from Prj.Attr.PM body.
40 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
41 from new package Prj.Attr.PM.
42 (Parse_Attribute_Declaration): Call Add_Attribute from new package
45 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
47 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
48 instead of Elaboration_Checks).
50 * a-calend.adb: Minor reformatting
52 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
54 * gigi.h (maybe_pad_type): New declaration.
55 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
57 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
59 * cuintp.c: Convert to use buildN.
61 * decl.c (maybe_pad_type): No longer static.
62 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
64 Convert to use buildN.
66 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
67 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
68 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
70 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
71 (gnat_gimplify_expr, case ADDR_EXPR): New case.
72 Convert to use buildN.
74 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
75 TREE_READONLY for const.
76 Convert to use buildN.
78 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
79 (create_var_decl): Refine when TREE_STATIC is set.
80 Convert to use buildN.
82 2004-09-09 Gary Dismukes <dismukes@gnat.com>
84 * gnat_ugn.texi: Delete text relating to checking of ali and object
87 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
90 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
92 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
93 pragmas recognized by GNAT.
95 * gnat_rm.texi: Document pragma Detect_Blocking.
97 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
98 raise Program_Error if called from a protected operation.
100 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
101 the protected action nesting level.
102 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
103 protected action nesting level.
104 (Unlock): When pragma Detect_Blocking is active decrease the protected
105 action nesting level.
107 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
108 Protected_Action_Nesting.
110 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
111 Common_ATCB record. It contains the dynamic level of protected action
112 nesting for each task. It is needed for checking whether potentially
113 blocking operations are called from protected operations.
114 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
115 Detect_Blocking is active or not in the partition.
117 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
118 raise Program_Error if called from a protected operation.
119 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
120 Program_Error if called from a protected operation.
121 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
122 Program_Error if called from a protected operation.
124 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
125 raise Program_Error if called from a protected operation.
127 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
128 raise Program_Error if called from a protected operation, and increase
129 the protected action nesting level.
130 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
131 Program_Error if called from a protected operation, and increase the
132 protected action nesting level.
133 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
134 protected action nesting level.
136 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
137 raise Program_Error if called from a protected operation, and increase
138 the protected action nesting level.
139 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
140 Program_Error if called from a protected operation, and increase the
141 protected action nesting level.
142 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
143 raise Program_Error if called from a protected operation.
144 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
145 active, raise Program_Error if called from a protected operation.
146 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
147 protected action nesting level.
149 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
150 insertion of the statement raising Program_Error. The run time
151 contains the required machinery for handling that.
153 * sem_util.ads: Change comment associated to procedure
154 Check_Potentially_Blocking_Operation.
155 This procedure does not insert a call for raising the exception because
156 that is currently done by the run time.
158 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
160 * init.c: Add the global variable __gl_detect_blocking that indicates
161 whether pragma Detect_Blocking is active (1) or not (0). Needed for
162 making the pragma available at run time.
163 (__gnat_set_globals): Pass and update the detect_blocking parameter.
165 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
166 pragma Detect_Blocking is active.
168 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
170 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
171 DB is found in the ali file. Any unit compiled with pragma
172 Detect_Blocking active forces its effect in the whole partition.
174 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
175 Detect_Blocking is active and delay is called from a protected
178 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
179 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
180 Detect_Blocking is active (0 otherwise).
181 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
182 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
185 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
187 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
188 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
191 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
192 (Register_Receiving_Stub): Add Subp_Info formal parameter.
193 Update API in placeholder implemetation of s-parint to reflect changes
194 in distribution runtime library.
196 * sem_ch3.adb (Expand_Derived_Record): Rename to
197 Expand_Record_Extension.
199 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
200 primitive operations of potentially distributed object types that have
201 non-controlling anonymous access formals.
203 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
205 New implementation of expansion for remote access-to-subprogram types,
206 based on the RACW infrastructure.
207 This version of sem_dist is compatible with PolyORB/DSA as well as
210 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
211 Asynchrronous that applies to a remote access-to-subprogram type, mark
212 the underlying RACW type as asynchronous.
214 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
215 __gnat_using_gnu_linker to 1.
217 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
218 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
219 GNAT.Perfect_Hash_Generators, and remove the empty
220 GNAT.Perfect_Hash package.
222 * atree.adb: Minor reformatting
224 * exp_ch3.adb (Expand_Derived_Record): Rename to
225 Expand_Record_Extension.
226 (Build_Record_Init_Proc.Build_Assignment): The default expression in
227 a component declaration must remain attached at that point in the
228 tree so New_Copy_Tree copies it if the enclosing record type is derived.
229 It is therefore necessary to take a copy of the expression when building
230 the corresponding assignment statement in the init proc.
231 As a side effect, in the case of a derived record type, we now see the
232 original expression, without any rewriting that could have occurred
233 during expansion of the ancestor type's init proc, and we do not need
234 to go back to Original_Node.
236 * exp_ch3.ads (Expand_Derived_Record): Rename to
237 Expand_Record_Extension.
239 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
240 Returns the RACW type used to implement a remote access-to-subprogram
242 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
243 New subprograms. Used to create a proxy tagged object for a remote
244 subprogram. The proxy object is used as the designated object
245 for RAS values on the same partition (unless All_Calls_Remote applies).
246 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
247 System.Partition_Interface.Get_Unique_Remote_Pointer.
248 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
249 Renamed from Add_RAS_*_Attribute.
250 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
252 New implementation of expansion for remote access-to-subprogram types,
253 based on the RACW infrastructure.
255 * exp_dist.ads (Copy_Specification): Update comment to note that this
256 function can copy the specification from either a subprogram
257 specification or an access-to-subprogram type definition.
259 2004-09-09 Ed Schonberg <schonberg@gnat.com>
261 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
262 in an instance, between an explicit subprogram an one inherited from a
263 type derived from an actual.
265 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
266 add a polling call if the subprogram is to be inlined by the back-end,
267 to avoid repeated calls with multiple inlinings.
269 * checks.adb (Apply_Alignment_Check): If the expression in the address
270 clause is a call whose name is not a static entity (e.g. a dispatching
271 call), treat as dynamic.
273 2004-09-09 Robert Dewar <dewar@gnat.com>
275 * g-trasym.ads: Minor reformatting
277 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
278 packed arrays, since unused bits are expected to be zero for a
281 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
283 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
286 2004-09-09 Pascal Obry <obry@gnat.com>
288 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
289 enable map file generation. Add the right option to generate the map
290 file if Map_File is set to True.
292 * gnatdll.adb (Gen_Map_File): New variable.
293 (Syntax): Add info about new -m (Map_File) option.
294 (Parse_Command_Line): Add support for -m option.
295 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
298 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
300 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
301 new gnatdist implementation.
302 Define a subpackage isolating the output routines specific to this
305 2004-09-09 Joel Brobecker <brobecker@gnat.com>
307 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
309 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
311 2004-09-09 Cyrille Comar <comar@act-europe.fr>
313 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
316 * opt.ads: Add Ada_Version_Runtime constant used to decide which
317 version of the language is used to compile the run time.
319 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
321 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
322 of variable length temporaries for function return now that the
323 back-end and gigi support it.
325 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
327 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
329 * trans.c (struct stmt_group): Delete field GLOBAL.
330 (gnat_init_stmt_group): Do not initialize it.
331 (call_to_gnu): Use save_expr, not protect_multiple_eval.
332 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
333 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
334 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
335 (start_stmt_group): Likewise.
336 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
338 * utils2.c (ggc.h): Include.
339 (build_call_raise): Call build_int_cst, not build_int_2.
341 * utils.c (gnat_init_decl_processing): Fix arg to
342 build_common_tree_nodes.
343 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
344 (gnat_define_builtin): Set built_in_decls.
345 (init_gigi_decls): Call build_int_cst, not build_int_2.
347 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
348 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
349 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
350 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
351 SET_TYPE_MODULE): Use them.
352 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
353 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
354 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
355 SET_TYPE_ADA_SIZE): Likewise.
356 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
357 (DECL_CONST_CORRESPONDING_VAR,
358 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
359 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
360 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
361 (TYPE_RM_SIZE_NUM): New macro.
362 (TYPE_RM_SIZE): Modified to use above.
364 * cuintp.c: (build_cst_from_int): New function.
367 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
368 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
369 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
370 MIN_EXPR for the size, copy it into new.
372 2004-09-01 Robert Dewar <dewar@gnat.com>
374 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
375 packed indexed component where array is an IN OUT formal. This
376 generated garbage code previously.
378 * gnat_ugn.texi: Document -fverbose-asm
380 * gnat-style.texi: Minor updates (note that boolean constants and
381 variables are joined with AND/OR rather than short circuit forms).
383 2004-09-01 Ed Schonberg <schonberg@gnat.com>
385 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
386 it is an upward conversion of an untagged type with no representation
389 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
391 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
392 System.Partition_Interface.
394 * checks.adb (Apply_Access_Checks): Do not generate checks when
395 expander is not active (but check for unset reference to prefix of
398 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
399 pragma Debug as an if statement with a constant condition, for
400 consistent treatment of entity references contained within the
401 enclosed procedure call.
403 2004-09-01 Vincent Celier <celier@gnat.com>
405 * bindgen.adb: (Set_EA_Last): New procedure
406 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
408 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
409 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
410 linked without errors.
411 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
413 (Gen_Exception_Table_C): Correct same bugs
415 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
417 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
418 on Windows, make sure that the drive letter is in upper case.
420 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
421 Windows, when the drive letter is added and Case_Sensitive is True, the
422 drive letter is forced to upper case.
424 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
425 to Options_2 for the call to MLib.Utl.Gcc.
427 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
428 directory separator when defining BASE_DIR.
430 2004-09-01 Pascal Obry <obry@gnat.com>
432 * gprcmd.adb (Extend): Do not output trailing directory separator. This
433 is not needed and it confuses Windows GNU/make which does not report
434 directory terminated by a slash as a directory.
435 (gprcmd): Idem for "pwd" internal command.
437 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
438 target names rewrite to fix regressions with recent version of
439 GNU/make. Starting with GNU/make 3.80 the pipe character was not
440 handled properly anymore.
442 2004-09-01 Andreas Schwab <schwab@suse.de>
444 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
445 * raise.c [!IN_RTS]: Undef abort.
447 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
449 * utils2.c (build_allocator): Use ssize_int.
451 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
453 2004-08-27 Andreas Schwab <schwab@suse.de>
455 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
457 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
458 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
460 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
462 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
464 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
465 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
466 * utils.c (init_gigi_decls): Likewise.
467 * utils2.c (build_call_raise, build_allocator): Likewise.
469 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
471 * utils.c (gnat_init_decl_processing): Adjust
472 build_common_tree_nodes call.
474 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
476 * utils2.c (build_allocator): Use build_int_cst for negative
479 2004-08-18 Richard Henderson <rth@redhat.com>
481 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
483 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
485 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
487 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
488 (gnat_to_gnu): Likewise.
490 2004-08-16 Pascal Obry <obry@gnat.com>
492 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
493 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
494 option and not mdll anymore. Update comment.
496 2004-08-16 Pascal Obry <obry@gnat.com>
498 * bld.adb (Put_Include_Project): Properly handle directory separators
501 2004-08-16 Ed Schonberg <schonberg@gnat.com>
503 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
504 decreasing the number of allocated junk nodes while searching for the
505 appropriate subprogram.
507 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
509 * cuintp.c (UI_To_gnu): Use build_int_cst..
510 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
511 * utils.c (init_gigi_decls): Likewise.
512 * utils2.c (build_call_raise): Likewise.
514 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
516 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
517 for a global aliased object with a variable size and an unconstrained
518 nominal subtype, pretend there is no initializer if the one we have is
519 incomplete, and avoid referencing an inexistant component in there. The
520 part we have will be rebuilt anyway and the reference may confuse
523 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
525 * einfo.ads: Minor reformatting
527 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
528 restrictions in the ALI if we only want to warn about violations.
530 2004-08-13 Vincent Celier <celier@gnat.com>
532 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
533 when creating a new Unit_Record in table Units.
535 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
536 that are violated, if any.
538 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
539 add directory separator if path already ends with a directory separator.
541 2004-08-13 Ed Schonberg <schonberg@gnat.com>
543 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
544 unit, this is an attempt to inline a construct that is not available in
545 the current restricted mode, so abort rather than trying to continue.
547 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
548 discriminants that rename those of the parent, recover names of
549 original discriminants for the constraint on the full view of the
551 (Complete_Private_Subtype): Do not create a subtype declaration if the
554 * gnat_rm.texi: Added section on implementation of discriminated
555 records with default values for discriminants.
557 2004-08-13 Ed Schonberg <schonberg@gnat.com>
560 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
561 the second operand is overloaded.
563 2004-08-10 Richard Henderson <rth@redhat.com>
565 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
566 add __builtin_alloca.
568 2004-08-10 Richard Henderson <rth@redhat.com>
570 * config-lang.in (boot_language): Yes.
572 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
574 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
575 from complaining on potential uninitialized reference.
576 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
577 new specification and test explicitly for non-zero return value.
579 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
580 returning C.int, to avoid using a derived boolean type.
582 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
583 Duplicate_Subexpr_No_Checks in preference to direct use of
584 Remove_Side_Effects and New_Copy_Tree.
585 Clear Comes_From_Source on prefix of 'Size attribute reference.
587 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
588 g-socthi-vxworks.adb: Change calls to
589 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
590 and test explicitly for non-zero return value.
592 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
593 (Is_Socket_In_Set): Declare imported function as returning C.int, to
594 avoid using a derived boolean type.
596 2004-08-09 Albert Lee <lee@gnat.com>
598 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
600 2004-08-09 Pascal Obry <obry@gnat.com>
602 * gnat_ugn.texi: Document new way to build DLLs on Windows using
603 GCC's -shared option.
605 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
606 Options_2 parameter (options put after object files).
608 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
610 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
611 ignore overflows on low and high bounds of an index to also account for
612 differences in signedness between sizetype and gnu_index_subtype.
613 These are as legitimate as the ones caused by a lower TYPE_PRECISION
616 2004-08-09 Robert Dewar <dewar@gnat.com>
618 * s-solita.ads, s-solita.adb: Minor reformatting
620 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
621 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
623 Add note that No_Implicit_Conditionals does not suppress
624 run time constraint checks.
626 * vms_conv.ads: Minor reformatting
628 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
629 and necessary for following change).
630 (Mark): Return new format Mark_Id containing sec stack address
631 (Release): Use sec stack address from Mark_Id avoiding Self call
633 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
634 pointer (cleanup and necessary for following change).
635 Define Mark_Id as record containing address of secondary stack, that way
636 Release does not need to find the stack again, decreasing the number of
637 calls to Self and improving efficiency.
639 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
641 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
642 case variable into the individual case branches when possible.
644 * sem_ch11.adb: Minor reformatting
646 * prj.ads: Correct spelling of suffixs
648 * prj-nmsc.adb: Minor reformatting
649 Correct spelling suffixs throughout (also in identifiers)
651 * freeze.adb: Minor spelling correction
653 * exp_ch2.adb: Cleanups to handling of Current_Value
654 (no functional effect).
656 * bld.adb: Correct spelling of suffixs
658 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
660 2004-08-09 Ed Schonberg <schonberg@gnat.com>
664 * sem_ch7.adb (Install_Private_Declarations): In the body of the
665 package or of a child, private entities are both immediately_visible
668 2004-08-09 Ed Schonberg <schonberg@gnat.com>
670 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
671 there are no range checks on the value of the literal.
673 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
674 wrapped is the triggering alternative of an asynchronous select, action
675 statements mustbe inserted before the select itself.
677 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
678 case where the prefix is a protected function call.
679 (Resolve_Attribute, case 'Access): The attribute reference on a
680 subprogram is legal in a generic body if the subprogram is declared
683 2004-08-09 Vincent Celier <celier@gnat.com>
685 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
686 languages, otherwise building the library may fail with unresolved
688 (Compile_Sources): Do not build libraries if -c switch is used
690 * gnatlink.adb (Process_Args): New switches -M and -Mmap
691 (Write_Usage): If map file creation is supported, output new switches
693 (Gnatlink): When -M is specified, add the necessary switch(es) to the
694 gcc call, when supported.
696 * Makefile.in: Added indepsw.o to the object list for gnatlink
697 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
699 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
700 indepsw.adb, indepsw.ads: New files.
702 2004-08-09 Bernard Banner <banner@gnat.com>
704 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
706 * Makefile.in: add section for vxworks x86
708 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
710 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
711 per-object constrained components where the discriminant is of an
713 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
714 the parent initialization procedure for derived Unchecked_Unions.
715 Instead, derived Unchecked_Unions build their own initialization
717 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
718 Check the body of the subprogram for details.
719 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
720 functions for derived Unchecked_Union types by introducing a condition.
721 Allow the creation of TSS equality functions for Unchecked_Unions.
722 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
723 Add formal parameter Discr to function signature. Discr is used to
724 control the generated case statement for Unchecked_Union types.
725 (Make_Eq_If): Rename formal parameter Node to E in function signature.
727 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
729 Check the body of the subprogram for details.
730 (Expand_Composite_Equality): Augment composite type equality to include
731 correct handling of Unchecked_Union components.
732 (Expand_N_In): Add condition to detect illegal membership tests when the
733 subtype mark is a constrained Unchecked_Union and the expression lacks
734 inferable discriminants, and build a Raise_Program_Error node.
735 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
736 to detect types that contain components of unconstrained Unchecked_Union
737 subtype. Add condition to detect equality between types that have an
738 unconstrained Unchecked_Union component, and build a Raise_Program_Error
739 node. Add condition to detect equality between Unchecked_Union types
740 that lack inferable discriminants, and build a Raise_Program_Error node.
741 Otherwise build a TSS equality function call.
742 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
743 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
744 with the operand lacking inferable discriminants, and build a Raise_
746 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
748 (Has_Inferable_Discriminants): Implement new predicate for objects and
749 expressions of Unchecked_Union type. Check the body of subprogram for
751 (Has_Unconstrained_UU_Components): Add function
752 Component_Is_Unconstrained_UU. It is used to detect whether a single
753 component is of an unconstrained Unchecked_Union subtype. Add function
754 Variant_Is_Unconstrained_UU. It is used to detect whether a single
755 component inside a variant is of an unconstrained Unchecked_Union type.
757 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
758 inferred discriminant values. Add condition to generate a case
759 statement with an inferred discriminant as the switch.
760 (Make_Component_List_Assign): Introduce a Boolean flag that determines
761 the behaviour of the subprogram in the presence of an Unchecked_Union.
762 Add condition to trigger the usage of the inferred discriminant value
763 as the generated case statement switch.
764 (Make_Field_Assign): Introduce a Boolean flag that determines the
765 behaviour of the subprogram in the presence of an Unchecked_Union. Add
766 condition to trigger the usage of the inferred discriminant value as
767 the right-hand side of the generated assignment.
769 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
770 parameter generation when dealing with Unchecked_Unions.
772 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
773 checks for Unchecked_Unions.
775 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
777 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
778 Raise_Program_Error nodes for the execution of Read and Write
779 attributes of Unchecked_Union types and the execution of Input and
780 Output attributes of Unchecked_Union types that lack default
783 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
784 Unchecked_Union. Add procedure Check_Component. It is used to inspect
785 per-object constrained components of Unchecked_Unions for being
786 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
787 check individual components withing a variant.
789 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
790 comparison of Unchecked_Unions.
791 (Resolve_Equality_OP): Remove guard that prevents equality between
794 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
795 of component subtypes for Unchecked_Union components.
796 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
797 since it is the actual subtype.
799 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
800 pass of Unchecked_Union subtypes as generic actuals to formal types
801 that lack known_discriminant_parts or that are derived Unchecked_Union
802 types, and do nothing. In any other case, produce an error message.
804 * sem_ch3.adb (Analyze_Component_Declaration): Add function
805 Contains_POC. It determines whether a constraint uses the discriminant
806 of an enclosing record type.
807 Add condition to detect per-object constrained component and set the
809 (Derived_Type_Declaration): Remove guard that prevents derivation from
810 Unchecked_Union types.
811 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
814 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
815 references to Unchecked_Union discriminants.
817 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
818 formal generation when dealing with Unchecked_Unions.
819 (Set_Actual_Subtypes): Add condition to prevent generation of actual
820 subtypes for Unchecked_Unions.
822 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
823 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
824 completions of discriminated partial views by Unchecked_Unions and
825 produce an error message.
827 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
829 * trans.c (struct stmt_group): New field, GLOBAL.
830 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
831 (struct elab_info): New struct.
832 (elab_info_list, gnu_elab_proc_stack): New variables.
833 (Compilation_Unit_to_gnu): New procedure.
834 (gigi): Call it and also handle elaboration procs we've saved.
835 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
836 global field from parent.
837 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
838 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
839 (start_stmt_group): Initialize global field from parent.
840 (add_decl_expr): Set to global for current statement group.
841 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
844 * utils.c (global_bindings_p): True when no current_function_decl; no
845 longer check current_binding_level.
847 2004-08-09 Ben Brosgol <brosgol@gnat.com>
849 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
852 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
854 2004-08-06 Andreas Schwab <schwab@suse.de>
856 * utils.c (gnat_define_builtin): Remove second parameter of
858 (begin_subprog_body): Likewise.
860 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
862 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
863 optimization, not supported by the tree-ssa back-end.
865 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
867 * s-mastop-irix.adb: Update comments.
869 * a-except.adb (Exception_Information): Raise Constraint_Error if
870 exception Id is Null_Id.
871 This is required behavior, which is more reliably and clearly checked
872 at the top level interface level.
874 2004-07-26 Javier Miranda <miranda@gnat.com>
876 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
877 call if a component has no default_expression and the box is used.
879 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
880 default_expression and you use box, it behaves as if you had declared a
882 (Resolve_Record_Aggregate): If a component has no default_expression and
883 you use box, it behaves as if you had declared a stand-alone object.
885 * sem_ch10.adb (Install_Siblings): Do not make visible the private
886 entities of private-with siblings.
888 2004-07-26 Ed Schonberg <schonberg@gnat.com>
890 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
891 for a component of an itype, set the parent pointer for analysis,
892 there is no list in which to insert it.
894 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
895 bona-fide renamings, not for inherited operations.
897 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
898 actual for a formal that is an access parameter, create local
899 finalization list even if the expression is not an aggregate.
901 2004-07-26 Ed Schonberg <schonberg@gnat.com>
904 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
905 Diagnose properly illegal subprogram renamings that are library units.
907 2004-07-26 Ed Schonberg <schonberg@gnat.com>
910 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
911 conversion rewritten as an unchecked conversion, check that original
912 expression is a variable.
914 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
915 unchecked_conversion, create new node rather than rewriting in place,
916 to preserve original construct.
918 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
920 * gigi.h (gnat_expand_body): Deleted.
922 * Make-lang.in: (trans.o): Depends on function.h.
924 * misc.c: (gnat_expand_body): Moved to here.
926 * trans.c (gnat_expand_body_1): Deleted.
927 (gnat_expand_body): Moved from here.
928 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
929 (add_stmt): Check for marked visited with global_bindings_p.
930 (gnat_gimplify_expr, case COMPONENT_REF): New case.
931 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
933 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
934 VIEW_CONVERT_EXPR if not operation type.
936 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
939 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
940 changes: reformatting of negation operators, removing unneeded
941 inequality comparison with zero, converting equality comparisons with
942 zero to negations, changing int/0/1 to bool/false/true, replace calls
943 to gigi_abort with abort, and various other similar changes.
945 2004-07-26 Vincent Celier <celier@gnat.com>
947 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
950 * make.adb (Gnatmake): Fail when a library is not present and there is
953 * mlib-prj.adb (Check_Library): No need to check if the library needs
954 to be rebuilt if there is no object directory, hence no object files
955 to build the library.
957 * opt.ads (Setup_Projects): New Boolean flag.
959 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
961 Create directory when Kind /= "" and in "gnat setup". Report error if
962 directory cannot be created.
963 (Ada_Check): Create library interface copy dir if it does not exist
964 and we are in "gnat setup".
965 (Find_Sources): No error if in "gnat setup" and no Ada sources were
967 (Language_Independent_Check): Create object directory, exec directory
968 and/or library directory if they do not exist and we are in
971 * vms_conv.ads: (Command_Type): New command Setup.
973 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
975 * vms_data.ads: Add qualifiers/switches for new built-in command
978 2004-07-25 Richard Henderson <rth@redhat.com>
980 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
981 DECL_IGNORED_P on RESULT_DECL.
983 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
985 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
986 allocation and potentially overflowing update with
987 Tailored_Exception_Information. Use the sec-stack free procedural
988 interface to output Exception_Information instead.
990 * a-except.adb (To_Stderr): New subprogram for character, and string
991 version moved from a-exextr to be visible from other separate units.
992 (Tailored_Exception_Information): Remove the procedural version,
993 previously used by the default Last_Chance_Handler and not any more.
994 Adjust various comments.
996 * a-exexda.adb: Generalize the exception information procedural
997 interface, to minimize the use of secondary stack and the need for
998 local buffers when the info is to be output to stderr:
999 (Address_Image): Removed.
1000 (Append_Info_Character): New subprogram, checking for overflows and
1001 outputing to stderr if buffer to fill is of length 0.
1002 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
1003 (Append_Info_Address, Append_Info_Exception_Name,
1004 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
1005 Append_Info_Basic_Exception_Traceback,
1006 Append_Info_Exception_Information): New subprograms.
1007 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
1008 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
1009 Exception_Info_Maxlength, Exception_Name_Length,
1010 Exception_Message_Length): New subprograms.
1011 (Exception_Information): Use Append_Info_Exception_Information.
1012 (Tailored_Exception_Information): Use
1013 Append_Info_Basic_Exception_Information.
1014 Export services for the default Last_Chance_Handler.
1016 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
1017 other separate units.
1019 2004-07-20 Vincent Celier <celier@gnat.com>
1021 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
1023 2004-07-20 Ed Schonberg <schonberg@gnat.com>
1025 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
1026 emit itype references for the designated types of component types that
1027 are declared outside of the full record declaration, and that may
1028 denote a partial view of that record type.
1030 2004-07-20 Ed Schonberg <schonberg@gnat.com>
1033 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
1034 which is the designated type in an access component declaration, to the
1035 list of incomplete dependents of the parent type, to avoid elaboration
1036 issues with out-of-scope subtypes.
1037 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
1038 full view of the parent.
1040 2004-07-20 Ed Schonberg <schonberg@gnat.com>
1043 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
1044 entities that are hidden, such as references to generic actuals
1045 outside an instance.
1047 2004-07-20 Javier Miranda <miranda@gnat.com>
1049 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
1050 support to the new notation.
1051 (Analyze_Selected_Component): Add call to Try_Object_Operation.
1053 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
1055 * s-taprob.adb: Adding the elaboration code required for initializing
1056 the tasking soft links that are common to the full and the restricted
1059 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
1060 restricted run time has been moved to the package
1061 System.Soft_Links.Tasking.
1063 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
1064 restricted run time has been moved to the package
1065 System.Soft_Links.Tasking.
1067 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
1069 * s-solita.ads, s-solita.adb: New files.
1071 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1073 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
1074 Case_Statement_to_gnu): Split off from gnat_to_gnu.
1075 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
1076 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
1077 Exception_Handler_to_gnu_zcx): Likewise.
1079 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
1081 * gigi.h (builtin_function): Declare.
1083 2004-07-15 Robert Dewar <dewar@gnat.com>
1085 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
1088 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
1089 access values as an example of a warning.
1091 * gnat_rm.texi: Document new attribute Has_Access_Values
1093 * gnat-style.texi: Document that box comments belong on nested
1096 * sem_util.ads (Has_Access_Values): Improved documentation
1098 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
1100 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
1101 (Process_Interface_Name): Call to this new procedure
1102 (Set_Extended_Import_Export_External_Name): Call to this new procedure
1104 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
1106 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
1108 * einfo.ads: Minor comment typo fixed
1110 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
1112 * snames.adb: Add _atcb.
1114 * snames.ads: Add Name_uATCB.
1116 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
1117 (in the expanded code) when using the restricted run time.
1119 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
1120 a in parameter in order to allow ATCBs to be preallocated (in the
1123 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
1124 order to allow ATCBs to be preallocated. In case of error, the ATCB is
1125 deallocated in System.Tasking.Stages.
1127 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
1128 order to allow ATCBs to be preallocated.
1130 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
1131 here. It was previously done in Initialize_ATCB.
1133 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
1135 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
1136 Restricted run time.
1138 * exp_ch3.adb: When using the Restricted run time, pass the
1139 preallocated Ada_Task_Control_Block when creating a task.
1141 2004-07-15 Ed Schonberg <schonberg@gnat.com>
1143 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
1144 function call that is itself an actual in an enclosing call, diagnose
1145 problem here rather than assuming that resolution will catch it.
1147 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
1148 the local copy of a generic unit for a formal package, and the generic
1149 is a child unit, install private part of ancestors before compiling
1150 private part of spec.
1152 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
1153 use scope entities rather than tree structures, to handle properly
1154 parent units that are instances rewritten as bodies for inlining
1157 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
1158 Remove_Parents): Handle properly a parent unit that is an
1159 instantiation, when the unit has been rewritten as a body for inlining
1162 * par.adb (Goto_List): Global variable to collect goto statements in a
1163 given unit, for use in detecting natural loops.
1165 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
1166 use in detecting natural loops.
1168 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
1169 backwards goto's, and rewrite as a infinite loop, to improve locality
1172 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
1173 subcomponent that includes an indexed reference, to prevent the
1174 generation of copies that would miscompile the desired assignment
1176 (Build_Task_Image_Decls): Add a numeric suffix to
1177 generated name for string variable, to avoid spurious conflicts with
1178 the name of the type of a single protected object.
1180 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
1181 loop with an explicit exit statement, to avoid generating an
1182 out-of-range value with 'Succ leading to spurious constraint_errors
1183 when compiling with -gnatVo.
1185 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
1187 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
1188 might not be analyzed yet, even if its Etype is already set (case of an
1189 unchecked conversion built using Unchecked_Convert_To, for example).
1190 If the prefix has already been analyzed, this will be a nop anyway.
1192 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
1193 controller type, or an assignment of a record type with controlled
1194 components, copy only user data, and leave the finalization chain
1197 2004-07-15 Vincent Celier <celier@gnat.com>
1199 * make.adb (Collect_Arguments): Improve error message when attempting
1200 to compile a source not part of any project, when -x is not used.
1202 * prj.ads: (Defined_Variable_Kind): New subtype
1204 * prj-attr.adb (Register_New_Package): Two new procedures to register
1205 a package with or without its attributes.
1206 (Register_New_Attribute): Mew procedure to register a new attribute in a
1208 New attribute oriented subprograms: Attribute_Node_Id_Of,
1209 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
1210 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
1212 New package oriented subprograms: Package_Node_Id_Of,
1213 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
1215 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
1217 (Package_Node_Id): Now a private, self initialized type
1218 (Register_New_Package): New procedure to register a package with its
1220 New attribute oriented subprograms: Attribute_Node_Id_Of,
1221 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
1222 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
1224 New package oriented subprograms: Package_Node_Id_Of,
1225 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
1227 * prj-dect.adb (Parse_Attribute_Declaration,
1228 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
1230 * prj-makr.adb (Make): Parse existing project file before creating
1231 other files. Fail if there was an error during parsing.
1233 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
1234 new spec of Prj.Attr.
1236 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
1237 to new spec of Prj.Attr.
1239 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1241 * utils2.c: Fix typo in comment.
1243 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1245 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
1246 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
1248 2004-07-14 Andreas Schwab <schwab@suse.de>
1250 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
1252 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1254 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
1256 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
1259 * misc.c (gnat_types_compatible_p): New function.
1260 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
1261 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
1263 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
1264 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
1265 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
1266 (mark_visited): Don't mark dummy type.
1267 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
1268 parameter, we must remove any LJM building from GNU_NAME.
1269 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
1270 (pos_to_constructor): Use int_const_binop.
1271 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
1274 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
1275 (gnat_pushlevel): Set TREE_USE on BLOCK node.
1276 (gnat_install_builtins): Add __builtin_memset.
1278 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
1280 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
1281 for a renaming, stabilize the initialization expression if we are at a
1282 local level. At the local level, uses of the renaming may be performed
1283 by a direct dereference of the initializing expression, and we don't
1284 want possible variables there to be evaluated for every use.
1286 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
1287 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
1288 them on the way. Account for the fact that we may introduce side
1289 effects in the process.
1291 2004-07-13 Richard Henderson <rth@redhat.com>
1293 * misc.c (default_pass_by_ref): Use pass_by_reference.
1295 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
1297 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
1298 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
1300 2004-07-08 Richard Henderson <rth@redhat.com>
1302 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
1305 2004-07-06 Vincent Celier <celier@gnat.com>
1307 * vms_conv.ads: Minor reformatting.
1308 Alphabetical order for enumerated values of type Command_Type, to have
1309 the command in alphabetical order for the usage.
1311 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
1312 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
1314 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
1316 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
1317 (Add_Archive_Path): Only add the global archive if there is one.
1318 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
1319 or not any object file to put in the global archive, and don't build
1320 a global archive if there is none.
1321 (X_Switches): New table
1322 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
1323 in the X_Switches table, if any.
1324 (Initialize): Make sure the X_Switches table is empty
1325 (Scan_Arg): Record -X switches in table X_Switches
1327 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
1329 * make.adb: Minor comment fix
1331 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
1332 invoked with directory information, add the directory in front of the
1335 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
1336 invoked with directory information, add the directory in front of the
1339 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
1340 when Keep_Temporary_Files is False.
1341 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
1342 directory information, add the directory in front of the path.
1343 When not on VMS, handle new switch -dn before the command to set
1344 Keep_Temporary_Files to True.
1345 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
1348 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
1349 invoked with directory information, add the directory in front of the
1352 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
1354 * snames.ads, snames.adb (Name_Stub): New name for the distributed
1357 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
1358 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
1360 * g-socket.adb (To_Timeval): Fix incorrect conversion of
1361 Selector_Duration to Timeval for the case of 0.0.
1363 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
1364 documentation from Evolve_And_Then.
1366 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
1368 * s-taprop-tru64.adb, s-taprop-os2.adb,
1369 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
1371 2004-07-06 Robert Dewar <dewar@gnat.com>
1373 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
1374 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
1375 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
1376 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
1377 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
1378 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
1379 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
1380 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
1381 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
1382 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
1383 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
1384 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
1385 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
1386 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
1387 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
1388 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
1389 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
1390 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
1391 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
1392 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
1393 vms_data.ads: Minor reformatting,
1394 Fix bad box comment format.
1396 * gnat_rm.texi: Fix minor grammatical error
1398 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
1400 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
1401 more cases of discriminated records to be recognized as not needing a
1403 (Has_Access_Values): New function.
1405 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
1407 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
1408 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
1409 with LRM terminology).
1410 Change terminology in comments primitive type => elementary type.
1412 2004-07-06 Ed Schonberg <schonberg@gnat.com>
1415 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
1416 parameters do not impose any requirements on the presence of a body.
1418 2004-07-06 Ed Schonberg <schonberg@gnat.com>
1421 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
1422 compilation unit and is in an open scope at the point of instantiation,
1423 assume that a body may be present later.
1425 2004-07-06 Ed Schonberg <schonberg@gnat.com>
1427 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
1428 Improve error message when specified size is not supported.
1430 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
1431 is never a primitive operation.
1433 2004-07-05 Andreas Schwab <schwab@suse.de>
1435 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
1436 RECORD_OR_UNION_CHECK.
1437 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
1439 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
1441 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
1442 dependency on xgnatugn, instead build it via a submake.
1443 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
1445 2004-07-04 Richard Henderson <rth@redhat.com>
1447 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
1449 2004-07-01 Richard Henderson <rth@redhat.com>
1451 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
1452 * utils.c (max_size): Likewise.
1454 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1456 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
1457 and rest_of_type_compilation; add arg to create_*_decl.
1458 (annotate_decl_with_node): Deleted.
1459 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
1460 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
1461 (get_current_block_context, gnat_pushdecl): New declarations.
1462 (gnat_init_stmt_group): Likewise.
1463 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
1464 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
1465 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
1466 (gnat_init): Call gnat_init_stmt_group.
1467 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
1468 (gnu_pending_elaboration_list): Deleted.
1469 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
1470 (gigi): Rearrange initialization calls and move some to last above.
1471 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
1472 Delete calls to add_decl_expr; add arg to create_*_decl.
1473 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
1474 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
1475 begin_subprog_body and call it.
1476 Don't push and pop ggc context.
1477 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
1478 (add_stmt): Remove handling of DECL_EXPR from here.
1479 If not in function, mark visited.
1480 (add_decl_expr): Put global at top level.
1481 Check for cases of DECL_INITIAL we have to handle here.
1482 (process_type): Add extra arg to create_type_decl.
1483 (build_unit_elab): Rework to just gimplify.
1484 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
1485 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
1486 (get_pending_elaborations, pending_elaborations_p): Likewise.
1487 (push_pending_elaborations, pop_pending_elaborations): Likewise.
1488 (get_elaboration_location, insert_elaboration_list): Likewise.
1489 (gnat_binding_level): Renamed from ada_binding_level.
1490 (init_gnat_to_gnu): Don't clear pending_elaborations.
1491 (global_bindings_p): Treat as global if no current_binding_level.
1492 (set_current_block_context): New function.
1493 (gnat_pushdecl): Renamed from pushdecl; major rework.
1494 All callers changed.
1495 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
1496 (finish_record_type): Call call pushdecl for stub decl.
1497 (function_nesting_depth): Deleted.
1498 (begin_subprog_body): Delete obsolete code.
1499 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
1501 2004-06-28 Robert Dewar <dewar@gnat.com>
1503 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
1504 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
1505 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
1506 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
1507 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
1509 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
1510 deal with problem of inefficient slices on machines with strict
1511 alignment, when the slice is a component of a composite.
1513 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
1514 machines, we need the check there as well.
1516 2004-06-28 Ed Schonberg <schonberg@gnat.com>
1518 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
1519 determine safe copying direction for overlapping slice assignments
1520 when component is controlled.
1522 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
1523 formal derived type in the actual for a formal package are visible in
1524 the enclosing instance.
1526 2004-06-28 Ed Schonberg <schonberg@gnat.com>
1529 * sem_util.adb (Trace_Components): Diagnose properly an illegal
1530 circularity involving a private type whose completion includes a
1531 self-referential component.
1532 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
1533 renaming or an instantiation from an implicit derived operation.
1535 2004-06-28 Pascal Obry <obry@gnat.com>
1537 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
1539 (Library_File_Name_For): Idem.
1541 2004-06-28 Matthew Gingell <gingell@gnat.com>
1543 * g-traceb.ads: Add explanatory note on the format of addresses
1544 expected by addr2line.
1546 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
1548 * Makefile.in: Force debugging information on s-tasdeb.adb,
1549 a-except.adb and s-assert.adb needed by the debugger.
1551 2004-06-28 Vincent Celier <celier@gnat.com>
1553 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
1557 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
1559 * prj.adb: Minor reformatting
1560 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
1562 * prj.ads: Comment updates
1564 (Project_Data): Change Flag1 to Need_To_Build_Lib.
1565 Remove Flag2: not used.
1567 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
1570 * gnat_ugn.texi: Put a "null;" declaration in one project file example
1572 * gnat_rm.texi: Document Empty declarations "null;".
1574 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
1575 front of the linker options.
1576 (Link_Foreign): Put the global archives and the libraries in front of
1579 2004-06-28 Javier Miranda <miranda@gnat.com>
1581 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
1582 (RTU_Loaded): Code cleanup
1583 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
1584 withed predefined units.
1586 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
1587 explicitly withed predefined units.
1590 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
1591 explicitly withed predefined units.
1593 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1595 * ada-tree.def (DECL_STMT): Deleted.
1596 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
1597 (DECL_STMT_VAR): Deleted.
1598 * decl.c: add_decl_stmt now add_decl_expr.
1600 * trans.c: Likewise.
1601 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
1602 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
1603 (add_stmt): Only handle padded type here.
1604 (add_stmt_with_node): Allow gnat_node to not be present.
1605 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
1606 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
1607 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
1608 make a SAVE_EXPR for the entire fat pointer.
1609 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
1610 (create_index_type): Make a DECL_EXPR.
1611 (end_subprog_body): Don't call allocate_struct_function here but
1614 2004-06-25 Pascal Obry <obry@gnat.com>
1616 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
1617 Relocatable from Build_Dynamic_Library call.
1619 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
1620 Relocatable are now synonym.
1622 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
1624 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
1625 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
1628 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
1629 Lib_Address and Relocatable.
1630 (Default_DLL_Address): Removed.
1632 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
1633 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
1634 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
1635 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
1636 (Default_DLL_Address): Removed.
1638 * mlib-tgt-mingw.adb: Ditto.
1639 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
1641 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
1642 the initial thread stack size.
1644 * a-strmap.ads: Move package L to private part as it is not used in
1645 the spec. Found while reading code.
1647 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
1649 * tracebak.c: Introduce support for a GCC infrastructure based
1650 implementation of __gnat_backtrace.
1652 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
1653 any more. Use accessors instead. This eases maintenance and relaxes
1654 some alignment constraints.
1655 (_GNAT_Exception structure): Remove the Ada specific fields
1656 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
1658 (is_handled_by, __gnat_eh_personality): Replace component references to
1659 exception structure by use of the new accessors.
1661 * init.c (__gnat_initialize): Adjust comments to match the just
1662 reverted meaning of the -static link-time option.
1664 * adaint.c (convert_addresses): Arrange not to define a stub for
1665 mips-irix any more, as we now want to rely on a real version from a
1666 recent libaddr2line.
1668 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
1669 the personality routine can use them and not have to rely on a C
1670 counterpart of the record anymore. This simplifies maintenance and
1671 relaxes the constraint of having Standard'Maximum_Alignment match
1673 Update comments, and add a section on the common header alignment issue.
1675 2004-06-25 Geert Bosch <bosch@gnat.com>
1677 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
1678 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
1680 2004-06-25 Robert Dewar <dewar@gnat.com>
1682 * gnat_rm.texi: Fix section on component clauses to indicate that the
1683 restriction on byte boundary placement still applies for bit packed
1685 Add comment on stack usage from Initialize_Scalars
1687 * gnat_ugn.texi: Add documentation for -gnatyLnnn
1689 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
1690 limiting nesting level.
1692 * usage.adb: Add line for -gnatyLnnn switch
1694 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
1695 sem_ch13.adb, exp_aggr.adb: Minor reformatting
1697 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
1698 type as well as on the subtype. This corrects a problem in freeze in
1699 setting alignments of atomic types.
1701 * sem_eval.ads: Minor comment typo fixed
1703 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
1704 level. Minor reformatting.
1706 * fname.adb (Is_Predefined_File_Name): Require a letter after the
1707 minus sign. This means that file names like a--b.adb will not be
1708 considered predefined.
1710 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
1711 record Test new flag and give diagnostic for bad component clause.
1712 (Freeze_Entity): Set alignment of array from component alignment in
1713 cases where this is safe to do.
1715 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
1718 * cstand.adb: (Create_Standard): Set alignment of String to 1
1720 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
1722 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
1723 code in the common constrained array cases.
1725 * a-storio.adb: Change implementation to avoid possible alignment
1726 problems on machines requiring strict alignment (data should be moved
1727 as type Buffer, not type Elmt).
1729 * checks.adb (Apply_Array_Size_Check): Improve these checks by
1730 killing the overflow checks which we really do not need (64-bits is
1733 2004-06-25 Vincent Celier <celier@gnat.com>
1735 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
1736 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
1737 inconditionally for the main project.
1738 (Recursive_Add_Archives.Add_Archive_Path): New procedure
1739 (Link_Executables.Check_Time_Stamps): New procedure
1740 (Link_Executables.Link_Foreign): New procedure
1741 Changes made to reduce nesting level of this package
1742 (Check): New procedure
1743 (Add_Switches): When not in quiet output, check that a switch is not
1744 the concatenation of several valid switches. If it is, issue a warning.
1745 (Build_Global_Archive): If the global archive is rebuilt, linking need
1747 (Compile_Sources): Rebuilding a library archive does not imply
1748 rebuilding the global archive.
1749 (Build_Global_Archive): New procedure
1750 (Build_Library): New name for Build_Archive, now only for library
1752 (Check_Archive_Builder): New procedure
1753 (Create_Global_Archive_Dependency_File): New procedure
1754 (Gprmake): Call Build_Global_Archive before linking
1755 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
1757 (Scan_Arg): Display the Copyright notice when -v is used
1759 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
1762 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
1764 Add new GNAT LIST qualifier /FILES=
1765 Added qualifier /DIRECTORY= to GNAT METRIC
1766 Added qualifier /FILES= to GNAT METRIC
1767 Added qualifier /FILES to GNAT PRETTY
1769 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
1770 to take into account both versions of the switch.
1772 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
1773 always be the last switch to the gcc driver. Disable switch storing so
1774 that switches automatically added by the gcc driver are not put in the
1777 * prj.adb (Project_Empty): Take into account changes in components of
1780 * prj.ads (Languages_Processed): New enumaration value All_Languages.
1782 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
1783 used. Split Boolean component Ada_Sources_Present in two Boolean
1784 components Ada_Sources_Present and Other_Sources_Present.
1787 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
1788 instead of Sources_Present.
1789 (Set_Ada_Paths.Add.Recursive_Add): Ditto
1791 * prj-nmsc.adb: Minor reformatting
1792 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
1793 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
1794 Check_Ada_Naming_Scheme.
1795 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
1798 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
1800 Make sure that all cycles where there is at least one "limited with"
1802 (Parse_Single_Project): New Boolean parameter In_Limited
1804 * prj-proc.adb (Recursive_Check): When Process_Languages is
1805 All_Languages, call first Prj.Nmsc.Ada_Check, then
1806 Prj.Nmsc.Other_Languages_Check.
1808 * prj-proc.adb (Process): Use Ada_Sources_Present or
1809 Other_Sources_Present (instead of Sources_Present) depending on
1812 * lang-specs.h: Keep -g and -m switches in the same order, and as the
1815 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
1816 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
1818 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
1821 * lib.ads (Disable_Switch_Storing): New procedure.
1823 * make.adb: Modifications to reduce nesting level of this package.
1824 (Check_Standard_Library): New procedure
1825 (Gnatmake.Check_Mains): New procedure
1826 (Gnatmake.Create_Binder_Mapping_File): New procedure
1827 (Compile_Sources.Compile): Add switch -gnatez as the last option
1828 (Display): Never display -gnatez
1831 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
1833 * gnatcmd.adb (Check_Project): New function
1834 (Process_Link): New procedure to reduce nesting depth
1835 (Check_Files): New procedure to reduce the nesting depth.
1836 For GNAT METRIC, include the inherited sources in extending projects.
1837 (GNATCmd): When GNAT LS is invoked with a project file and no files,
1838 add the list of files from the sources of the project file. If this list
1839 is too long, put it in a temp text files and use switch -files=
1840 (Delete_Temp_Config_Files): Delete the temp text file that contains
1841 a list of source for gnatpp or gnatmetric, if one has been created.
1842 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
1843 in the project file is too large, create a temporary text file that
1844 list them and pass it to the tool with "-files=<temp text file>".
1845 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
1847 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
1848 generated file is in not in Ada.
1850 * gnatls.adb: Remove all parameters And_Save that are no longer used.
1851 (Scan_Ls_Arg): Add processing for -files=
1852 (Usage): Add line for -files=
1854 * g-os_lib.adb (On_Windows): New global constant Boolean flag
1855 (Normalize_Pathname): When on Windows and the path starts with a
1856 directory separator, make sure that the resulting path will start with
1859 * clean.adb (Clean_Archive): New procedure
1860 (Clean_Project): When there is non-Ada code, delete the global archive,
1861 the archive dependency files, the object files and their dependency
1862 files, if they exist.
1863 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
1865 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
1867 * sinfo.ads: Fix typo in comment.
1869 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
1870 the TSS for remote access-to-subprogram types, since these TSS are
1871 always present once the type has been analyzed.
1872 (RAS_E_Dereference): Same.
1874 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
1875 reference raises Bad_Attribute, mark the reference as analyzed so the
1876 node (and any children resulting from rewrites that could have occurred
1877 during the analysis that ultimately failed) is not analyzed again.
1879 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
1881 * exp_dist.adb: Minor comment fix.
1883 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
1884 type is an anonymous access type, no unchecked deallocation of the
1885 allocated object can occur. If the object is controlled, attach it with
1886 a count of 1. This allows attachment to the Global_Final_List, if
1887 no other relevant list is available.
1888 (Get_Allocator_Final_List): For an anonymous access type that is
1889 the type of a discriminant or record component, the corresponding
1890 finalisation list is the one of the scope of the type.
1892 2004-06-25 Ed Schonberg <schonberg@gnat.com>
1894 * sem_ch3.adb (Replace_Type): When computing the signature of an
1895 inherited subprogram, use the first subtype if the derived type
1896 declaration has no constraint.
1898 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
1899 before applying previous optimization. Minor code cleanup.
1901 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
1902 placed at the beginning of an unpacked record without explicit
1903 alignment, a slice of it will be aligned and does not need a copy when
1906 2004-06-25 Ed Schonberg <schonberg@gnat.com>
1910 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
1911 reference is written with expressions mimicking parameters.
1913 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
1916 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
1917 STEP 2a. The constraints of a full type declaration of a derived record
1918 type are checked for conformance with those declared in the
1919 corresponding private extension declaration. The message
1920 "not conformant with previous declaration" is emitted if an error is
1923 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
1925 * g-traceb.ads: Document the need for -E binder switch in the spec.
1927 * g-trasym.ads: Document the need for -E binder switch in the spec.
1929 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
1931 * sem_prag.adb: Add handling of pragma Detect_Blocking.
1933 * snames.h, snames.ads, snames.adb: Add entry for pragma
1936 * s-rident.ads: Change reference to pragma Detect_Blocking.
1938 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
1941 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
1942 to indicate whether pragma Detect_Blocking is active.
1944 * par-prag.adb: Add entry for pragma Detect_Blocking.
1946 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
1947 of not handling WITH.
1948 Note that this replaces the previous update which was incorrect.
1950 2004-06-25 Javier Miranda <miranda@gnat.com>
1952 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
1953 use-clauses to have a clean environment.
1955 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
1956 the installation of the use-clauses to stablish a clean environment in
1957 case of compilation of a separate unit; otherwise the call to
1958 use_one_package is protected by the barrier Applicable_Use.
1960 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
1961 the installation of the use-clauses to stablish a clean environment in
1962 case of compilation of a separate unit.
1963 (End_Use_Clauses): Minor comment cleanup.
1965 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
1967 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
1969 2004-06-23 Richard Henderson <rth@redhat.com>
1971 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
1973 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1975 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
1976 now bool instead of int.
1977 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
1978 * trans.c (gnu_switch_label_stack): New function.
1979 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
1980 elaboration of renamed entity returns.
1981 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
1982 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
1983 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
1984 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
1985 DECL_SIZE_UNIT and simplify variable-sized case.
1986 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
1987 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
1988 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
1989 (build_unit_elab): Disable for now.
1990 * utils.c (mark_visited): New function.
1991 (pushdecl): Walk tree to call it for global decl.
1992 (update_pointer_to): Update all variants of pointer and ref types.
1993 Add arg to COMPONENT_REF.
1994 (convert): Likewise.
1995 Move check for converting between variants lower down.
1996 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
1997 (build_allocator): Don't force type of MODIFY_EXPR.
1998 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
2001 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2003 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
2004 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
2005 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
2007 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
2008 all callers changed.
2009 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
2010 the way that EXIT_STMT finds the loop label.
2011 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
2012 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
2013 (add_stmt): Use annotate_with_locus insted of setting directly.
2014 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
2015 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
2016 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
2017 (build_vms_descriptor): Add extra args to ARRAY_REF.
2018 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
2019 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
2021 (build_binary_op): Don't make explicit CONVERT_EXPR.
2022 Add extra rgs to ARRAY_REF.
2024 2004-06-14 Pascal Obry <obry@gnat.com>
2026 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
2027 Windows. Fix minor typo.
2029 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
2030 which is now supported on Windows. With this implementation using the
2031 Library Project feature is no different on Windows than on UNIX.
2033 2004-06-14 Vincent Celier <celier@gnat.com>
2035 * makegpr.adb (Compile_Sources): Nothing to do when there are no
2038 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
2040 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
2041 found, show the project name and the path of the previously parsed
2044 2004-06-14 Ed Schonberg <schonberg@gnat.com>
2046 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
2047 array, avoid copying the actual before the call.
2049 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
2051 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
2052 Instead, allocate memory on worst-case alignment assumptions, and then
2053 return an aligned address within the allocated zone.
2055 2004-06-14 Robert Dewar <dewar@gnat.com>
2057 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
2058 elab entities in predefined units in No_Run_Time_Mode.
2059 (Gen_Adainit_C): Same fix
2060 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
2061 units in No_Run_Time_Mode
2062 (Gen_Elab_Calls_C): Same fix
2064 * symbols-vms-alpha.adb: Minor reformatting
2066 * g-debpoo.ads: Minor reformatting
2068 * lib.adb (In_Same_Extended_Unit): Version working on node id's
2070 * lib.ads (In_Same_Extended_Unit): Version working on node id's
2072 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
2075 * make.adb: Minor reformatting
2077 * par-ch12.adb: Minor reformatting
2079 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
2081 * prj-strt.adb: Minor reformatting
2083 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
2086 * sem_attr.adb: Minor reformatting
2088 * sem_ch7.adb: Minor reformatting
2090 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
2091 for type in the same unit as the object declaration.
2093 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
2094 static string expressions and not just string literals.
2096 (Set_Warning): Reset restriction warning flag for restriction pragma
2097 Implement pragma Profile_Warnings
2098 Implement pragma Profile (Restricted)
2099 Give obolescent messages for old restrictions and pragmas
2101 * snames.h, snames.ads, snames.adb: Add new entry for pragma
2104 * s-rident.ads: Add declarations for restrictions required by profile
2105 Restricted and profile Ravenscar.
2107 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
2109 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
2110 configuration pragmas.
2112 2004-06-11 Vincent Celier <celier@gnat.com>
2114 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
2115 gnatsym, when symbol policy is Restricted.
2117 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
2118 gnatsym, when symbol policy is Restricted.
2120 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
2121 read the symbol file.
2122 (Finalize): Fail in symbol policy Restricted if a symbol in the original
2123 symbol file is not in the object files. Do not create a new symbol file
2124 when symbol policy is Restricted.
2126 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
2129 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
2131 (Usage): Line for new switch -R
2133 * make.adb (Initialize): When the platform is not VMS, add the
2134 directory where gnatmake is invoked in the front of the path, if
2135 gnatmake is invoked with directory information. Change the Scan_Args
2136 while loop to a for loop.
2137 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
2138 if Depth is equal or greater than the proposed depth, there is nothing
2140 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
2143 * prj.ads: Add new symbol policy Restricted.
2145 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
2146 with the new parameters Check_All_Labels and Case_Location.
2148 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
2149 (Library_Symbol_File needs to be defined).
2151 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
2152 and Case_Location If Check_All_Labels is True, check that all values of
2153 the string type are used, and output warning(s) if they are not.
2155 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
2158 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
2160 * gnat_ugn.texi: Update documentation about the library directory in
2163 * makegpr.adb (Display_Command): In verbose mode, also display the
2164 value of the CPATH env var, when the compiler is gcc.
2165 (Initialize): Change the Scan_Args while loop to a for loop
2166 (Compile_Individual_Sources): Change directory to object directory
2167 before compilations.
2169 * symbols.ads: New symbol policy Restricted.
2171 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
2173 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
2174 is now taken care of internally in the Exception_Propagation package
2175 and does not require clients assistance any more.
2177 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
2178 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
2179 functions. Helpers to maintain a predicate required in the handling of
2180 occurrence transfer between tasks.
2181 This is now handled internally and does not require clients assistance
2182 for the setup/propagate separation anymore.
2183 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
2184 allocation strategy, handle the Setup_And_Not_Propagated predicate and
2187 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
2188 raise_after_setup, now that everything is handled internally within the
2189 setup/propagation engine.
2191 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
2193 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
2194 Add additional conditions for the case of an actual being a simple
2195 name or literal. Improve inlining by preventing the generation
2196 of temporaries with a short lifetime (one use).
2198 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
2202 * einfo.ads: Minor comment updates for Has_Completion and
2203 E_Constant list of flags.
2205 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
2206 and constant redeclarations now set the Has_Completion flag of their
2207 defining identifiers.
2209 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
2210 Inspect_Deferred_Constant_Completion.
2211 Used to detect private deferred constants that have not been completed
2212 either by a constant redeclaration or pragma Import. Emits error message
2213 "constant declaration requires initialization expression".
2215 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
2216 completes a deferred constant.
2218 2004-06-11 Geert Bosch <bosch@gnat.com>
2220 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
2222 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
2223 calculating exponent for scaling denormal numbers.
2224 (Leading_Part): Properly raise Constraint_Error for zero or negative
2226 (Remainder): Properly raise Constraint_Error for zero divisor.
2228 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
2230 * sem_util.adb: Minor reformatting.
2232 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
2233 dereference when accessing the entry parameter record.
2234 (Check_Array_Type): Always check for possible implicit dereference.
2235 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
2236 Abort if a pointer is still present (denoting that an implicit
2237 dereference was left in the tree by the front-end).
2239 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
2240 dereference when accessing the entry parameter record.
2241 (Check_Array_Type): Always check for possible implicit dereference.
2242 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
2243 Abort if a pointer is still present (denoting that an implicit
2244 dereference was left in the tree by the front-end).
2246 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
2248 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
2249 message, like the compiler itself does. Easier to parse the output.
2251 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
2253 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
2254 be base names, and not includes directories.
2256 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
2258 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
2259 so that dependencies are properly taken into account by make.
2261 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
2264 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
2265 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
2267 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
2269 * Makefile.in (install-gnatlib): install target-specific run-time files.
2271 * Make-lang.in: Remove obsolete targets.
2273 2004-06-11 Ed Schonberg <schonberg@gnat.com>
2275 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
2276 specification, to catch misuses of program unit names.
2278 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
2279 superfluous conversions in an instance.
2281 2004-06-11 Ed Schonberg <schonberg@gnat.com>
2285 * sem_ch12.adb (Save_References): If operator node has been folded to
2286 enumeration literal, associated_node must be discarded.
2288 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
2290 * s-stchop-vxworks.adb: Add required pragma Convention to
2291 Task_Descriptor because it is updated by a C function.
2293 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
2297 * Makefile.in: Remove target specific SO_OPT on IRIX
2299 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2301 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
2302 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
2303 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
2304 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
2305 (STMT_STMT, USE_STMT): New statement codes.
2306 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
2307 * ada-tree.h: Reflect above changes.
2308 (struct tree_loop_id): Deleted.
2309 (union lang_tree_node, struct lang_decl, struct lang_type):
2310 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
2311 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
2312 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
2313 (IS_ADA_STMT): New macro.
2314 * decl.c (annotate_decl_with_node): New function.
2315 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
2316 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
2317 Call add_stmt_with_node to do needed assignments.
2318 Add call to update setjmp buffer directly, not via EXPR_STMT.
2319 (maybe_variable): Argment GNAT_NODE deleted.
2320 * gigi.h (maybe_variable): Likewise.
2321 (make_transform, add_stmt_with_node, set_block_for_group): New.
2322 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
2323 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
2324 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
2325 (set_lineno, set_lineno_from_sloc): Likewise.
2326 (record_code_position, insert_code_for): Likewise.
2327 (gnat_poplevel): Now returns void.
2328 (end_subprog_body): Now takes argument.
2329 * misc.c (cgraph.h, tree-inline.h): New includes.
2330 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
2331 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
2332 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
2333 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
2334 (gnat_parse_file): Don't set immediate_size_expand.
2335 Call cgraph functions.
2336 (gnat_expand_expr): Remove most cases.
2337 (record_code_position, insert_code_for): Remove from here.
2338 * trans.c (toplev.h, tree-gimple.h): Now included.
2339 (discard_file_names): Deleted.
2340 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
2341 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
2342 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
2343 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
2344 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
2345 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
2346 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
2347 (set_block_for_group, add_stmt_list): Likewise.
2348 (start_stmt_group): Renamed from start_block_stmt.
2349 (end_stmt_group): Likewise, from end_block_stmt.
2350 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
2351 (gigi): Don't set discard_file_names or call set_lineno.
2352 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
2353 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
2354 Numerous changes throughout to reflect new names and complete
2355 function-at-a-time implementation.
2356 (gnat_expand_stmt): Delete or comment out all cases.
2357 (process_inlined_subprograms): Use add_stmt.
2358 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
2359 call set_lineno; also remove unneeded block handling.
2360 (process_type): Remove unneeded block handling.
2361 (build_unit_elab): Remove calls to deleted functions.
2362 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
2363 (tree-dump.h): Likewise.
2364 (struct ada_binding_level): Add field jmpbuf_decl.
2365 (gnat_define_builtin, gnat_install_builtins): New.
2366 (gnat_gimplify_function, gnat_finalize): Likewise.
2367 (gnat_poplevel): No longer return BLOCK, set it instead.
2368 Remove code dealing with nested functions.
2369 (gnat_init_decl_processing): Also set size_type_node.
2370 Call gnat_install_builtins.
2371 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
2372 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
2373 Remove special-case for "main".
2374 (end_subprog_body): Add arg and rework for tree-ssa.
2375 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
2376 Add case for BOOLEAN_TYPE.
2377 * utils2.c (rtl.h): Now include.
2378 (build_call_raise): Test Debug_Flag_NN directly.
2379 (build_call_alloc_dealloc): Don't use local stack allocation for now.
2380 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
2381 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
2383 2004-06-07 Robert Dewar <dewar@gnat.com>
2385 * a-direct.ads, einfo.ads: Minor comment updates
2387 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
2388 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
2389 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
2390 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
2391 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
2393 * s-interr-sigaction.adb: Remove unreferenced variable
2394 (Attached_Interrupts). Minor reformatting.
2395 Avoid use of variable I (replace by J).
2397 * par-ch10.adb: Fix text of one error message
2399 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
2400 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
2401 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
2402 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
2403 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
2404 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
2405 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
2406 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
2407 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
2408 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
2409 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
2412 2004-06-07 Doug Rupp <rupp@gnat.com>
2414 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
2416 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
2418 * mlib-tgt-vms-ia64.adb: New file.
2420 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
2421 Add mlib-tgt-vms-ia64.adb
2422 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
2423 Move to alpha specific ifeq section.
2424 Add VMS specific versions of symbols.adb
2425 Renaming of 5q vms files.
2427 * 5qsystem.ads renamed to system-vms_64.ads.
2429 2004-06-07 Vincent Celier <celier@gnat.com>
2431 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
2432 explain that when a time of day corresponding to the non existing hour
2433 on the day switching to DST is specified, Split may return a different
2436 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
2439 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
2440 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
2442 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
2444 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
2445 the linking options.
2446 (Build_Library.Check_Libs): On VMS, if there is a dependency on
2447 g-trasym.ads, set Gtrasymobj_Needed to True.
2449 * prj-attr.adb: Add new package Metrics for gnatmetric
2451 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
2452 canonical case to take into account files with upper case characters on
2454 (Ada_Check): Load the reference symbol file name in the name buffer to
2455 check it, not the symbol file name.
2457 * snames.ads, snames.adb: Add standard name Metrics (name of project
2458 file package for gnatmetric).
2460 * vms_conv.ads: Add Metric to Comment_Type
2462 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
2464 * vms_data.ads: Add qualifiers for GNAT METRIC
2466 * makegpr.adb (Link_Executables): Take into account the switches
2467 specified in package Linker of the main project.
2469 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
2471 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
2472 the index of the last element is Units.Last, not Units.Table'Last
2473 (which is usually not a valid index within the actually allocated
2474 storage for the table).
2476 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
2477 determines whether to generate a call to a checked storage pool
2479 Generate such a call only for a dereference that either comes from
2480 source, or is the result of rewriting a dereference that comes from
2483 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
2485 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
2487 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
2489 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
2490 file level, elaborate the stride for inner dimensions in alignment
2493 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
2496 2004-06-07 Javier Miranda <miranda@gnat.com>
2498 * exp_ch6.adb: Correct wrong modification in previous patch
2500 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
2502 * g-trasym.ads: Corrected comment to properly reflect level of support
2505 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
2507 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
2508 includes case of a variable referenced on the left hand side of an
2509 assignment, therefore remove redundant code. Variables and prefixes of
2510 indexed or selected components are now marked as referenced on left
2511 hand side. Warnings are now properly emitted when variables or prefixes
2512 are assigned but not read.
2514 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
2515 left hand side referenced variables. Private access types do not
2516 produce the warning "variable ... is assigned but never read".
2517 Add also additional checks to left hand side referenced variables.
2518 Aliased, renamed objects and access types do not produce the warning
2519 "variable ... is assigned but never read" since other entities may read
2520 the memory location.
2522 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
2524 * Makefile.in: In the powerpc/vxworks-specific section, restore
2525 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
2528 2004-06-07 Ed Schonberg <schonberg@gnat.com>
2530 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
2531 predefined operators.
2532 Removes spurious type errors from g-trasym-vms.adb.
2534 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
2535 distinct from the operator appearing in the source, call appropriate
2536 routine to insert conversions when needed, and complete resolution of
2538 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
2539 interpretations for rewritten right operand.
2540 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
2541 the other operand is overloaded and the context is a type conversion.
2543 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2545 * ada-tree.def (BLOCK_STMT): Now has two operands.
2548 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
2550 * gigi.h: (gnat_poplevel): Now returns a tree.
2552 * trans.c (end_block_stmt): Add arg; all callers changed.
2553 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
2554 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
2555 (add_stmt): Set TREE_TYPE.
2556 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
2557 (gnat_expand_stmt, case BREAK_STMT): New case.
2559 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
2561 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
2563 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
2564 procedure Set_Stack_Size that is not needed.
2566 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
2568 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
2569 used for gnatpp input file and for the files upon which it depends
2571 2004-06-07 Ben Brosgol <brosgol@gnat.com>
2573 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
2575 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
2577 * gnatvsn.ads: Bump version numbers appropriately.
2580 2004-06-07 Pascal Obry <obry@gnat.com>
2582 * gnat_ugn.texi: Improve comments about imported names and link names
2583 on Windows. Add a note about the requirement to use -k gnatdll's option
2584 when working with a DLL which has stripped stdcall symbols (no @nn
2587 2004-05-27 Vincent Celier <celier@gnat.com>
2589 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
2590 COMMENTS_LAYOUT=UNTOUCHED
2592 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
2593 symbols-vms-alpha.adb
2595 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
2597 * sem.ads: Clarify documentation on checks suppression.
2599 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
2601 2004-05-27 Ed Schonberg <schonberg@gnat.com>
2603 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
2604 the case of multiple derivations.
2605 (Is_Object_Reference): For a selected component, verify that the prefix
2606 is itself an object and not a value.
2608 * sem_ch12.adb (Same_Instantiated_Constant): New name for
2609 Same_Instantiated_Entity.
2610 (Same_Instantiated_Variable): Subsidiary to
2611 Check_Formal_Package_Instance, to recognize actuals for in-out generic
2612 formals that are obtained from a previous formal package.
2613 (Instantiate_Subprogram_Body): Emit proper error when
2614 generating code and the proper body of a stub is missing.
2616 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
2617 has a universal interpretation, do the disambiguation here.
2619 * exp_ch4.adb (Expand_N_Type_Conversion,
2620 Expand_N_Unchecked_Type_Conversion): Special handling when target type
2621 is Address, to avoid typing anomalies when Address is a visible integer
2624 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
2625 to determine whether a subprogram should not be marked Pure, even when
2626 declared in a pure package.
2628 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
2630 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
2632 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
2633 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
2634 Update the documentation about the Ravenscar profile, following the
2635 definition found in AI-249.
2637 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
2638 setting the Profile (Ravenscar). This must be done in addition to
2639 setting the required restrictions.
2641 * rtsfind.ads: Add the set of operations defined in package
2644 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
2647 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
2649 lang-specs.h: Always require -c or -S and always redirect to /dev/null
2650 if -gnatc or -gnats is passed.
2652 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
2654 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
2655 a significant reference. Warnings are now properly emitted when a
2656 discriminated type is not referenced.
2658 * lib-xref.adb (Generate_Reference): A deferred constant completion,
2659 record representation clause or record type discriminant does not
2660 produce a reference to its corresponding entity. Warnings are now
2661 properly emitted when deferred constants and record types are not
2664 2004-05-27 Geert Bosch <bosch@gnat.com>
2666 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
2667 Fixes ACATS Annex G tests.
2669 2004-05-27 Robert Dewar <dewar@gnat.com>
2671 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
2674 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
2676 * s-interr.adb (Server_Task): Take into account case of early return
2677 from sigwait under e.g. linux.
2679 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
2681 * gnat_ugn.texi: Add description for the new gnatpp options:
2682 -rnb - replace the original source without creating its backup copy
2683 -c0 - do not format comments
2685 2004-05-24 Geert Bosch <bosch@gnat.com>
2687 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
2688 with 192 bits of precision, sufficient to reduce a double-extended
2689 arguments X with a maximum relative error of T'Machine_Epsilon, for X
2690 in -2.0**32 .. 2.0**32.
2691 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
2692 reduction by the processor, which only uses a 68-bit approximation of
2694 (Tan): Always reduce arguments and compute function either using
2695 the processor's fptan instruction, or by dividing sin and cos as needed.
2697 2004-05-24 Doug Rupp <rupp@gnat.com>
2699 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
2700 gcc error on 32/64 bit VMS.
2702 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
2704 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
2705 since this is what we get for stack overflows although not documented
2707 Document the issues which may require adjustments to our signal
2710 2004-05-24 Ed Schonberg <schonberg@gnat.com>
2712 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
2713 enclosing dynamic scope if the instantiation is within a generic unit.
2715 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
2717 * exp_dbug.ads: Fix typo.
2719 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
2720 Rename it to its proper name: system-linux-ia64.ads
2721 (stamp-gnatlib1): Remove extra target specific run time files when
2722 setting up the rts directory.
2724 2004-05-24 Javier Miranda <miranda@gnat.com>
2726 * einfo.ads, einfo.adb (Limited_Views): Removed.
2727 (Limited_View): New attribute that replaces the previous one. It is
2728 now a bona fide package with the limited-view list through the
2729 first_entity and first_private attributes.
2731 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
2732 limited-private-with clause.
2733 (Install_Limited_Withed_Unit): Install the private declarations of a
2734 limited-private-withed package. Update the installation of the shadow
2735 entities according to the new structure (see Build_Limited_Views)
2736 (Build_Limited_Views): Replace the previous implementation of the
2737 limited view by a package entity that references the first shadow
2738 entity plus the first shadow private entity (required for limited-
2739 private-with clause)
2740 (New_Internal_Shadow_Entity): Code cleanup.
2741 (Remove_Limited_With_Clause): Update the implementation to undo the
2742 new work carried out by Build_Limited_Views.
2743 (Build_Chain): Complete documentation.
2744 Replace Ada0Y by Ada 0Y in comments
2747 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
2748 types the level of accessibility depends on the enclosing type
2751 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
2752 entities. Complete documentation of previous change.
2754 2004-05-24 Robert Dewar <dewar@gnat.com>
2756 * namet.adb: Minor reformatting
2757 Avoid use of name I (replace by J)
2758 Minor code restructuring
2760 * sem_ch6.adb: Minor reformatting
2762 * lib-writ.adb: Do not set restriction as active if this is a
2763 Restriction_Warning case.
2765 * sem_prag.adb: Reset restriction warning flag if real pragma
2766 restriction encountered.
2768 * s-htable.adb: Minor reformatting
2769 Change rotate count to 3 in Hash (improves hash for small strings)
2771 * 5qsystem.ads: Add comments for type Address (no literals allowed).
2773 * gnat_ugn.texi: Add new section of documentation "Code Generation
2774 Control", which describes the use of -m switches.
2776 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
2778 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
2779 through the DECL_INITIAL for renamed variables.
2781 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
2783 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
2785 2004-05-19 Joel Brobecker <brobecker@gnat.com>
2787 * exp_dbug.ads: Correct comments concerning handling of overloading,
2788 since we no longer use $ anymore.
2790 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
2792 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
2793 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
2794 with illegal subunits.
2796 2004-05-19 Ed Schonberg <schonberg@gnat.com>
2798 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
2799 body with front-end inlining enabled, check whether an inline pragma
2800 appears immediately after the body and applies to it.
2802 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
2803 enabled and the pragma appears after the body of the subprogram.
2805 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2807 Part of function-at-a-time conversion
2809 * misc.c (adjust_decl_rtl): Deleted.
2810 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
2813 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
2814 (add_decl_stmt, add_stmt, block_has_vars): New functions.
2815 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
2817 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
2819 (gnat_to_gnu_entity): Likewise.
2820 Use add_stmt to update setjmp buffer.
2821 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
2823 No longer call adjust_decl_rtl.
2824 (DECL_INIT_BY_ASSIGN_P): New macro.
2825 (DECL_STMT_VAR): Likewise.
2827 * trans.c (gigi): Call start_block_stmt to make the outermost
2829 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
2830 Call start_block_stmt and end_block_stmt temporarily.
2831 Use gnat_expand_stmt instead of expand_expr_stmt.
2832 (add_decl_stmt): New function.
2833 (tree_transform): Call it.
2834 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
2835 (end_block_stmt): Set type and NULL_STMT.
2836 (gnat_expand_stmt): Make recursize call instead of calling
2838 (gnat_expand_stmt, case DECL_STMT): New case.
2839 (set_lineno_from_sloc): Do nothing if global.
2840 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
2841 (start_block_stmt, add_stmt, end_block_stmt): New functions.
2842 (build_block_stmt): Call them.
2843 (gnat_to_code): Don't expand NULL_STMT.
2844 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
2846 (tree_transform): Likewise.
2847 (tree_transform, case N_Null_Statement): Return NULL_STMT.
2848 (gnat_expand_stmt, case NULL_STMT): New case.
2849 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
2852 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
2855 * utils.c (create_var_decl): Do not call expand_decl or
2857 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
2858 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
2860 (struct e_stack): Add chain_next to GTY.
2861 (struct binding_level): Deleted.
2862 (struct ada_binding_level): New struct.
2863 (free_block_chain): New.
2864 (global_binding_level, clear_binding_level): Deleted.
2865 (global_bindings_p): Rework to see if no chain.
2866 (kept_level_p, set_block): Deleted.
2867 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
2868 new data structure and work directly on BLOCK node.
2869 (gnat_poplevel): Similarly.
2870 (get_decls): Look at BLOCK_VARS.
2871 (insert_block): Work directly on BLOCK node.
2872 (block_has_var): New function.
2873 (pushdecl): Rework for new binding structures.
2874 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
2876 (build_subprog_body): Likewise.
2877 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
2879 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
2881 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
2882 (DECL_STMT_VAR): Likewise.
2884 2004-05-17 Robert Dewar <dewar@gnat.com>
2886 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
2889 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
2890 of restriction synonyums by using
2891 Restrict.Process_Restriction_Synonyms.
2893 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
2895 * s-restri.ads (Tasking_Allowed): Correct missing comment
2897 * s-rident.ads: Add entries for restriction synonyms
2899 * ali.adb: Fix some problems with badly formatted ALI files that can
2900 result in infinite loops.
2902 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
2903 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
2904 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
2905 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
2906 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
2907 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
2908 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
2909 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
2910 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
2911 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
2912 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
2913 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
2914 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
2915 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
2916 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
2917 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
2918 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
2919 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
2920 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
2921 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
2922 to Task_Id (minor cleanup).
2924 2004-05-17 Vincent Celier <celier@gnat.com>
2926 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
2927 directory separator.
2929 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
2930 project being extended, if Languages is not declared in extending
2933 2004-05-17 Javier Miranda <miranda@gnat.com>
2935 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
2936 limited view of a visible sibling.
2938 2004-05-14 Robert Dewar <dewar@gnat.com>
2940 * gnat_ugn.texi: Minor change to -gnatS documentation
2942 * sprint.adb: Remove some instances of Assert (False) and for this
2943 purpose replace them by output of a ??? string.
2945 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
2948 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
2949 flag processing. This was suppressing required dependencies in
2950 No_Run_Time mode and is not needed since the binder does not generate
2951 references for things in libgnat anyway.
2953 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
2956 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
2958 * gnat_ugn.texi: Document AIX-specific issue with initialization of
2961 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
2962 action for the case of an actual parameter in an init proc call.
2964 2004-05-14 Ed Schonberg <schonberg@gnat.com>
2966 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
2967 subtype, check visible entities in base type.
2969 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
2970 actions if the object is a renaming.
2972 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
2973 Check_Formal_Package_Instance, to determine more precisely when the
2974 formal and the actual denote the same entity.
2976 2004-05-14 Javier Miranda <miranda@gnat.com>
2978 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
2980 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
2981 corresponding to a private_with must be removed from visibility; it
2982 will be made visible later, just before we analyze the private part of
2984 (Check_Private_Child_Unit): Allow private_with clauses in public
2986 (Install_Siblings): Make visible the private entities of private-withed
2988 (Install_Withed_Unit): Do not install the private withed unit if we
2989 are compiling a package declaration and the Private_With_OK flag was
2990 not set by the caller. These declarations will be installed later,
2991 just before we analyze the private part of the package.
2993 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
2994 during the evaluation of the expression that initializes the object,
2995 decorate it with the expected type to avoid cascade errors.
2998 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
2999 subprogram we have to install the private_with clauses after its
3000 specification has been analyzed (as documented in AI-262.TXT).
3002 * sem_ch8.adb (Has_Private_With): New function. Determines if the
3003 current compilation unit has a private with on a given entity.
3004 (Find_Direct_Name): Detect the Beaujolais problem described in
3007 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
3008 provides the functionality of the function Is_Ancestor that was
3009 previously available in sem_ch10. It has been renamed to avoid
3012 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
3014 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3016 * utils.c (build_vms_descriptor): Use SImode pointers.
3018 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
3020 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
3022 2004-05-14 GNAT Script <nobody@gnat.com>
3024 * Make-lang.in: Makefile automatically updated
3026 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
3028 Renaming of target specific files for clarity
3030 * Makefile.in: Rename GNAT target specific files.
3032 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
3033 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
3034 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
3035 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
3036 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
3037 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
3038 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
3039 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
3040 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
3041 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
3042 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
3043 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
3044 51osinte.adb, 51osinte.ads, 51system.ads,
3045 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
3046 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
3047 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
3048 56tpopsp.adb, 57system.ads, 58system.ads,
3049 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
3050 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
3051 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
3052 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
3053 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
3054 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
3055 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
3056 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
3057 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
3058 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
3059 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
3060 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
3061 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
3062 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
3063 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
3064 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
3065 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
3066 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
3067 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
3068 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
3069 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
3070 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
3071 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
3072 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
3073 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
3074 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
3075 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
3076 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
3077 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
3078 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
3079 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
3080 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
3081 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
3082 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
3083 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
3084 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
3085 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
3086 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
3087 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
3088 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
3090 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
3091 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
3092 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
3093 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
3094 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
3095 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
3096 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
3097 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
3098 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
3099 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
3100 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
3101 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
3102 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
3103 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
3104 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
3105 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
3106 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
3107 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
3108 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
3109 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
3110 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
3111 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
3112 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
3113 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
3114 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
3115 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
3116 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
3117 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
3118 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
3119 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
3120 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
3121 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
3122 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
3123 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
3124 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
3125 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
3126 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
3127 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
3128 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
3129 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
3130 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
3131 s-osinte-vms.ads, s-osinte-vxworks.adb,
3132 s-osinte-vxworks.ads, s-osprim-mingw.adb,
3133 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
3134 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
3135 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
3136 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
3137 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
3138 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
3139 s-stchop-vxworks.adb, s-taprop-dummy.adb,
3140 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
3141 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
3142 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
3143 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
3144 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
3145 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
3146 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
3147 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
3148 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
3149 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
3150 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
3151 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
3152 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
3153 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
3154 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
3155 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
3156 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
3157 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
3158 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
3159 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
3160 system-irix-o32.ads, system-linux-x86_64.ads,
3161 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
3162 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
3163 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
3164 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
3165 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
3166 system-vxworks-mips.ads, system-vxworks-ppc.ads,
3167 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
3170 2004-05-13 Zack Weinberg <zack@codesourcery.com>
3172 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
3174 2004-05-13 Diego Novillo <dnovillo@redhat.com>
3176 Merge from tree-ssa-20020619-branch.
3178 * config-lang.in (boot_language, build_by_default): Set
3180 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
3181 (max_size): Add static chain op for call_expr.
3183 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
3186 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
3188 2004-05-11 Roger Sayle <roger@eyesopen.com>
3190 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
3193 2004-05-10 Doug Rupp <rupp@gnat.com>
3195 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
3198 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
3200 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
3202 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
3203 Fixes undefined symbols in IA64 gnatlib.
3205 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
3207 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
3208 Short_Address). This will be moved to system.auxdec.
3210 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
3212 * sem_util.adb: Replace test for presence of a node that is always
3213 present with a call to Discard_Node.
3215 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
3216 Analyze on the library unit node after generation of distribution stub
3217 constructs. The call was a no-op because Unit_Node has already been
3218 Analyzed, and the tree fragments for the distribution stubs are
3219 analyzed as they are inserted in Exp_Dist.
3220 Update comment regarding to distribution stubs to reflect that we
3221 do not generate stub in separate files anymore.
3223 * einfo.ads: Clarify the fact that a tagged private type has the
3224 E_Record_Type_With_Private Ekind.
3226 * erroutc.adb: Minor reformatting
3228 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
3229 values if line length is increased using -gnatyM (noticed during code
3232 * eval_fat.adb: Minor reformatting
3233 Put spaces around exponentiation operator
3235 2004-05-10 Ed Schonberg <schonberg@gnat.com>
3238 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
3239 has been rewritten as an explicit dereference, retrieve type of
3240 original node to check for possibly unconstrained record type.
3242 2004-05-10 Ed Schonberg <schonberg@gnat.com>
3244 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
3245 overriding, use the operation of the parent unconditionally.
3247 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
3248 operation when either operand is a literal, to avoid further
3251 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
3252 overridden by a previous explicit declaration, mark the previous entity
3255 * sem_disp.adb (Check_Dispatching_Operation): New predicate
3256 Is_Visibly_Controlled, to determine whether a declaration of a
3257 primitive control operation for a derived type overrides an inherited
3258 one. Add warning if the explicit declaration does not override.
3260 2004-05-10 Vincent Celier <celier@gnat.com>
3262 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
3263 some cases when the sources are no longer present.
3265 * make.adb (Collect_Arguments): Fail if an external source, not part
3266 of any project need to be compiled, when switch -x has not been
3269 * makeusg.adb: Document new switch -x
3271 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
3274 * switch-m.adb (Scan_Make_Switches): New switch -x
3276 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
3279 * gnat_ugn.texi: Document new gnatmake switch -x
3281 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
3283 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
3285 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
3286 (process_attributes): Likewise.
3288 2004-05-10 Joel Brobecker <brobecker@gnat.com>
3290 * s-inmaop.ads: Fix spelling mistake in one of the comments.
3292 2004-05-10 Robert Dewar <dewar@gnat.com>
3294 * gnat_ugn.texi: Document that for config pragma files, the maximum
3295 line length is always 32767.
3297 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
3298 literals is now allowed.
3300 * gnat-style.texi: Remove statement about splitting long lines before
3301 an operator rather than after, since we do not follow this rule at all.
3302 Clarify rule (really lack of rule) for spaces around exponentiation
3304 * sem_elim.adb: Allow concatenation of string literals as well as a
3305 single string literal for pragma arguments.
3307 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
3309 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
3310 written for append case.
3312 * frontend.adb: Changes to avoid checking max line length in config
3315 * g-os_lib.ads: Minor reformatting
3317 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
3318 wrong in any case. Instead use standard value. Noticed during code
3321 * opt.ads (Max_Line_Length): New field, used to implement removal of
3322 limitation on length of lines when scanning config pragma files.
3324 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
3325 makeutl.ads, makeutl.adb: Minor reformatting
3327 * scn.adb: Do not check line length while scanning config pragma files
3328 Do not check line length while scanning out license information
3330 * scng.adb: Changes to avoid line length checks while parsing config
3333 2004-05-10 GNAT Script <nobody@gnat.com>
3335 * Make-lang.in: Makefile automatically updated
3337 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
3339 * osint.adb (Find_Program_Name): Fix handling of VMS version
3342 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
3344 * g-os_lib.ads (Invalid_Time): New constant
3346 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
3347 return OS_Time instead of time_t to match what is imported by Ada.
3348 Now return -1 if the file doesn't exist, instead of a random value
3350 2004-05-05 Robert Dewar <dewar@gnat.com>
3352 * usage.adb: Add line for -gnatR?s switch
3354 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
3356 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
3357 and for Match (Data_First, Data_last)
3359 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
3360 written when we are dealing with multi-unit files.
3362 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
3364 * Makefile.in: Remove unused targets and variables.
3366 2004-05-05 Vincent Celier <celier@gnat.com>
3368 * switch-m.adb: New gnatmake switch -eI
3370 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
3371 of new gnatmake switch -eInnn.
3373 * makegpr.adb: Take into account new parameters Index and Src_Index in
3376 * clean.adb: Implement support for multi-unit sources, including new
3379 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
3382 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
3383 (Extract_From_Q): New out parameter Index
3384 (Mark, Is_Marked): Subprograms moved to Makeutl
3385 (Switches_Of): New parameter Source_Index
3386 (Add_Switch): New parameter Index
3387 (Check): New parameter Source_Index
3388 (Collect_Arguments): New parameter Source_Index
3389 (Collect_Arguments_And_Compile): New parameter Source_Index
3390 (Compile): New parameter Source_Index
3391 Put subprograms in alphabetical order
3392 Add support for multi-source sources, including in project files.
3394 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
3395 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
3398 * makeusg.adb: New gnatmake switch -eInnn
3400 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
3403 * opt.ads (Main_Index): New variable, defaulted to 0.
3405 * osint.ads, osinte.adb (Add_File): New parameter Index
3406 (Current_Source_Index): New function
3408 * prj.adb: Take into account new components Index and Src_Index
3410 * prj.ads (String_Element): New component Index
3411 (Variable_Value): New component Index
3412 (Array_Element): New component Src_Index
3414 * prj-attr.adb: Indicate that optional index may be specified for
3415 attributes Main, Executable, Spec, Body and some of Switches.
3417 * prj-attr.ads (Attribute_Kind): New values for optional indexes
3418 (Attribute_Record): New component Optional_Index
3420 * prj-com.ads (File_Name_Data): New component Index
3422 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
3424 * prj-env.adb (Put): Output optional index
3426 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
3427 attributes Spec and Body.
3429 * prj-nmsc.adb: Process optional indexes
3431 * prj-pp.adb: Ouput "at" for optional indexes
3433 * prj-proc.adb: Take into account optional indexes
3435 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
3436 Optional_Index. For string literal,
3437 process optional index when Optional_Index is True.
3438 (Parse_Expresion): New Boolean parameter Optional_Index
3440 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
3441 (Set_Source_Index_Of): New procedure
3443 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
3446 * prj-util.ads (Executable_Of): New parameter Index
3447 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
3448 New parameter Src_Index, defaulted to 0.
3450 2004-05-05 Ed Schonberg <schonberg@gnat.com>
3453 * sem_ch3.adb (Access_Definition): If this is an access parameter
3454 whose designated type is imported through a limited_with clause, do
3455 not add the enclosing subprogram to the list of private dependents of
3458 2004-05-05 Ed Schonberg <schonberg@gnat.com>
3461 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
3462 a limited_with clause, and the other is its non-limited view.
3464 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
3466 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
3468 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
3469 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
3470 Stand.Boolean_Literals to produce references to entities
3471 Standard_False and Standard_True from compile-time computed boolean
3474 * stand.ads (Boolean_Literals): New variable, provides the entity
3475 values for False and True, for use by the expander.
3477 2004-05-05 Doug Rupp <rupp@gnat.com>
3479 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
3480 5vinmaop.adb: Unchecked convert Short_Address vice Address
3482 * adaint.c, raise.c: Caste CRTL function return value
3483 to avoid gcc error on 32/64 bit IVMS.
3485 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
3488 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
3490 * 5qsystem.ads (Address): Declare as Long_Integer
3491 (Short_Address): Declare as 32 bit subtype of Address
3492 Declare abstract address operations to avoid gratuitous ambiguities.
3494 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
3496 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
3497 instead of the old Boolean_Entry_Barriers.
3498 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
3500 2004-05-05 GNAT Script <nobody@gnat.com>
3502 * Make-lang.in: Makefile automatically updated
3504 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
3506 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
3508 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
3512 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
3513 alone. Replacing object references by literals is inappropriate in a
3514 so low level context.
3516 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
3518 * a-exexpr.adb: Add comments
3520 2004-05-03 Joel Brobecker <brobecker@gnat.com>
3522 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
3523 declare the Ancestor_Tags array in Type_Specific_Data with a small size
3524 without risking a bounds check error when accessing one of its
3526 (Type_Specific_Data): Define Ancestor_Tags as a small array.
3527 This prevents us from hitting a limitation during the debug info
3528 generation when using stabs.
3530 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
3532 This prevents us from hitting a limitation during the debug info
3533 generation when using stabs.
3535 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
3537 lang-specs.h: Remove -gnatz* from specs.
3539 2004-05-03 Vincent Celier <celier@gnat.com>
3541 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
3543 * Make-lang.in, Makefile.in: Add gprmake
3545 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
3547 * sem_aggr.adb: Fix typo in comment.
3549 2004-05-03 Robert Dewar <dewar@gnat.com>
3551 * make.adb: Minor reformatting
3553 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
3555 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
3556 so that it works when address is not a private type.
3558 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
3559 properly with rewritten unchecked conversions. This prevents
3560 order-of-elaboration issues that can otherwise arise.
3561 (Minimum_Size): Don't check size of access types under VMS
3563 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
3564 interpretations of integer literals as type System.Address.
3566 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
3567 (Is_Descendent_Of): New function
3569 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
3571 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
3572 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
3573 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
3575 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
3576 of the old Max_Entry_Queue_Depth.
3578 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
3579 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
3580 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
3582 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
3583 New entry for proper handling of Max_Entry_Queue_Depth.
3584 New entry for proper handling of No_Dynamic_Interrupts.
3586 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
3587 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
3588 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
3589 the GNAT specific restriction Max_Entry_Queue_Depth.
3590 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
3591 the GNAT specific restriction No_Dynamic_Interrupts.
3593 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
3594 instead of the old Boolean_Entry_Barriers.
3595 Use the new restriction No_Dynamic_Attachment instead of the old
3596 No_Dynamic_Interrupts.
3598 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
3599 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
3601 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
3602 of the old Max_Entry_Queue_Depth.
3604 2004-05-03 GNAT Script <nobody@gnat.com>
3606 * Make-lang.in: Makefile automatically updated
3608 2004-04-29 Ed Schonberg <schonberg@gnat.com>
3610 * checks.adb (Enable_Range_Check): If the prefix of an index component
3611 is an access to an unconstrained array, perform check unconditionally.
3613 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3615 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
3618 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
3620 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
3621 alternate stack setting. There was no support for the tasking cases
3622 and the changes eventually caused a number of side-effect failures in
3623 the non-tasking case too.
3625 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
3627 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
3630 2004-04-29 Vincent Celier <celier@gnat.com>
3632 * make.adb (Gnatmake): Increase max size of argument array for
3633 gnatbind for the potential addition of -F.
3634 If there are Stand-Alone Library projects, invoke gnatbind with -F to
3635 be sure that elaboration flags will be checked.
3637 * switch-c.adb: Correct call to Scan_Pos for -gnateI
3639 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
3641 * sem_warn.adb (Check_References): Move '<access-variable> may be
3642 null' warning out of under Warn_On_No_Value_Assigned.
3644 2004-04-29 Ed Falis <falis@gnat.com>
3646 * gnat_ugn.texi: Fixed texi error
3648 2004-04-29 Robert Dewar <dewar@gnat.com>
3650 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
3651 abstract operations if they come from predefined files.
3653 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
3656 * s-addope.adb: Correct obvious error in mod function
3658 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
3660 * Makefile.in: Add target pairs for powerpc darwin*
3663 * a-intnam-darwin.ads, s-osinte-darwin.adb,
3664 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
3666 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
3668 * Makefile.in: Add target macro definitions for s390*-linux*.
3669 * system-linux-s390.ads: New file.
3670 * system-linux-s390x.ads: New file.
3672 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
3674 * gnat_ugn.texi: Correct argument to @setfilename.
3676 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
3678 * a-exexpr.adb (Unwind_Word): New data type.
3679 (Unwind_Exception): Use it as type of Private1 and Private2.
3681 * raise.c (db_action_for): Fix debug printf.
3683 2004-04-27 Ed Schonberg <schonberg@gnat.com>
3685 * a-wtmoio.ads: Formal type must be a modular type, not a signed
3688 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3690 * decl.c (gnat_to_gnu_entity, case object): Call
3691 __builtin_update_setjmp_buf.
3693 * gigi.h (update_setjmp_buf): Deleted.
3694 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
3696 * misc.c: (update_setjmp_buf): Deleted.
3698 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
3699 around block of RTL.
3701 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
3703 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
3705 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
3706 subprogram for which no pragma All_Calls_Remote applies, store the
3707 address of the real subprogram in the underlying record type, so local
3708 dereferences do not go through the PCS.
3710 2004-04-26 Robert Dewar <dewar@gnat.com>
3712 * i-c.ads: Add some type qualifications to avoid ambiguities when
3713 compiling with s-auxdec.ads and a non-private address type.
3715 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
3717 * Makefile.rtl: Fix error in previous check-in:
3718 Add s-addope.o to non tasking object list (rather than tasking object
3721 2004-04-26 Javier Miranda <miranda@gnat.com>
3723 * sem_aggr.adb: Fix typo in comments
3724 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
3725 Required to check the null-exclusion attribute.
3727 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
3728 case of anonymous access types in record and array components. For a
3729 component definition the level is the same of the enclosing composite
3732 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
3733 that are anonymous access types the level of accessibility depends on
3734 the enclosing type declaration. In order to have this information, set
3735 the scope of the anonymous access type to the enclosing record type
3737 (Array_Type_Declaration): In case of components that are anonymous
3738 access types the level of accessibility depends on the enclosing type
3739 declaration. In order to have this information, set the scope of the
3740 anonymous access type to the enclosing array type declaration.
3742 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
3745 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
3746 renaming of anonymous access-to-constant types allowed if and only if
3747 the renamed object is access-to-constant.
3749 * sem_util.adb (Type_Access_Level): In case of anonymous access types
3750 that are component_definition or discriminants of a nonlimited type,
3751 the level is the same as that of the enclosing component type.
3753 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
3755 * sem_elim.adb: Some minor code reorganization from code reading. Fix
3756 misprint in the function name (File_Name_Match).
3758 2004-04-23 Laurent GUERBY <laurent@guerby.net>
3760 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
3763 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3765 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
3767 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
3769 * adaint.c (__gnat_try_lock): No longer requires that the parent
3770 directory be writable, the directory itself is enough.
3771 (gnat_is_absolute_path): Change profile, so that the call from
3772 GNAT.OS_Lib can be made more efficient.
3774 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
3775 from GNAT.OS_Lib can be made more efficient.
3777 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
3778 one copy of the file name. Found by code reading.
3780 2004-04-23 Vincent Celier <celier@gnat.com>
3782 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
3783 Correct documentation on gnatmake switches transmitted to the compiler
3785 * ali.ads: Minor comment fix
3787 2004-04-23 Javier Miranda <miranda@gnat.com>
3789 * sem_ch6.adb: (Confirming Types): Code cleanup
3791 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
3792 subprogram types: E_Anonymous_Access_Subprogram_Type and
3793 E_Anonymous_Access_Protected_Subprogram_Type.
3795 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
3797 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
3798 whether a pragma All_Calls_Remote applies to the subprogram on which
3800 No functional change is introduced by this revision; the new parameter
3801 will be used to allow calls to local RCI subprograms to be optimized
3802 to not use the PCS in the case where no pragma All_Calls_Remote applies,
3803 as is already done in the PolyORB implementation of the DSA.
3805 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
3806 whether a pragma All_Calls_Remote applies to the subprogram on which
3808 No functional change is introduced by this revision; the new parameter
3809 will be used to allow calls to local RCI subprograms to be optimized
3810 to not use the PCS in the case where no pragma All_Calls_Remote applies,
3811 as is already done in the PolyORB implementation of the DSA.
3813 2004-04-23 Robert Dewar <dewar@gnat.com>
3815 * Makefile.rtl: Add entry for s-addope.o in run time library list
3816 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
3817 * s-addope.ads, s-addope.adb: New files.
3819 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
3820 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
3821 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
3822 System.Address to be non-private and signed.
3824 * sem_elim.adb: Minor reformatting (fairly extensive)
3825 Some minor code reorganization from code reading
3826 Add a couple of ??? comments
3828 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3830 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
3831 (tree_transform, case N_If_Statement): Remove non-determinism.
3833 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
3835 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
3837 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
3840 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
3841 no longer used as a parameter name for Eliminate pragma).
3843 2004-04-22 Laurent GUERBY <laurent@guerby.net>
3845 PR optimization/14984
3846 PR optimization/14985
3847 * trans.c (gigi): Fix non determinism leading to bootstrap
3848 comparison failures.
3850 2004-04-21 Pascal Obry <obry@gnat.com>
3852 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
3853 passed to spawnvp() to properly handle program pathname with spaces on
3856 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
3858 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
3859 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
3860 unlocked in case of exceptions.
3862 2004-04-21 Joel Brobecker <brobecker@gnat.com>
3864 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
3865 This function does not exist anymore.
3867 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
3869 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
3871 * link.c: Move variables to the __gnat name space.
3873 * Makefile.in: list link.o explicitly when needed.
3875 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
3877 2004-04-21 Javier Miranda <miranda@gnat.com>
3879 * einfo.adb (Original_Access_Type): New subprogram
3880 (Set_Original_Access_Type): New subprogram
3881 (Write_Field21_Name): Write the name of the new field
3883 * einfo.ads (Original_Access_Type): New field present in access to
3885 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
3886 E_Anonymous_Access_Protected_Subprogram_Type.
3888 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
3891 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
3892 to anonymous access to subprogram types.
3894 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
3895 to subprogram types.
3897 * sem_ch3.adb (Access_Definition): Complete decoration of entities
3898 corresponding to anonymous access to subprogram types.
3899 (Analyze_Component_Declaration): Add new actual to the call to
3900 subprogram replace_anonymous_access_to_protected_subprogram.
3901 (Array_Type_Declaration): Add new actual to the call to subprogram
3902 replace_anonymous_access_to_protected_subprogram.
3903 (Process_Discriminants): Add new actual to the call to subprogram
3904 replace_anonymous_access_to_protected_subprogram.
3905 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
3907 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
3910 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
3911 access to subprogram types.
3913 * sem_util.adb (Has_Declarations): Addition of package_specification
3916 2004-04-21 Ed Schonberg <schonberg@gnat.com>
3918 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
3919 inlined flags to renamed entity only if in current unit.
3921 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
3923 * s-parint.ads: Add DSA implementation marker.
3925 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
3926 value of System.Partition_Interface.DSA_Implementation to determine
3927 what version of the distributed systems annex is available (no
3928 implementation, GLADE, or PolyORB).
3930 2004-04-21 Joel Brobecker <brobecker@gnat.com>
3932 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
3934 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3936 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
3937 with new type if alias sets differ.
3938 Fixes ACATS c41103b.
3940 2004-04-21 Vincent Celier <celier@gnat.com>
3942 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
3943 Add array Lang_Args for the language specific compiling argument
3946 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
3948 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
3950 * gnat_rm.texi: Update the descripton of the Eliminate pragma
3951 according to the recent changes in the format of the parameters of the
3952 pragma (replacing Homonym_Number with Source_Location).
3954 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
3956 * 5isystem.ads: Removed, unused.
3958 * gnat_rm.texi: Redo 1.13 change.
3960 2004-04-19 Robert Dewar <dewar@gnat.com>
3962 * s-stoele.ads: Clean up definition of Storage_Offset (the new
3963 definition is cleaner, avoids the kludge of explicit Standard operator
3964 references, and also is consistent with a visible System.Address with
3965 no visible operations.
3967 * s-geveop.adb: Add declarations to avoid assumption of visible
3968 operations on type System.Address (since these might not be available
3969 if Address is a non-private type for which the operations
3972 * sem_eval.adb: Minor reformatting
3974 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
3975 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
3976 reformatting (new function spec format).
3978 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
3979 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
3980 s-caun64.adb: Add declarations to avoid assumption of visible
3981 operations on type System.Address (since these might not be available
3982 if Address is a non-private type for which the operations are made
3985 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
3987 * exp_intr.adb: Minor comment update
3989 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
3991 * 5omastop.adb: Add declarations to avoid assumption of visible
3992 operations on type System.Address (since these might not be available
3993 if Address is a non-private type for which the operations
3996 2004-04-19 Vincent Celier <celier@gnat.com>
3998 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
4000 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
4003 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
4005 Call Check with Process_Languages.
4006 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
4007 with Process_Languages.
4008 (Recursive_Check): New Boolean parameter Process_Languages. Call
4009 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
4012 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
4014 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
4015 parameter Ada_Main, defaulted to True.
4016 Check for Ada specific characteristics only when Ada_Main is True.
4018 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
4020 * prj.adb: (Project_Empty): Add new Project_Data components.
4022 * prj.ads: New types and tables for non Ada languages.
4023 (Project_Data): New components Languages, Impl_Suffixes,
4024 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
4025 Include_Path, Include_Data_Set.
4027 * prj-env.ads, prj-env.adb: Minor reformatting
4029 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
4030 Put subprograms in alphabetical order
4032 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
4033 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
4036 * mlib-prj.adb: Back out modification in last version, as they are
4038 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
4040 * make.adb: (Mains): Moved to package Makeutl
4041 (Linker_Opts): Moved to package Makeutl
4042 (Is_External_Assignment): Moved to package Makeutl
4043 (Test_If_Relative_Path): Moved to package Makeutl
4044 (Gnatmake): Move sorting of linker options to function
4045 Makeutl.Linker_Options_Switches.
4047 * makeutl.ads, makeutl.adb: New files.
4049 * Makefile.in: Add makeutl.o to the object files for gnatmake
4051 * makeusg.adb: Add line for new switch -eL.
4053 * gnatls.adb (Image): New function.
4054 (Output_Unit): If in verbose mode, output the list of restrictions
4055 specified by pragmas Restrictions.
4057 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
4060 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
4061 needed, to put it in the range 1970 (included) - 2026 (excluded).
4062 (Time_Of): Do not shift Unix_Min_Year (1970).
4063 Shift the date by multiple of 56 years, if needed, to put it in the
4064 range 1970 (included) - 2026 (excluded).
4066 * adaint.h, adaint.c (__gnat_set_executable): New function.
4068 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4070 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
4072 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
4073 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
4074 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
4075 (tree_transform, case N_Code_Statement): Likewise.
4076 (gnat_expand_stmt, case LABEL_STMT): Don't look at
4077 LABEL_STMT_FIRST_IN_EH.
4078 (gnat_expand_stmt, case ASM_STMT): New case.
4080 * utils2.c (build_unary_op): Properly set TREE_READONLY of
4081 UNCONSTRAINED_ARRAY_REF.
4083 * utils.c (poplevel): Temporarily push/pop GC context around inline
4086 * decl.c (maybe_variable): Properly set TREE_READONLY of
4087 UNCONSTRAINED_ARRAY_REF.
4088 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
4090 * ada-tree.def: (ASM_STMT): New.
4092 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
4093 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
4094 ASM_STMT_INPUT): New.
4095 (ASM_STMT_CLOBBER): Likewise.
4097 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
4099 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
4100 general rcheck mechanism to raise Program_Error for E.4(18), instead
4101 of a custom raiser in System.Partition_Interface.
4102 Part of general cleanup work before PolyORB integration.
4104 * snames.ads, snames.adb: Add new runtime library entities and names
4107 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
4109 (Build_Subprogram_Id): New subprogram provided by exp_dist
4110 Code reorganisation in preparation for PolyORB integration.
4112 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
4114 (Build_Subprogram_Id): New subprogram provided by exp_dist
4116 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
4117 actual parameter types for call to dereference of an
4118 access-to-subprogram type.
4120 * rtsfind.ads: Add new runtime library entities and names for PolyORB
4123 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
4124 instead, which has the same behaviour here since we never pass it a
4127 * link.c (run_path_option, Solaris case): Use -Wl, as for other
4130 * Makefile.in: adjust object file lists for gnatlink and gnatmake
4131 to account for new dependency upon Interfaces.C.Strings + link.o
4132 For x86 FreeBSD, use 86numaux.
4134 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
4135 from Mlib.Tgt to Mlib.
4137 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
4140 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
4141 target-specific versions of this subprogram, now implemented as a
4142 target-independent function in Mlib.
4144 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
4145 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
4146 (Linker_Library_Path_Option): Remove target-specific versions of this
4147 subprogram, now implemented as a target-independent function in Mlib.
4149 * atree.adb: (Allocate_Initialize_Node): New subprogram.
4150 Factors out node table slots allocation.
4151 (Fix_Parents): New subprogram.
4152 Encapsulate the pattern of fixing up parent pointers for syntactic
4153 children of a rewritten node.
4154 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
4155 (Rewrite): Use New_Copy when creating saved copy of original node.
4156 (Replace): Use Copy_Node to copy nodes.
4158 2004-04-19 Javier Miranda <miranda@gnat.com>
4160 * sprint.adb (Sprint_Node_Actual): Give support to the new
4161 Access_To_Subprogram node available in Access_Definition nodes. In
4162 addition, give support to the AI-231 node fields: null-exclusion,
4163 all-present, constant-present.
4165 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
4167 * sinfo.ads, sinfo.adb:
4168 New field Access_To_Subprogram_Definition in Access_Definition nodes
4170 * sem_ch6.adb (Process_Formals): Move here the code that creates and
4171 decorates internal subtype declaration corresponding to the
4172 null-excluding formal. This code was previously in Set_Actual_Subtypes.
4173 In addition, carry out some code cleanup on this code. In case of
4174 access to protected subprogram call
4175 Replace_Anonymous_Access_To_Protected_Subprogram.
4176 (Set_Actual_Subtypes): Code cleanup.
4178 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
4179 Find_Type in case of anonymous access renamings. Add warning in case of
4180 null-excluding attribute used in anonymous access renaming.
4182 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
4185 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
4187 (Access_Definition): In case of anonymous access to subprograms call
4188 the corresponding semantic routine to decorate the node.
4189 (Access_Subprogram_Declaration): Addition of some comments indicating
4190 some code that probably should be added here. Detected by comparison
4191 with the access_definition subprogram.
4192 (Analyze_Component_Declaration): In case of access to protected
4193 subprogram call Replace_Anonymous_Access_To_Protected.
4194 (Array_Type_Declaration): In case of access to protected subprogram call
4195 Replace_Anonymous_Access_To_Protected_Subprogram.
4196 (Process_Discriminants): In case of access to protected subprogram call
4197 Replace_Anonymous_Access_To_Protected_Subprogram.
4199 * par.adb (P_Access_Definition): New formal that indicates if the
4200 null-exclusion part was present.
4201 (P_Access_Type_Definition): New formal that indicates if the caller has
4202 already parsed the null-excluding part.
4204 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
4205 (P_Identifier_Declarations): Code cleanup and give support to renamings
4206 of anonymous access to subprogram types.
4207 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
4208 (P_Array_Type_Definition): Give support to AI-254.
4209 (P_Component_Items): Give support to AI-254.
4210 (P_Access_Definition): New formal that indicates if the header was
4211 already parsed by the caller.
4212 (P_Access_Type_Definition): New formal that indicates if the caller has
4213 already parsed the null-excluding part.
4215 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
4216 call to P_Access_Definition.
4218 2004-04-19 Geert Bosch <bosch@gnat.com>
4220 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
4221 the delicate semantics of floating-point to integer conversion.
4222 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
4224 * eval_fat.adb (Machine_Mantissa): Moved to spec.
4225 (Machine_Radix): New function.
4227 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
4229 (Machine_Radix): New function also for use in conversion checks.
4231 2004-04-19 Ed Schonberg <schonberg@gnat.com>
4233 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
4235 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
4236 to decorate the access-to-protected subprogram and the equivalent type.
4238 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
4239 to anonymous access to subprogram types.
4241 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
4242 constant-folding, for legality checks in contexts that require an RM
4245 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
4246 temporary but stack checking is not enabled, increment serial number
4247 to so that symbol generation is consistent with and without stack
4250 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
4251 independent on whether stack checking is enabled, caller must check
4252 the corresponding flag.
4254 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
4256 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
4257 parent if it has discriminants.
4258 (Build_Derived_Private_Type): Constructed full view does
4259 not come from source.
4260 (Process_Discriminants): Default discriminants on a tagged type are
4261 legal if this is the internal completion of a private untagged
4264 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
4265 no constraint checks, because it corresponds to an existing object.
4267 * sem_prag.adb (Process_Convention): Pragma applies
4268 only to subprograms in the same declarative part, i.e. the same unit,
4271 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
4272 ignore type mismatch on a numeric conversion if expression comes from
4275 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
4277 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
4278 Homonym_Number parameter, add processing for Source_Location parameter
4280 (Check_Eliminated): Remove the check for homonym numbers, add the check
4281 for source location traces.
4283 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
4284 with Arg_Source_Location corresponding to the changes in the format of
4287 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
4288 Eliminate pragma corresponding to the changes in the format of the
4289 pragma: Homonym_Number is replaced with Source_Location, two ways of
4290 distinguishing homonyms are mutially-exclusive.
4292 2004-04-19 Joel Brobecker <brobecker@gnat.com>
4294 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
4296 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
4297 No_Dollar_In_Label, no longer necessary, as it is always True.
4298 (Strip_Suffixes): Likewise.
4300 2004-04-19 Gary Dismukes <dismukes@gnat.com>
4302 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
4303 modulus for compatibility with size clause on targets with 16-bit
4306 * layout.adb (Discrimify): In the case of private types, set Vtyp to
4307 full type to fix type mismatches on calls to size functions for
4308 discriminant-dependent array components.
4310 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
4312 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
4315 2004-04-19 Pascal Obry <obry@gnat.com>
4317 * mdll-utl.adb (Locate): New version is idempotent.
4319 2004-04-17 Laurent Guerby <laurent@guerby.net>
4321 PR ada/14988 (partial)
4322 * impunit.adb: Fix typo.
4324 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
4326 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
4327 and install-rts-cert targets. Remove all gnatlib and gnattools
4328 targets and all other rts-* targets (moved to libada). Remove (now)
4329 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
4330 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
4332 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4334 * trans.c (tree_transform): Shortcut returning error_mark_node for
4335 statements in annotate_only_mode.
4336 (tree_transform, case N_Label, case N_Return_Statement,
4337 N_Goto_Statement): Make statement tree instead of generating code.
4338 (tree_transform, case N_Assignment_Statement): No longer check
4340 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
4342 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
4344 (gnat_to_gnu): Collect any RTL generated and deal with it.
4345 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
4346 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
4347 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
4349 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
4351 * ada-tree.def (EXPR_STMT): Fix typo in name.
4352 (BLOCK_STMT, IF_STMT): New nodes.
4354 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
4355 LABEL_STMT_FIRST_IN_EH): New macros.
4356 (RETURN_STMT_EXPR): Likewise.
4358 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
4359 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
4361 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
4363 * atree.ads: Correct documentation on extended nodes.
4365 * link.c: Set run_path_option for FreeBSD.
4367 2004-04-08 Vincent Celier <celier@gnat.com>
4369 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
4370 one of the ALI file, do not link with DEC lib.
4372 * par.adb Remove the last two characters ("%s" or "%b") when checking
4373 if a language defined unit may be recompiled.
4375 2004-04-08 Ed Schonberg <schonberg@gnat.com>
4377 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
4378 removal of abstract operation leaves no possible interpretation for
4381 * sem_eval.adb (Eval_Qualified_Expression): Use
4382 Set_Raises_Constraint_Error on node when needed, so that it does not
4383 get optimized away by subsequent optimizations.
4385 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
4386 operands even when they are not wrapped in a type conversion.
4388 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
4390 * sem_prag.adb (Set_Exported): Warn about making static as result of
4391 export only when the export is coming from source. This may be not
4392 be true e.g. on VMS where we expand export pragmas for exception codes
4393 together with imported or exported exceptions, and we don't want the
4394 user to be warned about something he didn't write.
4396 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
4398 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
4399 duplication between normal entities and those declared as renamings.
4400 No functional change.
4402 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
4403 inline functions returning an unconstrained result.
4405 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
4407 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
4408 conform to what other front-ends do.
4410 2004-04-08 Doug Rupp <rupp@gnat.com>
4412 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
4415 2004-04-06 Pascal Obry <obry@gnat.com>
4417 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
4419 * osint.adb (Program_Name): Do not look past a directory separator.
4421 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
4423 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
4425 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
4426 requirement for preserving a copy of the original assignment node.
4428 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
4430 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
4432 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
4435 2004-04-06 Ed Schonberg <schonberg@gnat.com>
4437 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
4438 operator calls in functional notation, and apply
4439 Universal_Interpretation to operands, not to their type.
4441 2004-04-06 Robert Dewar <dewar@gnat.com>
4443 * 5wdirval.adb: Minor reformatting
4445 2004-04-06 Ed Falis <falis@gnat.com>
4447 * gnat_rm.texi: Improve a reference to the GCC manual
4449 2004-04-05 Vincent Celier <celier@gnat.com>
4451 * adaint.h, adaint.c: Add function __gnat_named_file_length
4453 * impunit.adb: Add Ada.Directories to the list
4455 * Makefile.in: Add VMS and Windows versions of
4456 Ada.Directories.Validity package body.
4458 * Makefile.rtl: Add a-direct and a-dirval
4460 * mlib-tgt.ads: Minor comment update.
4462 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
4463 a-direct.ads, a-direct.adb: New files.
4465 2004-04-05 Vincent Celier <celier@gnat.com>
4468 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
4469 just to the compiler.
4471 2004-04-05 Robert Dewar <dewar@gnat.com>
4473 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
4474 returned string is 1.
4476 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
4478 * eval_fat.ads: Minor reformatting
4480 * g-curexc.ads: Document that lower bound of returned string values
4483 * gnatlink.adb: Add ??? comment for previous change
4484 (need to document why this is VMS specific)
4486 * s-stoele.ads: Minor reformatting
4488 * tbuild.ads: Minor reformatting throughout (new function specs)
4490 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
4493 * scng.adb: Minor reformatting
4495 2004-04-05 Geert Bosch <bosch@gnat.com>
4497 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
4498 (Leading_Part): Still perform truncation to machine number if the
4499 specified radix_digits is greater or equal to machine_mantissa.
4501 2004-04-05 Javier Miranda <miranda@gnat.com>
4503 * par-ch3.adb: Complete documentation of previous change
4504 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
4505 (aliased must appear before constant).
4507 * par-ch4.adb: Complete documentation of previous change.
4509 * par-ch6.adb: Complete documentation of previous change.
4511 * sinfo.ads: Fix typo in commment.
4513 2004-04-05 Ed Schonberg <schonberg@gnat.com>
4515 * sem_ch3.adb (Inherit_Components): If derived type is private and has
4516 stored discriminants, use its discriminants to constrain parent type,
4517 as is done for non-private derived record types.
4519 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
4520 Ada 2005 AI-310: an abstract non-dispatching operation is not a
4521 candidate interpretation in an overloaded call.
4523 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
4524 expression is Null and target type is not an access type (e.g. a
4525 non-private address type).
4527 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
4529 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
4530 statement whose right-hand side is an inlined call, save a copy of the
4531 original assignment subtree to preserve enough consistency for
4532 Analyze_Assignment to proceed.
4534 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
4535 complete assignment subtree which is now unnecessary, as the expansion
4536 of inlined call has been improved to preserve a consistent assignment
4537 tree. Note_Possible_Modification must be called only
4538 after checks have been applied, or else unnecessary checks will
4541 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
4542 of explicit dereferences that do not Come_From_Source:
4543 - be selective on cases where we must go back to the dereferenced
4544 pointer (an assignment to an implicit dereference must not be
4545 recorded as modifying the pointer);
4546 - do not rely on Original_Node being present (Analyze_Assignment
4547 calls Note_Possible_Modification on a copied tree).
4549 * sem_warn.adb (Check_References): When an unset reference to a pointer
4550 that is never assigned is encountered, prefer '<pointer> may be null'
4551 warning over '<pointer> is never assigned a value'.
4553 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
4555 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
4558 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
4560 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
4561 libexc. We currently don't reference anything in this library and
4562 linking it in triggers linker warnings we don't want to see.
4564 * init.c: Update comments.
4566 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4568 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
4569 * utils.c (create_field_decl): Likewise.
4570 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
4572 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
4574 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
4575 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
4576 Add info directory entry and category.
4578 2004-04-02 Jan Hubicka <jh@suse.cz>
4580 * utils.c: Include function.h
4581 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
4583 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
4586 * Make-lang.in: Clean up generation of documentation
4588 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
4590 * xgnatug.adb: Removed, replaced by xgnatugn.adb
4592 * xgnatugn.adb: Replaces xgnatug.adb
4594 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
4596 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
4598 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
4599 gnat_ug_wnt.texi: Removed.
4601 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
4603 * utils2.c: Update copyright notice.
4605 2004-04-01 Robert Dewar <dewar@gnat.com>
4607 * checks.adb: Minor reformatting throughout
4608 Note that prev checkin added RM reference to alignment warning
4610 2004-04-01 Ed Schonberg <schonberg@gnat.com>
4612 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
4613 non-static when building aggregate for bit-packed array.
4615 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
4616 function call that is itself the actual in a procedure call, build
4619 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
4620 a string literal, create a temporary for it, constant folding only
4621 handles scalars here.
4623 2004-04-01 Vincent Celier <celier@gnat.com>
4625 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
4626 Error_Msg_SP): New empty procedures to instantiate the Scanner.
4627 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
4629 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
4630 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
4631 and get the checksum.
4633 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
4635 Increase the Marking_Label at the end of the Multiple_Main_Loop,
4636 instead of at the beginning.
4638 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
4640 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
4643 * osint.ads (Multi_Unit_Index_Character): New Character global variable
4645 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
4648 * par.adb: Remove test on file name to detect language defined units.
4649 Add test on unit name, after parsing, to detect language defined units
4650 that are not compiled with -gnatg (except System.RPC and its children)
4652 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
4653 following units without style checking.
4655 * switch-c.adb: Change -gnatC to -gnateI
4657 * usage.adb: Document new switch -gnateInnn
4659 * scng.adb (Accumulate_Token_Checksum): New procedure
4660 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
4661 word or literal number.
4662 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
4665 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
4668 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
4669 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
4670 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
4671 5vtpopde.adb: Add missing 'constant' keywords.
4673 2004-04-01 Javier Miranda <miranda@gnat.com>
4675 * par-ch4.adb: (P_Allocator): Code cleanup
4677 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
4680 * sinfo.ads: Complete documentation of previous change
4682 2004-04-01 Pascal Obry <obry@gnat.com>
4684 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
4685 only on VMS. This special handling was done because an old GNU/ld bug
4686 on Windows which has been fixed.
4688 2004-04-01 GNAT Script <nobody@gnat.com>
4690 * Make-lang.in: Makefile automatically updated
4692 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4694 * decl.c (gnat_to_gnu_entity, make_type_from_size):
4695 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
4696 * trans.c (tree_transform, convert_with_check): Likewise.
4697 * utils.c (gnat_signed_or_unsigned_type): Likewise.
4698 (build_vms_descriptor, unchecked_convert): Likewise.
4699 * utils2.c (nonbinary_modular_operation): Likewise.
4701 2004-03-29 Javier Miranda <miranda@gnat.com>
4703 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
4704 (Install_Null_Excluding_Check): Local subprogram that determines whether
4705 an access node requires a runtime access check and if so inserts the
4706 appropriate run-time check.
4707 (Apply_Access_Check): Call Install_Null_Excluding check if required
4708 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
4710 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
4712 * einfo.ads: Fix typo in comment
4714 * exp_ch3.adb (Build_Assignment): Generate conversion to the
4715 null-excluding type to force the corresponding run-time check.
4716 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
4717 type to force the corresponding run-time check.
4719 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
4720 the null-excluding type to force the corresponding run-time check.
4722 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
4723 case of access types unless they have the null-excluding attribute.
4725 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
4728 * exp_util.ads: Fix typo in comment
4730 * par.adb (P_Null_Exclusion): New subprogram
4731 (P_Subtype_Indication): New formal that indicates if the null-excluding
4732 part has been scanned-out and it was present
4734 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
4736 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
4737 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
4738 type to force the corresponding run-time check
4739 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
4741 (Resolve_Array_Aggregate): Carry out some static checks
4742 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
4744 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
4745 attribute must be set only if specified by means of the null-excluding
4746 part. In addition, we must also propagate the access-constant attribute
4748 (Access_Subprogram_Declaration, Access_Type_Declaration,
4749 Analyze_Component_Declaration, Analyze_Object_Declaration,
4750 Array_Type_Declaration, Process_Discriminants,
4751 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
4752 and carry out some static checks.
4753 (Build_Derived_Access_Type): Set the null-excluding attribute
4754 (Derived_Type_Declaration, Process_Subtype): Carry out some static
4757 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
4759 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
4761 * sem_ch6.adb (Process_Formals): Carry out some static checks.
4762 (Set_Actual_Subtypes): Generate null-excluding subtype if the
4763 null-excluding part was present; it is not required to be done here in
4764 case of anonymous access types.
4765 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
4768 * sem_res.adb (Resolve_Actuals): Carry out some static check
4769 (Resolve_Null): Allow null in anonymous access
4771 * sinfo.adb: New subprogram Null_Exclusion_Present
4772 All_Present and Constant_Present available on access_definition nodes
4774 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
4775 object_declaration, derived_type_definition, component_definition,
4776 discriminant_specification, access_to_object_definition,
4777 access_function_definition, allocator, access_procedure_definition,
4778 access_definition, parameter_specification, All_Present and
4779 Constant_Present flags available on access_definition nodes.
4781 2004-03-29 Robert Dewar <dewar@gnat.com>
4783 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
4784 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
4785 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
4786 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
4787 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
4788 sem_prag.adb: Updates to handle multiple units/file
4790 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
4792 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
4793 sem_util.adb: Minor reformatting
4795 * sem_ch12.adb: Add comment for previous change
4797 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
4799 * osint.adb (Executable_Prefix): Set Exec_Name to the current
4800 executable name when not initialized. Otherwise, use its current value.
4802 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
4803 initialize it to another executable name than the current one. This
4804 allows to configure paths for an executable name (gnatmake) different
4805 from the current one (gnatdist).
4807 2004-03-29 Ed Schonberg <schonberg@gnat.com>
4809 * exp_ch6.adb (Expand_Call): A call to a function declared in the
4810 current unit cannot be inlined if it appears in the body of a withed
4811 unit, to avoid order of elaboration problems in gigi.
4813 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
4814 information for protected (wrapper) operation as well, to simplify gdb
4817 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
4818 protected body, indicate that the entity for the generated spec comes
4819 from source, to ensure that references are properly generated for it.
4820 (Build_Body_To_Inline): Do not inline a function that returns a
4823 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
4824 apply convention to homonyms that are declared explicitly.
4826 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
4827 that renames an equality operator and the operands are overloaded,
4828 resolve them with the declared formal types, before rewriting as an
4831 2004-03-29 GNAT Script <nobody@gnat.com>
4833 * Make-lang.in: Makefile automatically updated
4835 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
4837 * memtrack.adb: Log realloc calls, which are treated as free followed
4840 2004-03-25 Vincent Celier <celier@gnat.com>
4842 * prj-makr.adb (Process_Directories): Detect when a file contains
4843 several units. Do not include such files in the config pragmas or
4844 in the naming scheme.
4846 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
4847 Resolve links only when not in Trusted_Mode.
4848 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
4849 Do not resolve links for the display names.
4851 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
4852 resolve links when computing the display names.
4854 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
4856 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
4857 attribute reference does not denote a subtype, it can be any
4858 expression that has a classwide type, potentially after an implicit
4859 dereference. In particular, the prefix can be a view conversion for
4860 a classwide type (for which Is_Object_Reference holds), but it can
4861 also be a value conversion for an access-to-classwide type. In the
4862 latter case, there is an implicit dereference, and the original node
4863 for the prefix does not verify Is_Object_Reference.
4865 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
4866 conversion of a discriminant-dependent component of a mutable object
4869 2004-03-25 Ed Schonberg <schonberg@gnat.com>
4871 * freeze.adb (Freeze_Entity): When an inherited subprogram is
4872 inherited, has convention C, and has unconstrained array parameters,
4873 place the corresponding warning on the derived type declaration rather
4874 than the original subprogram.
4876 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
4877 indication on renaming declaration, if formal has a box and actual
4880 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
4881 determine whether to generate an implicit or explicit reference to
4884 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
4885 subprogram renaming comes from a defaulted formal subprogram in an
4888 2004-03-25 Gary Dismukes <dismukes@gnat.com>
4890 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
4891 value expressions to ensure that calls within a component definition
4892 will be checked (since those are evaluated during the record type's
4895 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
4897 * s-tpobop.adb: Code clean up:
4898 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
4900 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
4902 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
4904 * Makefile.in: Clean up in the ravenscar run time.
4906 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4908 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
4909 of No_Strict_Aliasing to build_pointer_type_for_mode.
4910 * utils.c (update_pointer_to): Walk pointer and ref chains.
4912 2004-03-22 Cyrille Comar <comar@act-europe.fr>
4914 * ali.ads: Fix Comment about Dynamic_Elab.
4916 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
4917 Has_RACW, Is_Generic, etc.)
4918 (Output_Object, Gnatls): Take into account ALI files not attached to
4921 2004-03-22 Vincent Celier <celier@gnat.com>
4923 * gprep.adb: Change all String_Access to Name_Id
4924 (Is_ASCII_Letter): new function
4925 (Double_File_Name_Buffer): New procedure
4926 (Preprocess_Infile_Name): New procedure
4927 (Process_Files): New procedure
4928 (Gnatprep): Check if output and input are existing directories.
4929 Call Process_Files to do the real job.
4931 2004-03-22 Robert Dewar <dewar@gnat.com>
4933 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
4934 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
4936 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
4938 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
4939 case when the source contains only comments.
4941 2004-03-22 Ed Schonberg <schonberg@gnat.com>
4943 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
4944 declaration for a child subprogram body that acts as a spec, indicate
4945 that the entity in the declaration needs debugging information.
4947 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
4948 full view if the subtype is created for a constrained record component;
4949 gigi has enough information to construct the record, and there is no
4950 place in the tree for the declaration.
4952 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
4953 serial number for the dummy body that is built for analysis, to avoid
4954 inconsistencies in the generation of internal names when compiling
4957 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
4959 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
4962 2004-03-22 GNAT Script <nobody@gnat.com>
4964 * Make-lang.in: Makefile automatically updated
4966 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4968 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
4969 * trans.c (tree_transform, emit_index_check): Likewise.
4970 * utils.c (build_template): Likewise.
4971 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
4972 (maybe_unconstrained_array, unchecked_convert): Likewise.
4973 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
4974 (build_unary_op): Likewise.
4975 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
4976 (fill_vms_descriptor): Likewise.
4977 (build_call_alloc_dealloc): Likewise.
4979 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
4981 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
4984 * gnat_ug.texi: Add info directory category and entry.
4985 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
4986 gnat_ug_wnt.texi: Regenerate.
4988 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
4990 * ada-tree.h: Update copyright notice.
4993 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
4995 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
4996 as regular exception objects and not as mere integers representing the
4997 condition code. The latter approach required some dynamics to mask off
4998 severity bits, which did not fit well into the GCC table based model.
4999 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
5000 exception data objects. We don't it and it would conflict with the other
5001 external symbol we have to generate for such exceptions.
5003 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
5004 the special code for VMS exceptions, since these are now represented
5005 as regular exceptions objects.
5007 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5009 * decl.c (debug_no_type_hash): Remove.
5010 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
5011 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
5013 2004-03-19 Laurent Guerby <laurent@guerby.net>
5015 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
5016 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
5018 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5020 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
5021 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
5022 (TYPE_RM_SIZE_INT): Directly use type.values.
5023 (TREE_LOOP_ID): Clean up check.
5024 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
5025 TYPE_VALUES, not TYPE_FIELDS.
5026 * trans.c (convert_with_check): Delay access of bounds of basetype
5027 until sure is numeric.
5029 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
5031 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
5034 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
5035 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
5036 Specific.Set instead of direct call to e.g pthread_setspecific.
5038 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
5040 * adaint.c: Update comments.
5042 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
5043 GNATLIB_SHARED for FreeBSD.
5045 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
5047 * init.c [VxWorks]: Do not fix the stack size for the environment task.
5048 When needed (stack checking) the stack size is retrieved
5049 from the VxWorks kernel.
5051 * Makefile.in: Flag -nostdinc is required when building the run time
5052 for avoiding looking for files in the base compiler.
5053 Add the VxWorks specific version of the package body for
5054 System.Stack_checking.Operations (5zstchop.adb).
5056 * Make-lang.in: Add the object file for
5057 System.Stack_Checking.Operations.
5059 * Makefile.rtl: Add object file for the package
5060 System.Stack_Checking.Operations.
5062 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
5064 * s-stache.ads, s-stache.adb: Move the operations related to stack
5065 checking from this package to package System.Stack_Checking.Operations.
5066 This way, stack checking operations are only linked in the final
5067 executable when using the -fstack-check flag.
5069 2004-03-18 Doug Rupp <rupp@gnat.com>
5071 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
5074 * 5qsystem.ads, 5xcrtl.ads: New files.
5076 2004-03-18 Vincent Celier <celier@gnat.com>
5078 * prj.adb (Reset): Reset hash table Files_Htable
5080 * prj-env.adb (Source_Paths, Object_Paths): New tables.
5081 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
5082 the procedures Add_To_Path_File.
5083 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
5084 making sure that each directory is present only once and, for object
5085 dirs, when a directory already present is added, the duplicate is
5086 removed and the directory is always put as the last in the table.
5087 Write the path files at the end of these accumulations.
5089 * prj-nmsc.adb (Record_Source): Add source file name in hash table
5090 Files_Htable for all sources.
5092 * prj-proc.adb (Process): Remove restrictions between not directly
5093 related extending projects.
5095 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
5097 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
5098 (Find_Sources): Minor speed optimization.
5100 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
5101 parameter Trusted_Mode.
5103 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
5105 * scn.adb (Determine_License): Take into account a degenerated case
5106 when the source contains only comments.
5108 2004-03-18 Ed Schonberg <schonberg@gnat.com>
5110 * sem_warn.adb (Check_References): For a warning on a selected
5111 component that does not come from source, locate an uninitialized
5112 component of the record type to produce a more precise error message.
5114 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
5116 * 3zsoccon.ads: Fix multicast options.
5118 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
5121 2004-03-15 Robert Dewar <dewar@gnat.com>
5123 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
5124 pragma used for a private type.
5126 * lib-xref.adb (Generate_Reference): Do not generate warning if
5127 reference is in a different unit from the pragma Unreferenced.
5129 * 5vtpopde.adb: Minor reformatting
5130 Fix casing of To_Task_ID
5132 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
5133 flag if we have an unchecked conversion to an access type in the same
5136 2004-03-15 Geert Bosch <bosch@gnat.com>
5138 * a-ngcoty.adb (Modulus): In alternate formula for large real or
5139 imaginary parts, use Double precision throughout.
5141 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
5142 we want to be able to compile run-time with -gnata for testing, but
5143 this may also be instantiated in user code that is compiled with -gnata.
5145 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
5147 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
5148 codes. Having a separate type for this is useful to enforce consistency
5149 throughout the various run-time units.
5150 (Exception_Data): Use Exception_Code for Import_Code.
5152 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
5153 Natural and Integer in various places.
5154 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
5155 with the severity bits masked off.
5156 (Register_VMS_Exception): Handle the additional exception data pointer
5159 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
5160 component, now reflected by an exported accessor.
5161 (is_handled_by): New routine to compute whether the propagated
5162 occurrence matches some handler choice specification. Extracted out of
5163 get_action_description_for, and expanded to take care of the VMS
5165 (get_action_description_for): Use is_handled_by instead of an explicit
5166 complex condition to decide if the current choice at hand catches the
5167 propagated occurrence.
5169 * raise.h (Exception_Code): New type for C.
5171 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
5172 System.Standard_Library.Exception_Code, to allow references from the
5173 pragma import/export expander.
5175 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
5176 New accessors to allow easy access to GNAT exception data
5178 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
5179 redundant Handled_By_Others component, helper for the personality
5180 routine which will now be able to call the appropriate exception data
5183 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
5184 component of Standard_Exception_Type to be the closest possible to
5185 Exception_Code in System.Standard_Library, that we cannot get at this
5186 point. Expand a ??? comment to notify that this type node should
5187 probably be rewritten later on.
5189 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
5190 registration call to include a pointer to the exception object in the
5193 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
5194 instead of int and explicit bitmasks.
5196 2004-03-15 Vincent Celier <celier@gnat.com>
5198 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
5199 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
5201 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
5202 longer needed now that it is in the spec of
5203 System.Tasking.Task_Attributes.
5205 * adaint.h, adaint.c: (__gnat_create_output_file): New function
5207 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
5209 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
5211 * make.adb (Gnatmake): Do not check the executable suffix; it is being
5212 taken care of in Scan_Make_Arg.
5213 (Scan_Make_Arg): Add the executable suffix only if the argument
5214 following -o, in canonical case, does not end with the executable
5215 suffix. When in verbose mode and executable file name does not end
5216 with executable suffix, output the executable name, in canonical case.
5218 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
5219 to avoid warnings when instantiating Ada.Task_Attributes.
5222 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
5223 in the correct order.
5225 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
5226 redirect standard output and error to a file for the invocation of the
5227 compiler, then read the file.
5229 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
5230 directory, instead of the Value.
5231 (Find_Source_Dirs): Remove useless code & comments.
5233 2004-03-15 Ed Schonberg <schonberg@gnat.com>
5235 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
5236 tagged type is inherited, and the parent operation is not frozen yet,
5237 force generation of a freeze node for the inherited operation, so the
5238 corresponding dispatch entry is properly initialized.
5239 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
5240 when looking for user-defined equality operation.
5242 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
5243 boolean when locating primitive equality of tagged component.
5245 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
5246 bit-aligned field and the right-hand side a string literal, introduce
5247 a temporary before expanding assignment into a loop.
5249 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
5250 priority in full, to ensure that any expanded subepxressions of it are
5251 elaborated in the scope of the init_proc.
5253 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
5254 after object declaration, skipping over code that may have been
5255 generated for validity checks.
5257 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
5258 discriminants, ignore the known discriminants of its full view, if
5259 any, to check legality.
5261 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
5262 component if type has unknown discriminants.
5263 (Analyze_Private_Extension_Declaration): Discriminant constraint is
5264 null if type has unknown discriminants.
5266 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
5267 for end label when present.
5269 * s-fileio.adb (Open): When called with a C_Stream, use given name for
5270 temporary file, rather than an empty string.
5272 2004-03-15 Ed Falis <falis@gnat.com>
5274 * s-thread.adb: Removed, no longer used.
5276 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5278 * decl.c (target.h): Now include.
5279 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
5280 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
5281 (validate_size): For POINTER_TYPE, get smallest size permitted on
5284 * fe.h: Sort Einfo decls and add Set_Mechanism.
5286 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
5287 (ada/decl.o): Depends on target.h.
5289 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
5290 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
5292 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
5294 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
5296 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
5297 Insert_Dereference_Action when rewriting an implicit dereference into
5298 an explicit one, this will be taken care of during expansion of the
5299 explicit dereference.
5300 (Expand_N_Slice): Same. Always do the rewriting, even for the case
5301 of non-packed slices, since the dereference action generated by
5302 expansion of the explicit dereference is needed in any case.
5303 (Expand_N_Selected_Component): When rewriting an implicit dereference,
5304 analyze and resolve the rewritten explicit dereference so it is seen
5306 (Insert_Dereference_Action): This procedure is now called only for the
5307 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
5308 dereferences that do not come from source (including explicit
5309 dereferences resulting from rewriting implicit ones), but do not
5310 recursively insert a check for the dereference nodes contained within
5312 (Insert_Dereference_Action): Clarify and correct comment.
5314 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
5317 Move language detection to the top level.
5318 * config-lang.in: Build by default.
5320 2004-03-05 Robert Dewar <dewar@gnat.com>
5322 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
5324 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
5325 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
5326 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
5327 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
5328 unchecked conversion to spec to avoid warnings.
5330 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
5333 * 7stpopsp.adb: Correct casing in To_Task_ID call
5335 * a-strsea.ads, a-strsea.adb: Minor reformatting
5337 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
5339 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
5340 Adjust Max_Msg_Length to be clearly large enough.
5342 * fe.h: Define In_Same_Source_Unit
5344 * osint.adb: Add pragma Warnings Off to suppress warnings
5345 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
5348 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
5350 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
5352 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
5354 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
5356 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
5358 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
5359 node. We now do generate them for gcc back end.
5361 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
5364 * sinput-c.adb: Fix bad name in header.
5365 Add pragma Warnings Off to suppress aliasing warning.
5367 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
5369 * snames.h, snames.ads, snames.adb: Add entry for pragma
5372 2004-03-05 Vincent Celier <celier@gnat.com>
5374 * prj-com.ads: Add hash table Files_Htable to check when a file name
5375 is already a source of another project.
5377 * prj-nmsc.adb (Record_Source): Before recording a new source, check
5378 if its file name is not already a source of another project. Report an
5381 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
5382 source file name, call gnatpp with all the sources of the main project.
5384 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
5387 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
5388 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
5389 /RUNTIME_SYSTEM=, converted to --RTS=
5390 /NOTABS, converted to -notabs
5392 2004-03-05 Pascal Obry <obry@gnat.com>
5394 * make.adb: Minor reformatting.
5396 2004-03-05 Ed Schonberg <schonberg@gnat.com>
5398 Part of implemention of AI-262.
5399 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
5401 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
5404 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
5405 when component type is a partially constrained class-wide subtype.
5406 (Constrain_Discriminated_Type): If parent type has unknown
5407 discriminants, a constraint is illegal, even if full view has
5409 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
5410 with unknown discriminants whose full view is a discriminated record.
5412 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
5413 flag, to handle properly derivations of tagged types with unknown
5415 (Analyze_Package_Spec, Analyze_Package_Body): Install
5416 Private_With_Clauses before analyzing private part or body.
5418 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
5419 Has_Discriminants can be true for a given type (documentation).
5421 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
5423 * s-restri.ads: Fix license (GPL->GMGPL).
5425 * s-tassta.adb: Minor reformatting.
5427 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
5428 by calls to Exit_One_ATC_Level, since additional clean up is performed
5431 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
5432 by calls to Exit_One_ATC_Level, since additional clean up is performed
5435 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5437 * trans.c: Reflect GCC changes to fix bootstrap problem.
5438 Add warning for suspicious aliasing unchecked conversion.
5440 2004-03-05 GNAT Script <nobody@gnat.com>
5442 * Make-lang.in: Makefile automatically updated
5444 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
5446 * ali.adb (Read_Instantiation_Instance): Do not modify the
5447 current_file_num when reading information about instantiations, since
5448 this corrupts files in later references.
5450 2004-03-02 Vincent Celier <celier@gnat.com>
5452 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
5453 before checking if it is read-only.
5455 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
5456 of SRC_DIRS and eliminate duplicates.
5458 * gprcmd.adb: Replace command "path" with command "path_sep" to return
5460 (Usage): Document path_sep
5462 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
5463 C++ compiler. No need for a script.
5464 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
5465 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
5468 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
5469 where there are Ada sources.
5470 (Set_Ada_Paths): Only add to the include path the source dirs of project
5472 (Add_To_Path): Add the Display_Values of the directories, not their
5475 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
5478 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
5480 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
5481 Value is canonicalized.
5482 (Language_Independent_Check): Do not copy Value to Display_Value when
5483 canonicalizing Value.
5485 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
5486 path to find limited with cycles.
5487 (Parse_Single_Project): Use canonical cased path to find the end of a
5490 2004-03-02 Ed Schonberg <schonberg@gnat.com>
5492 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
5493 and not a child unit.
5495 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
5496 appear in a with_clause.
5498 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
5499 only happen in type_annotate mode, do not try to elaborate it.
5501 * exp_util.adb (Force_Evaluation): If expression is a selected
5502 component on the left of an assignment, use a renaming rather than a
5503 temporary to remove side effects.
5505 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
5506 inlined instance body, which is analyzed before the end of the
5509 2004-03-02 Robert Dewar <dewar@gnat.com>
5511 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
5512 sem_ch4.adb: Use new feature for substitution of keywords in VMS
5514 * errout.ads, errout.adb: Implement new circuit for substitution of
5517 * sem_case.adb (Analyze_Choices): Place message properly when case is
5518 a subtype reference rather than an explicit range.
5520 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
5522 2004-03-02 Doug Rupp <rupp@gnat.com>
5524 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
5526 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
5528 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
5530 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5532 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
5535 2004-02-25 Robert Dewar <dewar@gnat.com>
5537 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
5538 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
5539 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
5540 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
5541 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
5542 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
5543 the defining instance of the type to avoid aliasing problems.
5544 Fix copyright header. Fix bad comments in package header.
5546 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
5548 2004-02-25 Ed Schonberg <schonberg@gnat.com>
5550 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
5551 rewritten as references when aliased through an address clause.
5553 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
5554 whether call can be interpreted as an indirect call to the result of a
5555 parameterless function call returning an access subprogram.
5557 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
5560 * exp_ch7.adb (Make_Clean): Remove generation of calls to
5561 Unlock[_Entries], since this is now done by Service_Entries directly.
5563 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
5565 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
5566 Requeue_Call for better code readability. Change spec and update calls:
5567 PO_Service_Entries now unlock the PO on exit.
5568 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
5571 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
5573 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
5575 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
5577 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
5578 protected subprogram call and analyzing the result of such expanding
5579 in case when the called protected subprogram is eliminated.
5581 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
5584 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
5586 * Makefile.in: Clean ups.
5588 2004-02-23 Ed Schonberg <schonberg@gnat.com>
5590 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
5591 protected operations if original subprogram is flagged as eliminated.
5592 (Expand_N_Subprogram_Body): For a protected operation, create
5593 discriminals for next operation before checking whether the operation
5596 * exp_ch9.adb (Expand_N_Protected_Body,
5597 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
5598 for internal protected operations if the original subprogram is
5601 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
5602 declared in a single protected object.
5604 2004-02-23 Vincent Celier <celier@gnat.com>
5606 * prj-attr.adb: Make attribute Builder'Executable an associative array,
5607 case insensitive if file names are case insensitive, instead of a
5608 standard associative array.
5610 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
5611 them as case insensitive on platforms where the file names are case
5614 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
5615 project file has already been parsed that canonical path are compared.
5617 2004-02-23 Robert Dewar <dewar@gnat.com>
5619 * sinput-c.ads: Correct bad unit title in header
5621 * freeze.adb: Minor reformatting
5623 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5625 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
5626 nonaddressable COMPONENT_REF that is removing padding that we are
5627 taking the address of, take the address of the padded record instead
5628 if item is variable size.
5630 2004-02-20 Robert Dewar <dewar@gnat.com>
5632 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
5634 2004-02-20 Ed Schonberg <schonberg@gnat.com>
5636 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
5637 itype references for the constrained designated type of a component
5638 whose base type is already frozen.
5640 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
5642 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
5645 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
5647 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
5648 identifier for a phantom package that rewrites the formal package
5649 declaration with a box. The Add semantic decorations for the defining
5650 identifier from the original node (that represents the formal package).
5652 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
5654 * Make-lang.in (ada/stamp-sdefault): Use the top level
5657 2004-02-19 Richard Henderson <rth@redhat.com>
5659 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
5661 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
5663 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
5664 Scan_ALI can be used for multiple ALI files without reinitializing
5667 2004-02-18 Robert Dewar <dewar@gnat.com>
5669 * debug.adb: Minor reformatting.
5671 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5673 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
5674 to zero if there is an address clause.
5676 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
5678 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
5680 2004-02-18 Gary Dismukes <dismukes@gnat.com>
5682 * layout.adb (Layout_Component_List): Revise generation of call to
5683 discriminant-checking function to pass selections of all of the type's
5684 discriminants rather than just the variant-controlling discriminant.
5686 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
5688 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
5689 fail in the current setup and triggers spurious system error messages.
5690 Pretend it occurred and failed instead.
5692 2004-02-18 Vincent Celier <celier@gnat.com>
5694 * bld.adb: Mark FLDFLAGS as saved
5695 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
5696 it is not the root project. Put each directory to be
5697 extended between double quotes to prevent it to be expanded on Windows.
5698 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
5699 the project file. Set them back to their initial values if they have not
5700 been set in the project file.
5702 * gprcmd.adb: (Gprdebug, Debug): New global variables
5703 (Display_Command): New procedure
5704 (Usage): Document new command "linkopts"
5705 Call Display_Command when env var GPRDEBUG has the value "TRUE"
5706 Implement new command "linkopts"
5707 Remove quotes that may be around arguments for "extend"
5708 Always call Normalize_Pathname with arguments formatted for the platform
5710 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
5711 Change @echo to @$(display) in target clean to be able to clean silently
5713 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
5715 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
5718 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
5719 = Extending_All when current project is an extending all project.
5721 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
5722 set to True only for LINK command, after Unix switch -o.
5723 (Process_Arguments): Set Output_File_Expected to True for LINK command
5724 after Unix switch -o. When Output_File_Expected is True, never add an
5725 extension to a file name.
5727 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
5728 option file name, only to the --for-linker= switch.
5729 (Option_File_Name): If option file name do not end with ".opt", append
5732 2004-02-18 GNAT Script <nobody@gnat.com>
5734 * Make-lang.in: Makefile automatically updated
5736 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
5738 * Make-lang.in (stamp-sdefault): Do not depend on
5741 2004-02-12 Zack Weinberg <zack@codesourcery.com>
5743 * config-lang.in: Disable Ada by default until probe logic for
5744 a bootstrap Ada compiler can be moved to the top level configure
5747 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
5749 * decl.c (components_to_record): Don't claim that the internal fields
5750 we make to hold the variant parts are semantically addressable, because
5753 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
5754 adjust the comment describing the modular type form when we can use it.
5755 (Install_PAT): Account for the Esiz renaming.
5757 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
5758 sc_onstack context indication before raising the exception to which
5759 the signal is mapped. Allows better handling of later signals possibly
5760 triggered by the resumed user code if the exception is handled.
5762 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
5764 * 5zinit.adb: Removed, no longer used.
5766 2004-02-12 Robert Dewar <dewar@gnat.com>
5768 * ali.adb: Remove separating space between parameters on R line. Makes
5769 format consistent with format used by the binder for Set_Globals call.
5771 * atree.ads, atree.adb: Minor reformatting (new function header format)
5773 * bindgen.adb: Add Run-Time Globals documentation section containing
5774 detailed documentation of the globals passed from the binder file to
5777 * gnatls.adb: Minor reformatting
5779 * init.c (__gnat_set_globals): Add note pointing to documentation in
5782 * lib-writ.ads, lib-writ.adb: Remove separating space between
5783 parameters on R line.
5784 Makes format consistent with format used by the binder for Set_Globals
5787 * osint.ads: Add 2004 to copyright notice
5790 * snames.ads: Correct capitalization of FIFO_Within_Priorities
5791 Noticed during code reading, documentation issue only
5793 * usage.adb: Remove junk line for obsolete C switch
5794 Noticed during code reading
5796 2004-02-12 Vincent Celier <celier@gnat.com>
5798 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
5799 extend for each directory, so that multiple /** directories are
5800 extended individually.
5801 (Recursive_Process): Set the default for LANGUAGES to ada
5803 * gprcmd.adb: Define new command "ignore", to do nothing.
5804 Implement new comment "path".
5806 * Makefile.generic: Suppress output when SILENT is set
5807 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
5808 used, so that the correct compiler is invoked.
5809 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
5810 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
5812 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
5814 * Makefile.in: Clean ups and remove obsolete targets.
5816 2004-02-12 Ed Schonberg <schonberg@gnat.com>
5818 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
5819 predicate declared in exp_util.
5821 * exp_util.adb: Add comments.
5823 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
5824 visibility before compiling context of the subunit.
5826 * sem_res.adb (Check_Parameterless_Call): If the context expects a
5827 value but the name is a procedure, do not attempt to analyze as a call,
5828 in order to obtain more telling diagnostics.
5830 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
5831 'Access on parameterless function calls.
5832 (Normalize_Actuals): For a parameterless function call with missing
5833 actuals, defer diagnostic until resolution of enclosing call.
5835 * sem_util.adb (Wrong_Type): If the context type is an access to
5836 subprogram and the expression is a procedure name, suggest a missing
5839 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
5840 Nathanael Nerode <neroden@gcc.gnu.org>
5842 PR ada/6637, PR ada/5911
5843 Merge with libada-branch:
5844 * config-lang.in: Build libada only when ada is built.
5846 2004-02-09 Ed Schonberg <schonberg@gnat.com>
5848 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
5849 for a tagged type, verify that both formals have the same type.
5851 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
5852 temporary when the formal is an in-parameter and the actual a possibly
5855 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
5856 when expansion is disabled, to ensure proper name capture with
5857 overloaded literals. Condition can be of any boolean type, resolve
5860 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
5861 renaming is for a formal subprogram with a default operator name, and
5862 there is a usable operator that is visible at the point of
5865 2004-02-09 Robert Dewar <dewar@gnat.com>
5867 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
5868 rewrite to ignore errors in ali files, intended to allow tools downward
5869 compatibility with new versions of ali files.
5871 * ali.ads: Add new parameter Ignore_Errors
5873 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
5874 duplicating the error message giving the file with restrictions.
5876 * debug.adb: Add debug flag I for gnatbind
5878 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
5879 operators for the case where the operator is a defining operator.
5881 * exp_ch3.adb: Minor reformatting (new function spec format).
5883 * exp_ch4.adb: Add comment for previous change, and make minor
5884 adjustment to loop to always check for improper loop termination.
5885 Minor reformatting throughout (new function spec format).
5887 * gnatbind.adb: Implement -di debug flag for gnatbind
5889 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
5891 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
5893 * lib-load.adb: Fix bad assertion.
5894 Found by testing and code reading.
5897 * lib-load.ads: Minor reformatting.
5899 * lib-writ.adb: There is only one R line now.
5901 * lib-writ.ads: Add documentation on making downward compatible changes
5902 to ali files so old tools work with new ali files.
5903 There is only one R line now.
5904 Add documentation on format incompatibilities (with special GPS note)
5906 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
5908 * par-load.adb: Minor reformatting
5910 * sem_ch8.adb: Fix to error message from last update
5911 Minor reformatting and restructuring of code from last update
5913 * par-prag.adb, snames.adb, snames.ads, snames.h,
5914 sem_prag.adb: Implement pragma Profile.
5916 * stylesw.adb: Implement -gnatyN switch to turn off all style check
5919 * usage.adb: Add line for -gnatyN switch
5921 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
5923 2004-02-09 Albert Lee <lee@gnat.com>
5925 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
5927 2004-02-09 Ed Schonberg <schonberg@gnat.com>
5929 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
5932 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
5933 is nested in an instance that is not frozen yet, to avoid
5934 order-of-elaboration problems in gigi.
5936 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
5937 body the attribute is legal.
5939 2004-02-09 Robert Dewar <dewar@gnat.com>
5941 * s-rident.ads: Minor comment correction
5943 * targparm.adb: Remove dependence on uintp completely. There was
5944 always a bug in Make in that it called Targparm before initializing
5945 the Uint package. The old code appeared to get away with this, but
5946 the new code did not! This caused an assertion error in gnatmake.
5948 * targparm.ads: Fix bad comment, restriction pragmas with parameters
5949 are indeed fully supported.
5951 2004-02-06 Alan Modra <amodra@bigpond.net.au>
5953 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
5955 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
5957 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
5958 with targetm.calls.promote_prototypes.
5960 2004-02-04 Robert Dewar <dewar@gnat.com>
5962 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
5963 ali.ads, gprcmd.adb: Minor reformatting
5965 * bindgen.adb: Output restrictions string for new style restrictions
5968 * impunit.adb: Add s-rident.ads (System.Rident) and
5969 s-restri (System.Restrictions)
5971 * lib-writ.adb: Fix bug in writing restrictions string (last few
5974 * s-restri.ads, s-restri.adb: Change name Restrictions to
5975 Run_Time_Restrictions to avoid conflict with package name.
5976 Add circuit to read and acquire run time restrictions.
5978 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
5980 * restrict.ads, restrict.adb: Use the new restriction
5981 No_Task_Attributes_Package instead of the old No_Task_Attributes.
5983 * sem_prag.adb: No_Task_Attributes is a synonym of
5984 No_Task_Attributes_Package.
5986 * snames.ads, snames.adb: New entry for proper handling of
5989 * s-rident.ads: Adding restriction No_Task_Attributes_Package
5990 (AI-00249) that supersedes the GNAT specific restriction
5993 2004-02-04 Ed Schonberg <schonberg@gnat.com>
5996 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
5997 body, an identifier may be wrapped in an unchecked conversion.
5999 2004-02-04 Vincent Celier <celier@gnat.com>
6001 * lib-writ.ads: Comment update for the W lines
6003 * bld.adb: (Expression): An empty string list is static
6005 * fname-uf.adb: Minor comment update
6007 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
6009 * gnatbind.adb: Initialize Cumulative_Restrictions with the
6010 restrictions on the target.
6012 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
6014 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
6017 2004-02-02 Arnaud Charlet <charlet@gnat.com>
6019 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
6021 2004-02-02 Vincent Celier <celier@gnat.com>
6023 * gprcmd.adb (Check_Args): If condition is false, print the invoked
6024 comment before the usage.
6025 Gprcmd: Fail when command is not recognized.
6026 (Usage): Document command "prefix"
6028 * g-md5.adb (Digest): Process last block.
6029 (Update): Do not process last block. Store remaining characters and
6032 * g-md5.ads (Update): Document that several call to update are
6033 equivalent to one call with the concatenated string.
6034 (Context): Add fields to allow new Update behaviour.
6036 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
6038 When May_Fail is True and no existing file can be found, return No_File.
6040 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
6043 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
6044 spec file name instead on the W line.
6046 2004-02-02 Robert Dewar <dewar@gnat.com>
6048 * ali.adb: Read and acquire info from new format restrictions lines
6050 * bcheck.adb: Add circuits for checking restrictions with parameters
6052 * bindgen.adb: Output dummy restrictions data
6055 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
6056 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
6057 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
6058 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
6059 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
6061 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
6062 the warning message on access to possibly uninitialized variable S)
6063 Minor changes for new restrictions handling.
6065 * gnatbind.adb: Minor reformatting
6066 Minor changes for new restrictions handling
6067 Move circuit for -r processing here from bcheck (cleaner)
6069 * gnatcmd.adb, gnatlink.adb: Minor reformatting
6071 * lib-writ.adb: Output new format restrictions lines
6073 * lib-writ.ads: Document new R format lines for new restrictions
6076 * s-restri.ads/adb: New files
6078 * Makefile.rtl: Add entry for s-restri.ads/adb
6080 * par-ch3.adb: Fix bad error messages starting with upper case letter
6083 * restrict.adb: Major rewrite throughout for new restrictions handling
6084 Major point is to handle restrictions with parameters
6086 * restrict.ads: Major changes in interface to handle restrictions with
6087 parameters. Also generally simplifies setting of restrictions.
6089 * snames.ads/adb: New entry for proper handling of No_Requeue
6091 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
6092 restriction counting.
6093 Other minor changes for new restrictions handling
6095 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
6096 Restriction_Warnings now allows full parameter notation
6097 Major rewrite of Restrictions for new restrictions handling
6099 2004-02-02 Javier Miranda <miranda@gnat.com>
6101 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
6102 syntax rule for object renaming declarations.
6103 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
6104 component definitions.
6106 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
6108 (Array_Type_Declaration): Give support to access components. In addition
6109 it was also modified to reflect the name of the object in anonymous
6110 array types. The old code did not take into account that it is possible
6111 to have an unconstrained anonymous array with an initial value.
6112 (Check_Or_Process_Discriminants): Allow access discriminant in
6114 (Process_Discriminants): Allow access discriminant in non-limited types
6115 Initialize the new Access_Definition field in N_Object_Renaming_Decl
6116 node. Change Ada0Y to Ada 0Y in comments
6118 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
6120 Change Ada0Y to Ada 0Y in comments
6122 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
6123 renamings Change Ada0Y to Ada 0Y in comments
6125 * sem_type.adb (Find_Unique_Type): Give support to the equality
6126 operators for universal access types
6127 Change Ada0Y to Ada 0Y in comments
6129 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
6131 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
6133 (N_Object_Renaming_Declaration): Addition of Access_Definition field
6134 Change Ada0Y to Ada 0Y in comments
6136 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
6137 component definition and object renaming nodes
6138 Change Ada0Y to Ada 0Y in comments
6140 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
6142 * restrict.adb: Use the new restriction identifier
6143 No_Requeue_Statements instead of the old No_Requeue for defining the
6146 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
6147 No_Requeue_Statements.
6149 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
6150 that supersedes the GNAT specific restriction No_Requeue. The later is
6151 kept for backward compatibility.
6153 2004-02-02 Ed Schonberg <schonberg@gnat.com>
6155 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
6156 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
6157 pragma and fix incorrect ones.
6159 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
6160 warning if the pragma is redundant.
6162 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
6164 * 5staprop.adb: Add missing 'constant' keywords.
6166 * Makefile.in: use consistent value for SYMLIB on
6167 platforms where libaddr2line is supported.
6169 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6171 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
6174 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
6176 * init.c (__gnat_install_handler): Setup an alternate stack for signal
6177 handlers in the environment thread. This allows proper propagation of
6178 an exception on stack overflows in this thread even when the builtin
6179 ABI stack-checking scheme is used without support for a stack reserve
6182 * utils.c (create_field_decl): Augment the head comment about bitfield
6183 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
6184 here, because the former is not accurate enough at this point.
6185 Let finish_record_type decide instead.
6186 Don't make a bitfield if the field is to be addressable.
6187 Always set a size for the field if the record is packed, to ensure the
6188 checks for bitfield creation are triggered.
6189 (finish_record_type): During last pass over the fields, clear
6190 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
6191 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
6192 from DECL_BIT_FIELD.
6194 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
6196 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
6197 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
6198 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
6200 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6202 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
6204 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
6205 (ZCX_By_Default): Likewise.
6206 (Front_End_ZCX_Support): Likewise.
6208 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
6209 (Initialize_Lock): Mark Level unreferenced.
6210 (Sleep): Mark Reason unreferenced.
6211 (Timed_Sleep): Likewise.
6213 (Exit_Task): Use Result.
6214 (Check_No_Locks): Mark Self_ID unreferenced.
6216 * 5gtasinf.adb (New_Sproc): Make Attr constant.
6217 (Bound_Thread_Attributes): Make Sproc constant.
6218 (New_Bound_Thread_Attributes): Likewise.
6220 2004-01-26 Ed Schonberg <schonberg@gnat.com>
6222 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
6223 one-dimensional array an slice assignments, when component type is
6226 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
6227 component type is controlled, and control_actions are in effect, use
6228 TSS procedure rather than generating inline code.
6230 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
6231 arrays with controlled components.
6233 2004-01-26 Vincent Celier <celier@gnat.com>
6235 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
6236 command line for the non VMS case.
6238 * gnatlink.adb (Process_Binder_File): When building object file, if
6239 GNU linker is used, put all object paths between quotes, to prevent ld
6240 error when there are unusual characters (such as '!') in the paths.
6242 * Makefile.generic: When there are sources in Ada and the main is in
6243 C/C++, invoke gnatmake with -B, instead of -z.
6245 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
6246 from VMS_Conversion.
6247 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
6248 specification of argument file on the command line.
6250 2004-01-26 Bernard Banner <banner@gnat.com>
6252 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
6254 2004-01-26 Ed Schonberg <schonberg@gnat.com>
6256 * snames.adb: Update copyright notice.
6257 Add info on slice assignment for controlled arrays.
6259 2004-01-23 Robert Dewar <dewar@gnat.com>
6261 * exp_aggr.adb: Minor reformatting
6263 * exp_ch9.adb: Minor code clean up
6265 Fix bad character in comment
6268 * targparm.adb (Get_Target_Parameters): Give clean abort error on
6269 unexpected end of file, along with more detailed message.
6271 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6273 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
6276 * decl.c (copy_alias_set): New function.
6277 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
6279 2004-01-23 Doug Rupp <rupp@gnat.com>
6281 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
6282 lib$${file} in case subsequent character is not a separator.
6284 2004-01-23 Vincent Celier <celier@gnat.com>
6286 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
6287 when the GCC version is at least 3.
6289 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
6290 Remove all "Opt.", to prepare for opt split
6292 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
6293 Extends_All. Set to True when the project parsed is an extending all
6294 project. Fails for importing an extending all project only when the
6295 imported project is an extending all project.
6296 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
6297 depending on the value of Extends_All returned.
6299 * prj-proc.adb (Process): Check that no project shares its object
6300 directory with a project that extends it, directly or indirectly,
6301 including a virtual project.
6302 Check that no project extended by another project shares its object
6303 directory with another also extended project.
6305 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
6306 Kind = N_With_Clause
6308 * prj-tree.ads: Minor reformatting
6309 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
6311 2004-01-23 Ed Schonberg <schonberg@gnat.com>
6313 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
6314 applies to a type with an incomplete view, use full view in Name of
6315 clause, for consistency with uses of Get_Attribute_Definition_Clause.
6317 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
6319 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
6320 SCHED_RR, since other values are not supported by this policy.
6321 (Initialize): Move initialization of mutex attribute to package
6322 elaboration, to prevent early access to this variable.
6324 * Makefile.in: Remove mention of Makefile.adalib, unused.
6326 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
6327 1ssecsta.ads: Removed, unused.
6329 2004-01-21 Javier Miranda <miranda@gnat.com>
6331 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
6332 entity if already built in the current scope.
6334 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
6335 reminder in internal scopes. Required for nested limited aggregates.
6337 2004-01-21 Doug Rupp <rupp@gnat.com>
6339 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
6340 VMS. Replace all occurences of libgnat- and libgnarl- with
6341 libgnat$(hyphen) and libgnarl$(hyphen).
6342 Fixed shared library build problem on VMS.
6344 2004-01-21 Robert Dewar <dewar@gnat.com>
6346 * mlib-prj.adb: Minor reformatting
6348 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
6350 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
6351 'constant' keywords for declaration of pointers that are not modified.
6353 * exp_pakd.adb: Fix English in comment.
6355 2004-01-21 Ed Schonberg <schonberg@gnat.com>
6358 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
6359 copy all attributes of the parent, including the foreign language
6362 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
6365 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
6366 for 'delay until' statement.
6368 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
6370 * Make-lang.in: Replace $(docdir) with doc.
6371 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
6372 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
6373 to use consistent MAKEINFO rule.
6374 (ada.man, ada.srcman): Dummy entry.
6375 (ADA_INFOFILES): Define.
6376 (ada.info, ada.srcinfo): New rules.
6378 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
6380 * utils.c: Update copyright notice, missed in previous change.
6382 2004-01-19 Vincent Celier <celier@gnat.com>
6384 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
6385 args if Bind is True. Set First_ALI, if not already done.
6386 (Build_Library): For Stand Alone Libraries, extract from one ALI file
6387 an eventual --RTS switch, for gnatbind, and all backend switches +
6390 2004-01-19 Robert Dewar <dewar@gnat.com>
6392 * sem_attr.adb, memtrack.adb: Minor reformatting
6394 2004-01-19 Ed Schonberg <schonberg@gnat.com>
6396 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
6397 that rename enumeration literals. This is properly done in sem_eval.
6399 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
6400 to functions that rename enumeration literals.
6402 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
6403 functions that rename enumeration literals.
6405 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
6407 * Make-lang.in (utils.o): Depend on target.h.
6408 * utils.c: Include target.h.
6409 (process_attributes): Use targetm.have_named_sections instead
6410 of ASM_OUTPUT_SECTION_NAME.
6412 2004-01-16 Andreas Jaeger <aj@suse.de>
6414 * Makefile.in: Add $(DESTDIR).
6416 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
6418 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
6419 also when not defining if a Size clause applies. That information is
6422 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
6424 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
6425 symbolic links for the shared gnat run time when needed.
6427 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
6429 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
6430 for writing, and terminate with an error message if not.
6432 2004-01-15 Ed Schonberg <schonberg@gnat.com>
6434 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
6435 warning on an access to subprogram in an instance, when the target
6436 type is declared in the same generic unit.
6437 (Eval_Attribute): If 'access is known to fail accessibility check,
6438 rewrite as a raise statement.
6440 2004-01-15 GNAT Script <nobody@gnat.com>
6442 * Make-lang.in: Makefile automatically updated
6444 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
6446 * Make-lang.in (ada.srcextra): Dummy entry.
6448 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
6450 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
6452 2004-01-13 Ed Schonberg <schonberg@gnat.com>
6454 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
6455 components that are initialized with aggregates.
6457 2004-01-13 Vincent Celier <celier@gnat.com>
6459 * gnatlink.adb (Process_Binder_File): To find directory of shared
6460 libgcc, if "gcc-lib" is not a subdirectory, look for the last
6461 subdirectory "lib" in the path of the shared libgnat or libgnarl.
6463 * make.adb (Gnatmake): If GCC version is at least 3, link with
6464 -shared-libgcc, when there is at least one shared library project.
6466 * opt.ads (GCC_Version): New integer constant.
6468 * adaint.c (get_gcc_version): New function.
6470 2004-01-13 Robert Dewar <dewar@gnat.com>
6472 * sem_dist.adb, sem_res.adb, sem_util.adb,
6473 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
6474 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
6476 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
6478 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
6479 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
6482 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
6484 * misc.c: Remove trailing spaces.
6485 Update copyright notice missed in previous change.
6488 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
6491 * Makefile.generic: Update copyright.
6494 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
6495 of prefix/share/make.
6497 * Makefile.prolog: Update copyright.
6500 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
6502 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
6503 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
6504 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
6507 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
6510 2004-01-12 Javier Miranda <miranda@gnat.com>
6512 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
6513 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
6514 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
6515 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
6516 Component_Definition node.
6518 2004-01-12 Ed Falis <falis@gnat.com>
6520 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
6522 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
6524 * link.c: Change default libgnat kind to STATIC for FreeBSD.
6526 2004-01-12 Bernard Banner <banner@gnat.com>
6528 * Makefile.in: map 86numaux to a-numaux for x86_64
6530 2004-01-12 Ed Schonberg <schonberg@gnat.com>
6532 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
6533 generated to rename a generic actual, go to the actual itself, the
6534 subtype is not a user-visible entity.
6536 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
6537 part is a private subtype, reset the visibility of its full view, if
6538 any, to be consistent.
6541 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
6542 to use a generic package G as a formal package for another generic
6545 2004-01-12 Robert Dewar <dewar@gnat.com>
6547 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
6549 * usage.adb: Remove mention of obsolete -gnatwb switch
6550 Noticed during code reading
6552 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
6554 * 1ssecsta.adb: Minor changes for -gnatwa warnings
6556 2004-01-12 GNAT Script <nobody@gnat.com>
6558 * Make-lang.in: Makefile automatically updated
6560 2004-01-09 Mark Mitchell <mark@codesourcery.com>
6562 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
6564 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6566 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
6568 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
6570 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
6571 Update comment and copyright date.
6572 * stamp-xgnatug: Delete.
6574 2004-01-05 Robert Dewar <dewar@gnat.com>
6576 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
6577 be modified by the binder generated main program if the -D switch is
6580 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
6581 imported functions (since now we expect this to be done for imported
6584 * 5vtaprop.adb: Add several ??? for sections requiring more comments
6585 Minor reformatting throughout
6587 * 5zinit.adb: Minor reformatting
6588 Add 2004 to copyright date
6589 Minor changes to avoid -gnatwa warnings
6590 Correct some instances of using OR instead of OR ELSE (noted while
6593 * sprint.adb: Minor updates to avoid -gnatwa warnings
6595 * s-secsta.ads, s-secsta.adb:
6596 (SS_Get_Max): New function to obtain high water mark for ss stack
6597 Default_Secondary_Stack is not a constant since it may be modified by
6598 the binder generated main program if the -D switch is used.
6600 * switch-b.adb: New -Dnnn switch for binder
6603 Make -gnatg imply all warnings currently in -gnatwa
6605 * vms_conv.adb: Minor reformatting
6606 Add 2004 to copyright notice
6607 Add 2004 to printed copyright notice
6609 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
6610 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
6611 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
6612 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
6613 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
6614 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
6615 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
6616 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
6617 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
6618 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
6619 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
6620 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
6621 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
6622 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
6623 checks.adb, clean.adb, cstand.adb, einfo.ads,
6624 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
6625 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
6626 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
6627 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
6628 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
6629 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
6630 Minor reformatting and code clean ups.
6631 Minor changes to prevent -gnatwa warnings
6633 * ali.adb: Minor reformatting and cleanup of code
6634 Acquire new SS indication of secondary stack use from ali files
6636 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
6637 (since now we expect this to be done for imported functions)
6639 * bindgen.adb: Generate call to modify default secondary stack size if
6642 * bindusg.adb: Add line for new -D switch
6644 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
6645 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
6646 Add circuitry for both records and arrays to avoid gigi
6647 processing if the type involved has non-bit-aligned components
6649 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
6650 N_String_Literal node always references an E_String_Literal_Subtype
6651 entity. This may not be true in the future.
6652 (Possible_Bit_Aligned_Component): Move processing of
6653 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
6655 * exp_ch6.adb (Expand_Thread_Body): Pick up
6656 Default_Secondary_Stack_Size as variable so that we get value modified
6657 by possible -Dnnn binder parameter.
6659 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
6660 (Type_May_Have_Bit_Aligned_Components): New function.
6662 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
6663 (Type_May_Have_Bit_Aligned_Components): New function.
6665 * fe.h: (Set_Identifier_Casing): Fix prototype.
6666 Add declaration for Sem_Elim.Eliminate_Error_Msg.
6669 * freeze.adb (Freeze_Entity): Add RM reference to error message about
6670 importing constant atomic/volatile objects.
6671 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
6672 unless explicit Pure_Function pragma given, to avoid insidious bug of
6673 call to non-pure imported function getting eliminated.
6675 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
6676 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
6677 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
6678 Add 2004 to printed copyright notice
6680 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
6683 * Makefile.rtl: Add entry for g-sestin.o
6684 g-sestin.ads: New file.
6686 * mdll.adb: Minor changes to avoid -gnatwa warnings
6688 * mlib-tgt.adb: Minor reformatting
6690 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
6691 New switch Sec_Stack_Used (GNAT, GNATBIND)
6692 Make Default_Secondary_Stack_Size a variable instead of a constant,
6693 so that it can be modified by the new -Dnnn bind switch.
6695 * rtsfind.adb (Load_Fail): Give full error message in configurable
6696 run-time mode if all_errors mode is set. This was not done in the case
6697 of a file not found, which was an oversight.
6698 Note if secondary stack unit is used by compiler.
6700 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
6701 ineffective elaborate all pragmas on non-visible packages (this
6702 happened when a renamed subprogram was called). Now the elaborate all
6703 always goes on the package containing the renaming rather than the one
6704 containing the renamed subprogram.
6706 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
6707 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
6709 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
6710 has an Etype that references an E_String_Literal.
6711 (Eval_String_Literal): Avoid assumption that N_String_Literal node
6712 always references an E_String_Literal_Subtype entity. This may not
6713 be true in the future.
6715 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
6718 * sem_res.adb (Resolve): Specialize msg for function name used in proc
6721 2004-01-05 Ed Falis <falis@gnat.com>
6723 * g-debuti.adb: Replaced direct boolean operator with short-circuit
6726 2004-01-05 Vincent Celier <celier@gnat.com>
6728 * bld.adb: Minor comment updates
6729 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
6732 * make.adb (Gnatmake): Special process for files to compile/check when
6733 -B is specified. Fail when there are only foreign mains in attribute
6734 Main of the project file and -B is not specified. Do not skip bind/link
6735 steps when -B is specified.
6737 * makeusg.adb: Document new switch -B
6739 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
6741 * switch-m.adb: (Scan_Make_Switches): Process -B switch
6743 * vms_data.ads: Add new GNAT PRETTY qualifier
6744 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
6746 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6748 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
6751 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
6752 Set_Identifier_Casing.
6754 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
6755 has size that overflows.
6757 2004-01-05 Gary Dismukes <dismukes@gnat.com>
6759 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
6760 -gnatwa warning on static condition.
6762 2004-01-05 Doug Rupp <rupp@gnat.com>
6764 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
6766 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
6768 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
6769 all attributes, including read-only attribute.
6771 2004-01-05 Pascal Obry <obry@gnat.com>
6773 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
6774 library naming scheme.
6776 * mlib-prj.adb (Build_Library): Generate different names for the static
6777 or dynamic version of the GNAT runtime. This is needed to support the
6778 new shared library naming scheme.
6779 (Process_Binder_File): Add detection of shared library in binder file
6780 based on the new naming scheme.
6782 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
6783 scheme for the shared runtime libraries.
6786 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
6788 (install-gnatlib): Do not create symlinks for shared libraries.
6789 (gnatlib-shared-default): Idem.
6790 (gnatlib-shared-dual-win32): New target. Not used for now as the
6791 auto-import feature does not support arrays/records.
6792 (gnatlib-shared-win32): Do not create copy for the shared libraries.
6793 (gnatlib-shared-vms): Fix shared runtime libraries names.
6795 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
6796 dependent runtime shared library name.
6798 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
6800 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
6803 2004-01-05 Ed Schonberg <schonberg@gnat.com>
6805 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
6806 protected objects when allocator has a subtype indication, not a
6807 qualified expression. Note that qualified expressions may have to be
6808 checked when limited aggregates are implemented.
6810 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
6812 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
6813 subprogram is imported, remove warning.
6815 2004-01-05 Geert Bosch <bosch@gnat.com>
6817 * s-poosiz.adb: Update copyright notice.
6818 (Allocate): Use Task_Lock to protect against concurrent access.
6819 (Deallocate): Likewise.
6821 2004-01-05 Joel Brobecker <brobecker@gnat.com>
6823 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
6826 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
6828 * gnat_ug.texi: Force a CVS commit by updating copyright.
6829 * gnat_ug_vxw.texi: Regenerate.
6830 * gnat_ug_wnt.texi: Regenerate.
6831 * gnat_ug_vms.texi: Regenerate.
6832 * gnat_ug_unx.texi: Regenerate.
6834 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
6836 * trans.c: Remove uses of "register" specifier in
6837 declarations of local variables.
6839 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
6841 * stamp-xgnatug: New stamp file.
6842 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
6843 (ada/doctools/xgnatug): Add $(build_exeext).
6844 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
6845 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
6847 2003-12-17 Ed Falis <falis@gnat.com>
6849 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
6852 * a-exextr.adb: Add context clause for
6853 Ada.Exceptions.Last_Chance_Handler.
6855 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
6857 * cstand.adb (Create_Standard): Change the way how the declaration of
6858 the Duration type is created (making it the same way as it is for all
6859 the other standard types).
6861 2003-12-17 Robert Dewar <dewar@gnat.com>
6863 * s-crtl.ads: Fix header format
6864 Change Pure to Preelaborate
6866 2003-12-17 Ed Schonberg <schonberg@gnat.com>
6868 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
6869 the expression type only if it is declared in the current unit.
6871 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
6872 are universal and already analyzed, as can occur in constrained
6873 subcomponents that depend on discriminants, when one constraint is a
6876 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
6877 type Any_Fixed is legal as the argument of a conversion, if only one
6878 fixed-point type is in context.
6880 2003-12-17 GNAT Script <nobody@gnat.com>
6882 * Make-lang.in: Makefile automatically updated
6884 2003-12-15 Robert Dewar <dewar@gnat.com>
6886 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
6889 2003-12-15 Vincent Celier <celier@gnat.com>
6891 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
6892 (Gnatchop): Do not set failure status when reporting the number of
6895 2003-12-15 Doug Rupp <rupp@gnat.com>
6897 * s-ctrl.ads: New file.
6899 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
6901 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
6902 (GNATBIND_OBJS): Add ada/s-crtl.o.
6904 * Makefile.in [VMS]: Clean up ifeq rules.
6906 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
6907 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
6908 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
6909 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
6910 s-tasdeb.adb: Update copyright.
6912 Make minor modifications to use System.CRTL declared functions instead
6913 of importing locally.
6915 2003-12-15 GNAT Script <nobody@gnat.com>
6917 * Make-lang.in: Makefile automatically updated
6919 2003-12-11 Ed Falis <falis@gnat.com>
6921 * 5zinit.adb: Clean up.
6923 * 5zintman.adb (Notify_Exception): replaced case statement with a call
6924 to __gnat_map_signal, imported from init.c to support
6925 signal -> exception mappings that depend on the vxWorks version.
6928 Created and exported __gnat_map_signal to support signal -> exception
6929 mapping that is dependent on the VxWorks version.
6930 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
6932 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
6934 * 5wosinte.ads: Link with -mthreads switch.
6936 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
6938 * init.c (__gnat_install_handler [NetBSD]): Set
6939 __gnat_handler_installed, as done on all other platforms.
6940 Remove duplicated code.
6942 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
6944 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
6946 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
6948 * sinfo.ads: Fix inconsistent example code in comment.
6950 2003-12-11 Robert Dewar <dewar@gnat.com>
6952 * a-tiinau.adb: Add a couple of comments
6954 * sem_ch3.adb: Minor reformatting
6957 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
6958 Minor reformatting throughout
6960 2003-12-11 Ed Schonberg <schonberg@gnat.com>
6962 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
6963 bounds of a loop, create a separate block in order to generate proper
6964 cleanup actions to prevent memory leaks.
6966 * sem_res.adb (Resolve_Call): After a call to
6967 Establish_Transient_Scope, the call may be rewritten and relocated, in
6968 which case no further processing is needed.
6970 * sem_util.adb: (Wrong_Type): Refine previous fix.
6971 Fixes ACATS regressions.
6975 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
6978 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
6980 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
6981 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
6984 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
6987 2003-12-08 Robert Dewar <dewar@gnat.com>
6989 * 7sintman.adb: Minor reformatting
6991 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
6992 standard linker options to get standard libraries linked. We now plan
6993 to provide dummy versions of these libraries to match the appropriate
6994 configurable run-time (e.g. if a library is not needed at all, provide
6995 a dummy empty library).
6997 * targparm.ads: Configurable_Run_Time mode no longer affects linker
6998 options (-L parameters and standard libraries). What we plan to do is
6999 to provide dummy libraries where the libraries are not required.
7001 * gnatbind.adb: Minor comment improvement
7003 2003-12-08 Javier Miranda <miranda@gnat.com>
7005 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
7006 aggregate in the parent. Otherwise constants with limited aggregates
7007 are not supported. Add new formal to pass the component type (Ctype).
7008 It is required to call the corresponding IP subprogram in case of
7009 default initialized components.
7010 (Gen_Assign): In case of default-initialized component, generate a
7011 call to the IP subprogram associated with the component.
7012 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
7013 of aggregate with default initialized components.
7014 (Has_Default_Init_Comps): Improve implementation to recursively check
7015 all the present expressions.
7017 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
7018 to indicate that the initialization call corresponds to a
7019 default-initialized component of an aggregate.
7020 In case of default initialized aggregate with tasks this parameter is
7021 used to generate a null string (this is just a workaround that must be
7022 improved later). In case of discriminants, this parameter is used to
7023 generate a selected component node that gives access to the discriminant
7026 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
7027 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
7028 allocated aggregates with default-initialized components.
7030 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
7031 the box notation is used in positional aggregates.
7033 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
7035 * lib.ads: Fix typo in comment
7037 2003-12-08 Vincent Celier <celier@gnat.com>
7039 * prj.adb (Project_Empty): New component Unkept_Comments
7040 (Scan): Remove procedure; moved to Prj.Err.
7042 * prj.ads (Project_Data): New Boolean component Unkept_Comments
7043 (Scan): Remove procedure; moved to Prj.Err.
7045 * prj-dect.adb: Manage comments for the different declarations.
7047 * prj-part.adb (With_Record): New component Node
7048 (Parse): New Boolean parameter Store_Comments, defaulted to False.
7049 Set the scanner to return ends of line and comments as tokens, if
7050 Store_Comments is True.
7051 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
7052 comments are associated with these nodes. Store the node IDs in the
7054 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
7056 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
7057 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
7058 current project. Call Tree.Restore afterwards. Set the various nodes
7059 for comment storage (Next_End, End_Of_Line, Previous_Line,
7062 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
7065 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
7066 to False. When Truncated is True, truncate the string, never go to the
7068 (Write_End_Of_Line_Comment): New procedure
7069 (Print): Process comments for nodes N_With_Clause,
7070 N_Package_Declaration, N_String_Type_Declaration,
7071 N_Attribute_Declaration, N_Typed_Variable_Declaration,
7072 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
7073 Process nodes N_Comment.
7075 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
7076 without comments and there are some comments, set the flag
7077 Unkept_Comments to True.
7078 (Scan): If there are comments, set the flag Unkept_Comments to True and
7080 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
7081 (Next_End_Nodes: New table
7082 (Comment_Zones_Of): New function
7083 (Scan): New procedure; moved from Prj. Accumulate comments in the
7084 Comments table and set end of line comments, comments after, after end
7086 (Add_Comments): New procedure
7087 (Save, Restore, Seset_State): New procedures
7088 (There_Are_Unkept_Comments): New function
7089 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
7090 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
7092 (First_Comment_After, First_Comment_After_End): New functions
7093 (First_Comment_Before, First_Comment_Before_End): New functions
7094 (Next_Comment): New function
7095 (End_Of_Line_Comment, Follows_Empty_Line,
7096 Is_Followed_By_Empty_Line): New functions
7097 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
7098 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
7099 (Set_Next_Comment): New procedure
7100 (Default_Project_Node): Associate comment before if the node can store
7103 * scans.ads (Token_Type): New enumeration value Tok_Comment
7104 (Comment_Id): New global variable
7106 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
7108 (Scan): Store position of start of comment. If comments are tokens, set
7109 Comment_Id and set Token to Tok_Comment when scanning a comment.
7110 (Set_Comment_As_Token): New procedure
7112 * sinput-p.adb: Update Copyright notice
7113 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
7114 that no longer exists.
7116 2003-12-08 Javier Miranda <miranda@gnat.com>
7118 * sem_aggr.adb: Add dependence on Exp_Tss package
7119 Correct typo in comment
7120 (Resolve_Aggregate): In case of array aggregates set the estimated
7121 type of the aggregate before calling resolve. This is needed to know
7122 the name of the corresponding IP in case of limited array aggregates.
7123 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
7124 in case of default initialized array components.
7126 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
7127 types. Required to give support to limited aggregates in generic
7130 2003-12-08 Ed Schonberg <schonberg@gnat.com>
7132 * sem_ch3.adb (Check_Initialization): For legality purposes, an
7133 inlined body functions like an instantiation.
7134 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
7135 until bounds are analyzed, to diagnose premature use of type.
7137 * sem_util.adb (Wrong_Type): Improve error message when the type of
7138 the expression is used prematurely.
7140 2003-12-08 GNAT Script <nobody@gnat.com>
7142 * Make-lang.in: Makefile automatically updated
7144 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
7146 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
7147 they are automatically generated by Make-lang.in and cause nothing but
7148 maintenance troubles.
7150 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
7152 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
7153 version of this unit).
7155 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
7157 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
7158 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
7159 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
7160 the body of System.Interrupt_Management common to several targets.
7161 Update copyright notice when appropriate.
7163 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
7166 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
7167 to ensure that the kernel fills in the interrupted context structure
7168 before calling a signal handler, which is necessary to be able to
7169 unwind past it. Update the copyright notice.
7171 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
7173 * a-elchha.ads: New file.
7175 * a-elchha.adb: New default last chance handler. Contents taken from
7176 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
7178 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
7179 is moved to a-elchha.adb to provide a target-independent default last
7182 * Makefile.rtl: Add a-elchha.o
7184 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
7186 2003-12-05 Ed Schonberg <schonberg@gnat.com>
7188 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
7189 declared in an instance, do not inline the call if the instance is not
7190 frozen yet, to prevent order of elaboration problems.
7192 * sem_prag.adb: Add comments for previous fix.
7194 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
7196 * g-table.adb: Use the right variable in Set_Item.
7197 Update copyright notice.
7199 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
7201 * Makefile.in: Remove unused rules.
7203 2003-12-05 Vincent Celier <celier@gnat.com>
7205 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
7206 -nostdlib. Not needed here after all.
7208 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
7212 * adaint.h, adaint.c, g-os_lib.ads:
7213 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
7214 on some platforms (including FreeBSD), it is a 64 bit value.
7215 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
7217 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
7219 * gnatvsn.ads (Library_Version): Now contain only the relevant
7221 (Verbose_Library_Version): New constant.
7223 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
7224 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
7225 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
7227 * gnatlbr.adb: Clean up: replace Library_Version by
7228 Verbose_Library_Version.
7230 * make.adb, lib-writ.adb, exp_attr.adb:
7231 Clean up: replace Library_Version by Verbose_Library_Version.
7233 * 5lintman.adb: Removed.
7236 Update and simplify computation of LIBRARY_VERSION.
7237 Fix computation of GSMATCH_VERSION.
7238 5lintman.adb is no longer used: replaced by 7sintman.adb.
7240 2003-12-03 Robert Dewar <dewar@gnat.com>
7243 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
7244 name. Modified to consider small non-bit-packed arrays as troublesome
7245 and in need of component-by-component assigment expansion.
7247 2003-12-03 Vincent Celier <celier@gnat.com>
7249 * lang-specs.h: Process nostdlib as nostdinc
7251 * back_end.adb: Update Copyright notice
7252 (Scan_Compiler_Arguments): Process -nostdlib directly.
7254 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
7257 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
7258 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
7259 included in HIE_NONE_TARGET_PAIRS.
7261 2003-12-03 Ed Schonberg <schonberg@gnat.com>
7264 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
7265 is legal in an instance, because legality is cheched in the template.
7268 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
7269 appplied to an unchecked conversion of a formal parameter.
7272 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
7275 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
7277 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
7278 routines. The second one is new functionality to deal with backtracing
7279 through signal handlers.
7280 (unwind): Split into the two separate subroutines above.
7281 Update the documentation, and deal properly with sizeof (REG) different
7282 from sizeof (void*).
7284 2003-12-01 Nicolas Setton <setton@act-europe.fr>
7286 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
7287 so that the debugger can reliably access the value of the parameter,
7288 and therefore is able to display the exception name when an exception
7289 breakpoint is reached.
7291 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
7293 * fmap.adb: Fix typo in warning message.
7295 * g-socket.ads, g-socket.adb: Make Free a visible instance of
7296 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
7298 2003-12-01 Vincent Celier <celier@gnat.com>
7300 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
7302 (Build_Library): Get the switches only if Default_Switches is declared
7305 2003-12-01 Ed Schonberg <schonberg@gnat.com>
7307 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
7308 actuals that are indexed components, reanalyze actual to ensure that
7309 packed array references are properly expanded.
7311 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
7312 attempted assignment to a discriminant.
7314 2003-12-01 Robert Dewar <dewar@gnat.com>
7316 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
7319 * switch-c.adb: Minor reformatting of comments
7321 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
7323 * Makefile.in: Clean ups.
7325 2003-12-01 GNAT Script <nobody@gnat.com>
7327 * Make-lang.in: Makefile automatically updated
7329 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
7331 * 5wsystem.ads: Disable zero cost exception, not ready yet.
7333 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
7335 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
7336 to force serialization.
7338 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
7340 * g-socket.ads, g-socket.adb:
7341 Clarify documentation of function Stream. Introduce a Free procedure
7342 to release the returned Stream once it becomes unused.
7344 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
7346 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
7348 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
7349 since NT 4 cannot handle timeout values that are too large,
7350 e.g. DWORD'Last - 1.
7352 2003-11-26 Ed Schonberg <schonberg@gnat.com>
7355 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
7356 in procedure calls and whose expansion must be deferred.
7358 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
7362 (Build_Derived_Array_Type): Create operator for unconstrained type
7363 if ancestor is unconstrained.
7365 2003-11-26 Vincent Celier <celier@gnat.com>
7367 * make.adb (Project_Object_Directory): New global variable
7368 (Change_To_Object_Directory): New procedure
7369 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
7370 of Change_Dir directly. Do not change working directory to object
7371 directory of main project after each compilation.
7372 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
7374 Change to object directory of main project before binding step.
7375 (Initialize): Initialize Project_Object_Directory to No_Project
7378 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
7379 binding a Stand-Alone Library.
7381 * output.adb: Update Copyright notice
7382 (Write_Char): Output buffer when full
7384 2003-11-26 Robert Dewar <dewar@gnat.com>
7386 * sem_ch13.adb: (Check_Size): Reset size if size is too small
7389 (Check_Size): Fix documentation to include bit-packed array case
7391 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
7393 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
7395 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
7397 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
7400 * utils.c (init_gigi_decls): Change name of built-in setjmp to
7401 __builtin_setjmp, since this is apparently needed by recent
7404 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7406 * adadecode.c: Only include ctype.h if not IN_GCC.
7407 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
7409 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
7412 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
7413 signals and interrupts.
7415 * 5zintman.ads: New File.
7417 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
7418 add exception signals to the set of unmasked signals.
7421 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
7422 between signals and interrupts.
7423 Add to Unblocked_Signal_Mask the set of signals that are in
7427 Adding a check to see whether the Interrupt_ID we want to unmask is in
7428 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
7429 reason is that the index type of the Keep_Unmasked array is not always
7430 Interrupt_ID; it may be a subtype of Interrupt_ID.
7432 2003-11-24 Gary Dismukes <dismukes@gnat.com>
7435 (Remove_Side_Effects): Condition constantness of object created for a
7436 an unchecked type conversion on the constantness of the expression
7437 to ensure the correct value for 'Constrained when passing components
7438 of view-converted class-wide objects.
7440 2003-11-24 Robert Dewar <dewar@gnat.com>
7442 * par-load.adb (Load): Improve handling of misspelled and missing units
7443 Removes several cases of compilation abandoned messages
7445 * lib.adb: (Remove_Unit): New procedure
7447 * lib.ads: (Remove_Unit): New procedure
7449 * lib-load.adb: Minor reformatting
7451 2003-11-24 Vincent Celier <celier@gnat.com>
7454 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
7455 (Marking_Label): Label to mark processed source files. Incremented for
7457 (Gnatmake): Increase Marking_Labet for each executable
7458 (Is_Marked): Compare against marking label
7459 (Mark): Mark with marking label
7461 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
7464 Move the declaration of the TSD for System.Threads to System.Soft_Links.
7467 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
7468 (rts-cert): build a single relocatable object for the run-time lib.
7471 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
7474 Use gnatls rather than gcc to obtain the location of GNAT RTL for
7477 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
7479 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
7480 can not use it as before (that is, as a variable) when dumping it into
7481 the tree file. Add a local variable to store the result of this
7482 function and to be used as the string to be written into the tree.
7484 * scn.adb (Initialize_Scanner): Add comments explaining the recent
7487 * sinput.adb (Source_First, Source_Last): In case of
7488 Internal_Source_File, replace returning attributes of
7489 Internal_Source_Ptr (which is wrong) with returning attributes of
7492 2003-11-24 Ed Schonberg <schonberg@gnat.com>
7495 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
7496 used for implicit concatenation operators.
7500 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
7501 task bodies that are in the scope of a Suppress pragma.
7502 (Check_A Call): Use the flag to prevent spurious elaboration checks.
7504 * sinfo.ads, sinfo.adb:
7505 New flag No_Elaboration_Check on function/procedure calls, to properly
7506 suppress checks on calls in task bodies that are within a local suppress
7510 (Expand_Concatenate_Other): Use the proper integer type for the
7511 expression for the upper bound, to avoid universal_integer computations
7514 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
7516 * .cvsignore: Delete.
7518 2003-11-21 Andreas Schwab <schwab@suse.de>
7520 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
7522 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
7524 * 5wsystem.ads: Enable zero cost exception.
7526 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
7528 * 5ztiitho.adb: Remove an unreferenced variable.
7530 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
7532 * adaint.c: For FreeBSD, use mkstemp.
7534 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
7536 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
7538 2003-11-21 Robert Dewar <dewar@gnat.com>
7540 * bld.adb: Remove useless USE of gnatvsn
7542 * gnatchop.adb: Minor reformatting
7543 Clean up version handling to be more consistent
7545 * gnatxref.adb: Minor reformatting
7547 * gprcmd.adb: Minor reformatting
7548 Fix output of copyright to be more consistent with other tools
7550 2003-11-21 Vincent Celier <celier@gnat.com>
7552 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
7554 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
7556 * atree.adb (Initialize): Add initializations for global variables
7557 used in New_Copy_Tree.
7559 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
7560 Internal_Source_File as the actual).
7561 Put the set of statements creating Any_Character before the set of
7562 statements creating Any_Array to have Any_Character fully initialized
7563 when it is used in creating Any_Array.
7565 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
7566 not call Scan in case if the actual is Internal_Source_File
7567 Add 2003 to copyright note.
7569 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
7570 processing Internal_Source_File.
7572 * types.ads: Add the constant Internal_Source_File representing the
7573 source buffer for artificial source-code-like strings created within
7574 the compiler (the definition of Source_File_Index is changed).
7576 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
7578 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
7579 56system.ads: New file, FreeBSD version.
7581 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
7583 * Make-lang.in (ada.extraclean): Delete.
7585 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
7587 * gnatmem.adb: Clean up verbose output.
7589 * gprcmd.adb: Change copyright to FSF.
7591 2003-11-19 Vincent Celier <celier@gnat.com>
7593 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
7594 and Version (ignored).
7596 * symbols.ads: (Policy): New type
7597 (Initialize): New parameter Reference, Symbol_Policy and
7599 Remove parameter Force.
7602 * snames.ads, snames.adbadb: New standard names
7603 Library_Reference_Symbol_File and Library_Symbol_Policy
7606 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
7610 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
7612 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
7614 * prj.adb: (Project_Empty): New component Symbol_Data
7616 * prj.ads: (Policy, Symbol_Record): New types
7617 (Project_Data): New component Symbol_Data
7620 New attributes Library_Symbol_File, Library_Symbol_Policy and
7621 Library_Reference_Symbol_File.
7624 (Ada_Check): When project is a Stand-Alone library project, process
7625 attribute Library_Symbol_File, Library_Symbol_Policy and
7626 Library_Reference_Symbol_File.
7628 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
7629 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
7630 5sml-tgt.adb (Build_Dynamic_Library): New parameter
7631 Symbol_Data (ignored).
7633 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
7634 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
7635 functions Option_File_Name and Version_String. Set new options of
7636 gnatsym related to symbol file, symbol policy and reference symbol
7640 Extensive modifications to take into account the reference symbol file,
7641 the symbol policy, the library version and to put in the symbol file the
7642 minor and major IDs.
7644 * bld.adb (Process_Declarative_Items): Put second argument of
7645 gprcmd to_absolute between single quotes, to avoid problems with
7648 * bld-io.adb: Update Copyright notice.
7649 (Flush): Remove last character of a line, if it is a back slash, to
7650 avoid make problems.
7653 Implement new scheme with reference symbol file and symbol policy.
7655 * g-os_lib.ads: (Is_Directory): Clarify comment
7657 2003-11-19 Robert Dewar <dewar@gnat.com>
7659 * atree.adb: Move New_Copy_Tree global variables to head of package
7661 * errout.adb: Minor reformatting
7663 2003-11-19 Javier Miranda <miranda@gnat.com>
7665 * sem_ch4.adb: (Diagnose_Call): Improve error message.
7666 Add reference to Ada0Y (AI-50217)
7668 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
7669 sem_util.adb: Add reference to AI-50217
7671 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
7673 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
7675 * sem_aggr.adb: Complete documentation of AI-287 changes
7677 * par-ch4.adb: Document previous changes.
7679 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
7680 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
7683 * exp_aggr.adb: Add references to AI-287 in previous changes
7685 2003-11-19 Ed Schonberg <schonberg@gnat.com>
7688 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
7689 in the rewriting is the result of an inlined call.
7691 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
7692 parameter is a type conversion, use original node to construct the
7693 post-call assignment, because expression may have been rewritten, e.g.
7694 if it is a packed array.
7697 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
7698 body, just as it is in an instance.
7699 Categorization routines
7701 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
7702 Instantiate_Object): Set proper sloc reference for message on missing
7705 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
7707 * Makefile.in: Add FreeBSD libgnat pairs.
7709 * usage.adb: Fix typo in usage message.
7711 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
7713 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
7714 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
7716 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
7718 * s-thread.adb: This file is now a dummy implementation of
7721 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
7723 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
7725 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
7727 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
7728 instanciation references in the parent type description.
7730 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7732 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
7734 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
7735 TYPE_PRECISION directly from esize.
7737 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
7740 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
7742 * init.c: Initialization routines for FreeBSD
7744 * link.c: Link info for FreeBSD
7746 * sysdep.c: Add the case of FreeBSD
7748 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
7750 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
7751 already called in System.Threads.
7753 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
7754 environment task, as it has been moved to System.Threads.Initialization.
7756 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
7758 * adaint.c (__gnatlib_install_locks): Only reference
7759 __gnat_install_locks on VMS, since other platforms can avoid using
7760 --enable-threads=gnat
7762 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7764 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
7766 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
7767 TYPE_PACKED_ARRAY_TYPE_P.
7768 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
7770 Part of PR ada/12806
7771 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
7772 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
7774 2003-11-17 Vincent Celier <celier@gnat.com>
7776 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
7778 Do not set exit status to Failure when Warning is True.
7779 (Gnatchop): Make errors "no compilation units found" and
7780 "no source files written" warnings only.
7782 * make.adb (Gnatmake): When using a project file, set
7783 Look_In_Primary_Dir to False.
7784 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
7785 and Local_Configuration_Pragmas in the project where they are declared
7786 not an extending project which might have inherited them.
7788 * osint.adb (Locate_File): If Name is already an absolute path, do not
7789 look for a directory.
7791 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
7792 -gnats (Check_Syntax) is used, issue only a warning, not an error.
7794 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
7795 in objects of type Variable_Value.
7797 * prj.ads: (Variable_Value): New component Project
7799 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
7800 is in a project extended by Project.
7802 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
7803 Project of Variable_Values to this new parameter value.
7804 (Expression): Set component Project of Variable_Values.
7805 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
7806 Set the component Project in array elements.
7808 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
7810 * errout.adb: (Initialize): Add initialization for error nodes.
7812 * sem_ch12.adb (Initialize): Add missing initializations for
7813 Exchanged_Views and Hidden_Entities.
7815 2003-11-17 Ed Schonberg <schonberg@gnat.com>
7817 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
7818 already instantiated tree for use in subsequent inlining.
7819 (Analyze_Associations, Instantiate_Formal_Subprogram,
7820 Instantiate_Object): improve error message for mismatch in
7823 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
7824 instantiations of subprograms declared in instances.
7826 2003-11-17 Javier Miranda <miranda@gnat.com>
7828 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
7829 executed only under the Extensions_Allowed flag.
7831 2003-11-17 Robert Dewar <dewar@gnat.com>
7833 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
7835 (Address_Image): Fix bug of returning 0x instead of 0x0
7836 Minor reformatting (function specs).
7838 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
7839 (missed case of 33-63)
7841 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
7843 * s-thread.adb: Add comments for pragma Restriction
7845 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
7846 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
7848 2003-11-17 Ed Falis <falis@gnat.com>
7850 * s-thread.adb: Added No_Tasking restriction for this implementation.
7852 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
7854 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
7855 instanciation references in the parent type description.
7857 2003-11-17 GNAT Script <nobody@gnat.com>
7859 * Make-lang.in: Makefile automatically updated
7861 2003-11-16 Jason Merrill <jason@redhat.com>
7863 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
7864 and TAGS files that include them for each front end.
7866 2003-11-14 Andreas Jaeger <aj@suse.de>
7868 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
7869 is the canonical version.
7870 * misc.c (gnat_handle_option): Likewise.
7872 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
7874 * 5nsystem.ads: New file for x86_64-linux-gnu.
7876 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
7878 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
7880 * comperr.adb: Fix logic in previous change.
7882 2003-11-13 Vincent Celier <celier@gnat.com>
7884 * 5bml-tgt.adb (Build_Dynamic_Library): Use
7885 Osint.Include_Dir_Default_Prefix instead of
7886 Sdefault.Include_Dir_Default_Name.
7888 * gnatlbr.adb: Update Copyright notice
7889 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
7890 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
7891 instead of Sdefault.Object_Dir_Default_Name
7894 (Process_Binder_File): Never suppress the option following -Xlinker
7897 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
7898 Sdefault.Object_Dir_Default_Name.
7900 * osint.ads, osint.adb:
7901 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
7904 * vms_conv.ads: Minor reformating
7905 Remove GNAT STANDARD and GNAT PSTA
7908 Allow GNAT MAKE to have several files on the command line.
7909 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
7910 Sdefault.Object_Dir_Default_Name.
7912 Remove data for GNAT STANDARD
7915 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
7916 Remove data for GNAT STANDARD
7917 Remove options and documentation for -gnatwb/-gnatwB: these warning
7918 options no longer exist.
7920 2003-11-13 Ed Falis <falis@gnat.com>
7922 * 5zthrini.adb: (Init_RTS): Made visible
7925 (Register): Removed unnecessary call to taskVarGet that checked whether
7926 an ATSD was already set as a task var for the argument thread.
7929 Updated comment to reflect that this is a VxWorks version
7930 Added context clause for System.Threads.Initialization
7931 Added call to System.Threads.Initialization.Init_RTS
7933 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
7936 (Init_RTS): New procedure, for the initialization of the run-time lib.
7939 Remove dependancy on System.Init, so that this file can be used in the
7940 AE653 sequential run-time lib.
7942 2003-11-13 Robert Dewar <dewar@gnat.com>
7944 * bindgen.adb: Minor reformatting
7946 2003-11-13 Ed Schonberg <schonberg@gnat.com>
7949 (Apply_Discriminant_Check): Do no apply check if target type is derived
7950 from source type with no applicable constraint.
7953 (Ensure_System_Dependency): Do not apply the style checks that may have
7954 been specified for the main unit.
7957 (Find_Selected_Component): Further improvement in error message, with
7961 (Resolve): Handle properly the case of an illegal overloaded protected
7964 2003-11-13 Javier Miranda <miranda@gnat.com>
7967 (Has_Default_Init_Comps): New function to check the presence of
7968 default initialization in an aggregate.
7969 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
7970 extension aggregate of a limited record. In addition, a new formal
7971 was added to do not initialize the record controller (if any) during
7972 this recursive expansion of ancestors.
7973 (Init_Controller): Add support for limited record components.
7974 (Expand_Record_Aggregate): In case of default initialized components
7975 convert the aggregate into a set of assignments.
7977 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
7978 describing the new syntax.
7979 Nothing else needed to be done because this subprogram delegates part of
7980 its work to P_Precord_Or_Array_Component_Association.
7981 (P_Record_Or_Array_Component_Association): Give support to the new
7982 syntax for default initialization of components.
7985 (Resolve_Aggregate): Relax the strictness of the frontend in case of
7987 (Resolve_Record_Aggregate): Give support to default initialized
7989 (Get_Value): In case of default initialized components, duplicate
7990 the corresponding default expression (from the record type
7991 declaration). In case of default initialization in the *others*
7992 choice, do not check that all components have the same type.
7993 (Resolve_Extension_Aggregate): Give support to limited extension
7997 (Check_Initialization): Relax the strictness of the front-end in case
7998 of aggregate and extension aggregates. This test is now done in
7999 Get_Value in a per-component manner.
8001 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
8002 expression corresponds to a limited aggregate. This test is now done
8005 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
8008 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
8009 present in an N_Component_Association node
8011 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
8013 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
8014 type-conformant entry only if they are homographs.
8016 2003-11-13 GNAT Script <nobody@gnat.com>
8018 * Make-lang.in: Makefile automatically updated
8020 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8022 * adadecode.c: Use <> form of include for ctype.h.
8023 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
8025 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8027 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
8028 Works around PR middle-end/6552.
8030 2003-11-10 Ed Falis <falis@gnat.com>
8032 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
8034 * 5zinit.adb: (Install_Handler): Moved back to spec
8035 (Install_Signal_Handlers): Deleted
8037 * 5zthrini.adb: Added context clause for System.Storage_Elements
8038 (Register): Only handles creation of taskVar; initialization moved to
8040 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
8041 Added declaration of environment task secondary stack and
8044 * s-thread.adb: Implement bodies for thread body processing
8047 Added comment identifying supported targets for pragma Thread_Body.
8049 2003-11-10 Pascal Obry <obry@gnat.com>
8051 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
8055 (Open): Properly check for string length before copying into the buffer.
8056 Raises Name_Error if buffer is too small. Note that this was a potential
8059 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
8061 * bindgen.adb, comperr.adb: Code clean ups.
8062 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
8064 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
8066 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
8068 2003-11-10 Vincent Celier <celier@gnat.com>
8071 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
8074 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
8076 * prj.adb: (Project_Empty): Add new boolean component Virtual
8078 * prj.ads: (Virtual_Prefix): New constant string
8079 (Project_Data): New boolean component Virtual
8081 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
8082 a library project is extended by a virtual extending project.
8085 Modifications throughout to implement extending-all project, including:
8086 (Virtual_Hash, Processed_Hash): New hash tables
8087 (Create_Virtual_Extending_Project): New procedure
8088 (Look_For_Virtual_Projects_For): New procedure
8091 (Process): After checking the projects, if main project is an
8092 extending-all project, set the object directory of all virtual extending
8093 project to the object directory of the main project.
8094 Adjust error message when a virtual extending project has the same
8095 object directory as an project being extended.
8096 (Recursive_Process): If name starts with the virtual prefix, set Virtual
8097 to True in the project data.
8100 (Default_Project_Node): Add new boolean component Extending_All
8101 (Is_Extending_All): New function
8102 (Set_Is_Extending_All): New procedure
8104 * prj-tree.ads: (Is_Extending_All): New function
8105 (Set_Is_Extending_All): New procedure
8106 (Project_Node_Record): New boolean component Extending_All
8108 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
8111 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
8113 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
8114 "gprcmd prefix" to define it.
8116 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
8118 * einfo.ads: Fix a typo and remove an extraneous word in comments.
8121 (Create_Dummy_Package_Unit): Set the scope of the entity for the
8122 created dummy package to Standard_Standard, not to itself, to
8123 defend other parts of the front-end against encoutering a cycle in
8127 (Analyze_With_Clause): When setting the entities for the successive
8128 N_Expanded_Names that constitute the name of a child unit, do not
8129 attempt to go further than Standard_Standard in the chain of scopes.
8130 This case arises from the placeholder units created by
8131 Create_Dummy_Package_Unit in the case of a with_clause for a
8132 nonexistent child unit.
8134 2003-11-10 Ed Schonberg <schonberg@gnat.com>
8137 (Expand_Thread_Body): Place subprogram on scope stack, so that new
8138 declarations are given the proper scope.
8141 (Check_Expr_Constants): Reject an expression that contains a constant
8142 created during expansion, and that appears after the object to which
8143 the address clause applies.
8145 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
8146 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
8147 that uses 'Range of a function call with controlled components, so
8148 that the function result can be finalized before starting the loop.
8151 (Find_Selected_Component): Improve error message when prefix is
8152 an implicit dereference of an incomplete type.
8154 2003-11-10 Robert Dewar <dewar@gnat.com>
8156 * opt.ads: New Print_Standard flag for -gnatS switch
8158 * sem_ch13.adb: Remove some additional checks for unaligned arrays
8160 * cstand.adb (Create_Standard): Print out package standard if -gnatS
8163 * debug.adb: Update doc for -gnatds to discuss relationship with new
8166 * sinfo.adb: Add new field Entity_Or_Associated_Node
8168 * sinfo.ads: Add new field Entity_Or_Associated_Node
8169 Update documentation for Associated_Node and Entity fields to clarify
8170 relationship and usage.
8173 (Write_Id): Properly process Associated_Node field in generic template
8176 Recognize new -gnatS switch for printing package Standard
8177 This replaces gnatpsta
8180 Add line for new -gnatS switch for printing package Standard
8181 This replaces gnatpsta
8183 2003-11-10 Andreas Jaeger <aj@suse.de>
8185 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
8188 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
8190 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
8193 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
8195 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
8198 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
8200 * sysdep.c: Add handling of cygwin.
8202 2003-11-10 GNAT Script <nobody@gnat.com>
8204 * Make-lang.in: Makefile automatically updated
8206 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
8209 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
8210 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
8211 Replace GNAT_ROOT by GCC_ROOT.
8213 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
8215 2003-11-06 Zack Weinberg <zack@codesourcery.com>
8217 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
8218 and update for changed meaning of GET_MODE_BITSIZE.
8220 2003-11-04 Doug Rupp <rupp@gnat.com>
8222 * sysdep.c: Problem discovered during IA64 VMS port.
8223 [VMS] #include <unixio.h> to get proper prototypes.
8226 Issues discovered/problems fixed during IA64 VMS port.
8227 [VMS] #define _POSIX_EXIT for proper semantics.
8228 [VMS] #include <unixio.h> for proper prototypes.
8229 [VMS] (fork): #define IA64 version.
8230 (__gnat_os_exit): Remove unnecessary VMS specific code.
8232 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8234 Part of PR ada/12806
8236 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
8240 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
8243 * targtyps.c, decl.c, misc.c,
8244 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
8245 routines to work around change in FP sizing semantics in GCC.
8248 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
8250 * gigi.h: (enumerate_modes): New function.
8252 * Make-lang.in: (ada/misc.o): Add real.h.
8254 * misc.c: (enumerate_modes): New function.
8256 2003-11-04 Robert Dewar <dewar@gnat.com>
8258 * 3vtrasym.adb: Minor reformatting
8259 Use terminology encoded/decoded name, rather than C++ specific notion
8260 of mangling (this is the terminology used throughout GNAT).
8262 * einfo.h: Regenerated
8264 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
8267 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
8269 * par-prag.adb: Add dummy entry for Thread_Body pragma
8272 Add entries for System.Threads entities for thread body processing
8275 (Analyze_Pragma, Access attributes): Check these are not applied to a
8276 thread body, since this is not permitted
8278 * sem_prag.adb: Add processing for Thread_Body pragma.
8282 (Resolve_Call): Check for incorrect attempt to call a thread body
8283 procedure with a direct call.
8285 * snames.ads, snames.adb: Add entry for Thread_Body pragma
8286 Add names associated with thread body expansion
8288 * snames.h: Add entry for Thread_Body pragma
8290 * s-thread.adb: Add entries for thread body processing
8291 These are dummy bodies so far
8293 * s-thread.ads: Add documentation on thread body handling.
8294 Add entries for thread body processing.
8296 2003-11-04 Javier Miranda <miranda@gnat.com>
8299 (Build_Limited_Views): Return after posting an error in case of limited
8300 with_clause on subprograms, generics, instances or generic renamings
8301 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
8302 on subprograms, generics, instances or generic renamings
8304 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
8306 * raise.c (setup_to_install): Correct mistake in last revision; two
8307 arguments out of order.
8309 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
8310 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
8311 notice, missed in previous change.
8312 Remove trailing blanks and other style errors introduced in previous
8315 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
8317 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
8318 rid of the wrapper for a LJM type, ensuring we don't do that if the
8319 field is addressable. This avoids potential low level type view
8320 mismatches later on, for instance in a by-reference argument passing
8323 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8325 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
8326 aligned at byte boundary.
8328 2003-11-04 Joel Brobecker <brobecker@gnat.com>
8330 * decl.c (components_to_record): Do not delete the empty variants from
8331 the end of the union type.
8333 2003-11-04 Ed Schonberg <schonberg@gnat.com>
8335 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
8336 operation for a derived type, an explicit declaration may use a local
8339 2003-11-04 Vincent Celier <celier@gnat.com>
8341 * make.adb (Gnatmake): Allow main sources on the command line with a
8342 library project when it is only for compilation (no binding or
8345 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8347 * Makefile.in: Remove many duplicate variables.
8349 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
8351 * Make-lang.in (dvi): Move targets to $(docobjdir).
8352 (gnat_ug_vms.dvi): Simplify rule and adjust target.
8353 (gnat_ug_wnt.dvi): Likewise.
8354 (gnat_ug_unx.dvi): Likewise.
8355 (gnat_ug_vxw.dvi): Likewise.
8356 (gnat_rm.dvi): Likewise.
8357 (gnat-style.dvi): Likewise.
8359 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
8361 * gigi.h: Missed commit from update for C90.
8363 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
8365 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
8367 2003-10-31 Andreas Schwab <schwab@suse.de>
8369 * raise.c (get_action_description_for): Fix typo in last change.
8371 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
8374 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
8375 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
8377 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
8379 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
8380 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
8381 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
8382 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
8383 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
8385 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
8388 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
8389 numbers when symbol name is too long.
8391 2003-10-30 Ed Falis <falis@gnat.com>
8393 * g-signal.ads, g-signal.adb: New files
8395 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
8397 * Makefile.rtl: Introduce GNAT.Signals
8399 2003-10-30 Robert Dewar <dewar@gnat.com>
8401 * freeze.adb: Minor reformatting
8403 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
8405 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
8406 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
8407 New handling of Id_Check parameter to improve recognition of keywords
8408 used as identifiers.
8409 Update copyright notice to include 2003
8411 2003-10-29 Robert Dewar <dewar@gnat.com>
8413 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
8414 sem_ch10.adb: Minor reformatting
8416 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
8417 (Expand_Assign_Record): Test right hand side for bit unaligned as well
8419 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
8421 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
8422 Support for TBK$SYMBOLIZE-based symbolic traceback.
8424 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
8427 Revert previous change, that did not work well when pragma No_Run_Time
8428 was used in conjunction with a run-time other than ZFP.
8430 2003-10-29 Vincent Celier <celier@gnat.com>
8433 (Gnatmake): When there are no Ada mains in attribute Main, disable the
8434 bind and link steps only is switch -z is not used.
8436 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
8438 * Makefile.generic: Remove duplicated setting of CC.
8440 * Makefile.prolog: Set CC to gcc by default, to override make's
8443 * einfo.h: Regenerated.
8445 2003-10-29 Ed Schonberg <schonberg@gnat.com>
8447 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
8448 current body, after compiling subunit.
8450 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
8451 when in deleted code, because gigi needs properly ordered freeze
8452 actions to annotate types.
8454 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
8455 prevent the premature freezing of record type that contains
8456 subcomponents with a private type that does not yet have a completion.
8458 2003-10-29 Javier Miranda <miranda@gnat.com>
8461 (Analyze_Package_Instantiation): Check that instances can not be used in
8462 limited with_clauses.
8465 (Analyze_Package_Renaming): Check that limited withed packages cannot
8466 be renamed. Improve text on error messages related to limited
8469 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
8471 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
8472 Update copyright notice.
8474 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
8475 (Install_Limited_Context_Clauses): New subprogram that isolates all the
8476 checks required for limited context_clauses and installs the limited
8478 (Install_Limited_Withed_Unit): Complete its documentation.
8479 (Analyze_Context): Check that limited with_clauses are only allowed in
8481 (Install_Context): Call Install_Limited_Context_Clauses after the
8482 parents have been installed.
8483 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
8484 package as 'From_With_Type'; this mark indicates that the limited view
8485 is installed. Used to check bad usages of limited with_clauses.
8486 (Build_Limited_Views): Do not add shadow entities to the scope's list
8487 of entities. Do not add real entities to the Non_Limited_Views chain.
8488 Improve error notification.
8489 (Remove_Context_Clauses): Remove context clauses in two phases:
8490 limited views first and regular views later (to maintain the
8492 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
8493 its visible entities.
8495 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
8497 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
8498 with any type that Is_Fixed_Point_Type.
8500 * sinfo.ads: Fix documentation for Associated_Node attribute.
8502 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
8504 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
8505 both '-gnatc' and '-gnatt' are specified.
8507 * atree.adb (Initialize): Add initialization for Node_Count (set to
8510 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8512 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
8513 do not consider as Pure.
8515 Part of implementation of function-at-a-time:
8517 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
8518 (tree_transform): Add new argument to build_component_ref.
8519 (tree_transform, case N_Assignment_Statement): Make and return an
8521 (tree_transform): If result IS_STMT, set flags and return it.
8522 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
8524 * utils2.c (build_simple_component_ref, build_component_ref): Add new
8526 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
8527 (build_allocator): Likewise.
8529 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
8530 Add new arg to build_component_ref.
8531 (maybe_unconstrained_array, unchecked_convert): Likewise.
8533 * ada-tree.def (EXPR_STMT): New code.
8535 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
8537 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
8538 build_component_ref calls.
8540 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
8542 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
8543 (build_component_ref): Add new argument, NO_FOLD_P.
8545 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
8547 * Makefile.generic: Add missing substitution on object_deps handling.
8550 * Make-lang.in (check-ada): Enable ACATS test suite.
8552 2003-10-27 Robert Dewar <dewar@gnat.com>
8555 (Freeze_Array_Type): We do not need an initialization routine for types
8556 derived from String or Wide_String. They should be treated the same
8557 as String and Wide_String themselves. This caused problems with the
8558 use of Initialize_Scalars.
8561 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
8562 composites. This allows use of component clauses that are not byte
8566 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
8567 is an attempt to pack an array of atomic objects.
8569 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
8571 2003-10-27 Pascal Obry <obry@gnat.com>
8574 (Basename): Check for drive letters in a pathname only on DOS based OS.
8576 2003-10-27 Vincent Celier <celier@gnat.com>
8579 (Gnatmake): When unable to change dir to the object dir, display the
8580 content of the parent dir of the obj dir, to try to understand why this
8583 2003-10-27 GNAT Script <nobody@gnat.com>
8585 * Make-lang.in: Makefile automatically updated
8587 2003-10-27 Ed Schonberg <schonberg@gnat.com>
8590 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
8591 should not be done in Save/Restore_Scope_Stack, because it is performed
8595 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
8596 whether use clauses should be removed/restored.
8599 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
8600 whether use clauses should be removed/restored.
8602 2003-10-26 Andreas Jaeger <aj@suse.de>
8604 * Makefile.in: Remove duplicated lines.
8606 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
8608 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
8609 minimize the differences with ACT tree.
8611 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
8612 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
8613 Gnatvsn.Gnat_Static_Version_String to reduce differences between
8616 2003-10-24 Pascal Obry <obry@gnat.com>
8618 * adadecode.c (ostrcpy): New function.
8619 (__gnat_decode): Use ostrcpy of strcpy.
8620 (has_prefix): Set first parameter a const.
8621 (has_suffix): Set first parameter a const.
8622 Update copyright notice. Fix source name in header.
8623 Removes a trailing space.
8626 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
8629 Remove the test against being in No_Run_Time_Mode before generating a
8630 call to Register_Tag. It is redundant with the test against the
8631 availability of the function Register_Tag.
8633 2003-10-24 Vincent Celier <celier@gnat.com>
8635 * g-catiio.adb: (Month_Name): Correct spelling of February
8637 * make.adb: (Mains): New package
8638 (Initialize): Call Mains.Delete
8639 (Gnatmake): Check that each main on the command line is a source of a
8640 project file and, if there are several mains, each of them is a source
8641 of the same project file.
8642 (Gnatmake): When a foreign language is specified in attribute Languages,
8643 no main is specified on the command line and attribute Mains is not
8644 empty, only build the Ada main. If there is no Ada main, just compile
8645 the Ada sources and their closure.
8646 (Gnatmake): If a main is specified on the command line with directory
8647 information, check that the source exists and, if it does, that the path
8648 is the actual path of a source of a project.
8651 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
8652 Full_Path is True, return the full path instead of the simple file name.
8653 (Project_Of): New function
8656 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
8658 (Project_Of): New function
8660 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
8663 Ensure objects of main project are always checked and rebuilt if needed.
8664 Set CC to gcc by default.
8665 Prepare new handling of link by creating a global archive (not activated
8668 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
8669 stringt.h: Update copyright notice. Remove trailing blanks.
8670 Fix source name in header.
8672 2003-10-24 Robert Dewar <dewar@gnat.com>
8674 * sem_ch12.adb: Minor reformatting
8677 Minor reformatting (including new function return style throughout)
8680 Minor reformatting (including new function return style throughout)
8682 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
8684 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
8685 stringt.h: Update copyright notice. Remove trailing blanks.
8686 Fix source name in header.
8688 2003-10-24 GNAT Script <nobody@gnat.com>
8690 * Make-lang.in: Makefile automatically updated
8692 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
8694 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
8695 stringt.h: Convert to ISO C90 declarations and definitions.
8697 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
8700 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
8701 External_Tag attribute definition clauses.
8703 2003-10-23 Ed Schonberg <schonberg@gnat.com>
8706 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
8707 child unit, generate a fully qualified name to avoid spurious errors
8708 when the context contains renamings of different child units with
8709 the same simple name.
8711 * exp_dbug.ads: Add documentation on name qualification for renamings
8714 2003-10-23 Robert Dewar <dewar@gnat.com>
8716 * g-regpat.ads, g-regpat.adb: Minor reformatting
8718 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
8720 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
8722 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8724 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
8727 * urealp.h: (Machine): Update to proper definition.
8729 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
8731 * init.c, adaint.c: Minor reformatting.
8733 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
8735 * adaint.c (w32_epoch_offset): Define static const at file level.
8736 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
8737 rather than t_create, t_access in call to GetFileTime. Use union
8738 to convert between FILETIME and unsigned long long.
8739 (__gnat_file_time_name): Test for invalid file handle.
8740 (__gnat_set_filetime_name): Support win32 targets using
8743 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
8745 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
8747 * ctrl_c.c (__gnat_int_handler): Remove declaration.
8749 * decl.c (creat_concat_name): Const-ify prefix.
8751 * adaint.c: Include ctype.h if __MINGW32__.
8752 (__gnat_readlink): Mark arguments as possibly unused.
8753 (__gnat_symlink): Likewise.
8754 (__gnat_is_symbolic_link): Likewise.
8755 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
8757 (__gnat_file_time_name): Don't declare struct stat statbuf when
8759 (__gnat_is_absolute_path): Add parenthesis around condition of
8760 'if' statement to avoid warning.
8761 (__gnat_plist_init): Specify void as parameter.
8762 (plist_enter): Likewise.
8763 (plist_leave): Likewise.
8764 (remove_handle): Make static. Initialize prev.
8766 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
8768 * Makefile.in: Disable build of gnatpsta. PR ada/10110.
8769 * cstreams.c (__gnat_full_name): Minor improvements and clean up
8772 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8774 * tracebak.c (MAX): Avoid redefinition warning.
8776 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
8777 Change msg to const char *.
8778 (__gnat_install_handler): Remove ss, unused.
8779 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
8781 * cstreams.c (__gnat_full_name): Declare p only when used.
8782 (__gnat_full_name) [sgi] Return buffer.
8784 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
8786 * mingw32.h: New file.
8787 * gnat_wrapper.adb: New file.
8789 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
8791 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
8792 string match a pre compiled regular expression (the corresponding
8793 version of the function working on a raw regular expression)
8794 Fix typos in various comments
8795 Update copyright notice in spec
8797 2003-10-21 Gary Dismukes <dismukes@gnat.com>
8800 (Component_Needs_Simple_Initialization): Return False when the type is a
8801 packed bit array. Revise spec comments to document this case.
8804 (Expand_Pragma_Import): Set any expression on the imported object to
8805 empty to avoid initializing imported objects (in particular this
8806 covers the case of zero-initialization of bit arrays).
8807 Update copyright notice.
8809 2003-10-21 Ed Schonberg <schonberg@gnat.com>
8812 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
8813 a subunit is missing.
8814 (Instantiate_Subprogram_Body): If body of function is missing, set type
8815 of return expression explicitly in dummy body, to prevent cascaded
8816 errors when a subunit is missing.
8820 (Access_Subprogram_Declaration): Verify that return type is valid.
8824 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
8829 (Corresponding_Discriminant): If the scope of the discriminant is a
8830 private type without discriminant, use its full view.
8833 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
8835 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
8836 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
8837 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
8838 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
8839 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
8840 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
8841 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
8842 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
8843 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
8844 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
8845 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
8846 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
8847 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
8848 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
8849 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
8850 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
8851 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
8852 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
8853 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
8854 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
8855 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
8856 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
8857 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
8858 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
8859 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
8860 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
8861 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
8862 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
8863 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
8864 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
8865 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
8866 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
8867 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
8868 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
8869 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
8870 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
8871 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
8872 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
8873 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
8874 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
8875 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
8876 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
8877 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
8878 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
8879 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
8880 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
8881 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
8882 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
8883 vms_conv.ads, vms_conv.adb, vms_data.ads,
8884 vxaddr2line.adb: Files added. Merge with ACT tree.
8886 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
8887 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
8888 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
8889 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
8890 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
8891 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
8892 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
8893 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
8894 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
8895 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
8897 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
8898 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
8899 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
8900 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
8901 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
8902 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
8903 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
8904 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
8905 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
8906 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
8907 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
8908 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
8909 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
8910 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
8911 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
8912 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
8913 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
8914 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
8915 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
8916 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
8917 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
8918 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
8919 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
8920 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
8921 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
8922 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
8923 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
8924 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
8925 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
8926 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
8927 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
8928 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
8929 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
8930 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
8931 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
8932 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
8933 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
8934 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
8935 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
8936 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
8937 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
8938 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
8939 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
8940 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
8941 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
8942 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
8943 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
8944 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
8945 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
8946 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
8947 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
8948 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
8949 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
8950 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
8951 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
8952 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
8953 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
8954 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
8955 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
8956 checks.adb, checks.ads, cio.c, comperr.adb,
8957 comperr.ads, csets.adb, cstand.adb, cstreams.c,
8958 debug_a.adb, debug_a.ads, debug.adb, decl.c,
8959 einfo.adb, einfo.ads, errout.adb, errout.ads,
8960 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
8961 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
8962 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
8963 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
8964 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
8965 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
8966 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
8967 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
8968 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
8969 fe.h, fmap.adb, fmap.ads, fname.adb,
8970 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
8971 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
8972 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
8973 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
8974 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
8975 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
8976 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
8977 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
8978 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
8979 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
8980 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
8981 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
8982 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
8983 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
8984 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
8985 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
8986 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
8987 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
8988 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
8989 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
8990 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
8991 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
8992 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
8993 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
8994 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
8995 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
8996 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
8997 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
8998 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
8999 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
9000 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
9001 layout.adb, lib.adb, lib.ads, lib-list.adb,
9002 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
9003 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
9004 link.c, live.adb, make.adb, make.ads,
9005 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
9006 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
9007 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
9008 misc.c, mkdir.c, mlib.adb, mlib.ads,
9009 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
9010 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
9011 namet.adb, namet.ads, namet.h, nlists.ads,
9012 nlists.h, nmake.adt, opt.adb, opt.ads,
9013 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
9014 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
9015 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
9016 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
9017 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
9018 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
9019 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
9020 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
9021 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
9022 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
9023 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
9024 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
9025 prj-util.adb, prj-util.ads, raise.c, raise.h,
9026 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
9027 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
9028 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
9029 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
9030 scans.ads, scn.adb, scn.ads, s-crc32.adb,
9031 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
9032 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
9033 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
9034 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
9035 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
9036 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
9037 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
9038 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
9039 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
9040 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
9041 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
9042 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
9043 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
9044 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
9045 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
9046 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
9047 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
9048 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
9049 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
9050 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
9051 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
9052 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
9053 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
9054 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
9055 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
9056 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
9057 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
9058 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
9059 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
9060 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
9061 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
9062 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
9063 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
9064 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
9065 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
9066 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
9067 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
9068 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
9069 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
9070 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
9071 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
9072 stringt.adb, stringt.ads, stringt.h, style.ads,
9073 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
9074 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
9075 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
9076 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
9077 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
9078 table.adb, table.ads, targparm.adb, targparm.ads,
9079 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
9080 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
9081 ttypes.ads, types.ads, types.h, uintp.adb,
9082 uintp.ads, uintp.h, uname.adb, urealp.adb,
9083 urealp.ads, urealp.h, usage.adb, utils2.c,
9084 utils.c, validsw.adb, validsw.ads, widechar.adb,
9085 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
9086 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
9087 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
9088 gnatvsn.ads: Merge with ACT tree.
9090 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
9092 2003-10-20 Mark Mitchell <mark@codesourcery.com>
9094 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
9095 (gnat_ug_vmx.info): Likewise.
9096 (gnat_ug_vxw.info): Likewise.
9097 (gnat_ug_wnt.info): Likewise.
9098 (gnat_rm.info): Likewise.
9099 (gnat-style.info): Likewise.
9101 * Make-lang.in (ada.install-info): Remove target.
9103 (install-info): Likewise.
9104 (gnat_ug_unx.info): Simplify rule.
9105 (gnat_ug_vmx.info): Likewise.
9106 (gnat_ug_vxw.info): Likewise.
9107 (gnat_ug_wnt.info): Likewise.
9108 (gnat_rm.info): Likewise.
9109 (gnat-style.info): Likewise.
9111 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
9113 * Make-lang.in: Replace uses of $(target_alias) with
9114 $(target_noncanonical).
9115 * ada/Makefile.in: Remove unused mention of $(target_alias).
9117 2003-10-06 Mark Mitchell <mark@codesourcery.com>
9119 * Make-lang.in (ada.info): Replace with ...
9121 (ada.dvi): Replace with ...
9124 2003-09-29 Zack Weinberg <zack@codesourcery.com>
9126 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
9127 initialize dconstp5 and dconstmp5.
9129 2003-09-28 Richard Henderson <rth@redhat.com>
9131 * trans.c (tree_transform): Update call to expand_asm_operands.
9133 2003-09-21 Richard Henderson <rth@redhat.com>
9135 * trans.c, utils.c: Revert.
9137 2003-09-21 Richard Henderson <rth@redhat.com>
9139 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
9142 2003-09-04 Michael Matz <matz@suse.de>
9144 * misc.c: Include "target.h".
9145 * Make-lang.in (misc.o): Add dependency on target.h.
9147 2003-09-03 DJ Delorie <dj@redhat.com>
9149 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
9152 2003-08-30 Zack Weinberg <zack@codesourcery.com>
9154 * Makefile.in: Update substitutions to match changes to
9155 configure. Use include directives instead of @-insertions
9156 to read in host and target fragments. Add a rule to
9157 regenerate ada/Makefile.
9159 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
9161 * lang-options.h: Remove.
9162 * lang.opt: Add help text.
9164 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
9166 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
9169 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
9171 * misc.c (gnat_handle_option): Don't handle filenames.
9173 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
9175 * Make-lang.in: Replace PWD with PWD_COMMAND.
9176 * Makefile.adalib: Likewise.
9177 * Makefile.in: Likewise.
9179 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
9181 * misc.c (gnat_argv): Revert last change.
9182 (gnat_handle_option, gnat_init_options): Copy arguments.
9184 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
9186 * misc.c (gnat_argv): Make const.
9188 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
9190 * misc.c (save_argc, save_argv): Keep non-static!
9192 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
9194 * misc.c (save_argc, save_argv): Make static.
9195 (gnat_init_options): New prototype.
9196 (gnat_init_options): Update.
9198 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
9200 * gnat_ug.texi: Remove unlikely characters from @vars.
9201 * gnat_ug_vms.texi: Regenerate.
9203 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
9205 * misc.c (record_code_position): Adjust emit_note call.
9207 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
9209 * misc.c (gnat_handle_option): Don't check for missing arguments.
9211 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
9213 * utils.c (end_subprog_body): Adjust expand_function_end call.
9215 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
9217 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
9220 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
9222 * lang.opt: Declare Ada.
9223 * misc.c (gnat_init_options): Update.
9225 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
9227 * utils.c (begin_subprog_body): Adjust init_function_start call.
9229 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
9231 * Make-lang.in: Update to use options.c and options.h.
9232 * misc.c: Include options.h not aoptions.h.
9233 (gnat_handle_option): Abort on unrecognized switch.
9234 (gnat_init_options): Request Ada switches.
9236 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
9238 * lang.opt: Add -Wall.
9239 * misc.c (gnat_handle_option): Handle it.
9241 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
9243 * misc.c (gnat_handle_option): Fix warnings.
9245 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
9247 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
9249 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
9251 * Make-lang.in: Update to handle command-line options.
9252 * lang.opt: New file.
9253 * misc.c: Include aoptions.h.
9254 (cl_options_count, cl_options): Remove.
9255 (gnat_handle_option): New.
9256 (gnat_decode_option): Remove.
9257 (LANG_HOOKS_DECODE_OPTION): Remove.
9258 (LANG_HOOKS_HANDLE_OPTION): Override.
9260 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
9262 * init.c, misc.c, trans.c, utils.c: Remove dead code.
9264 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
9266 * Makefile.in: Replace "host_canonical" with "host" for autoconf
9269 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
9271 * Make-lang.in: Update.
9272 * misc.c: Include opts.h. Define cl_options_count and cl_options.
9274 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
9276 * misc.c (gnat_init_options): Update.
9278 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
9280 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
9281 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
9282 __attribute__ ((__unused__)).
9284 2003-06-05 Jan Hubicka <jh@suse.cz>
9286 * Make-lang.in: Add support for stageprofile and stagefeedback
9288 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
9290 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
9291 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
9293 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
9295 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
9296 Remove non-VMS directive.
9297 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
9299 (Examples of gnatls Usage): Remove VMS alternative.
9301 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
9304 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
9305 and turn ZCX_By_Default back to False since the underlying support
9306 is not quite there yet.
9308 2003-06-01 Andreas Jaeger <aj@suse.de>
9310 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
9311 and ROUND_TYPE_SIZE_UNIT.
9313 2003-05-22 Geert Bosch <bosch@gnat.com>
9315 * gnat_rm.texi : Remove reference to Ada Core Technologies.
9317 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
9319 * trans.c (tree_transform): Use location_t and input_location
9321 (build_unit_elab): Likewise.
9322 * utils.c (create_label_decl): Likewise.
9324 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
9326 * trans.c (tree_transform, build_unit_elab,
9327 set_lineno): Rename lineno to input_line.
9328 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
9329 end_subprog_body): Likewise.
9330 * utils2.c (build_call_raise): Likewise.
9332 2003-05-01 Laurent Guerby <guerby@acm.org>
9335 * 5iosinte.ads: Increase pthread_cond_t size to match recent
9336 LinuxThread and NPTL version, merge from ACT.
9338 2003-04-28 Zack Weinberg <zack@codesourcery.com>
9340 * utils.c (convert): No need to clear TREE_CST_RTL.
9342 2003-04-23 Geert Bosch <bosch@gnat.com>
9344 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
9345 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
9346 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
9347 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
9348 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
9349 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
9350 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
9351 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
9352 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
9353 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
9354 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
9355 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
9356 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
9357 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
9358 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
9359 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
9360 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
9361 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
9362 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
9363 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
9364 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
9365 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
9366 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
9367 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
9368 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
9369 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
9370 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
9371 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
9372 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
9373 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
9374 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
9375 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
9376 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
9377 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
9378 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
9379 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
9380 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
9381 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
9382 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
9383 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
9384 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
9385 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
9386 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
9387 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
9388 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
9389 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
9390 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
9391 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
9392 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
9393 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
9394 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
9395 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
9396 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
9397 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
9398 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
9399 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
9400 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
9401 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
9402 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
9403 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
9404 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
9405 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
9406 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
9407 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
9408 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
9409 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
9410 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
9411 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
9412 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
9413 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
9414 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
9415 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
9416 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
9417 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
9418 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
9419 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
9420 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
9421 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
9422 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
9423 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
9424 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
9425 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
9426 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
9427 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
9428 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
9429 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
9430 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
9431 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
9432 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
9433 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
9434 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
9435 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
9436 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
9437 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
9438 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
9439 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
9440 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
9441 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
9442 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
9443 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
9444 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
9445 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
9446 ali.adb, ali.ads, alloc.ads, argv.c,
9447 atree.adb, atree.ads, atree.h, aux-io.c,
9448 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
9449 binde.adb, binde.ads, binderr.adb, binderr.ads,
9450 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
9451 butil.adb, butil.ads, cal.c, calendar.ads,
9452 casing.adb, casing.ads, ceinfo.adb, checks.adb,
9453 checks.ads, cio.c, comperr.adb, comperr.ads,
9454 config-lang.in, csets.adb, csets.ads, csinfo.adb,
9455 cstand.adb, cstand.ads, cuintp.c, debug.adb,
9456 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
9457 dec-io.ads, dec.ads, deftarg.c, directio.ads,
9458 einfo.adb, einfo.ads, elists.adb, elists.ads,
9459 elists.h, errno.c, errout.adb, errout.ads,
9460 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
9461 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
9462 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
9463 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
9464 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
9465 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
9466 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
9467 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
9468 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
9469 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
9470 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
9471 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
9472 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
9473 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
9474 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
9475 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
9476 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
9477 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
9478 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
9479 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
9480 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
9481 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
9482 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
9483 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
9484 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
9485 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
9486 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
9487 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
9488 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
9489 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
9490 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
9491 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
9492 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
9493 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
9494 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
9495 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
9496 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
9497 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
9498 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
9499 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
9500 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
9501 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
9502 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
9503 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
9504 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
9505 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
9506 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
9507 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
9508 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
9509 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
9510 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
9511 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
9512 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
9513 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
9514 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
9515 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
9516 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
9517 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
9518 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
9519 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
9520 lib.adb, lib.ads, live.adb, live.ads,
9521 machcode.ads, make.adb, make.ads, makeusg.adb,
9522 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
9523 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
9524 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
9525 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
9526 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
9527 mlib.ads, namet.adb, namet.ads, nlists.adb,
9528 nlists.ads, opt.adb, opt.ads, osint-b.adb,
9529 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
9530 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
9531 osint.ads, output.adb, output.ads, par-ch10.adb,
9532 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
9533 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
9534 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
9535 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
9536 par-tchk.adb, par-util.adb, par.adb, par.ads,
9537 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
9538 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
9539 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
9540 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
9541 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
9542 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
9543 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
9544 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
9545 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
9546 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
9547 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
9548 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
9549 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
9550 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
9551 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
9552 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
9553 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
9554 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
9555 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
9556 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
9557 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
9558 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
9559 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
9560 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
9561 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
9562 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
9563 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
9564 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
9565 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
9566 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
9567 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
9568 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
9569 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
9570 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
9571 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
9572 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
9573 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
9574 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
9575 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
9576 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
9577 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
9578 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
9579 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
9580 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
9581 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
9582 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
9583 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
9584 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
9585 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
9586 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
9587 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
9588 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
9589 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
9590 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
9591 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
9592 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
9593 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
9594 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
9595 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
9596 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
9597 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
9598 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
9599 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
9600 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
9601 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
9602 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
9603 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
9604 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
9605 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
9606 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
9607 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
9608 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
9609 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
9610 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
9611 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
9612 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
9613 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
9614 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
9615 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
9616 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
9617 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
9618 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
9619 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
9620 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
9621 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
9622 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
9623 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
9624 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
9625 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
9626 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
9627 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
9628 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
9629 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
9630 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
9631 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
9632 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
9633 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
9634 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
9635 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
9636 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
9637 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
9638 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
9639 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
9640 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
9641 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
9642 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
9643 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
9644 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
9645 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
9646 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
9647 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
9648 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
9649 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
9650 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
9651 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
9652 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
9653 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
9654 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
9655 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
9656 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
9657 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
9658 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
9659 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
9660 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
9661 snames.ads, sprint.adb, sprint.ads, stand.adb,
9662 stand.ads, stringt.adb, stringt.ads, style.adb,
9663 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
9664 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
9665 switch-m.ads, switch.adb, switch.ads, system.ads,
9666 table.adb, table.ads, targparm.adb, targparm.ads,
9667 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
9668 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
9669 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
9670 ttypef.ads, ttypes.ads, types.adb, types.ads,
9671 uintp.adb, uintp.ads, uname.adb, uname.ads,
9672 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
9673 usage.adb, usage.ads, validsw.adb, validsw.ads,
9674 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
9675 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
9676 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
9677 formatting and other trivial changes from ACT.
9679 2003-04-12 Zack Weinberg <zack@codesourcery.com>
9681 * gigi.h, utils2.c (build_constructor):
9682 Rename gnat_build_constructor. Use build_constructor.
9683 * decl.c (gnat_to_gnu_entity)
9684 * trans.c (tree_transform, pos_to_constructor, extract_values)
9685 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
9687 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
9688 (fill_vms_descriptor):
9691 2003-04-06 Zack Weinberg <zack@codesourcery.com>
9693 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
9694 * misc.c (gnat_tree_size): New function.
9695 (LANG_HOOKS_TREE_SIZE): Override.
9697 2003-04-03 Jason Merrill <jason@redhat.com>
9699 * misc.c (gnat_adjust_rli): #if 0.
9701 2003-03-31 Geert Bosch <bosch@gnat.com>
9704 * link.c : Fix misspelled "const" keyword
9706 2003-03-23 Mark Mitchell <mark@codesourcery.com>
9709 * utils2.c: Adjust calls to put_var_into_stack.
9711 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
9713 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
9715 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
9717 * misc.c (gnat_init): Update for new prototype.
9719 2003-03-05 Olivier Hainque <hainque@gnat.com>
9722 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
9723 warning, and fix return type for the IN_RTS && !SJLJ case.
9725 2003-03-04 Tom Tromey <tromey@redhat.com>
9727 * Make-lang.in (ada.tags): New target.
9729 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
9732 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
9733 wrapper, which name remains constant whatever underlying GCC
9736 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
9737 the stable interface needed for a-except.
9739 2003-03-02 Andreas Jaeger <aj@suse.de>
9741 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
9742 gnat_ug_wnt.texi: Regenerate.
9744 2003-03-02 Laurent Guerby <guerby@acm.org>
9746 * Makefile.in (install-gnatlib): Match previous change there
9749 2003-02-28 Andreas Schwab <schwab@suse.de>
9751 * Make-lang.in (install-gnatlib): Change to ada directory before
9752 running make instead of using ada/Makefile directly.
9754 2003-02-18 Ben Elliston <bje@redhat.com>
9756 Part of fix for PR ada/9406
9757 * gnat_ug.texi (Binder output file): Grammar fix.
9759 2003-02-18 Ben Elliston <bje@redhat.com>
9762 * 5qtaprop.adb (Sleep): Fix typo in comment.
9764 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
9766 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
9767 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
9768 gnat_ug_wnt.texi: Regenerate.
9770 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
9772 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
9773 be created if necessary.
9774 (ada.install-common): Let $(DESTDIR)$(bindir) be created
9775 if necessary. Remove erroneous and redundant gnatchop
9776 installation commands. Test for gnatdll before attempting
9778 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
9779 and gnatdll from all plausible locations.
9781 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
9783 * utils2.c (build_unary_op): Don't check flag_volatile.
9784 * gnat_ug.texi: Remove -fvolatile from example.
9785 * gnat_ug_vxw.texi: Likewise.
9787 2003-01-29 Laurent Guerby <guerby@acm.org>
9790 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
9791 * Makefile.in: match previous change.
9792 * Make-lang.in: match previous change.
9794 2003-01-29 Joel Sherrill <joel@OARcorp.com>
9796 * 5rosinte.ads: Add SIGXCPU.
9797 * 5rtpopsp.adb: New file.
9798 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
9799 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
9800 specific file 5rtpopsp.adb.
9801 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
9802 is likely needed for all newlib targets.
9803 * init.c: Add RTEMS specific version of __gnat_initialize().
9805 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9807 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
9809 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9811 * init.c (__gnat_error_handler): Make msg const.
9813 * gmem.c (convert_addresses): Move declaration ...
9814 * adaint.h: ... here.
9815 * adaint.c (convert_addresses): Adapt addrs type to match
9818 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
9820 2003-01-24 Andreas Schwab <schwab@suse.de>
9822 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
9823 size_t to avoid warning.
9825 2003-01-21 Zack Weinberg <zack@codesourcery.com>
9827 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
9829 2003-01-09 Geoffrey Keating <geoffk@apple.com>
9831 * gnat_rm.texi: Remove RCS version number.
9833 * ada-tree.h (union lang_tree_node): Add chain_next option.
9835 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
9837 * Make-lang.in (ada.install-info, ada.install-common,
9838 ada.uninstall): Prepend $(DESTDIR) to the destination
9839 directory in all (un)installation commands.
9840 * Makefile.in (install-gnatlib, install-rts): Ditto.
9842 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
9844 * gnat_rm.texi, gnat_ug.texi: Use @copying.
9845 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
9846 gnat_ug_wnt.texi: Regenerate.
9848 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
9850 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
9852 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
9853 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
9854 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
9855 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
9856 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
9857 $(srcdir)/doc/include/gcc-common.texi.
9859 2002-12-15 Geert Bosch <bosch@gnat.com>
9861 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
9863 2002-12-14 Geert Bosch <bosch@gnat.com>
9865 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
9866 case of a body created for a Renaming_As_Body, on which
9867 conformance checks are not performed. Fixes PR ada/5690.
9869 2002-11-30 Zack Weinberg <zack@codesourcery.com>
9871 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
9872 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
9873 not already included.
9874 * Make-lang.in: Update dependencies.
9876 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
9877 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
9878 solution to buffer overflow bug on GNU/Linux.
9880 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
9881 Closes PR ada/5856 and PR ada/6919 !
9882 * bindgen.adb: Remove all references to Public_Version.
9883 * comperr.adb: Remove all references to Public_Version and
9884 GNATPRO_Version; correct bug reporting instructions.
9885 * comperr.ads: Change to match bug box.
9886 * gnatvsn.ads: Remove all references to Public version and
9889 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
9891 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
9895 * config-lang.in: Remove diff_excludes.
9897 2002-11-05 Graham Stott <graham.stott@btinternet.com>
9899 * trans.c (gnu_pending_elaboration_lists): New GC root.
9900 (build_unit_elab): Use..
9902 2002-10-30 Geert Bosch <bosch@gnat.com>
9904 * misc.c : Include optabs.h
9906 * Make-lang.in (misc.o): Add dependency on optabs.h
9908 2002-10-29 Geert Bosch <bosch@gnat.com>
9910 * Make-lang.in (gnatbind): Depend on CONFIG_H
9912 2002-10-29 Geert bosch <bosch@gnat.com>
9914 * misc.c: Unrevert misc.c (1.13)
9916 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
9918 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
9919 maintainership comments.
9921 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
9923 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
9924 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
9925 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
9926 7staprop.adb: Correct statements in comments about
9927 maintainership of GNAT.
9930 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
9931 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
9932 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
9933 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
9934 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
9935 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
9936 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
9937 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
9938 comments about maintainership of GNAT.
9940 PR ada/6919 (forward port of patch for PR ada/5904)
9941 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
9942 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
9943 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
9944 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
9945 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
9946 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
9947 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
9948 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
9949 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
9950 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
9951 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
9952 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
9953 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
9954 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
9955 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
9956 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
9957 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
9958 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
9959 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
9960 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
9961 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
9962 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
9963 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
9964 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
9965 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
9966 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
9967 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
9968 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
9969 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
9970 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
9971 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
9972 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
9973 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
9974 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
9975 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
9976 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
9977 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
9978 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
9979 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
9980 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
9981 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
9982 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
9983 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
9984 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
9985 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
9986 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
9987 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
9988 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
9989 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
9990 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
9991 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
9992 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
9993 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
9994 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
9995 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
9996 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
9997 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
9998 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
9999 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
10000 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
10001 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
10002 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
10003 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
10004 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
10005 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
10006 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
10007 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
10008 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
10009 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
10010 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
10011 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
10012 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
10013 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
10014 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
10015 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
10016 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
10017 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
10018 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
10019 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
10020 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
10021 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
10022 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
10023 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
10024 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
10025 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
10026 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
10027 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
10028 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
10029 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
10030 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
10031 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
10032 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
10033 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
10034 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
10035 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
10036 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
10037 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
10038 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
10039 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
10040 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
10041 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
10042 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
10043 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
10044 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
10045 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
10046 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
10047 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
10048 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
10049 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
10050 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
10051 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
10052 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
10053 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
10054 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
10055 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
10056 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
10057 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
10058 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
10059 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
10060 par-endh.adb par-labl.adb par-load.adb par-prag.adb
10061 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
10062 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
10063 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
10064 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
10065 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
10066 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
10067 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
10068 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
10069 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
10070 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
10071 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
10072 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
10073 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
10074 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
10075 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
10076 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
10077 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
10078 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
10079 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
10080 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
10081 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
10082 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
10083 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
10084 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
10085 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
10086 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
10087 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
10088 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
10089 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
10090 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
10091 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
10092 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
10093 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
10094 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
10095 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
10096 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
10097 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
10098 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
10099 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
10100 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
10101 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
10102 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
10103 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
10104 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
10105 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
10106 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
10107 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
10108 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
10109 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
10110 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
10111 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
10112 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
10113 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
10114 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
10115 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
10116 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
10117 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
10118 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
10119 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
10120 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
10121 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
10122 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
10123 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
10124 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
10125 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
10126 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
10127 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
10128 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
10129 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
10130 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
10131 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
10132 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
10133 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
10134 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
10135 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
10136 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
10137 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
10138 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
10139 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
10140 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
10141 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
10142 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
10143 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
10144 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
10145 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
10146 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
10147 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
10148 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
10149 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
10150 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
10151 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
10152 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
10153 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
10154 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
10155 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
10156 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
10157 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
10158 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
10159 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
10160 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
10161 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
10162 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
10163 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
10164 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
10165 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
10166 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
10167 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
10168 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
10169 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
10170 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
10171 stringt.ads stringt.h style.adb style.ads stylesw.adb
10172 stylesw.ads switch.adb switch.ads sysdep.c system.ads
10173 table.adb table.ads targparm.adb targparm.ads targtyps.c
10174 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
10175 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
10176 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
10177 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
10178 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
10179 usage.ads utils.c utils2.c validsw.adb validsw.ads
10180 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
10181 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
10182 xtreeprs.adb: Correct statements in comments about maintainership
10185 2002-09-23 Zack Weinberg <zack@codesourcery.com>
10187 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
10188 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
10189 * gnatvsn.ads: Gnat_Version_String is now a function.
10190 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
10191 copy the C version_string into a String and return it.
10192 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
10193 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
10194 Remove pragma Ident (Gnat_Version_String). If this was the
10195 sole use of package Gnatvsn, remove the with statement too.
10196 * gnat1drv.adb: Tweak -gnatv output.
10198 2002-09-17 Richard Henderson <rth@redhat.com>
10200 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
10201 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
10202 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
10203 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
10204 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
10205 and real_2expN instead of a loop.
10206 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
10207 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
10209 2002-08-25 Andre Leis <a.leis@gmx.net>
10210 David Billinghurst (David.Billinghurst@riotinto.com>
10212 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
10214 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10216 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
10217 Remove $(CONFIG_H) dependency.
10219 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
10221 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
10223 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10225 * adadecode.c (ada_demangle): Use xstrdup in lieu of
10227 * misc.c (gnat_decode_option): Likewise.
10229 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
10231 * make.adb (Add_Switch): Make Generic_Position a procedure. The
10232 function approach did not work well because of a side effect (the
10233 function call could reallocate the table which was being indexed
10234 using its result). Fixes ada/4851. [RESURRECTED]
10236 2002-07-01 Roger Sayle <roger@eyesopen.com>
10238 * ada/utils.c (builtin_function): Accept an additional parameter.
10240 2002-06-28 Andreas Jaeger <aj@suse.de>
10243 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
10246 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10248 * Makefile.in (SHELL): Set to @SHELL@.
10250 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10252 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
10253 array size calculation.
10255 2002-06-04 Andreas Jaeger <aj@suse.de>
10257 * Make-lang.in (gnatbind): Readd rule that has been lost in last
10260 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
10262 Merge from pch-branch:
10264 * config-lang.in (gtfiles): Add ada-tree.h.
10265 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
10266 (SET_TYPE_MODULUS): New.
10267 (SET_TYPE_INDEX): New.
10268 (SET_TYPE_DIGITS_VALUE): New.
10269 (SET_TYPE_RM_SIZE): New.
10270 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
10271 (SET_TYPE_ADA_SIZE): New.
10272 (SET_TYPE_ACTUAL_BOUNDS): New.
10273 (SET_DECL_CONST_CORRESPONDING_VAR): New.
10274 (SET_DECL_ORIGINAL_FIELD): New.
10275 (TREE_LOOP_ID): Correct typo.
10276 * decl.c: Use new macros.
10277 * utils.c: Include debug.h, use new macros.
10278 * utils2.c: Use new macros.
10280 * ada-tree.h: Update all macros for new tree description.
10281 (struct tree_loop_id): New.
10282 (union lang_tree_node): New.
10283 (struct lang_decl): New.
10284 (struct lang_type): New.
10285 * misc.c (gnat_mark_tree): Delete.
10286 (LANG_HOOKS_MARK_TREE): Delete.
10287 * trans.c (tree_transform): No longer any need to cast
10290 * utils.c (struct language_function): New dummy structure.
10292 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
10293 (misc.o): Likewise.
10294 (utils.o): Likewise; also gtype-ada.h.
10295 * Make-lang.in (gnat1): Add dependency on s-gtype.
10296 (gnatbind): Add dependency on $(CONFIG_H).
10297 * utils.c: Correct last #include.
10298 (stuct e_stack): Remove unnecessary 'static'.
10299 (mark_e_stack): Remove unused prototype.
10301 * scn-nlit.adb: Remove whitespace after version number to
10302 keep lines under 80 chars.
10303 * snames.adb: Likewise.
10304 * treepr.ads: Likewise.
10306 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
10307 (misc.o): Likewise.
10308 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
10309 * config-lang.in (gtfiles): New.
10310 * decl.c: Use gengtype for roots.
10311 * gigi.h: Use gengtype for roots.
10312 * trans.c: Use gengtype for roots.
10313 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
10315 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
10317 * misc.c (gnat_init): Adjust setting of internal_error_function.
10319 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
10321 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
10322 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
10323 gnat_ug_wnt.texi: Regenerate.
10325 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
10327 * 5ntaprop.adb (with System.OS_Primitives): Remove.
10329 * cstreams.c (max_path_len): Move from here ...
10330 * adaint.c (__gnat_max_path_len): ... to here.
10331 * adaint.c (__gnat_max_path_len): Declare.
10332 * g-dirope.adb (Max_Path): Adjust.
10333 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
10334 * i-cstrea.ads (max_path_len): Adjust.
10335 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
10336 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
10338 * Makefile.in, Make-lang.in: Documentation is now built in
10339 Make-lang.in. Store Info and generated Texinfo files in the
10341 * gnat_ug.texi: Remove CVS keywords, correct version number.
10342 Set file name correctly.
10344 * gnat_ug_*.texi: Add.
10345 * .cvsignore: Ignore generated Texinfo files.
10347 2002-05-30 Zack Weinberg <zack@codesourcery.com>
10349 * ada.h: Add MI guard macro.
10350 (SUBTYPE): Define constants with an anonymous enum, not static
10352 (IN): Cast constants to appropriate type before use.
10354 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
10356 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
10359 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10361 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
10362 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
10363 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
10364 (ALL_ADA_CFLAGS): Likewise.
10365 (ADA_INCLUDES): Likewise.
10366 Adapt for new working dir.
10367 (GNATBIND): Use Makefile.in version.
10368 (.SUFFIXES): Copy from Makefile.in.
10369 (ada-warn): Define.
10370 (.adb.o, .ads.o): Copy from Makefile.in.
10371 Added $(OUTPUT_OPTION).
10372 (GNAT1_C_OBJS): Moved from Makefile.in.
10373 Prefix with ada subdir.
10374 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
10375 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
10376 Adapt for new working dir.
10377 (EXTRA_GNATBIND_OBJS): Likewise.
10378 (ADA_BACKEND): Moved from Makefile.in.
10379 Renamed to avoid conflict with global BACKEND.
10381 (TARGET_ADA_SRCS): Moved from Makefile.in.
10382 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
10384 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
10385 (ada_extra_files): Moved from Makefile.in.
10386 Prefix with ada subdir.
10387 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
10388 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
10389 (ada/nmake.ads): Likewise.
10390 (update-sources): Moved from Makefile.in.
10391 Prefix with ada subdir.
10392 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
10393 (ADA_TREE_H): Likewise.
10394 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
10395 (ada/memtrack.o): Likewise.
10396 (ada/adadecode.o): Likewise.
10397 Update dependencies.
10398 (ada/adaint.o): New.
10399 (ada/argv.o): Moved from Makefile.in.
10400 Prefix with ada subdir.
10401 Update dependencies.
10402 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
10403 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
10404 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
10405 Prefix with ada subdir.
10406 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
10407 (GNAT DEPENDENCIES): Regenerate.
10408 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
10409 toplevel Makefile.in.
10410 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
10411 (TARGET_ADA_SRCS): Removed.
10412 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
10413 (GNATBIND_OBJS): Likewise.
10414 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
10415 (BACKEND): Removed.
10416 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
10417 (TREE_H): Likewise.
10418 (ada_extra_files): Likewise.
10419 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
10420 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
10421 (update-sources): Likewise.
10422 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
10423 (ADA_TREE_H): Likewise.
10424 (adadecoce.o): Likewise.
10425 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
10426 (GNAT DEPENDENCIES): Likewise.
10428 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10430 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
10431 * Makefile.in: Likewise.
10433 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10435 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
10436 Restore $(CONFIG_H) and prefix.o dependencies.
10437 (ada.stage[1-4]): Depend on stage?-start.
10439 * Makefile.in (b_gnatb.c): Depend on interfac.o.
10441 2002-05-02 Jim Wilson <wilson@redhat.com>
10443 * utils.c (finish_record_type): Change record_size to record_type.
10445 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
10447 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
10448 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
10449 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
10451 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
10453 * misc.c (gnat_parse_file): Update.
10455 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
10457 * misc.c (gnat_init): Don't set lang_attribute_common.
10459 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
10461 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
10463 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
10465 * gnat_ug.texi: New file.
10467 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
10468 instead of gfdl.texi
10470 * xgnatug.adb, ug_words: New files.
10472 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
10473 gnat_rm and gnat-style manuals.
10475 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
10477 * gigi.h (incomplete_type_error): Remove.
10478 * utils.c (incomplete_type_error): Remove.
10480 2002-04-16 Mark Mitchell <mark@codesourcery.com>
10482 * trans.c (tree_transform): Add has_scope argument to
10483 expand_start_stmt_expr.
10485 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
10487 * gigi.h (truthvalue_conversion): Rename.
10488 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
10489 * trans.c (tree_transform): Update.
10490 * utils2.c (truthvalue_conversion): Rename, update.
10491 (build_binary_op, build_unary_op): Update.
10493 2002-04-04 Laurent Guerby <guerby@acm.org>
10495 * make.adb: Implement -margs, remove restriction about file name placement.
10496 * makeusg.adb: Documentation update.
10497 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
10498 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
10500 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
10502 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
10503 (builtin_function): Similarly.
10505 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
10507 * decl.c (gnat_to_gnu_entity): Update.
10508 * gigi.h (mark_addressable): Rename.
10509 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
10510 * trans.c (tree_transform): Update.
10511 * utils.c (create_var_decl): Update.
10512 * util2.c (build_binary_op, build_unary_op,
10513 fill_vms_descriptor): Update.
10514 (mark_addressable): Rename, update.
10516 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
10518 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
10520 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
10521 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
10522 * trans.c (tree_transform, convert_with_check): Update.
10523 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
10526 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
10528 * gigi.h (finish_incomplete_decl): Rename.
10529 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
10530 * utils.c (gnat_init_decl_processing): Don't set hook.
10531 (finish_incomplete_decl): Rename.
10533 2002-03-29 Andreas Schwab <schwab@suse.de>
10535 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
10538 2001-03-28 Robert Dewar <dewar@gnat.com>
10541 (Remove_Checks): New procedure
10544 (Remove_Checks): New procedure
10547 Use new Duplicate_Subexpr functions
10548 (Duplicate_Subexpr_No_Checks): New procedure
10549 (Duplicate_Subexpr_No_Checks_Orig): New procedure
10550 (Duplicate_Subexpr): Restore original form (checks duplicated)
10551 (Duplicate_Subexpr): Call Remove_Checks
10554 (Duplicate_Subexpr_No_Checks): New procedure
10555 (Duplicate_Subexpr_No_Checks_Orig): New procedure
10556 Add 2002 to copyright notice
10558 * sem_util.adb: Use new Duplicate_Subexpr functions
10561 (Eval_Indexed_Component): This is the place to call
10562 Constant_Array_Ref and to replace the value. We simply merge
10563 the code of this function in here, since it is now no longer
10564 used elsewhere. This fixes the problem of the back end not
10565 realizing we were clever enough to see that this was
10567 (Expr_Val): Remove call to Constant_Array_Ref
10568 (Expr_Rep_Val): Remove call to Constant_Array_Ref
10570 (Constant_Array_Ref): Deal with string literals (patch
10571 suggested by Zack Weinberg on the gcc list)
10573 2001-03-28 Ed Schonberg <schonber@gnat.com>
10575 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
10576 Duplicate_Subexpr_Move_Checks.
10578 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
10579 Duplicate_Subexpr_Move_Checks.
10581 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
10582 value of array exists before retrieving it (it may a private
10583 protected component in a function).
10585 2002-03-28 Geert Bosch <bosch@gnat.com>
10587 * prj-pp.adb : New file.
10589 * prj-pp.ads : New file.
10591 2002-03-28 Andreas Jaeger <aj@suse.de>
10593 * Makefile.in (stamp-sdefault): Fix path for Makefile.
10595 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
10597 * misc.c (gnat_expand_expr): Move prototype.
10599 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
10601 * misc.c (insert_default_attributes): Remove.
10603 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
10605 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
10606 (gnat_init): Don't set hook.
10607 (gnat_expand_expr): Fix prototype.
10609 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
10611 * misc.c (ggc_p): Remove.
10613 2002-03-27 Geert Bosch <bosch@gnat.com>
10615 * prj-makr.ads, prj-makr.adb : New files.
10617 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
10619 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
10620 (lang_mark_tree): Make static, rename.
10622 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
10624 * misc.c (maybe_build_cleanup): Remove.
10626 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
10628 * gigi.h (yyparse): Remove.
10630 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
10632 * gnat_rm.texi: Sync with ACT version.
10633 (From Ben Brosgol <brosgol@gnat.com>)
10635 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
10637 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
10638 (gnat_init): Remove old hook.
10640 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
10642 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
10643 (yyparse): Rename gnat_parse_file.
10645 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
10647 Delete all lines containing "$Revision:".
10648 * xeinfo.adb: Don't look for revision numbers.
10649 * xnmake.adb: Likewise.
10650 * xsinfo.adb: Likewise.
10651 * xsnames.adb: Likewise.
10652 * xtreeprs.adb: Likewise.
10654 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10656 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
10657 gnat_tree_code_name): Delete.
10658 (tree_code_type, tree_code_length, tree_code_name): Define.
10659 (gnat_init): Don't try to copy into the various tree_code
10662 2002-03-11 Richard Henderson <rth@redhat.com>
10664 * Makefile.in (.NOTPARALLEL): Add fake tag.
10666 2002-03-07 Geert Bosch <bosch@gnat.com>
10668 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
10669 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
10670 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
10671 switch-m.adb, switch-m.ads : New files.
10673 2002-03-07 Geert Bosch <bosch@gnat.com>
10675 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
10676 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
10677 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
10678 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
10679 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
10680 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
10681 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
10682 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
10683 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
10684 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
10685 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
10686 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
10687 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
10688 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
10689 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
10690 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
10691 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
10692 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
10693 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
10694 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
10695 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
10696 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
10697 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
10698 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
10699 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
10700 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
10701 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
10702 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
10703 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
10704 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
10705 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
10706 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
10707 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
10708 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
10709 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
10710 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
10711 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
10712 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
10713 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
10714 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
10715 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
10716 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
10717 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
10718 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
10719 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
10720 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
10721 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
10722 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
10723 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
10724 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
10725 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
10726 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
10727 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
10728 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
10729 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
10730 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
10731 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
10732 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
10733 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
10734 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
10735 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
10736 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
10737 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
10738 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
10739 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
10740 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
10741 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
10742 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
10743 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
10744 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
10745 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
10746 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
10747 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
10748 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
10749 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
10750 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
10751 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
10752 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
10753 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
10754 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
10755 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
10756 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
10757 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
10758 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
10759 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
10760 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
10761 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
10762 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
10763 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
10764 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
10765 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
10766 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
10767 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
10768 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
10769 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
10770 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
10771 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
10773 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
10774 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
10775 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
10776 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
10778 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
10779 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
10781 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
10782 to mdll-fil.ad[bs] and mdll-util.ad[bs]
10784 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
10785 from mdllfile.ad[bs] and mdlltool.ad[bs]
10787 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10789 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
10790 lieu of explicit sizeof/sizeof.
10792 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
10794 * misc.c (copy_lang_decl): Remove.
10796 2002-02-27 Zack Weinberg <zack@codesourcery.com>
10798 * misc.c: Delete traditional-mode-related code copied from the
10799 C front end but not used, or used only to permit the compiler
10802 2002-02-07 Richard Henderson <rth@redhat.com>
10804 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
10805 * adaint.h (__gnat_to_gm_time): Update prototype.
10807 2002-01-30 Richard Henderson <rth@redhat.com>
10809 * trans.c (tree_transform) [N_Loop_Statement]: Use
10810 expand_exit_loop_top_cond.
10812 2001-12-23 Richard Henderson <rth@redhat.com>
10814 * utils.c (end_subprog_body): Push GC context around
10815 rest_of_compilation for nested functions.
10817 2001-12-23 Richard Henderson <rth@redhat.com>
10819 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
10821 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
10823 * gnat-style.texi (Declarations and Types): Remove ancient style
10824 rule which was mandated by code generation issues.
10826 * gnat-style.texi (header): Add @dircategory, @direntry.
10827 (title page): Remove date.
10828 (general) Add @./@: where approriate, and two spaces after the
10829 full stop at the end of a sentence. Use @samp markup when
10830 referring concrete lexical entities (keywords, attribute names
10831 etc.), and @syntax for ARM grammar elements. Use @r for English
10832 text in comments. Use @emph for emphasis. Change "if-statements"
10833 etc. to "if statements" (without @samp). Break long lines. Make
10834 casing of section names consistent.
10835 (Identifiers): Use @samp markup for variable names.
10836 (Comments): Use @samp markup for comment characters. Line-end
10837 comments may follow any Ada code, not just statements. Fix
10838 misspelling of "Integer" as "integer".
10839 (Loop statements): Do not use variable name "I", use "J".
10840 (Subprogram Declarations): Document alignment.
10841 (Subprogram Bodies, Block statements): Document empty line before
10844 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
10846 * make.adb (Add_Switch): Make Generic_Position a procedure. The
10847 function approach did not work well because of a side effect (the
10848 function call could reallocate the table which was being indexed
10849 using its result). Fixes ada/4851.
10851 2001-12-19 Robert Dewar <dewar@gnat.com>
10853 * bindgen.adb: Minor reformatting
10855 * cstand.adb: Minor reformatting
10857 * fmap.adb: Minor reformatting
10858 Change name from Add for Add_To_File_Map (Add is much too generic)
10859 Change Path_Name_Of to Mapped_Path_Name
10860 Change File_Name_Of to Mapped_File_Name
10861 Fix copyright dates in header
10864 Change name from Add for Add_To_File_Map (Add is much too generic)
10865 Change Path_Name_Of to Mapped_Path_Name
10866 Change File_Name_Of to Mapped_File_Name
10867 Fix copyright dates in header
10869 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
10870 Add use clause for Fmap.
10872 * make.adb: Minor reformatting
10874 * osint.adb: Minor reformatting. Change of names in Fmap.
10875 Add use clause for Fmap.
10877 * prj-env.adb: Minor reformatting
10879 * prj-env.ads: Minor reformatting
10881 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
10882 error found (there were odd exceptions to this general rule in
10883 -gnatec/-gnatem processing)
10885 2001-12-19 Olivier Hainque <hainque@gnat.com>
10887 * raise.c (__gnat_eh_personality): Exception handling personality
10888 routine for Ada. Still in rough state, inspired from the C++ version
10889 and still containing a bunch of debugging artifacts.
10890 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
10891 inspired from the C++ library.
10893 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
10894 exception handling integration.
10896 2001-12-19 Arnaud Charlet <charlet@gnat.com>
10898 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
10899 (HIE_SOURCES): Add s-secsta.ad{s,b}.
10900 (HIE_OBJS): Add s-fat*.o
10901 (RAVEN_SOURCES): Remove files that are no longer required. Add
10902 interrupt handling files.
10903 (RAVEN_MOD): Removed, no longer needed.
10905 2001-12-19 Robert Dewar <dewar@gnat.com>
10907 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
10908 Add 2001 to copyright date
10910 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
10911 need to force universal inlining for these cases.
10913 2001-12-19 Arnaud Charlet <charlet@gnat.com>
10915 * s-taprob.adb: Minor clean ups so that this unit can be used in
10918 * exp_ch7.adb: Allow use of secondary stack in HI mode.
10919 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
10921 2001-12-19 Vincent Celier <celier@gnat.com>
10923 * prj-tree.ads (Project_Node_Record): Add comments for components
10924 Pkg_Id and Case_Insensitive.
10926 2001-12-19 Pascal Obry <obry@gnat.com>
10928 * g-socket.adb: Minor reformatting. Found while reading code.
10930 2001-12-19 Robert Dewar <dewar@gnat.com>
10932 * prj-tree.ads: Minor reformatting
10934 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
10936 * config-lang.in (diff_excludes): Remove.
10938 2001-12-17 Ed Schonberg <schonber@gnat.com>
10940 * sem_res.adb (Resolve_Selected_Component): do not generate a
10941 discriminant check if the selected component is a component of
10942 the argument of an initialization procedure.
10944 * trans.c (tree_transform, case of arithmetic operators): If result
10945 type is private, the gnu_type is the base type of the full view,
10946 given that the full view itself may be a subtype.
10948 2001-12-17 Robert Dewar <dewar@gnat.com>
10950 * sem_res.adb: Minor reformatting
10952 * trans.c (tree_transform, case N_Real_Literal): Add missing third
10953 parameter in call to Machine (unknown horrible effects from this
10956 * urealp.h: Add definition of Round_Even for call to Machine
10957 Add third parameter for Machine
10959 2001-12-17 Ed Schonberg <schonber@gnat.com>
10961 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
10962 predefined units in No_Run_Time mode.
10964 2001-12-17 Richard Kenner <kenner@gnat.com>
10966 * misc.c (insn-codes.h): Now include.
10968 2001-12-17 Olivier Hainque <hainque@gnat.com>
10970 * a-except.adb: Preparation work for future integration of the GCC 3
10971 exception handling mechanism
10972 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
10973 to factorize previous code sequences and make them externally callable,
10974 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
10975 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
10976 Use the new notification routines.
10978 2001-12-17 Emmanuel Briot <briot@gnat.com>
10980 * prj-tree.ads (First_Choice_Of): Document the when others case
10982 2001-12-17 Arnaud Charlet <charlet@gnat.com>
10984 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
10985 HI-E mode, in order to support Ravenscar profile properly.
10987 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
10988 mode on 32 bits targets.
10990 2001-12-17 Vincent Celier <celier@gnat.com>
10992 * fmap.adb: Initial version.
10994 * fmap.ads: Initial version.
10996 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
10997 If search is successfully done, add to mapping.
10999 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
11002 (Gnatmake): Add new local variable Mapping_File_Name.
11003 Create mapping file when using project file(s).
11004 Delete mapping file before exiting.
11006 * opt.ads (Mapping_File_Name): New variable
11008 * osint.adb (Find_File): Use path name found in mapping, if any.
11010 * prj-env.adb (Create_Mapping_File): New procedure
11012 * prj-env.ads (Create_Mapping_File): New procedure.
11014 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
11017 * usage.adb: Add entry for new switch -gnatem.
11019 * Makefile.in: Add dependencies for fmap.o.
11021 2001-12-17 Ed Schonberg <schonber@gnat.com>
11023 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
11024 is a package instantiation rewritten as a package body.
11025 (Install_Withed_Unit): Undo previous change, now redundant.
11027 2001-12-17 Gary Dismukes <dismukes@gnat.com>
11030 (Compute_Length): Move conversion to Unsigned to callers.
11031 (Get_Max_Size): Convert Len expression to Unsigned after calls to
11032 Compute_Length and Determine_Range.
11033 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
11034 Compute_Length and Determine_Range.
11035 Above changes fix problem with length computation for supernull arrays
11036 where Max (Len, 0) wasn't getting applied due to the Unsigned
11037 conversion used by Compute_Length.
11039 2001-12-17 Arnaud Charlet <charlet@gnat.com>
11042 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
11043 System.Secondary_Stack.
11044 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
11046 Remove unused entity RE_Exception_Data.
11048 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
11050 * rident.ads (No_Secondary_Stack): New restriction.
11052 2001-12-17 Joel Brobecker <brobecke@gnat.com>
11054 * gnat_rm.texi: Fix minor typos. Found while reading the section
11055 regarding "Bit_Order Clauses" that was sent to a customer.
11056 Very interesting documentation!
11058 2001-12-17 Robert Dewar <dewar@gnat.com>
11060 * sem_case.adb (Choice_Image): Avoid creating improper character
11061 literal names by using the routine Set_Character_Literal_Name. This
11062 fixes bombs in certain error message cases.
11064 2001-12-17 Arnaud Charlet <charlet@gnat.com>
11066 * a-reatim.adb: Minor reformatting.
11068 2001-12-17 Ed Schonberg <schonber@gnat.com>
11070 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
11071 case where the formal is an extension of another formal in the current
11072 unit or in a parent generic unit.
11074 2001-12-17 Arnaud Charlet <charlet@gnat.com>
11076 * s-tposen.adb: Update comments. Minor reformatting.
11077 Minor code clean up.
11079 * s-tarest.adb: Update comments. Minor code reorganization.
11081 2001-12-17 Gary Dismukes <dismukes@gnat.com>
11083 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
11086 2001-12-17 Robert Dewar <dewar@gnat.com>
11088 * exp_attr.adb: Minor reformatting
11090 2001-12-17 Ed Schonberg <schonber@gnat.com>
11092 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
11093 derivations nested within a child unit: verify that the parent
11094 type is declared in an outer scope.
11096 2001-12-17 Robert Dewar <dewar@gnat.com>
11098 * sem_ch12.adb: Minor reformatting
11100 2001-12-17 Ed Schonberg <schonber@gnat.com>
11102 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
11103 warning if current unit is a predefined one, from which bodies may
11106 2001-12-17 Robert Dewar <dewar@gnat.com>
11108 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
11109 Fix header format. Add 2001 to copyright date.
11111 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
11112 which caused CE during compilation if checks were enabled.
11114 2001-12-17 Vincent Celier <celier@gnat.com>
11117 (Switches_Of): New function
11118 (Test_If_Relative_Path): New procedure
11119 (Add_Switches): Use new function Switches_Of
11120 (Collect_Arguments_And_Compile): Use new function Switches_Of.
11121 When using a project file, test if there are any relative
11122 search path. Fail if there are any.
11123 (Gnatmake): Only add switches for the primary directory when not using
11124 a project file. When using a project file, change directory to the
11125 object directory of the main project file. When using a project file,
11126 test if there are any relative search path. Fail if there are any.
11127 When using a project file, fail if specified executable is relative
11128 path with directory information, and prepend executable, if not
11129 specified as an absolute path, with the exec directory. Make sure
11130 that only one -o switch is transmitted to the linker.
11132 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
11135 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
11136 when using a non standard naming scheme.
11137 (Check_Ada_Naming_Scheme): Make sure that error messages
11138 do not raise exceptions.
11139 (Is_Illegal_Append): Return True if there is no dot in the suffix.
11140 (Language_Independent_Check): Check the exec directory.
11142 * prj.adb (Project_Empty): Add new component Exec_Directory
11145 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
11146 (Project_Data): Add component Exec_Directory
11148 * snames.adb: Updated to match snames.ads revision 1.215
11150 * snames.ads: Added Exec_Dir
11152 2001-12-17 Robert Dewar <dewar@gnat.com>
11154 * make.adb: Minor reformatting
11156 * prj-nmsc.adb: Minor reformatting
11158 * snames.adb: Updated to match snames.ads
11160 * snames.ads: Alphebetize entries for project file
11162 2001-12-17 Ed Schonberg <schonber@gnat.com>
11164 * trans.c (process_freeze_entity): Do nothing if the entity is a
11165 subprogram that was already elaborated.
11167 2001-12-17 Richard Kenner <kenner@gnat.com>
11169 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
11170 and Esize if object is referenced via pointer.
11172 2001-12-17 Ed Schonberg <schonber@gnat.com>
11174 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
11175 is discrete before analyzing choices.
11177 2001-12-17 Joel Brobecker <brobecke@gnat.com>
11179 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
11180 containing the name of the Ada Main Program. This string is mainly
11181 intended for the debugger.
11182 (Gen_Output_File_C): Do the equivalent change when generating a C file.
11184 2001-12-17 Robert Dewar <dewar@gnat.com>
11186 * ali.adb: Set new Dummy_Entry field in dependency entry
11188 * ali.ads: Add Dummy_Entry field to source dependency table
11190 * bcheck.adb (Check_Consistency): Ignore dummy D lines
11192 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
11194 * lib-writ.ads: Document dummy D lines for missing files.
11196 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
11198 2001-12-17 Robert Dewar <dewar@gnat.com>
11200 * ali.adb: Type reference does not reset current file.
11202 * ali.adb: Recognize and scan renaming reference
11204 * ali.ads: Add spec for storing renaming references.
11206 * lib-xref.ads: Add documentation for handling of renaming references
11208 * lib-xref.adb: Implement output of renaming reference.
11211 (Determine_Range): Document local variables
11212 (Determine_Range): Make sure Hbound is initialized. It looks as though
11213 there could be a real problem here with an uninitialized reference
11214 to Hbound, but no actual example of failure has been found.
11216 2001-12-17 Laurent Pautet <pautet@gnat.com>
11219 Fix comment of Shutdown_Socket and Close_Socket. These functions
11220 should not fail silently because if they are called twice, this
11221 probably means that there is a race condition in the user program.
11222 Anyway, this behaviour is consistent with the rest of this unit.
11223 When an error occurs, an exception is raised with the error message
11224 as exception message.
11226 2001-12-17 Robert Dewar <dewar@gnat.com>
11228 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
11229 that it happens before modification of Sloc values for -gnatD.
11231 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
11232 so that it happens before modification of Sloc values for -gnatD.
11234 * switch.adb: Minor reformatting
11236 2001-12-15 Richard Henderson <rth@redhat.com>
11238 * sem_ch7.adb: Wrap comment.
11240 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
11242 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
11243 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
11244 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
11245 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
11246 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
11247 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
11248 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
11249 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
11250 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
11251 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
11252 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
11253 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
11254 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
11255 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
11256 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
11257 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
11258 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
11259 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
11260 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
11261 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
11262 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
11263 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
11264 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
11265 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
11268 2001-12-14 Vincent Celier <celier@gnat.com>
11270 * osint.adb(Create_Debug_File): When an object file is specified,
11271 put the .dg file in the same directory as the object file.
11273 2001-12-14 Robert Dewar <dewar@gnat.com>
11275 * osint.adb: Minor reformatting
11277 * lib-xref.adb (Output_Instantiation): New procedure to generate
11278 instantiation references.
11280 * lib-xref.ads: Add documentation of handling of generic references.
11282 * ali.adb (Read_Instantiation_Ref): New procedure to read
11283 instantiation references
11285 * ali.ads: Add spec for storing instantiation references
11287 * bindusg.adb: Minor reformatting
11289 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
11291 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
11293 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
11295 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
11299 Add 2001 to copyright date
11300 Add entry for Latin-5 (Cyrillic ISO-8859-5)
11302 2001-12-14 Matt Gingell <gingell@gnat.com>
11304 * adaint.c: mktemp is a macro on Lynx and can not be used as an
11307 2001-12-14 Richard Kenner <kenner@gnat.com>
11309 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
11310 if operand is CONSTRUCTOR.
11312 2001-12-14 Ed Schonberg <schonber@gnat.com>
11314 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
11315 before emiting check on right-hand side, so that exception information
11318 2001-12-14 Richard Kenner <kenner@gnat.com>
11320 * utils.c (create_var_decl): Throw away initializing expression
11321 if just annotating types and non-constant.
11323 2001-12-14 Vincent Celier <celier@gnat.com>
11325 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
11328 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
11330 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
11332 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
11334 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
11336 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
11338 * ChangeLog: Remove piece of diff output.
11340 2001-12-14 Geert Bosch <bosch@gnat.com>
11342 * config-lang.in: Update copyright notice
11344 * layout.adb: Remove commented out code.
11346 * mdllfile.ads: Update copyright notice. Fix header format.
11348 * sem_case.ads: Likewise.
11350 * sem_ch3.adb: Minor reformatting.
11352 2001-12-12 Geert Bosch <bosch@gnat.com>
11354 * freeze.ads: Update copyright date.
11356 * g-comlin.ads: Minor reformatting.
11358 * gnat-style.texi: Fix typo.
11360 2001-12-12 Geert Bosch <bosch@gnat.com>
11362 * einfo.h: Regenerate.
11364 2001-12-12 Ed Schonberg <schonber@gnat.com>
11366 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
11367 on known node types, rather than untyped fields. Further cleanups.
11369 2001-12-12 Robert Dewar <dewar@gnat.com>
11372 (Save_Entity_Descendant): Minor comment update.
11373 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
11374 of an N_Attribute_Reference node. As per note below, this does not
11375 eliminate need for Associated_Node in attribute ref nodes.
11376 (Associated_Node): Documentation explicitly mentions attribute
11377 reference nodes, since this field is used in such nodes.
11379 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
11381 2001-12-12 Robert Dewar <dewar@gnat.com>
11383 * s-stalib.adb: Add more comments on with statements being needed
11385 * par-ch12.adb: Minor reformatting
11387 * prj-dect.ads: Fix copyright header
11389 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
11390 inputs fit in 32 bits, but the result still overflows.
11392 * s-fatgen.ads: Minor comment improvement
11394 2001-12-12 Ed Schonberg <schonber@gnat.com>
11396 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
11397 formal derived type, look for an inherited component from the full
11398 view of the parent, if any.
11400 2001-12-12 Robert Dewar <dewar@gnat.com>
11402 * checks.ads (Apply_Alignment_Check): New procedure.
11404 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
11405 ensure that the alignment of objects with address clauses is
11406 appropriate, and raise PE if not.
11408 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
11409 Exp_Pakd.Known_Aligned_Enough
11411 * mdllfile.ads: Minor reformatting
11413 * mlib-fil.ads: Minor reformatting
11415 2001-12-12 Ed Schonberg <schonber@gnat.com>
11417 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
11418 fix to any component reference if enclosing record has non-standard
11421 2001-12-12 Vincent Celier <celier@gnat.com>
11423 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
11426 2001-12-12 Ed Schonberg <schonber@gnat.com>
11428 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
11431 2001-12-12 Robert Dewar <dewar@gnat.com>
11433 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
11435 2001-12-12 Emmanuel Briot <briot@gnat.com>
11437 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
11438 and it adds dependencies to system.io.
11440 2001-12-12 Pascal Obry <obry@gnat.com>
11442 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
11445 2001-12-11 Ed Schonberg <schonber@gnat.com>
11447 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
11448 that is the parent of other generics, the instance body replaces the
11449 instance node. Retrieve the instance of the spec, which is the one
11450 that is visible in clients and within the body.
11452 2001-12-11 Vincent Celier <celier@gnat.com>
11454 * gnatmain.adb: Initial version.
11456 * gnatmain.ads: Initial version.
11458 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
11460 * snames.adb: Updated to match snames.ads.
11462 * snames.ads: Added Gnatstub.
11464 2001-12-11 Vincent Celier <celier@gnat.com>
11466 * prj-attr.adb (Initialization_Data): Change name from
11467 Initialisation_Data.
11469 2001-12-11 Emmanuel Briot <briot@gnat.com>
11471 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
11472 + and * applied to backslashed expressions like \r.
11474 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
11476 * g-os_lib.ads: String_List type added, Argument_List type is now
11477 subtype of String_List.
11479 2001-12-11 Robert Dewar <dewar@gnat.com>
11481 * g-os_lib.ads: Change copyright to FSF
11482 Add comments for String_List type
11484 2001-12-11 Vincent Celier <celier@gnat.com>
11486 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
11487 string to the buffer).
11489 2001-12-11 Ed Schonberg <schonber@gnat.com>
11491 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
11494 * sem_attr.adb: Simplify previous fix for Address.
11495 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
11496 to avoid anomalies where the bound of the type appears to raise
11499 2001-12-11 Robert Dewar <dewar@gnat.com>
11501 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
11504 2001-12-11 Ed Schonberg <schonber@gnat.com>
11506 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
11507 renamed unit before checking for recursive instantiations.
11509 2001-12-11 Emmanuel Briot <briot@gnat.com>
11511 * prj.ads: Add comments for some of the fields.
11513 2001-12-11 Robert Dewar <dewar@gnat.com>
11515 * lib-xref.adb (Output_Refs): Don't output type references outside
11516 the main unit if they are not otherwise referenced.
11518 2001-12-11 Ed Schonberg <schonber@gnat.com>
11520 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
11521 code and diagnose additional illegal uses
11523 * sem_util.adb (Is_Object_Reference): An indexed component is an
11524 object only if the prefix is.
11526 2001-12-11 Vincent Celier <celier@gnat.com>
11528 * g-diopit.adb: Initial version.
11530 * g-diopit.ads: Initial version.
11533 (Expand_Path): Avoid use of Unbounded_String
11534 (Find, Wildcard_Iterator): Moved to child package Iteration
11536 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
11538 2001-12-11 Robert Dewar <dewar@gnat.com>
11540 * sem_attr.adb: Minor reformatting
11542 2001-12-11 Ed Schonberg <schonber@gnat.com>
11544 * sem_ch3.adb: Clarify some ???.
11546 2001-12-11 Robert Dewar <dewar@gnat.com>
11548 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
11549 Exp_Pakd.Known_Aligned_Enough
11551 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
11552 version is moved to Exp_Ch13.
11554 2001-12-11 Robert Dewar <dewar@gnat.com>
11556 * einfo.ads: Minor reformatting
11558 * exp_ch5.adb: Add comment for previous.change
11560 * ali.adb: New interface for extended typeref stuff.
11562 * ali.ads: New interface for typeref stuff.
11564 * checks.adb (Apply_Alignment_Check): New procedure.
11566 * debug.adb: Add -gnatdM for modified ALI output
11568 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
11570 * lib-xref.adb: Extend generation of <..> notation to cover
11571 subtype/object types. Note that this is a complete rewrite,
11572 getting rid of the very nasty quadratic algorithm previously
11573 used for derived type output.
11575 * lib-xref.ads: Extend description of <..> notation to cover
11576 subtype/object types. Uses {..} for these other cases.
11577 Also use (..) for pointer types.
11579 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
11581 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
11582 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
11584 2001-12-11 Vincent Celier <celier@gnat.com>
11587 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
11588 Changed /BIND_ONLY to /ACTIONS=BIND
11589 Changed /LINK_ONLY to /ACTIONS=LINK
11591 2001-12-11 Ed Schonberg <schonber@gnat.com>
11593 * sem_ch8.adb (Find_Selected_Component): improved search for a
11594 candidate package in case of error.
11596 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
11597 chain back on scope stack before reinstalling use clauses.
11599 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
11600 is enabled, do not kill the code for the condition, to preserve
11603 2001-12-11 Robert Dewar <dewar@gnat.com>
11605 * checks.adb (Insert_Valid_Check): Apply validity check to expression
11606 of conversion, not to result of conversion.
11608 2001-12-11 Ed Schonberg <schonber@gnat.com>
11610 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
11611 before freezing parent. If the declarations are mutually recursive,
11612 an access to the current record type may be frozen before the
11613 derivation is complete.
11615 2001-12-05 Vincent Celier <celier@gnat.com>
11617 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
11618 -c /COMPILE_ONLY, -l /LINK_ONLY
11621 (Bind_Only): New Flag
11622 (Link_Only): New flag
11624 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
11627 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
11630 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
11631 (Gnatmake): Set the step flags. Only perform a step if the
11632 corresponding step flag is True.
11633 (Scan_Make_Arg): Reset the bind and link step flags when -u
11634 or -gnatc has been specified.
11636 2001-12-05 Ed Schonberg <schonber@gnat.com>
11638 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
11639 get bounds from right operand.
11641 * sem_eval.adb: Minor reformatting
11643 * exp_util.adb (Make_Literal_Range): use bound of literal rather
11644 than Index'First, its lower bound may be different from 1.
11646 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
11649 2001-12-05 Vincent Celier <celier@gnat.com>
11651 * prj-nmsc.adb Minor reformatting
11653 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
11654 set and libraries are not supported.
11656 2001-12-05 Ed Schonberg <schonber@gnat.com>
11658 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
11659 private view explicitly, so the back-end can treat as a global
11662 2001-12-05 Ed Schonberg <schonber@gnat.com>
11664 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
11665 unit, always replace instance node with new body, for ASIS use.
11667 2001-12-05 Vincent Celier <celier@gnat.com>
11669 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
11670 libraries are not supported and both attributes Library_Name and
11671 Library_Dir are specified.
11673 * prj-proc.adb (Expression): Set location of Result to location of
11676 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
11677 (prj-nmsc is now importing MLib.Tgt)
11679 * prj-proc.adb: Put the change indicated above that was forgotten.
11681 2001-12-05 Robert Dewar <dewar@gnat.com>
11683 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
11685 2001-12-05 Ed Schonberg <schonber@gnat.com>
11687 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
11688 constraint, introduce explicit subtype declaration and derive from it.
11690 * sem_ch3.adb: Minor reformatting
11692 2001-12-05 Robert Dewar <dewar@gnat.com>
11694 * checks.adb (Determine_Range): Increase cache size for checks.
11697 * exp_ch6.adb: Minor reformatting
11698 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
11699 a parameter whose root type is System.Address, since treating such
11700 subprograms as pure in the code generator is almost surely a mistake
11701 that will lead to unexpected results.
11703 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
11704 change handling of conversions.
11706 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
11708 2001-12-05 Ed Schonberg <schonber@gnat.com>
11710 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
11711 aggregate with static wrong size, attach generated Raise node to
11714 2001-12-05 Robert Dewar <dewar@gnat.com>
11716 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
11717 Fixes compilation abandoned bomb in B24009B.
11719 2001-12-05 Ed Schonberg <schonber@gnat.com>
11722 Document use of Associated_Node on Selected_Components.
11723 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
11724 to clarify use of untyped descendant fields.
11726 2001-12-05 Robert Dewar <dewar@gnat.com>
11728 * prj-dect.ads: Add ??? comment
11729 Add 2001 to copyright notice (was not done in after all)
11731 * prj-part.adb: Minor reformatting. Reword one awkward error message.
11733 * prj.ads: Minor reformatting throughout, and add some ??? comments
11735 * snames.ads: Minor reformatting
11737 2001-12-05 Geert Bosch <bosch@gnat.com>
11739 * snames.adb: Autoupdate
11741 2001-12-05 Vincent Celier <celier@gnat.com>
11743 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
11745 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
11747 * prj-env.adb: Minor comment changes (modifying -> extends).
11749 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
11751 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
11754 * prj.adb (Initialize): Change Modifying to Extends.
11756 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
11758 * prj.ads: Minor comment change (Modifying -> extending).
11760 * snames.ads: Change modifying to extends.
11762 2001-12-05 Robert Dewar <dewar@gnat.com>
11764 * sem_warn.adb: Remove stuff for conditionals, we are not going to
11767 * sem_warn.ads: Remove stuff for conditionals, we are not going to
11768 do this after all. Add 2001 to copyright notice
11770 2001-12-04 Geert Bosch <bosch@gnat.com>
11772 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
11774 2001-12-04 Robert Dewar <dewar@gnat.com>
11776 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
11777 location if we already have errors. Stops some cases of cascaded
11780 * errout.adb: Improve comment.
11782 2001-12-04 Robert Dewar <dewar@gnat.com>
11785 (Analyze_Formal_Type_Definition): Defend against Error.
11786 (Analyze_Formal_Subprogram): Defend against Error.
11788 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
11789 remove following semicolon if present. Removes cascaded error.
11791 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
11794 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
11795 exceptions equals 0.
11796 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
11797 Fixes PIWG E tests (which have to be run with -gnatL).
11799 2001-12-04 Robert Dewar <dewar@gnat.com>
11801 * einfo.ads: Minor reformatting
11803 2001-12-04 Ed Schonberg <schonber@gnat.com>
11805 * einfo.ads: Block_Node points to the identifier of the block, not to
11806 the block node itself, to preserve the link when the block is
11807 rewritten, e.g. within an if-statement with a static condition.
11809 * inline.adb (Cleanup_Scopes): recover block statement from block
11810 entity using new meaning of Block_Node.
11812 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
11813 identifier of block node, rather than to node itself.
11815 2001-12-04 Gary Dismukes <dismukes@gnat.com>
11818 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
11819 (Discrimify): Go back to setting the Etypes of the selected component
11820 because the Vname component does not exist at this point and will
11821 fail name resolution. Also set Analyzed.
11822 Remove with and use of Sem_Res.
11824 2001-12-04 Arnaud Charlet <charlet@gnat.com>
11826 * Makefile.in: (HIE_SOURCES): add s-fat*.
11828 2001-12-04 Robert Dewar <dewar@gnat.com>
11831 (Compile_Time_Known_Attribute): New procedure.
11832 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
11833 proper range check.
11835 2001-12-04 Ed Schonberg <schonber@gnat.com>
11837 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
11838 processing discriminants to diagnose illegal default values.
11840 2001-12-04 Ed Schonberg <schonber@gnat.com>
11842 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
11843 access discriminant within a type extension that constrains its
11844 parent discriminants.
11846 2001-12-04 Ed Schonberg <schonber@gnat.com>
11848 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
11849 is malformed, use instance of Any_Id to allow analysis to proceed.
11851 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
11852 type definition is illegal.
11853 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
11856 2001-12-04 Ed Schonberg <schonber@gnat.com>
11858 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
11861 2001-12-04 Robert Dewar <dewar@gnat.com>
11863 * errout.adb: Minor reformatting
11865 2001-12-04 Robert Dewar <dewar@gnat.com>
11867 * exp_util.adb: Minor reformatting from last change
11869 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
11870 which is a rewriting of an expression, traverse the original
11871 expression to remove warnings that may have been posted on it.
11873 2001-12-04 Ed Schonberg <schonber@gnat.com>
11875 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
11876 record that has other packed components.
11878 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
11880 * adaint.c: Minor cleanups.
11882 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
11884 * adaint.c: Do not use utime.h on vxworks.
11886 2001-12-04 Arnaud Charlet <charlet@gnat.com>
11888 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
11889 more confusion than it solves.
11891 2001-12-04 Geert bosch <bosch@gnat.com>
11893 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
11895 2001-12-04 Geert Bosch <bosch@gnat.com>
11897 * Makefile.in (update-sources): New target.
11898 For use by gcc_release script.
11900 2001-12-04 Ed Schonberg <schonber@gnat.com>
11902 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
11903 a configuration pragma, it is now legal wherever a pragma can appear.
11905 2001-12-04 Zack Weinberg <zack@codesourcery.com>
11907 * Makefile.in: Don't set ALL. Delete @cross_defines@,
11908 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
11909 is now @CROSS@ -DIN_GCC; update comment.
11911 2001-12-04 Robert Dewar <dewar@gnat.com>
11913 * einfo.adb (Has_Pragma_Pure_Function): New flag.
11914 Fix problem that stopped ceinfo from working
11916 * einfo.ads (Has_Pragma_Pure_Function): New flag.
11918 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
11920 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
11923 (File_Time_Stamp): New procedure.
11924 (Preserve_Mode): New boolean.
11925 (Write_Unit): Pass time stamp.
11926 Implement -p switch (preserve time stamps).
11928 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
11930 * gnatchop.adb: Do usage info for -p switch
11932 * adaint.h (__gnat_set_file_time_name): New function
11934 * adaint.c (__gnat_set_file_time_name): Implement
11936 * adaint.h: Fix typo
11938 2001-12-03 Robert Dewar <dewar@gnat.com>
11940 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
11941 have Associated_Node.
11943 2001-12-03 Robert Dewar <dewar@gnat.com>
11945 * prj-proc.adb: Minor reformatting
11947 * make.adb: Minor reformatting
11949 2001-12-03 Geert Bosch <bosch@gnat.com>
11951 * make.adb: Minor reformatting.
11953 2001-12-03 Robert Dewar <dewar@gnat.com>
11955 * sem_ch12.adb: Minor reformatting
11957 2001-12-03 Ed Schonberg <schonber@gnat.com>
11959 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
11960 push Standard on the stack before analyzing the instance body,
11961 in order to have a clean visibility environment.
11963 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
11965 2001-12-03 Ed Schonberg <schonber@gnat.com>
11967 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
11968 instantiation of a body that contains an inlined body.
11970 2001-12-03 Ed Schonberg <schonber@gnat.com>
11973 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
11974 to prevent freezing within formal packages.
11975 (Freeze_Subprogram_Body): If body comes from another instance that
11976 appeared before its own body, place freeze node at end of current
11977 declarative part, to prevent a back-end crash.
11978 (Inline_Instance_Body): Handle properly a package instance within
11979 a subprogram instance that is a child unit.
11981 2001-12-01 Graham Stott <grahams@redhat.com>
11983 * Makefile.in (misc.o): Add missing $(srcdir) prefix
11984 and add optabs.h dependency.
11986 * misc.c: Include optabs.h
11987 (gnat_tree_code_type): Make static and const.
11988 (gnat_tree_code_length): Likewise.
11989 (gnat_tree_code_name): Likewise.
11990 (update_setjmp_buf): Obtain operands mode from insn_data.
11992 2001-11-29 Richard Henderson <rth@redhat.com>
11994 * init.c: Remove obsolete dwarf2 frame.h section.
11996 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
11998 * Make-lang.in (ada.generated-manpages): New dummy target.
12000 2001-11-29 Ed Schonberg <schonber@gnat.com>
12002 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
12003 into Command, an array conversion is illegal here. Uncovered by
12006 2001/11/28 Geert Bosch <bosch@gnat.com>
12008 * init.c: Minor whitespace changes.
12010 2001-11-28 Doug Rupp <rupp@gnat.com>
12012 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
12015 2001-11-28 Zack Weinberg <zack@codesourcery.com>
12017 * misc.c (gnat_expand_constant): Move declaration above
12018 definition of lang_hooks.
12019 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
12020 (gnat_init): lang_expand_constant no longer exists.
12022 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
12023 always have vprintf.
12024 (gnat_init): Always call set_internal_error_function.
12026 2001-11-27 Andreas Jaeger <aj@suse.de>
12028 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
12030 2001-11-27 Laurent Guerby <guerby@acm.org>
12032 * Makefile.in: Regenerate Ada dependencies.
12034 2001-11-26 Richard Henderson <rth@redhat.com>
12036 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
12037 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
12038 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
12040 2001-11-25 Laurent Guerby <guerby@acm.org>
12042 * sysdep.c (rts_get_*): Fix style.
12044 2001-11-19 Laurent Guerby <guerby@acm.org>
12046 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
12047 since it is of no apparent use and cause warnings.
12049 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
12051 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
12053 (gnat_init): Don't return NULL.
12054 (finish_parse): Remove.
12056 2001-11-17 Laurent Guerby <guerby@acm.org>
12058 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
12059 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
12060 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
12061 * lang-spec.h: Add missing struct field to silence warnings.
12062 * sysdep.c (rts_get_*): Provide K&R prototype.
12063 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
12064 * traceback.c (Unlock_Task, Lock_Task): Likewise.
12065 * tracebak.c (__gnat_backtrace): Remove unused variable.
12066 * utils.c (end_subprog_body): Move to K&R style.
12068 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12070 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
12072 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
12074 * misc.c (gnat_init): Change prototype. Include the
12075 functionality of the old init_parse and init_decl_processing.
12076 (gnat_init_decl_processing): New prototype.
12077 (init_parse): Remove.
12078 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
12080 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
12082 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
12083 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
12084 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
12085 set_yydebug): Remove.
12087 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
12089 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
12090 (struct lang_hooks): Constify.
12091 (language_string, lang_identify): Remove.
12092 * utils.c (init_decl_processing): Update.
12094 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
12096 * misc.c: Include langhooks-def.h.
12097 * Makefile.in: Update.
12099 2001-10-30 Robert Dewar <dewar@gnat.com>
12102 (Check_Identifier): Rewrite circuit to be compatible with use of letters
12103 in the upper half of ASCII.
12104 (Check_Identifier): Minor reformatting
12106 2001-10-30 Geert Bosch <bosch@gnat.com>
12108 * (Associated_Node, Set_Associated_Node): Do not check for
12111 2001-10-30 Robert Dewar <dewar@gnat.com>
12113 * a-reatim.ads: Minor reformatting
12115 2001-10-30 Robert Dewar <dewar@gnat.com>
12117 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
12118 undocumented declarations.
12120 2001-10-30 Pascal Obry <obry@gnat.com>
12122 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
12123 to the binder and linker.
12126 * mdll.ads: Fix layout. Update copyright notice.
12128 * mdll.adb: Fix layout. Update copyright notice.
12130 2001-10-30 Robert Dewar <dewar@gnat.com>
12132 * usage.adb: Minor fix to output for -gnaty.
12134 2001-10-30 Ed Schonberg <schonber@gnat.com>
12136 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
12137 to accommodate all its possible values.
12139 * a-reatim.adb (Split): Special-case handling of Time_Span_First
12140 and of small absolute values of T.
12142 2001-10-30 Richard Kenner <kenner@gnat.com>
12144 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
12145 set_mem_attributes since not needed and wrong if RESULT if a REG;
12146 fixes ACATS failures.
12148 2001-10-30 Geert Bosch <bosch@gnat.com>
12150 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
12151 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
12153 2001-10-30 Robert Dewar <dewar@gnat.com>
12155 * bindusg.adb: Undocument -f switch.
12157 * gnatcmd.adb: Remove /FULL_ELABORATION.
12159 * opt.ads (Force_RM_Elaboration_Order): Document that this is
12162 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
12164 * gnatbind.adb: Minor update of warning msg.
12166 2001-10-30 Vincent Celier <celier@gnat.com>
12168 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
12169 for project file switches (-P (/PROJECT_FILE=),
12170 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
12173 2001-10-30 Geert Bosch <bosch@gnat.com>
12175 * decl.c: Minor whitespace fixes.
12177 2001-10-30 Richard Kenner <kenner@gnat.com>
12179 * utils2.c (build_allocator): Test for SIZE overflow in array case too
12181 2001-10-30 Geert Bosch <bosch@gnat.com>
12183 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
12184 Found due to GCC 3.0 warning of using uninitialized value.
12187 (Get_Max_Size): Use variant record for tracking value/expression.
12188 Makes logic clearer and prevents warnings for uninitialized variables.
12189 (Layout_Array_Type): Use variant record for tracking value/expression.
12190 Makes logic clearer and prevents warnings for uninitialized variables.
12192 2001-10-30 Robert Dewar <dewar@gnat.com>
12194 * lib.adb: Minor reformatting
12196 * s-taprop.ads: Minor reformatting
12198 2001-10-29 Laurent Guerby <guerby@acm.org>
12201 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
12203 (_gnat_error_handler): Make MSG const.
12205 2001-10-29 Richard Kenner <kenner@gnat.com>
12207 * sysdep.c: Fix localtime_r problem on LynxOS.
12208 Also remove #elif to avoid warnings.
12210 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
12213 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
12215 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
12217 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
12218 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
12219 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
12220 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
12221 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
12222 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
12223 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
12224 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
12225 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
12226 types.ads, urealp.adb: Fix spelling errors.
12228 2001-10-27 Laurent Guerby <guerby@acm.org>
12230 * trans.c (gigi): Fix non determinism leading to bootstrap
12231 comparison failures for debugging information.
12233 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
12235 * gnat_rm.texi: Use @./@: where appropriate.
12237 2001-10-26 Robert Dewar <dewar@gnat.com>
12239 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
12241 2001-10-26 Richard Kenner <kenner@gnat.com>
12243 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
12245 2001-10-26 Richard Kenner <kenner@gnat.com>
12247 * decl.c (validate_size): Modify message for bad size to avoid
12248 implication that compiler is modifying the size.
12250 2001-10-26 Robert Dewar <dewar@gnat.com>
12252 * prj-util.adb: Minor reformatting. Fix bad header format.
12254 2001-10-26 Robert Dewar <dewar@gnat.com>
12256 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
12258 * sinfo.ads: Clarify use of Associated_Node (documentation only).
12260 * sem_ch12.adb: Change Node4 to Associated_Node. Change
12261 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
12262 much more narrowly in places where needed. These are cleanups.
12264 2001-10-26 Joel Brobecker <brobecke@gnat.com>
12266 * 5zosinte.ads (null_pthread): new constant.
12269 (Initialize_TCB): Initialize thread ID to null, to be able to verify
12270 later that this field has been set.
12271 (Finalize_TCB): ditto.
12272 (Suspend_Task): Verify that the thread ID is not null before using it.
12273 (Resume_Task): ditto.
12276 (Resume_All_Tasks): Lock the tasks list before using it.
12277 (Suspend_All_Tasks): ditto.
12279 2001-10-26 Richard Kenner <kenner@gnat.com>
12281 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
12282 Make constant variant of designated type for Is_Access_Constant.
12283 Call update_pointer_to with main variant.
12285 * trans.c (process_freeze_entity, process_type):
12286 Call update_pointer_to on main variant.
12288 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
12289 If main variant, update all other variants.
12291 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
12294 2001-10-26 Robert Dewar <dewar@gnat.com>
12296 * prj-util.adb: Minor reformatting
12298 2001-10-26 Robert Dewar <dewar@gnat.com>
12300 * prj-util.adb: Minor reformatting
12302 2001-10-26 Robert Dewar <dewar@gnat.com>
12304 * prj-attr.adb: Minor reformatting throughout
12306 2001-10-26 Robert Dewar <dewar@gnat.com>
12308 * prj-attr.ads: Minor reformatting
12309 Add ??? comment (this whole spec has almost no comments)
12311 2001-10-26 Vincent Celier <celier@gnat.com>
12313 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
12314 ("//") that precede the drive letter on Interix.
12316 2001-10-26 Geert Bosch <bosch@gnat.com>
12318 * gnat_rm.texi: Add GNAT Reference Manual.
12320 2001-10-25 Robert Dewar <dewar@gnat.com>
12322 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
12323 is Error. Similar change for other renaming cases.
12325 2001-10-25 Robert Dewar <dewar@gnat.com>
12327 * s-atacco.ads: Add pragma Inline_Always for functions.
12328 Fix header format. Add copyright 2001
12330 2001-10-25 Ed Schonberg <schonber@gnat.com>
12332 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
12333 return Error rather than Empty so that analysis can proceed.
12335 2001-10-25 Ed Schonberg <schonber@gnat.com>
12337 * sem_util.adb (Enter_Name): better handling of cascaded error
12338 messages when a unit appears in its own context.
12340 2001-10-25 Ed Schonberg <schonber@gnat.com>
12342 * sem_util.adb (Defining_Entity): in case of error, attach created
12343 entity to specification, so that semantic analysis can proceed.
12345 2001-10-25 Robert Dewar <dewar@gnat.com>
12348 (Defining_Entity): Deal with Error.
12349 (Process_End_Label): Deal with bad end label for.
12351 2001-10-25 Ed Schonberg <schonber@gnat.com>
12353 * sem_elab.adb (Check_A_Call): refine message when call is in an
12354 instance but callee is not declared in the generic unit.
12356 2001-10-25 Ed Schonberg <schonber@gnat.com>
12358 * sem_elab.adb (Check_A_Call): check for renaming before finding the
12359 enclosing unit, which may already be different from the calling unit.
12361 2001-10-25 Geert Bosch <bosch@gnat.com>
12363 * 4gintnam.ads: fix header format.
12365 2001-10-25 Ed Schonberg <schonber@gnat.com>
12367 * sem_res.adb (Resolve_Call): if the call is actually an indexing
12368 operation on the result of a parameterless call, perform elaboration
12369 check after the node has been properly rewritten.
12371 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
12372 inlined within the generic tree, the defining identifier is not a
12375 2001-10-25 Ed Schonberg <schonber@gnat.com>
12377 * sem_res.adb (Resolve): special-case resolution of Null in an
12378 instance or an inlined body to avoid view conflicts.
12380 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
12381 compatibility by retrieving the access type of the generic copy.
12383 2001-10-25 Robert Dewar <dewar@gnat.com>
12386 (Analyze_Number_Declaration): Handle error expression.
12387 (Signed_Integer_Type_Declaration): Handle error bound.
12388 (Analyze_Subtype_Indication): Handle error range.
12390 * sem_util.adb (Get_Index_Bounds): Check for Error.
12392 2001-10-25 Robert Dewar <dewar@gnat.com>
12394 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
12395 in no run time mode.
12397 2001-10-25 Pascal Obry <obry@gnat.com>
12399 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
12400 mode case for ALLOC case.
12402 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
12403 all platforms. Improvement of last change.
12405 2001-10-25 Robert Dewar <dewar@gnat.com>
12407 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
12409 2001-10-25 Geert Bosch <bosch@gnat.com>
12411 * osint.adb (Is_Relative): Remove duplicate.
12413 2001-10-25 Pascal Obry <obry@gnat.com>
12415 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
12416 pathnames in UNIX and DOS style with drive letter.
12417 (Is_Relative): new routine.
12419 * osint.adb: Minor reformatting
12421 * osint.adb (Is_Relative): implementation using
12422 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
12424 2001-10-25 Pascal Obry <obry@gnat.com>
12426 * g-dirope.adb (Basename): correctly compute offset between the
12427 original Path and the translated one.
12429 * g-dirope.adb: (Base_Name): add some comments.
12431 2001-10-25 Robert Dewar <dewar@gnat.com>
12433 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
12434 in HIE mode, avoids compilation abandoned message
12436 * exp_imgv.adb: Correct typo in previous change
12438 * exp_imgv.adb: Correct typo in previous change (not my day!)
12440 2001-10-25 Robert Dewar <dewar@gnat.com>
12442 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
12444 2001-10-25 Pascal Obry <obry@gnat.com>
12446 * g-awk.ads: Move all pragma inlines next to the routine
12447 declarations. This is more uniform with other GNAT spec.
12449 2001-10-22 Geert Bosch <bosch@gnat.com>
12451 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
12453 2001-10-19 Geert Bosch <bosch@gnat.com>
12455 * Makefile.in (tools, gnattools): Remove gnatmem.
12457 2001-10-17 Richard Henderson <rth@redhat.com>
12459 * Makefile.in (misc.o): Depend on langhooks.h.
12460 * misc.c: Include it.
12461 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
12462 (LANG_HOOKS_DECODE_OPTION): New.
12463 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
12465 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
12467 * trans.c (tree_transform): Adjust to recent change in
12468 expand_asm_operands to implement named asm operands.
12470 2001-10-11 Ed Schonberg <schonber@gnat.com>
12472 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
12473 renaming of discriminant for mutable record type.
12475 2001-10-11 Robert Dewar <dewar@gnat.com>
12477 * validsw.adb: Properly save -gnatVn status.
12479 2001-10-11 Robert Dewar <dewar@gnat.com>
12481 * usage.adb: Add lines for V switch.
12483 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
12484 (/VALIDITY_CHECKING).
12486 2001-10-11 Ed Schonberg <schonber@gnat.com>
12488 * sem_type.adb (Add_One_Interp): an operator for a type declared in
12489 an extension of System is known to be visible.
12491 2001-10-11 Ed Schonberg <schonber@gnat.com>
12493 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
12494 properly. Fixes regression on ACATS C34005G.
12496 2001-10-11 Robert Dewar <dewar@gnat.com>
12498 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
12499 loop in generic instance, since this is likely not very useful.
12501 2001-10-11 Robert Dewar <dewar@gnat.com>
12503 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
12504 the error message for high integrity mode.
12506 * rtsfind.adb (RTE): Give message if we try to find an entity that
12507 is not available in high integrity mode.
12510 (OK_To_Use_In_HIE_Mode): New array.
12511 (RTE): May return Empty in high integrity mode.
12513 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
12514 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
12516 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
12517 unit if not inlined always and in no runtime mode. Fixes problem
12518 caused by new Rtsfind changes.
12520 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
12523 * rtsfind.adb (RTE): Make sure we do not try to load unit after
12524 giving message for entity not available in high integrity mode.
12526 2001-10-11 Pascal Obry <obry@gnat.com>
12528 * impunit.adb: Add GNAT.CRC32.
12530 2001-10-11 Ed Schonberg <schonber@gnat.com>
12532 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
12533 properly the case where one universal operand in a non-static
12534 exponentiation of a real literal.
12536 2001-10-11 Ed Schonberg <schonber@gnat.com>
12538 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
12539 clause, return the gobal finalization list, for lack of anthing else.
12541 2001-10-11 Ed Schonberg <schonber@gnat.com>
12543 * exp_ch7.adb (Make_Transient_Block): if statement is within
12544 exception handler, always use new transient scope to place Clean
12547 2001-10-11 Pascal Obry <obry@gnat.com>
12550 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
12551 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
12552 (GNATLS_RTL_OBJS): add g-crc32.o
12553 (GNATMAKE_RTL_OBJS): add g-crc32.o
12556 (CRC_Match): new function.
12557 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
12558 instead of the previous simple checksum algorithm.
12559 (Time_Stamp_Mismatch): use CRC_Match for comparison.
12560 (Set_Source_Table): idem.
12563 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
12564 instead of simple checksum.
12565 (CRC_Match): new function.
12566 (CRC_Error): new constant.
12568 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
12569 a CRC now and not a simple checksum. A CRC uses lower-case hex
12570 letters, fixes ambiguity in parsing.
12572 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
12573 is what this variable will store.
12575 * bcheck.adb: Change reference to chechsum in comments by CRC.
12576 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
12577 rename All_Checksum_Match to All_CRC_Match. Change due to API
12578 renaming since now GNAT does not use a simple checksum but a
12579 CRC using GNAT.CRC32.
12581 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
12582 now and not anymore a simple checksum.
12584 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
12587 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
12590 (Restore_Scan_State): rename Checksum to CRC.
12591 (Save_Scan_State): idem.
12595 (Checksum): rename to CRC.
12596 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
12598 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
12599 GNAT.CRC32). Update copyright notice.
12601 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
12602 GNAT.CRC32). Update copyright notice.
12605 (Accumulate_Checksum): removed.
12606 (Update): new procedure. Add a wide-character into the CRC.
12609 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
12610 (Load_File): fix initialization of S (change Source_Checksum to
12613 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
12614 Source_CRC in S initialization.
12616 * sinput.adb (Source_Checksum): renamed to Source_CRC.
12618 * sinput.ads (Source_Checksum): renamed to Source_CRC.
12619 Update comments for the CRC.
12621 * types.adb (Hex): Use lowercase for the letter part.
12623 * types.ads (Get_Hex_String): Returns the hexadecimal representation
12624 for a word. This is currently used only for CRC. In previous version,
12625 the checksum was using a representation with all letter being
12626 upper-case. With the new implementation (using CRC) we do not remove
12627 the 32th bit of the CRC, so we can have an upper-case starting letter
12628 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
12629 It is ambigous since the CRC was optional and could be followed by
12630 options like EB, EE. So now this routines uses lower-case letter for
12631 the hexadecimal representation. Strange enough only lower case letters
12632 where checked in Scan_ALI (even if this was not a possible case).
12634 * gnatvsn.ads (Library_Version): changed to 3.15a.
12636 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
12639 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
12642 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
12643 Add 2001 to copyright notice
12644 (Accumulate_Checksum): Modify to use System.CRC32.
12646 * ali-util.ads: Redo changes of previous revision to continue to use
12647 the word Checksum. Add 2001 to copyright notice.
12649 * ali.adb: Undo some of previous changes, not needed.
12650 Keep the change for lower case letters in the checksum.
12652 * ali.ads: Undo previous change not needed.
12654 * bcheck.adb: Undo most of previous change, not needed.
12655 But do use Checksums_Match for checksum comparison.
12657 * gnatls.adb: Undo most of previous change, not needed.
12658 But do use Checksums_Match for comparing checksums.
12660 * lib-load.adb: Undo previous change, not needed.
12662 * lib-writ.adb: Undo previous change, not needed.
12664 * lib-writ.ads: Document that checksums use lower case,
12665 not upper case letters.
12667 * scans.adb: Undo previous change, not needed
12669 * scans.ads: Undo previous change, not needed.
12671 * scn-nlit.adb: Undo previous changes, not needed.
12673 * scn-slit.adb: Undo previous change, not needed. Fix header format.
12676 (Accumulate_Checksum): Use System.CRC32.
12677 (Initialize_Checksum): New procedure.
12678 Remove other changes of previous revision.
12680 * sinput-p.adb: Undo previous change, not needed.
12682 * sinput.adb: Undo previous change, not needed.
12684 * sinput-l.adb: Undo previous change, not needed.
12686 * sinput.ads: Undo previous change, not needed. Keep only comment
12687 on new checksum algorithm
12689 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
12690 Also remove a-tags and a-stream from GNAT sources.
12692 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
12694 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
12696 2001-10-11 Geert Bosch <bosch@gnat.com>
12698 * einfo.h: Regenerate.
12700 * nmake.ads: Regenerate.
12702 * nmake.adb: Regenerate.
12704 * sinfo.h: Regenerate.
12706 * treeprs.adb: Regenerate.
12708 2001-10-10 Geert Bosch <bosch@gnat.com>
12710 * gnat-style.texi: New file describing coding guidelines for Ada.
12712 2001-10-10 Ed Schonberg <schonber@gnat.com>
12714 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
12717 2001-10-10 Geert Bosch <bosch@gnat.com>
12719 * snames.ads: Add new names for project facility.
12721 * snames.adb: Update to reflect snames.ads changes.
12723 * snames.h: Update to reflect snames.ads changes.
12725 2001-10-10 Vincent Celier <celier@gnat.com>
12728 (Add_Switches): reflect the changes for the switches attributes
12729 Default_Switches indexed by the programming language,
12730 Switches indexed by the file name.
12731 (Collect_Arguments_And_Compile): Idem.
12732 Reflect the attribute name changes.
12735 (Initialisation_Data): Change the names of some packages and
12737 (Initialize): process case insensitive associative arrays.
12740 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
12743 (Parse_Attribute_Declaration): For case insensitive associative
12744 arrays, set the index string to lower case.
12747 Reflect the changes of the project attributes.
12750 Replace Check_Naming_Scheme by Ada_Check and
12751 Language_Independent_Check.
12754 Replaced Check_Naming_Scheme by 2 procedures:
12755 Ada_Check and Language_Independent_Check.
12758 (Process_Declarative_Items): For case-insensitive associative
12759 arrays, set the index string to lower case.
12760 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
12761 Prj.Nmsc.Check_Naming_Scheme.
12764 (Case_Insensitive): New function
12765 (Set_Case_Insensitive): New procedure
12768 (Case_Insensitive): New function
12769 (Set_Case_Insensitive): New procedure
12770 (Project_Node_Record): New flag Case_Insensitive.
12773 (Value_Of): new function to get the string value of a single
12774 string variable or attribute.
12777 (Value_Of): new function to get the string value of a single
12778 string variable or attribute.
12781 (Ada_Default_Spec_Suffix): New function
12782 (Ada_Default_Impl_Suffix): New function
12783 Change definitions of several constants to reflect
12784 new components of record types.
12787 (Naming_Data): Change several components to reflect new
12788 elements of naming schemes.
12789 (Project_Data): New flags Sources_Present and
12790 Language_Independent_Checked.
12791 (Ada_Default_Spec_Suffix): New function.
12792 (Ada_Default_Impl_Suffix): New function.
12795 Modification of predefined names for project manager: added
12796 Implementation, Specification_Exceptions, Implementation_Exceptions,
12797 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
12798 Default_Switches, _Languages, Builder, Cross_Reference,
12799 Finder. Removed Body_Part, Specification_Append, Body_Append,
12800 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
12803 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
12806 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
12807 not that it is Nil_Variable_Value.
12809 * prj.ads: Add ??? for uncommented declarations
12811 2001-10-10 Ed Schonberg <schonber@gnat.com>
12813 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
12814 constant, do not indicate possible modification, so that gigi can
12815 treat it as a bona fide constant.
12817 2001-10-10 Robert Dewar <dewar@gnat.com>
12819 * sem_prag.adb: Add processing for pragma External.
12821 * snames.ads: Add entry for pragma External.
12823 * par-prag.adb: Add pragma External.
12825 * snames.adb: Updated to match snames.ads.
12827 2001-10-10 Ed Schonberg <schonber@gnat.com>
12829 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
12830 a dynamic task if the allocator appears in an indexed assignment
12831 or selected component assignment.
12833 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
12834 For a dynamic task in an assignment statement, use target of
12835 assignment to generate meaningful name.
12837 2001-10-10 Ed Schonberg <schonber@gnat.com>
12839 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
12842 * einfo.ads: Body_Entity is also defined for generic package.
12843 Documentation change only
12845 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
12846 others_choice for a discriminated component initialization,
12847 convert discriminant references into the corresponding discriminals.
12849 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
12850 only if original type is private and expression has to be wrapped
12854 (Apply_Constraint_Check): Do not perform length check
12855 if expression is an aggregate with only an others_choice.
12856 (Length_N_Cond): two references to the same in_parameter
12857 (typically the discriminal in an init_proc) denote the same value.
12858 Two useful optimization uncovered by bugfixes above.
12860 2001-10-10 Robert Dewar <dewar@gnat.com>
12862 * xeinfo.adb: Change int to char in translation of enumeration types.
12863 This fixes a problem in the C representation of component alignment.
12864 Add 2001 to copyright notice
12866 2001-10-10 Richard Kenner <kenner@gnat.com>
12868 * decl.c: (validate_size): Do check size of object of integral type
12869 if it is a packed array type.
12871 2001-10-10 Richard Kenner <kenner@gnat.com>
12873 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
12874 VAR_DECL for constant if not Is_Public but -O0.
12876 2001-10-10 Richard Kenner <kenner@gnat.com>
12878 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
12880 2001-10-10 Geert Bosch <bosch@gnat.com>
12882 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
12883 use '/' as switch character, allowing for absolute file names.
12885 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
12887 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
12890 2001-10-08 Geert Bosch <bosch@gnat.com>
12892 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
12893 Automatically build utilities when files need to be regenerated.
12895 2001-10-08 Geert Bosch <bosch@gnat.com>
12897 * xsnames.adb: New utility for updating snames.ads and snames.adb
12899 2001-10-08 Zack Weinberg <zack@codesourcery.com>
12901 * Make-lang.in (ADAFLAGS): Add -W -Wall.
12902 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
12903 (gnat1): Also depend on attribs.o.
12904 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
12905 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
12906 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
12907 (ADAFLAGS): Add -W -Wall.
12908 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
12911 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
12912 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
12913 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
12914 Use $(ADAC), not $(CC), as compilation command.
12916 (gnattools): Depend directly on tools to build, don't use
12918 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
12920 * einfo.h, sinfo.h: New files (autogenerated).
12922 2001-10-08 Richard Henderson <rth@redhat.com>
12924 * comperr.adb (Abort_In_Progress): New.
12925 (Compiler_Abort): Use it to prevent recursion.
12927 2001-10-08 Robert Dewar <dewar@gnat.com>
12929 * atree.adb: Set Error_Posted in Error node, helps error recovery.
12931 * par-endh.adb (Output_End_Expected): We should also not test
12932 Error_Posted on the Error node, since now it is always set.
12934 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
12935 to help error recovery. Part of general work on 9407-004.
12937 * par.adb: Add ??? for misuse of error
12940 (Resolve): Defend against Error, fixes 9407-003.
12941 (Resolve_Discrete_Subtype_Indication): Defend against Error.
12943 * sinfo.ads (N_Error): Now has Etype field (which will be set
12944 to Any_Type to help error recovery).
12946 2001-10-08 Richard Kenner (kenner@gnat.com)
12948 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
12949 Consistently set MEM attributes from expression; fixes
12950 bootstrap failure on x86.
12952 2001-10-08 Geert Bosch (bosch@gnat.com)
12954 * 5oosinte.adb: Add 2001 to copyright notice.
12956 2001-10-08 Geert Bosch (bosch@gnat.com)
12958 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
12960 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
12962 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
12964 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
12966 2001-10-05 Geert Bosch (bosch@gnat.com)
12968 * adaint.h: Small formatting fix.
12970 2001-10-04 Geert Bosch <bosch@gnat.com>
12972 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
12973 Arg is int, not FILE *, in dummy version of functions.
12975 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
12976 Arg is int, not FILE *.
12978 2001-10-04 Geert Bosch <bosch@gnat.com>
12980 * 3lsoccon.ads: Added file, missed with initial check ins.
12982 * 4lintnam.ads: Fix header format.
12983 Change Linux to GNU/Linux.
12985 * 5iosinte.adb: Change Linux to GNU/Linux.
12987 * 5iosinte.ads: Change Linux to GNU/Linux.
12989 * 5itaprop.adb: Change Linux to GNU/Linux.
12991 * 5itaspri.ads: Change Linux to GNU/Linux.
12992 Update copyright notice.
12994 * 5lintman.adb: Change Linux to GNU/Linux.
12996 * 5lml-tgt.adb: Change Linux to GNU/Linux.
12998 * 5losinte.ads: Change Linux to GNU/Linux.
13000 * 5lsystem.ads: Change Linux to GNU/Linux.
13002 * 5qosinte.adb: Change Linux to GNU/Linux.
13004 * 5qosinte.ads: Change Linux to GNU/Linux.
13006 * 5qparame.ads: Change Linux to GNU/Linux.
13008 * 5qtaprop.adb: Change Linux to GNU/Linux.
13010 * 5qtaspri.ads: Change Linux to GNU/Linux.
13011 Add 2001 to copyright notice.
13013 * 5vintman.ads: Change Linux to GNU/Linux.
13014 Fix header format. Add 2001 to copyright notice.
13016 * g-soccon.ads: Change Linux to GNU/Linux.
13018 * g-trasym.ads: Change Linux to GNU/Linux.
13019 Add 2001 to copyright notice.
13021 * memtrack.adb: Change Linux to GNU/Linux.
13023 * s-intman.ads: Change Linux to GNU/Linux.
13024 Add 2001 to copyright notice. Fix header format.
13026 * s-stache.adb: Change Linux to GNU/Linux.
13028 * adaint.c: Change Linux to GNU/Linux.
13030 * cio.c: Change Linux to GNU/Linux.
13032 * cstreams.c: Change Linux to GNU/Linux.
13034 * init.c: Change Linux to GNU/Linux.
13036 * gmem.c: Change Linux to GNU/Linux.
13038 * tracebak.c: Change Linux to GNU/Linux.
13041 2001-10-02 Geert Bosch <bosch@gnat.com>
13043 * misc.c (insert_default_attributes): Add dummy version.