OSDN Git Service

2004-10-04 Thomas Quinot <quinot@act-europe.fr>
[pf3gnuchains/gcc-fork.git] / gcc / ada / ChangeLog
1 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
2
3         * exp_dist.adb: Split declaration of asynchronous flag out of
4         Add_RACW_Read_Attribute.
5         Minor reformatting for better alignment with PolyORB version.
6         Store the entity for the asynchronous flag of an RACW, rather than the
7         expression, in the asynchronous flags table. This will allow this flag
8         to be used in other subprograms beside Add_RACW_Read_Attribute.
9
10 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
11
12         * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
13         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads, 
14         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb, 
15         g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads, 
16         g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads:  Add new
17         sockets constant MSG_NOSIGNAL (Linux-specific).
18         Add new sockets constant MSG_Forced_Flags, list of flags to be set on
19         all Send operations.
20         For Linux, set MSG_NOSIGNAL on all send operations to prevent them
21         from trigerring SIGPIPE.
22         Rename components to avoid clash with Ada 2005 possible reserved
23         word 'interface'.
24         (Check_Selector): When the select system call returns with an error
25         condition, propagate Socket_Error to the caller.
26
27 2004-10-01  Jan Hubicka  <jh@suse.cz>
28
29         * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
30
31 2004-09-23  Robert Dewar  <dewar@gnat.com>
32
33         PR ada/17540
34
35         * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
36         instead do this at freeze time (we won't do it if there is an address
37         clause).
38         Change "pragma inline" to "pragma Inline" in information and error
39         messages.
40         Minor reformatting.
41
42         * freeze.adb (Check_Address_Clause): Remove previous change, not the
43         right way of doing things after all.
44         (Freeze_Entity): For object, set Is_Public for imported entities
45         unless there is an address clause present.
46
47 2004-09-21  Olivier Hainque  <hainque@act-europe.fr>
48
49         * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
50         dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
51         ensures proper handling of types with rep clauses, which might have
52         their TYPE_SIZE set already.
53
54 2004-09-21  Robert Dewar  <dewar@gnat.com>
55
56         * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
57         packed array types in both little- and big-endian cases. This change
58         ensures that we no longer count on the unused bits being initialized
59         for such types (and in particular ensures that equality testing will
60         only read the relevant bits).
61         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
62         These changes mean that we no longer need to initialize small packed
63         arrays.
64         (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
65         optimization to an LJM field as to its parent field.
66
67         * ada-tree.h, trans.c, utils.c, utils2.c:
68         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
69
70 2004-09-20  Jan Hubicka  <jh@suse.cz>
71
72         * utils.c (gnat_finalize): Remove.
73         (end_subprog_body): Directly call cgraph_finalize_function;
74         do not lower the nested functions.
75
76 2004-09-20  Robert Dewar  <dewar@gnat.com>
77
78         PR ada/17540
79
80         * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
81         if an address clause is present, since that means that the Import
82         should be ignored.
83
84 2004-09-20  Arnaud Charlet  <charlet@act-europe.fr>
85
86         * 5tsystem.ads: Removed, no longer used.
87
88 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
89             Zack Weinberg  <zack@codesourcery.com>
90
91         * ada-tree.def: Use tree_code_class enumeration constants
92         instead of code letters.
93         * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
94         Update for new tree-class enumeration constants.
95
96 2004-09-17  Vincent Celier  <celier@gnat.com>
97
98         * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
99         capabilities of the general project manager.
100
101 2004-09-09  Vincent Celier  <celier@gnat.com>
102
103         * a-direct.ads: Add pragma Ada_05
104         (Directory_Entry_Type): Give default value to component Kind to avoid
105         not initialized warnings.
106
107         * a-direct.adb (Current_Directory): Remove directory separator at the
108         end.
109         (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
110         an existing directory.
111         (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
112         (Size (String)): Function C_Size returns Long_Integer, not File_Size.
113         Convert the result to File_Size.
114
115         * prj.ads: (Project_Error): New exception
116
117         * prj-attr.adb: Except in procedure Initialize, Fail comes from
118         Prj.Com, not from Osint.
119         (Attrs, Package_Attributes): Tables moved to private part of spec
120         (Add_Attribute, Add_Unknown_Package): Moved to new child package
121         Prj.Attr.PM.
122         (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
123         Prj.Project_Error after call to Fail.
124         (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
125         Fail. Check that package name is not already in use.
126
127         * prj-attr.ads: Comment updates to indicate that all subprograms may be
128         used by tools, not only by the project manager, and to indicate that
129         exception Prj.Prj_Error may be raised in case of problem.
130         (Add_Unknown_Package, Add_Attribute): Moved to new child package
131         Prj.Attr.PM.
132         (Attrs, Package_Attributes): Table instantiations moved from the body to
133         the private part to be accessible from Prj.Attr.PM body.
134
135         * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
136         from new package Prj.Attr.PM.
137         (Parse_Attribute_Declaration): Call Add_Attribute from new package
138         Prj.Attr.PM.
139
140         * Makefile.in: Add prj-attr-pm.o to gnatmake object list
141
142         * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
143         instead of Elaboration_Checks).
144
145         * a-calend.adb: Minor reformatting
146
147 2004-09-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
148
149         * gigi.h (maybe_pad_type): New declaration.
150         (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
151
152         * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
153
154         * cuintp.c: Convert to use buildN.
155
156         * decl.c (maybe_pad_type): No longer static.
157         (gnat_to_gnu_entity, case E_Function): Handle case of returning by
158         target pointer.
159         Convert to use buildN.
160
161         * trans.c (call_to_gnu): Add arg GNU_TARGET; support
162         TYPE_RETURNS_BY_TARGET_PTR_P.  All callers changed.
163         (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
164         RHS.
165         (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
166         (gnat_gimplify_expr, case ADDR_EXPR): New case.
167         Convert to use buildN.
168
169         * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
170         TREE_READONLY for const.
171         Convert to use buildN.
172
173         * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
174         (create_var_decl): Refine when TREE_STATIC is set.
175         Convert to use buildN.
176
177 2004-09-09  Gary Dismukes  <dismukes@gnat.com>
178
179         * gnat_ugn.texi: Delete text relating to checking of ali and object
180         consistency.
181
182         * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
183         routines.
184
185 2004-09-09  Jose Ruiz  <ruiz@act-europe.fr>
186
187         * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
188         pragmas recognized by GNAT.
189
190         * gnat_rm.texi: Document pragma Detect_Blocking.
191
192         * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
193         raise Program_Error if called from a protected operation.
194
195         * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
196         the protected action nesting level.
197         (Lock_Read_Only): When pragma Detect_Blocking is active increase the
198         protected action nesting level.
199         (Unlock): When pragma Detect_Blocking is active decrease the protected
200         action nesting level.
201
202         * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
203         Protected_Action_Nesting.
204
205         * s-taskin.ads: Adding the field Protected_Action_Nesting to the
206         Common_ATCB record. It contains the dynamic level of protected action
207         nesting for each task. It is needed for checking whether potentially
208         blocking operations are called from protected operations.
209         (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
210         Detect_Blocking is active or not in the partition.
211
212         * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
213         raise Program_Error if called from a protected operation.
214         (Task_Entry_Call): When pragma Detect_Blocking is active, raise
215         Program_Error if called from a protected operation.
216         (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
217         Program_Error if called from a protected operation.
218
219         * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
220         raise Program_Error if called from a protected operation.
221
222         * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
223         raise Program_Error if called from a protected operation, and increase
224         the protected action nesting level.
225         (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
226         Program_Error if called from a protected operation, and increase the
227         protected action nesting level.
228         (Unlock_Entries): When pragma Detect_Blocking is active decrease the
229         protected action nesting level.
230
231         * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
232         raise Program_Error if called from a protected operation, and increase
233         the protected action nesting level.
234         (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
235         Program_Error if called from a protected operation, and increase the
236         protected action nesting level.
237         (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
238         raise Program_Error if called from a protected operation.
239         (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
240         active, raise Program_Error if called from a protected operation.
241         (Unlock_Entry): When pragma Detect_Blocking is active decrease the
242         protected action nesting level.
243
244         * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
245         insertion of the statement raising Program_Error. The run time
246         contains the required machinery for handling that.
247
248         * sem_util.ads: Change comment associated to procedure
249         Check_Potentially_Blocking_Operation.
250         This procedure does not insert a call for raising the exception because
251         that is currently done by the run time.
252
253         * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
254
255         * init.c: Add the global variable __gl_detect_blocking that indicates
256         whether pragma Detect_Blocking is active (1) or not (0). Needed for
257         making the pragma available at run time.
258         (__gnat_set_globals): Pass and update the detect_blocking parameter.
259
260         * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
261         pragma Detect_Blocking is active.
262
263         * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
264
265         * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
266         DB is found in the ali file. Any unit compiled with pragma
267         Detect_Blocking active forces its effect in the whole partition.
268
269         * a-retide.adb (Delay_Until): Raise Program_Error if pragma
270         Detect_Blocking is active and delay is called from a protected
271         operation.
272
273         * bindgen.adb (Gen_Adainit_Ada): When generating the call to
274         __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
275         Detect_Blocking is active (0 otherwise).
276         (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
277         as Detect_Blocking parameter if pragma Detect_Blocking is active (0
278         otherwise).
279
280 2004-09-09  Thomas Quinot  <quinot@act-europe.fr>
281
282         * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
283         GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
284         package.
285
286         * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
287         (Register_Receiving_Stub): Add Subp_Info formal parameter.
288         Update API in placeholder implemetation of s-parint to reflect changes
289         in distribution runtime library.
290
291         * sem_ch3.adb (Expand_Derived_Record): Rename to
292         Expand_Record_Extension.
293
294         * sem_disp.adb (Check_Controlling_Formals): Improve error message for
295         primitive operations of potentially distributed object types that have
296         non-controlling anonymous access formals.
297
298         * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
299         subprogram.
300         New implementation of expansion for remote access-to-subprogram types,
301         based on the RACW infrastructure.
302         This version of sem_dist is compatible with PolyORB/DSA as well as
303         GLADE.
304
305         * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
306         Asynchrronous that applies to a remote access-to-subprogram type, mark
307         the underlying RACW type as asynchronous.
308
309         * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
310          __gnat_using_gnu_linker to 1.
311
312         * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
313         g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
314         GNAT.Perfect_Hash_Generators, and remove the empty
315         GNAT.Perfect_Hash package.
316
317         * atree.adb: Minor reformatting
318
319         * exp_ch3.adb (Expand_Derived_Record): Rename to
320         Expand_Record_Extension.
321         (Build_Record_Init_Proc.Build_Assignment): The default expression in
322         a component declaration must remain attached at that point in the
323         tree so New_Copy_Tree copies it if the enclosing record type is derived.
324         It is therefore necessary to take a copy of the expression when building
325         the corresponding assignment statement in the init proc.
326         As a side effect, in the case of a derived record type, we now see the
327         original expression, without any rewriting that could have occurred
328         during expansion of the ancestor type's init proc, and we do not need
329         to go back to Original_Node.
330
331         * exp_ch3.ads (Expand_Derived_Record): Rename to
332         Expand_Record_Extension.
333
334         * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
335         Returns the RACW type used to implement a remote access-to-subprogram
336         type.
337         (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
338         New subprograms. Used to create a proxy tagged object for a remote
339         subprogram. The proxy object is used as the designated object
340         for RAS values on the same partition (unless All_Calls_Remote applies).
341         (Build_Get_Unique_RP_Call): New subprogram. Build a call to
342         System.Partition_Interface.Get_Unique_Remote_Pointer.
343         (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
344         Renamed from Add_RAS_*_Attribute.
345         (Add_Receiving_Stubs_To_Declarations): Generate a table of local
346         subprograms.
347         New implementation of expansion for remote access-to-subprogram types,
348         based on the RACW infrastructure.
349
350         * exp_dist.ads (Copy_Specification): Update comment to note that this
351         function can copy the specification from either a subprogram
352         specification or an access-to-subprogram type definition.
353
354 2004-09-09  Ed Schonberg  <schonberg@gnat.com>
355
356         * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
357         in an instance, between an explicit subprogram an one inherited from a
358         type derived from an actual.
359
360         * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
361         add a polling call if the subprogram is to be inlined by the back-end,
362         to avoid repeated calls with multiple inlinings.
363
364         * checks.adb (Apply_Alignment_Check): If the expression in the address
365         clause is a call whose name is not a static entity (e.g. a dispatching
366         call), treat as dynamic.
367
368 2004-09-09  Robert Dewar  <dewar@gnat.com>
369
370         * g-trasym.ads: Minor reformatting
371
372         * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
373         packed arrays, since unused bits are expected to be zero for a
374         comparison.
375
376 2004-09-09  Eric Botcazou  <ebotcazou@act-europe.fr>
377
378         * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
379         comment.
380
381 2004-09-09  Pascal Obry  <obry@gnat.com>
382
383         * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
384         enable map file generation. Add the right option to generate the map
385         file if Map_File is set to True.
386
387         * gnatdll.adb (Gen_Map_File): New variable.
388         (Syntax): Add info about new -m (Map_File) option.
389         (Parse_Command_Line): Add support for -m option.
390         (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
391         Minor reformatting.
392
393 2004-09-09  Laurent Pautet  <pautet@act-europe.fr>
394
395         * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
396         new gnatdist implementation.
397         Define a subpackage isolating the output routines specific to this
398         verbose mode.
399
400 2004-09-09  Joel Brobecker  <brobecker@gnat.com>
401
402         * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
403
404         * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
405
406 2004-09-09  Cyrille Comar  <comar@act-europe.fr>
407
408         * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
409         internal unit.
410
411         * opt.ads: Add Ada_Version_Runtime constant used to decide which
412         version of the language is used to compile the run time.
413
414 2004-09-09  Arnaud Charlet  <charlet@act-europe.fr>
415
416         * sem_util.adb (Requires_Transient_Scope): Re-enable handling
417         of variable length temporaries for function return now that the
418         back-end and gigi support it.
419
420 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
421
422         * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
423
424         * trans.c (struct stmt_group): Delete field GLOBAL.
425         (gnat_init_stmt_group): Do not initialize it.
426         (call_to_gnu): Use save_expr, not protect_multiple_eval.
427         (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
428         (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
429         (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
430         (start_stmt_group): Likewise.
431         (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
432
433         * utils2.c (ggc.h): Include.
434         (build_call_raise): Call build_int_cst, not build_int_2.
435
436         * utils.c (gnat_init_decl_processing): Fix arg to
437         build_common_tree_nodes.
438         (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
439         (gnat_define_builtin): Set built_in_decls.
440         (init_gigi_decls): Call build_int_cst, not build_int_2.
441
442         * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
443         (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
444         (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
445         (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
446         SET_TYPE_MODULE): Use them.
447         (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
448         (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
449         (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
450         SET_TYPE_ADA_SIZE): Likewise.
451         (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
452         (DECL_CONST_CORRESPONDING_VAR,
453         SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
454         (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
455         (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
456         (TYPE_RM_SIZE_NUM): New macro.
457         (TYPE_RM_SIZE): Modified to use above.
458
459         * cuintp.c: (build_cst_from_int): New function.
460         (UI_To_gnu): Use it.
461
462         * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
463         (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
464         (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
465         MIN_EXPR for the size, copy it into new.
466
467 2004-09-01  Robert Dewar  <dewar@gnat.com>
468
469         * exp_ch6.adb (Expand_Call): Properly handle validity checks for
470         packed indexed component where array is an IN OUT formal. This
471         generated garbage code previously.
472
473         * gnat_ugn.texi: Document -fverbose-asm
474
475         * gnat-style.texi: Minor updates (note that boolean constants and
476         variables are joined with AND/OR rather than short circuit forms).
477
478 2004-09-01  Ed Schonberg  <schonberg@gnat.com>
479
480         * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
481         it is an upward conversion of an untagged type with no representation
482         change.
483
484 2004-09-01  Thomas Quinot  <quinot@act-europe.fr>
485
486         * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
487         System.Partition_Interface.
488
489         * checks.adb (Apply_Access_Checks): Do not generate checks when
490         expander is not active (but check for unset reference to prefix of
491         dereference).
492
493         * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
494         pragma Debug as an if statement with a constant condition, for
495         consistent treatment of entity references contained within the
496         enclosed procedure call.
497
498 2004-09-01  Vincent Celier  <celier@gnat.com>
499
500         * bindgen.adb: (Set_EA_Last): New procedure
501         (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
502         Set_EA_Last.
503         (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
504         (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
505         linked without errors.
506         (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
507         ST and EA.
508         (Gen_Exception_Table_C): Correct same bugs
509
510         * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
511
512         * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
513         on Windows, make sure that the drive letter is in upper case.
514
515         * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
516         Windows, when the drive letter is added and Case_Sensitive is True, the
517         drive letter is forced to upper case.
518
519         * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
520         to Options_2 for the call to MLib.Utl.Gcc.
521
522         * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
523         directory separator when defining BASE_DIR.
524
525 2004-09-01  Pascal Obry  <obry@gnat.com>
526
527         * gprcmd.adb (Extend): Do not output trailing directory separator. This
528         is not needed and it confuses Windows GNU/make which does not report
529         directory terminated by a slash as a directory.
530         (gprcmd): Idem for "pwd" internal command.
531
532         * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
533         target names rewrite to fix regressions with recent version of
534         GNU/make. Starting with GNU/make 3.80 the pipe character was not
535         handled properly anymore.
536
537 2004-09-01  Andreas Schwab  <schwab@suse.de>
538
539         * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
540         * raise.c [!IN_RTS]: Undef abort.
541
542 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
543
544         * utils2.c (build_allocator): Use ssize_int.
545
546         * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
547
548 2004-08-27  Andreas Schwab  <schwab@suse.de>
549
550         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
551
552 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
553             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
554
555         * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
556
557 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
558
559         * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
560         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
561         * utils.c (init_gigi_decls): Likewise.
562         * utils2.c (build_call_raise, build_allocator): Likewise.
563
564 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
565
566         * utils.c (gnat_init_decl_processing): Adjust
567         build_common_tree_nodes call.
568
569 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
570
571         * utils2.c (build_allocator): Use build_int_cst for negative
572         size types.
573
574 2004-08-18  Richard Henderson  <rth@redhat.com>
575
576         * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
577
578 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
579
580         * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
581         call.s
582         * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
583         (gnat_to_gnu): Likewise.
584
585 2004-08-16  Pascal Obry  <obry@gnat.com>
586
587         * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
588         backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
589         option and not mdll anymore. Update comment.
590
591 2004-08-16  Pascal Obry  <obry@gnat.com>
592
593         * bld.adb (Put_Include_Project): Properly handle directory separators
594         on Windows.
595
596 2004-08-16  Ed Schonberg  <schonberg@gnat.com>
597
598         * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
599         decreasing the number of allocated junk nodes while searching for the
600         appropriate subprogram.
601
602 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
603
604         * cuintp.c (UI_To_gnu): Use build_int_cst..
605         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
606         * utils.c (init_gigi_decls): Likewise.
607         * utils2.c (build_call_raise): Likewise.
608
609 2004-08-13  Olivier Hainque  <hainque@act-europe.fr>
610
611         * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
612         for a global aliased object with a variable size and an unconstrained
613         nominal subtype, pretend there is no initializer if the one we have is
614         incomplete, and avoid referencing an inexistant component in there. The
615         part we have will be rebuilt anyway and the reference may confuse
616         further operations.
617
618 2004-08-13  Thomas Quinot  <quinot@act-europe.fr>
619
620         * einfo.ads: Minor reformatting
621
622         * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
623         restrictions in the ALI if we only want to warn about violations.
624
625 2004-08-13  Vincent Celier  <celier@gnat.com>
626
627         * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
628         when creating a new Unit_Record in table Units.
629
630         * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
631         that are violated, if any.
632
633         * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
634         add directory separator if path already ends with a directory separator.
635
636 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
637
638         * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
639         unit, this is an attempt to inline a construct that is not available in
640         the current restricted mode, so abort rather than trying to continue.
641
642         * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
643         discriminants that rename those of the parent, recover names of
644         original discriminants for the constraint on the full view of the
645         parent.
646         (Complete_Private_Subtype): Do not create a subtype declaration if the
647         subtype is an itype.
648
649         * gnat_rm.texi: Added section on implementation of discriminated
650         records with default values for discriminants.
651
652 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
653
654         PR ada/15601
655         * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
656         the second operand is overloaded.
657
658 2004-08-10  Richard Henderson  <rth@redhat.com>
659
660         * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
661         add __builtin_alloca.
662
663 2004-08-10  Richard Henderson  <rth@redhat.com>
664
665         * config-lang.in (boot_language): Yes.
666
667 2004-08-09  Thomas Quinot  <quinot@act-europe.fr>
668
669         * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
670         from complaining on potential uninitialized reference.
671         Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
672         new specification and test explicitly for non-zero return value.
673
674         * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
675         returning C.int, to avoid using a derived boolean type.
676
677         * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
678         Duplicate_Subexpr_No_Checks in preference to direct use of
679         Remove_Side_Effects and New_Copy_Tree.
680         Clear Comes_From_Source on prefix of 'Size attribute reference.
681
682         * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
683         g-socthi-vxworks.adb: Change calls to
684         GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
685         and test explicitly for non-zero return value.
686
687         * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
688         (Is_Socket_In_Set): Declare imported function as returning C.int, to
689         avoid using a derived boolean type.
690
691 2004-08-09  Albert Lee  <lee@gnat.com>
692
693         * system-irix-n32.ads: Refine tasking priority constants for IRIX.
694
695 2004-08-09  Pascal Obry  <obry@gnat.com>
696
697         * gnat_ugn.texi: Document new way to build DLLs on Windows using
698         GCC's -shared option.
699
700         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
701         Options_2 parameter (options put after object files).
702
703 2004-08-09  Olivier Hainque  <hainque@act-europe.fr>
704
705         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
706         ignore overflows on low and high bounds of an index to also account for
707         differences in signedness between sizetype and gnu_index_subtype.
708         These are as legitimate as the ones caused by a lower TYPE_PRECISION
709         on sizetype.
710
711 2004-08-09  Robert Dewar  <dewar@gnat.com>
712
713         * s-solita.ads, s-solita.adb: Minor reformatting
714
715         * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
716         Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
717         obsolescent section
718         Add note that No_Implicit_Conditionals does not suppress
719         run time constraint checks.
720
721         * vms_conv.ads: Minor reformatting
722
723         * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
724         and necessary for following change).
725         (Mark): Return new format Mark_Id containing sec stack address
726         (Release): Use sec stack address from Mark_Id avoiding Self call
727
728         * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
729         pointer (cleanup and necessary for following change).
730         Define Mark_Id as record containing address of secondary stack, that way
731         Release does not need to find the stack again, decreasing the number of
732         calls to Self and improving efficiency.
733
734         * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
735
736         * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
737         case variable into the individual case branches when possible.
738
739         * sem_ch11.adb: Minor reformatting
740
741         * prj.ads: Correct spelling of suffixs
742
743         * prj-nmsc.adb: Minor reformatting
744         Correct spelling suffixs throughout (also in identifiers)
745
746         * freeze.adb: Minor spelling correction
747
748         * exp_ch2.adb: Cleanups to handling of Current_Value
749         (no functional effect).
750
751         * bld.adb: Correct spelling of suffixs
752
753         * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
754
755 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
756
757         PR ada/15408
758
759         * sem_ch7.adb (Install_Private_Declarations): In the body of the
760         package or of a child, private entities are both immediately_visible
761         and not hidden.
762
763 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
764
765         * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
766         there are no range checks on the value of the literal.
767
768         * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
769         wrapped is the triggering alternative of an asynchronous select, action
770         statements mustbe inserted before the select itself.
771
772         * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
773         case where the prefix is a protected function call.
774         (Resolve_Attribute, case 'Access): The attribute reference on a
775         subprogram is legal in a generic body if the subprogram is declared
776         elsewhere.
777
778 2004-08-09  Vincent Celier  <celier@gnat.com>
779
780         * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
781         languages, otherwise building the library may fail with unresolved
782         symbols.
783         (Compile_Sources): Do not build libraries if -c switch is used
784
785         * gnatlink.adb (Process_Args): New switches -M and -Mmap
786         (Write_Usage): If map file creation is supported, output new switches
787         -M and -Mmap.
788         (Gnatlink): When -M is specified, add the necessary switch(es) to the
789         gcc call, when supported.
790
791         * Makefile.in: Added indepsw.o to the object list for gnatlink
792         Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
793
794         * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
795         indepsw.adb, indepsw.ads: New files.
796
797 2004-08-09  Bernard Banner  <banner@gnat.com>
798
799         * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
800
801         * Makefile.in: add section for vxworks x86
802
803 2004-08-09  Hristian Kirtchev  <kirtchev@gnat.com>
804
805         * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
806         per-object constrained components where the discriminant is of an
807         Access type.
808         (Build_Record_Init_Proc): Add condition to prevent the inheritance of
809         the parent initialization procedure for derived Unchecked_Unions.
810         Instead, derived Unchecked_Unions build their own initialization
811         procedure.
812         (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
813         Check the body of the subprogram for details.
814         (Freeze_Record_Type): Prevent the inheritance of discriminant checking
815         functions for derived Unchecked_Union types by introducing a condition.
816         Allow the creation of TSS equality functions for Unchecked_Unions.
817         (Make_Eq_Case): Rename formal parameter Node to E in function signature.
818         Add formal parameter Discr to function signature. Discr is used to
819         control the generated case statement for Unchecked_Union types.
820         (Make_Eq_If): Rename formal parameter Node to E in function signature.
821
822         * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
823         Unchecked_Unions.
824         Check the body of the subprogram for details.
825         (Expand_Composite_Equality): Augment composite type equality to include
826         correct handling of Unchecked_Union components.
827         (Expand_N_In): Add condition to detect illegal membership tests when the
828         subtype mark is a constrained Unchecked_Union and the expression lacks
829         inferable discriminants, and build a Raise_Program_Error node.
830         (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
831         to detect types that contain components of unconstrained Unchecked_Union
832         subtype. Add condition to detect equality between types that have an
833         unconstrained Unchecked_Union component, and build a Raise_Program_Error
834         node. Add condition to detect equality between Unchecked_Union types
835         that lack inferable discriminants, and build a Raise_Program_Error node.
836         Otherwise build a TSS equality function call.
837         (Expand_N_Type_Conversion): Add condition to detect illegal conversions
838         from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
839         with the operand lacking inferable discriminants, and build a Raise_
840         Program_Error node.
841         (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
842         composite equality.
843         (Has_Inferable_Discriminants): Implement new predicate for objects and
844         expressions of Unchecked_Union type. Check the body of subprogram for
845         details.
846         (Has_Unconstrained_UU_Components): Add function
847         Component_Is_Unconstrained_UU. It is used to detect whether a single
848         component is of an unconstrained Unchecked_Union subtype. Add function
849         Variant_Is_Unconstrained_UU. It is used to detect whether a single
850         component inside a variant is of an unconstrained Unchecked_Union type.
851
852         * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
853         inferred discriminant values. Add condition to generate a case
854         statement with an inferred discriminant as the switch.
855         (Make_Component_List_Assign): Introduce a Boolean flag that determines
856         the behaviour of the subprogram in the presence of an Unchecked_Union.
857         Add condition to trigger the usage of the inferred discriminant value
858         as the generated case statement switch.
859         (Make_Field_Assign): Introduce a Boolean flag that determines the
860         behaviour of the subprogram in the presence of an Unchecked_Union. Add
861         condition to trigger the usage of the inferred discriminant value as
862         the right-hand side of the generated assignment.
863
864         * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
865         parameter generation when dealing with Unchecked_Unions.
866
867         * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
868         checks for Unchecked_Unions.
869
870         * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
871
872         * exp_attr.adb (Expand_N_Attribute_Reference): Produce
873         Raise_Program_Error nodes for the execution of Read and Write
874         attributes of Unchecked_Union types and the execution of Input and
875         Output attributes of Unchecked_Union types that lack default
876         discriminant values.
877
878         * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
879         Unchecked_Union. Add procedure Check_Component. It is used to inspect
880         per-object constrained components of Unchecked_Unions for being
881         Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
882         check individual components withing a variant.
883
884         * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
885         comparison of Unchecked_Unions.
886         (Resolve_Equality_OP): Remove guard that prevents equality between
887         Unchecked_Unions.
888
889         * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
890         of component subtypes for Unchecked_Union components.
891         (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
892         since it is the actual subtype.
893
894         * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
895         pass of Unchecked_Union subtypes as generic actuals to formal types
896         that lack known_discriminant_parts or that are derived Unchecked_Union
897         types, and do nothing. In any other case, produce an error message.
898
899         * sem_ch3.adb (Analyze_Component_Declaration): Add function
900         Contains_POC. It determines whether a constraint uses the discriminant
901         of an enclosing record type.
902         Add condition to detect per-object constrained component and set the
903         appropriate flag.
904         (Derived_Type_Declaration): Remove guard that prevents derivation from
905         Unchecked_Union types.
906         (Process_Subtype): Remove quard that prevents the creation of Unchecked_
907         Union subtypes.
908
909         * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
910         references to Unchecked_Union discriminants.
911
912         * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
913         formal generation when dealing with Unchecked_Unions.
914         (Set_Actual_Subtypes): Add condition to prevent generation of actual
915         subtypes for Unchecked_Unions.
916
917         * sem_ch7.adb (Analyze_Package_Specification): Add procedure
918         Inspect_Unchecked_Union_Completion. It is used to detect incorrect
919         completions of discriminated partial views by Unchecked_Unions and
920         produce an error message.
921
922 2004-08-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
923
924         * trans.c (struct stmt_group): New field, GLOBAL.
925         (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
926         (struct elab_info): New struct.
927         (elab_info_list, gnu_elab_proc_stack): New variables.
928         (Compilation_Unit_to_gnu): New procedure.
929         (gigi): Call it and also handle elaboration procs we've saved.
930         (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
931         global field from parent.
932         (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
933         (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
934         (start_stmt_group): Initialize global field from parent.
935         (add_decl_expr): Set to global for current statement group.
936         (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
937         post.
938
939         * utils.c (global_bindings_p): True when no current_function_decl; no
940         longer check current_binding_level.
941
942 2004-08-09  Ben Brosgol  <brosgol@gnat.com>
943
944         * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
945         choice.
946
947         * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
948
949 2004-08-06  Andreas Schwab  <schwab@suse.de>
950
951         * utils.c (gnat_define_builtin): Remove second parameter of
952         make_decl_rtl.
953         (begin_subprog_body): Likewise.
954
955 2004-07-26  Arnaud Charlet  <charlet@act-europe.fr>
956
957         * sem_util.adb (Requires_Transient_Scope): Temporarily disable
958         optimization, not supported by the tree-ssa back-end.
959
960 2004-07-26  Olivier Hainque  <hainque@act-europe.fr>
961
962         * s-mastop-irix.adb: Update comments.
963
964         * a-except.adb (Exception_Information): Raise Constraint_Error if
965         exception Id is Null_Id.
966         This is required behavior, which is more reliably and clearly checked
967         at the top level interface level.
968
969 2004-07-26  Javier Miranda  <miranda@gnat.com>
970
971         * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
972         call if a component has no default_expression and the box is used.
973
974         * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
975         default_expression and you use box, it behaves as if you had declared a
976         stand-alone object.
977         (Resolve_Record_Aggregate): If a component has no default_expression and
978         you use box, it behaves as if you had declared a stand-alone object.
979
980         * sem_ch10.adb (Install_Siblings): Do not make visible the private
981         entities of private-with siblings.
982
983 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
984
985         * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
986         for a component of an itype, set the parent pointer for analysis,
987         there is no list in which to insert it.
988
989         * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
990         bona-fide renamings, not for inherited operations.
991
992         * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
993         actual for a formal that is an access parameter, create local
994         finalization list even if the expression is not an aggregate.
995
996 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
997
998         PR ada/16213
999         * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
1000         Diagnose properly illegal subprogram renamings that are library units.
1001
1002 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
1003
1004         PR ada/15588
1005         * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
1006         conversion rewritten as an unchecked conversion, check that original
1007         expression is a variable.
1008
1009         * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
1010         unchecked_conversion, create new node rather than rewriting in place,
1011         to preserve original construct.
1012
1013 2004-07-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1014
1015         * gigi.h (gnat_expand_body): Deleted.
1016
1017         * Make-lang.in: (trans.o): Depends on function.h.
1018
1019         * misc.c: (gnat_expand_body): Moved to here.
1020
1021         * trans.c (gnat_expand_body_1): Deleted.
1022         (gnat_expand_body): Moved from here.
1023         (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
1024         (add_stmt): Check for marked visited with global_bindings_p.
1025         (gnat_gimplify_expr, case COMPONENT_REF): New case.
1026         (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
1027
1028         * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
1029         VIEW_CONVERT_EXPR if not operation type.
1030
1031         * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
1032         fat pointer.
1033
1034         * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
1035         changes: reformatting of negation operators, removing unneeded
1036         inequality comparison with zero, converting equality comparisons with
1037         zero to negations, changing int/0/1 to bool/false/true, replace calls
1038         to gigi_abort with abort, and various other similar changes.
1039
1040 2004-07-26  Vincent Celier  <celier@gnat.com>
1041
1042         * gnatcmd.adb (GNATCmd): Add processing for new built-in command
1043         "setup".
1044
1045         * make.adb (Gnatmake): Fail when a library is not present and there is
1046         no object directory.
1047
1048         * mlib-prj.adb (Check_Library): No need to check if the library needs
1049         to be rebuilt if there is no object directory, hence no object files
1050         to build the library.
1051
1052         * opt.ads (Setup_Projects): New Boolean flag.
1053
1054         * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
1055         Location.
1056         Create directory when Kind /= "" and in "gnat setup". Report error if
1057         directory cannot be created.
1058         (Ada_Check): Create library interface copy dir if it does not exist
1059         and we are in "gnat setup".
1060         (Find_Sources): No error if in "gnat setup" and no Ada sources were
1061         found.
1062         (Language_Independent_Check): Create object directory, exec directory
1063         and/or library directory if they do not exist and we are in
1064         "gnat setup".
1065
1066         * vms_conv.ads: (Command_Type): New command Setup.
1067
1068         * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
1069
1070         * vms_data.ads: Add qualifiers/switches for new built-in command
1071         "setup".
1072
1073 2004-07-25  Richard Henderson  <rth@redhat.com>
1074
1075         * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
1076         DECL_IGNORED_P on RESULT_DECL.
1077
1078 2004-07-20  Olivier Hainque  <hainque@act-europe.fr>
1079
1080         * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
1081         allocation and potentially overflowing update with
1082         Tailored_Exception_Information. Use the sec-stack free procedural
1083         interface to output Exception_Information instead.
1084
1085         * a-except.adb (To_Stderr): New subprogram for character, and string
1086         version moved from a-exextr to be visible from other separate units.
1087         (Tailored_Exception_Information): Remove the procedural version,
1088         previously used by the default Last_Chance_Handler and not any more.
1089         Adjust various comments.
1090
1091         * a-exexda.adb: Generalize the exception information procedural
1092         interface, to minimize the use of secondary stack and the need for
1093         local buffers when the info is to be output to stderr:
1094         (Address_Image): Removed.
1095         (Append_Info_Character): New subprogram, checking for overflows and
1096         outputing to stderr if buffer to fill is of length 0.
1097         (Append_Info_String): Output to stderr if buffer to fill is of length 0.
1098         (Append_Info_Address, Append_Info_Exception_Name,
1099         Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
1100         Append_Info_Basic_Exception_Traceback,
1101         Append_Info_Exception_Information): New subprograms.
1102         (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
1103         (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
1104         Exception_Info_Maxlength, Exception_Name_Length,
1105         Exception_Message_Length): New subprograms.
1106         (Exception_Information): Use Append_Info_Exception_Information.
1107         (Tailored_Exception_Information): Use
1108         Append_Info_Basic_Exception_Information.
1109         Export services for the default Last_Chance_Handler.
1110
1111         * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
1112         other separate units.
1113
1114 2004-07-20  Vincent Celier  <celier@gnat.com>
1115
1116         * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
1117
1118 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
1119
1120         * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
1121         emit itype references for the designated types of component types that
1122         are declared outside of the full record declaration, and that may
1123         denote a partial view of that record type.
1124
1125 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
1126
1127         PR ada/15607
1128         * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
1129         which is the designated type in an access component declaration, to the
1130         list of incomplete dependents of the parent type, to avoid elaboration
1131         issues with out-of-scope subtypes.
1132         (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
1133         full view of the parent.
1134
1135 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
1136
1137         PR ada/15610
1138         * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
1139         entities that are hidden, such as references to generic actuals
1140         outside an instance.
1141
1142 2004-07-20  Javier Miranda  <miranda@gnat.com>
1143
1144         * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
1145         support to the new notation.
1146         (Analyze_Selected_Component): Add call to Try_Object_Operation.
1147
1148 2004-07-20  Jose Ruiz  <ruiz@act-europe.fr>
1149
1150         * s-taprob.adb: Adding the elaboration code required for initializing
1151         the tasking soft links that are common to the full and the restricted
1152         run times.
1153
1154         * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
1155         restricted run time has been moved to the package
1156         System.Soft_Links.Tasking.
1157
1158         * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
1159         restricted run time has been moved to the package
1160         System.Soft_Links.Tasking.
1161
1162         * Makefile.rtl: Add entry for s-solita.o in run-time library list.
1163
1164         * s-solita.ads, s-solita.adb: New files.
1165
1166 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1167
1168         * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
1169         Case_Statement_to_gnu): Split off from gnat_to_gnu.
1170         (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
1171         Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
1172         Exception_Handler_to_gnu_zcx): Likewise.
1173
1174 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
1175
1176         * gigi.h (builtin_function): Declare.
1177
1178 2004-07-15  Robert Dewar  <dewar@gnat.com>
1179
1180         * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
1181         reformatting
1182
1183         * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
1184         access values as an example of a warning.
1185
1186         * gnat_rm.texi: Document new attribute Has_Access_Values
1187
1188         * gnat-style.texi: Document that box comments belong on nested
1189         subprograms
1190
1191         * sem_util.ads (Has_Access_Values): Improved documentation
1192
1193         * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
1194
1195         * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
1196         (Process_Interface_Name): Call to this new procedure
1197         (Set_Extended_Import_Export_External_Name): Call to this new procedure
1198
1199         * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
1200
1201         * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
1202
1203         * einfo.ads: Minor comment typo fixed
1204
1205 2004-07-15  Jose Ruiz  <ruiz@act-europe.fr>
1206
1207         * snames.adb: Add _atcb.
1208
1209         * snames.ads: Add Name_uATCB.
1210
1211         * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
1212         (in the expanded code) when using the restricted run time.
1213
1214         * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
1215         a in parameter in order to allow ATCBs to be preallocated (in the
1216         expanded code).
1217
1218         * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
1219         order to allow ATCBs to be preallocated. In case of error, the ATCB is
1220         deallocated in System.Tasking.Stages.
1221
1222         * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
1223         order to allow ATCBs to be preallocated.
1224
1225         * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
1226         here. It was previously done in Initialize_ATCB.
1227
1228         * rtsfind.ads: Make the Ada_Task_Control_Block visible.
1229
1230         * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
1231         Restricted run time.
1232
1233         * exp_ch3.adb: When using the Restricted run time, pass the
1234         preallocated Ada_Task_Control_Block when creating a task.
1235
1236 2004-07-15  Ed Schonberg  <schonberg@gnat.com>
1237
1238         * sem_util.adb (Normalize_Actuals): If there are no actuals on a
1239         function call that is itself an actual in an enclosing call, diagnose
1240         problem here rather than assuming that resolution will catch it.
1241
1242         * sem_ch7.adb (Analyze_Package_Specification): If the specification is
1243         the local copy of a generic unit for a formal package, and the generic
1244         is a child unit, install private part of ancestors before compiling
1245         private part of spec.
1246
1247         * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
1248         use scope entities rather than tree structures, to handle properly
1249         parent units that are instances rewritten as bodies for inlining
1250         purposes.
1251
1252         * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
1253         Remove_Parents): Handle properly a parent unit that is an
1254         instantiation, when the unit has been rewritten as a body for inlining
1255         purposes.
1256
1257         * par.adb (Goto_List): Global variable to collect goto statements in a
1258         given unit, for use in detecting natural loops.
1259
1260         * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
1261         use in detecting natural loops.
1262
1263         * par-labl.adb (Find_Natural_Loops): Recognize loops create by
1264         backwards goto's, and rewrite as a infinite loop, to improve locality
1265         of temporaries.
1266
1267         * exp_util.adb (Force_Evaluation): Recognize a left-hand side
1268         subcomponent that includes an indexed reference, to prevent the
1269         generation of copies that would miscompile the desired assignment
1270         statement.
1271         (Build_Task_Image_Decls): Add a numeric suffix to
1272         generated name for string variable, to avoid spurious conflicts with
1273         the name of the type of a single protected object.
1274
1275         * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
1276         loop with an explicit exit statement, to avoid generating an
1277         out-of-range value with 'Succ leading to spurious constraint_errors
1278         when compiling with -gnatVo.
1279
1280 2004-07-15  Thomas Quinot  <quinot@act-europe.fr>
1281
1282         * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
1283         might not be analyzed yet, even if its Etype is already set (case of an
1284         unchecked conversion built using Unchecked_Convert_To, for example).
1285         If the prefix has already been analyzed, this will be a nop anyway.
1286
1287         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
1288         controller type, or an assignment of a record type with controlled
1289         components, copy only user data, and leave the finalization chain
1290         pointers untouched.
1291
1292 2004-07-15  Vincent Celier  <celier@gnat.com>
1293
1294         * make.adb (Collect_Arguments): Improve error message when attempting
1295         to compile a source not part of any project, when -x is not used.
1296
1297         * prj.ads: (Defined_Variable_Kind): New subtype
1298
1299         * prj-attr.adb (Register_New_Package): Two new procedures to register
1300         a package with or without its attributes.
1301         (Register_New_Attribute): Mew procedure to register a new attribute in a
1302         package.
1303         New attribute oriented subprograms: Attribute_Node_Id_Of,
1304         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
1305         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
1306         Next_Attribute.
1307         New package oriented subprograms: Package_Node_Id_Of,
1308         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
1309
1310         * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
1311         type.
1312         (Package_Node_Id): Now a private, self initialized type
1313         (Register_New_Package): New procedure to register a package with its
1314         attributes.
1315         New attribute oriented subprograms: Attribute_Node_Id_Of,
1316         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
1317         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
1318         Next_Attribute.
1319         New package oriented subprograms: Package_Node_Id_Of,
1320         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
1321
1322         * prj-dect.adb (Parse_Attribute_Declaration,
1323         Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
1324
1325         * prj-makr.adb (Make): Parse existing project file before creating
1326         other files. Fail if there was an error during parsing.
1327
1328         * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
1329         new spec of Prj.Attr.
1330
1331         * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
1332         to new spec of Prj.Attr.
1333
1334 2004-07-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1335
1336         * utils2.c: Fix typo in comment.
1337
1338 2004-07-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1339
1340         * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
1341         * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
1342
1343 2004-07-14  Andreas Schwab  <schwab@suse.de>
1344
1345         * trans.c (gnat_init_stmt_group): Remove duplicate definition.
1346
1347 2004-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1348
1349         * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
1350         object type.
1351         (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
1352         TYPE_STUB_DECL.
1353
1354         * misc.c (gnat_types_compatible_p): New function.
1355         (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
1356         (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
1357
1358         * trans.c (gigi): Move processing of main N_Compilation_Unit here.
1359         (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
1360         (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
1361         (mark_visited): Don't mark dummy type.
1362         (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
1363         parameter, we must remove any LJM building from GNU_NAME.
1364         (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
1365         (pos_to_constructor): Use int_const_binop.
1366         (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
1367         PARM_DECL.
1368
1369         * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
1370         (gnat_pushlevel): Set TREE_USE on BLOCK node.
1371         (gnat_install_builtins): Add __builtin_memset.
1372
1373 2004-07-13  Olivier Hainque  <hainque@act-europe.fr>
1374
1375         * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
1376         for a renaming, stabilize the initialization expression if we are at a
1377         local level.  At the local level, uses of the renaming may be performed
1378         by a direct dereference of the initializing expression, and we don't
1379         want possible variables there to be evaluated for every use.
1380
1381         * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
1382         Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
1383         them on the way.  Account for the fact that we may introduce side
1384         effects in the process.
1385
1386 2004-07-13  Richard Henderson  <rth@redhat.com>
1387
1388         * misc.c (default_pass_by_ref): Use pass_by_reference.
1389
1390 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
1391
1392         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
1393         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
1394
1395 2004-07-08  Richard Henderson  <rth@redhat.com>
1396
1397         * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
1398         commentary.
1399
1400 2004-07-06  Vincent Celier  <celier@gnat.com>
1401
1402         * vms_conv.ads: Minor reformatting.
1403         Alphabetical order for enumerated values of type Command_Type, to have
1404         the command in alphabetical order for the usage.
1405
1406         * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
1407         the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
1408
1409         * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
1410
1411         * makegpr.adb (Global_Archive_Exists): New global Boolean variable
1412         (Add_Archive_Path): Only add the global archive if there is one.
1413         (Build_Global_Archive): Set Global_Archive_Exists depending if there is
1414         or not any object file to put in the global archive, and don't build
1415         a global archive if there is none.
1416         (X_Switches): New table
1417         (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
1418         in the X_Switches table, if any.
1419         (Initialize): Make sure the X_Switches table is empty
1420         (Scan_Arg): Record -X switches in table X_Switches
1421
1422         * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
1423
1424         * make.adb: Minor comment fix
1425
1426         * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
1427         invoked with directory information, add the directory in front of the
1428         path.
1429
1430         * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
1431         invoked with directory information, add the directory in front of the
1432         path.
1433
1434         * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
1435         when Keep_Temporary_Files is False.
1436         (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
1437         directory information, add the directory in front of the path.
1438         When not on VMS, handle new switch -dn before the command to set
1439         Keep_Temporary_Files to True.
1440         (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
1441         everywhere.
1442
1443         * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
1444         invoked with directory information, add the directory in front of the
1445         path.
1446
1447 2004-07-06  Thomas Quinot  <quinot@act-europe.fr>
1448
1449         * snames.ads, snames.adb (Name_Stub): New name for the distributed
1450         systems annex.
1451
1452         * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
1453         New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
1454
1455         * g-socket.adb (To_Timeval): Fix incorrect conversion of
1456         Selector_Duration to Timeval for the case of 0.0.
1457
1458         * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
1459         documentation from Evolve_And_Then.
1460
1461 2004-07-06  Jose Ruiz  <ruiz@act-europe.fr>
1462
1463         * s-taprop-tru64.adb, s-taprop-os2.adb,
1464         s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
1465
1466 2004-07-06  Robert Dewar  <dewar@gnat.com>
1467
1468         * s-osinte-hpux.ads, s-osinte-freebsd.ads,
1469         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
1470         s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
1471         s-interr-sigaction.adb, s-taprop-irix-athread.adb,
1472         s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
1473         s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
1474         s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
1475         s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
1476         a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
1477         a-tags.ads, bindgen.ads, checks.adb, checks.adb,
1478         csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
1479         exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
1480         g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
1481         i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
1482         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
1483         sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
1484         sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
1485         s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
1486         s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
1487         s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
1488         vms_data.ads: Minor reformatting,
1489         Fix bad box comment format.
1490
1491         * gnat_rm.texi: Fix minor grammatical error
1492
1493         * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
1494
1495         * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
1496         more cases of discriminated records to be recognized as not needing a
1497         secondary stack.
1498         (Has_Access_Values): New function.
1499
1500         * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
1501
1502         * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
1503         Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
1504         with LRM terminology).
1505         Change terminology in comments primitive type => elementary type.
1506
1507 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
1508
1509         PR ada/15602
1510         * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
1511         parameters do not impose any requirements on the presence of a body.
1512
1513 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
1514
1515         PR ada/15593
1516         * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
1517         compilation unit and is in an open scope at the point of instantiation,
1518         assume that a body may be present later.
1519
1520 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
1521
1522         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
1523         Improve error message when specified size is not supported.
1524
1525         * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
1526         is never a primitive operation.
1527
1528 2004-07-05  Andreas Schwab  <schwab@suse.de>
1529
1530         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
1531         RECORD_OR_UNION_CHECK.
1532         (TYPE_CONTAINS_TEMPLATE_P): Likewise.
1533
1534 2004-07-04  Kelley Cook  <kcook@gcc.gnu.org>
1535
1536         * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
1537         dependency on xgnatugn, instead build it via a submake.
1538         (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
1539
1540 2004-07-04  Richard Henderson  <rth@redhat.com>
1541
1542         * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
1543
1544 2004-07-01  Richard Henderson  <rth@redhat.com>
1545
1546         * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
1547         * utils.c (max_size): Likewise.
1548
1549 2004-06-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1550
1551         * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
1552         and rest_of_type_compilation; add arg to create_*_decl.
1553         (annotate_decl_with_node): Deleted.
1554         (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
1555         * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
1556         (get_current_block_context, gnat_pushdecl): New declarations.
1557         (gnat_init_stmt_group): Likewise.
1558         (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
1559         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
1560         (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
1561         (gnat_init): Call gnat_init_stmt_group.
1562         * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
1563         (gnu_pending_elaboration_list): Deleted.
1564         (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
1565         (gigi): Rearrange initialization calls and move some to last above.
1566         (gnat_to_gnu): If statement and not in procedure, go into elab proc.
1567         Delete calls to add_decl_expr; add arg to create_*_decl.
1568         (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
1569         (gnat_to_gnu, case N_Subprogram_Body): Move some code to
1570         begin_subprog_body and call it.
1571         Don't push and pop ggc context.
1572         (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
1573         (add_stmt): Remove handling of DECL_EXPR from here.
1574         If not in function, mark visited.
1575         (add_decl_expr): Put global at top level.
1576         Check for cases of DECL_INITIAL we have to handle here.
1577         (process_type): Add extra arg to create_type_decl.
1578         (build_unit_elab): Rework to just gimplify.
1579         * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
1580         (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
1581         (get_pending_elaborations, pending_elaborations_p): Likewise.
1582         (push_pending_elaborations, pop_pending_elaborations): Likewise.
1583         (get_elaboration_location, insert_elaboration_list): Likewise.
1584         (gnat_binding_level): Renamed from ada_binding_level.
1585         (init_gnat_to_gnu): Don't clear pending_elaborations.
1586         (global_bindings_p): Treat as global if no current_binding_level.
1587         (set_current_block_context): New function.
1588         (gnat_pushdecl): Renamed from pushdecl; major rework.
1589         All callers changed.
1590         (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
1591         (finish_record_type): Call call pushdecl for stub decl.
1592         (function_nesting_depth): Deleted.
1593         (begin_subprog_body): Delete obsolete code.
1594         * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
1595
1596 2004-06-28  Robert Dewar  <dewar@gnat.com>
1597
1598         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
1599         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
1600         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
1601         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
1602         a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
1603
1604         * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
1605         deal with problem of inefficient slices on machines with strict
1606         alignment, when the slice is a component of a composite.
1607
1608         * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
1609         machines, we need the check there as well.
1610
1611 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
1612
1613         * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
1614         determine safe copying direction for overlapping slice assignments
1615         when component is controlled.
1616
1617         * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
1618         formal derived type in the actual for a formal package are visible in
1619         the enclosing instance.
1620
1621 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
1622
1623         PR ada/15600
1624         * sem_util.adb (Trace_Components): Diagnose properly an illegal
1625         circularity involving a private type whose completion includes a
1626         self-referential component.
1627         (Enter_Name): Use Is_Inherited_Operation to distinguish a source
1628         renaming or an instantiation from an implicit derived operation.
1629
1630 2004-06-28  Pascal Obry  <obry@gnat.com>
1631
1632         * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
1633         DLL.
1634         (Library_File_Name_For): Idem.
1635
1636 2004-06-28  Matthew Gingell  <gingell@gnat.com>
1637
1638         * g-traceb.ads: Add explanatory note on the format of addresses
1639         expected by addr2line.
1640
1641 2004-06-28  Jerome Guitton  <guitton@act-europe.fr>
1642
1643         * Makefile.in: Force debugging information on s-tasdeb.adb,
1644         a-except.adb and s-assert.adb needed by the debugger.
1645
1646 2004-06-28  Vincent Celier  <celier@gnat.com>
1647
1648         * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
1649         Need_To_Build_Lib.
1650         (Gnatmake): Ditto.
1651
1652         * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
1653
1654         * prj.adb: Minor reformatting
1655         (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
1656
1657         * prj.ads: Comment updates
1658         Minor reformatting
1659         (Project_Data): Change Flag1 to Need_To_Build_Lib.
1660         Remove Flag2: not used.
1661
1662         * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
1663         declaration.
1664
1665         * gnat_ugn.texi: Put a "null;" declaration in one project file example
1666
1667         * gnat_rm.texi: Document Empty declarations "null;".
1668
1669         * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
1670         front of the linker options.
1671         (Link_Foreign): Put the global archives and the libraries in front of
1672         the linker options.
1673
1674 2004-06-28  Javier Miranda  <miranda@gnat.com>
1675
1676         * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
1677         (RTU_Loaded): Code cleanup
1678         (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
1679         withed predefined units.
1680
1681         * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
1682         explicitly withed predefined units.
1683         Fix typo in comment
1684
1685         * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
1686         explicitly withed predefined units.
1687
1688 2004-06-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1689
1690         * ada-tree.def (DECL_STMT): Deleted.
1691         * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
1692         (DECL_STMT_VAR): Deleted.
1693         * decl.c: add_decl_stmt now add_decl_expr.
1694         * gigi.h: Likewise.
1695         * trans.c: Likewise.
1696         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
1697         (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
1698         (add_stmt): Only handle padded type here.
1699         (add_stmt_with_node): Allow gnat_node to not be present.
1700         (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
1701         (gnat_gimplify_stmt, case DECL_STMT): Deleted.
1702         (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
1703         make a SAVE_EXPR for the entire fat pointer.
1704         * utils.c (pushdecl): Walk a DECL_EXPR in global case.
1705         (create_index_type): Make a DECL_EXPR.
1706         (end_subprog_body): Don't call allocate_struct_function here but
1707         do clear cfun.
1708
1709 2004-06-25  Pascal Obry  <obry@gnat.com>
1710
1711         * makegpr.adb (Build_Library): Remove parameter Lib_Address and
1712         Relocatable from Build_Dynamic_Library call.
1713
1714         * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
1715         Relocatable are now synonym.
1716
1717         * Makefile.in: Use s-parame-mingw.adb on MingW platform.
1718
1719         * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
1720         Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
1721         call.
1722
1723         * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
1724         Lib_Address and Relocatable.
1725         (Default_DLL_Address): Removed.
1726
1727         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
1728         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
1729         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
1730         (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
1731         (Default_DLL_Address): Removed.
1732
1733         * mlib-tgt-mingw.adb: Ditto.
1734         (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
1735
1736         * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
1737         the initial thread stack size.
1738
1739         * a-strmap.ads: Move package L to private part as it is not used in
1740         the spec. Found while reading code.
1741
1742 2004-06-25  Olivier Hainque  <hainque@act-europe.fr>
1743
1744         * tracebak.c: Introduce support for a GCC infrastructure based
1745         implementation of __gnat_backtrace.
1746
1747         * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
1748         any more. Use accessors instead. This eases maintenance and relaxes
1749         some alignment constraints.
1750         (_GNAT_Exception structure): Remove the Ada specific fields
1751         (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
1752         a-exexpr.adb.
1753         (is_handled_by, __gnat_eh_personality): Replace component references to
1754         exception structure by use of the new accessors.
1755
1756         * init.c (__gnat_initialize): Adjust comments to match the just
1757         reverted meaning of the -static link-time option.
1758
1759         * adaint.c (convert_addresses): Arrange not to define a stub for
1760         mips-irix any more, as we now want to rely on a real version from a
1761         recent libaddr2line.
1762
1763         * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
1764         the personality routine can use them and not have to rely on a C
1765         counterpart of the record anymore. This simplifies maintenance and
1766         relaxes the constraint of having Standard'Maximum_Alignment match
1767         BIGGEST_ALIGNMENT.
1768         Update comments, and add a section on the common header alignment issue.
1769
1770 2004-06-25  Geert Bosch  <bosch@gnat.com>
1771
1772         * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
1773         polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
1774
1775 2004-06-25  Robert Dewar  <dewar@gnat.com>
1776
1777         * gnat_rm.texi: Fix section on component clauses to indicate that the
1778         restriction on byte boundary placement still applies for bit packed
1779         arrays.
1780         Add comment on stack usage from Initialize_Scalars
1781
1782         * gnat_ugn.texi: Add documentation for -gnatyLnnn
1783
1784         * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
1785         limiting nesting level.
1786
1787         * usage.adb: Add line for -gnatyLnnn switch
1788
1789         * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
1790         sem_ch13.adb, exp_aggr.adb: Minor reformatting
1791
1792         * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
1793         type as well as on the subtype. This corrects a problem in freeze in
1794         setting alignments of atomic types.
1795
1796         * sem_eval.ads: Minor comment typo fixed
1797
1798         * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
1799         level.  Minor reformatting.
1800
1801         * fname.adb (Is_Predefined_File_Name): Require a letter after the
1802         minus sign. This means that file names like a--b.adb will not be
1803         considered predefined.
1804
1805         * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
1806         record Test new flag and give diagnostic for bad component clause.
1807         (Freeze_Entity): Set alignment of array from component alignment in
1808         cases where this is safe to do.
1809
1810         * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
1811         arrays.
1812
1813         * cstand.adb: (Create_Standard): Set alignment of String to 1
1814
1815         * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
1816
1817         * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
1818         code in the common constrained array cases.
1819
1820         * a-storio.adb: Change implementation to avoid possible alignment
1821         problems on machines requiring strict alignment (data should be moved
1822         as type Buffer, not type Elmt).
1823
1824         * checks.adb (Apply_Array_Size_Check): Improve these checks by
1825         killing the overflow checks which we really do not need (64-bits is
1826         enough).
1827
1828 2004-06-25  Vincent Celier  <celier@gnat.com>
1829
1830         * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
1831         (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
1832         inconditionally for the main project.
1833         (Recursive_Add_Archives.Add_Archive_Path): New procedure
1834         (Link_Executables.Check_Time_Stamps): New procedure
1835         (Link_Executables.Link_Foreign): New procedure
1836         Changes made to reduce nesting level of this package
1837         (Check): New procedure
1838         (Add_Switches): When not in quiet output, check that a switch is not
1839         the concatenation of several valid switches. If it is, issue a warning.
1840         (Build_Global_Archive): If the global archive is rebuilt, linking need
1841         to be done.
1842         (Compile_Sources): Rebuilding a library archive does not imply
1843         rebuilding the global archive.
1844         (Build_Global_Archive): New procedure
1845         (Build_Library): New name for Build_Archive, now only for library
1846         project
1847         (Check_Archive_Builder): New procedure
1848         (Create_Global_Archive_Dependency_File): New procedure
1849         (Gprmake): Call Build_Global_Archive before linking
1850         * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
1851         throughout.
1852         (Scan_Arg): Display the Copyright notice when -v is used
1853
1854         * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
1855         for gnatls.
1856
1857         * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
1858         COMPILE.
1859         Add new GNAT LIST qualifier /FILES=
1860         Added qualifier /DIRECTORY= to GNAT METRIC
1861         Added qualifier /FILES= to GNAT METRIC
1862         Added qualifier /FILES to GNAT PRETTY
1863
1864         * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
1865         to take into account both versions of the switch.
1866
1867         * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
1868         always be the last switch to the gcc driver. Disable switch storing so
1869         that switches automatically added by the gcc driver are not put in the
1870         ALI file.
1871
1872         * prj.adb (Project_Empty): Take into account changes in components of
1873         Project_Data.
1874
1875         * prj.ads (Languages_Processed): New enumaration value All_Languages.
1876
1877         * prj.ads (Project_Data): Remove component Lib_Elaboration: never
1878         used. Split Boolean component Ada_Sources_Present in two Boolean
1879         components Ada_Sources_Present and Other_Sources_Present.
1880         Minor reformatting
1881
1882         * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
1883         instead of Sources_Present.
1884         (Set_Ada_Paths.Add.Recursive_Add): Ditto
1885
1886         * prj-nmsc.adb: Minor reformatting
1887         (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
1888         (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
1889         Check_Ada_Naming_Scheme.
1890         Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
1891         throughout.
1892
1893         * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
1894         In_Limited.
1895         Make sure that all cycles where there is at least one "limited with"
1896         are detected.
1897         (Parse_Single_Project): New Boolean parameter In_Limited
1898
1899         * prj-proc.adb (Recursive_Check): When Process_Languages is
1900         All_Languages, call first Prj.Nmsc.Ada_Check, then
1901         Prj.Nmsc.Other_Languages_Check.
1902
1903         * prj-proc.adb (Process): Use Ada_Sources_Present or
1904         Other_Sources_Present (instead of Sources_Present) depending on
1905         Process_Languages.
1906
1907         * lang-specs.h: Keep -g and -m switches in the same order, and as the
1908         last switches.
1909
1910         * lib.adb (Switch_Storing_Enabled): New global Boolean flag
1911         (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
1912         False.
1913         (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
1914         False.
1915
1916         * lib.ads (Disable_Switch_Storing): New procedure.
1917
1918         * make.adb: Modifications to reduce nesting level of this package.
1919         (Check_Standard_Library): New procedure
1920         (Gnatmake.Check_Mains): New procedure
1921         (Gnatmake.Create_Binder_Mapping_File): New procedure
1922         (Compile_Sources.Compile): Add switch -gnatez as the last option
1923         (Display): Never display -gnatez
1924
1925         * Makefile.generic:
1926         When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
1927
1928         * gnatcmd.adb (Check_Project): New function
1929         (Process_Link): New procedure to reduce nesting depth
1930         (Check_Files): New procedure to reduce the nesting depth.
1931         For GNAT METRIC, include the inherited sources in extending projects.
1932         (GNATCmd): When GNAT LS is invoked with a project file and no files,
1933         add the list of files from the sources of the project file. If this list
1934         is too long, put it in a temp text files and use switch -files=
1935         (Delete_Temp_Config_Files): Delete the temp text file that contains
1936         a list of source for gnatpp or gnatmetric, if one has been created.
1937         (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
1938         in the project file is too large, create a temporary text file that
1939         list them and pass it to the tool with "-files=<temp text file>".
1940         (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
1941
1942         * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
1943         generated file is in not in Ada.
1944
1945         * gnatls.adb: Remove all parameters And_Save that are no longer used.
1946         (Scan_Ls_Arg): Add processing for -files=
1947         (Usage): Add line for -files=
1948
1949         * g-os_lib.adb (On_Windows): New global constant Boolean flag
1950         (Normalize_Pathname): When on Windows and the path starts with a
1951         directory separator, make sure that the resulting path will start with
1952         a drive letter.
1953
1954         * clean.adb (Clean_Archive): New procedure
1955         (Clean_Project): When there is non-Ada code, delete the global archive,
1956         the archive dependency files, the object files and their dependency
1957         files, if they exist.
1958         (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
1959
1960 2004-06-25  Thomas Quinot  <quinot@act-europe.fr>
1961
1962         * sinfo.ads: Fix typo in comment.
1963
1964         * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
1965         the TSS for remote access-to-subprogram types, since these TSS are
1966         always present once the type has been analyzed.
1967         (RAS_E_Dereference): Same.
1968
1969         * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
1970         reference raises Bad_Attribute, mark the reference as analyzed so the
1971         node (and any children resulting from rewrites that could have occurred
1972         during the analysis that ultimately failed) is not analyzed again.
1973
1974         * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
1975
1976         * exp_dist.adb: Minor comment fix.
1977
1978         * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
1979         type is an anonymous access type, no unchecked deallocation of the
1980         allocated object can occur. If the object is controlled, attach it with
1981         a count of 1. This allows attachment to the Global_Final_List, if
1982         no other relevant list is available.
1983         (Get_Allocator_Final_List): For an anonymous access type that is
1984         the type of a discriminant or record component, the corresponding
1985         finalisation list is the one of the scope of the type.
1986
1987 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
1988
1989         * sem_ch3.adb (Replace_Type): When computing the signature of an
1990         inherited subprogram, use the first subtype if the derived type
1991         declaration has no constraint.
1992
1993         * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
1994         before applying previous optimization. Minor code cleanup.
1995
1996         * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
1997         placed at the beginning of an unpacked record without explicit
1998         alignment, a slice of it will be aligned and does not need a copy when
1999         used as an actual.
2000
2001 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
2002
2003         PR ada/15591
2004         PR ada/15592
2005         * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
2006         reference is written with expressions mimicking parameters.
2007
2008 2004-06-25  Hristian Kirtchev  <kirtchev@gnat.com>
2009
2010         PR ada/15589
2011         * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
2012         STEP 2a. The constraints of a full type declaration of a derived record
2013         type are checked for conformance with those declared in the
2014         corresponding private extension declaration. The message
2015         "not conformant with previous declaration" is emitted if an error is
2016         detected.
2017
2018 2004-06-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
2019
2020         * g-traceb.ads: Document the need for -E binder switch in the spec.
2021
2022         * g-trasym.ads: Document the need for -E binder switch in the spec.
2023
2024 2004-06-25  Jose Ruiz  <ruiz@act-europe.fr>
2025
2026         * sem_prag.adb: Add handling of pragma Detect_Blocking.
2027
2028         * snames.h, snames.ads, snames.adb: Add entry for pragma
2029         Detect_Blocking.
2030
2031         * s-rident.ads: Change reference to pragma Detect_Blocking.
2032
2033         * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
2034         system.ads.
2035
2036         * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
2037         to indicate whether pragma Detect_Blocking is active.
2038
2039         * par-prag.adb: Add entry for pragma Detect_Blocking.
2040
2041         * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
2042         of not handling WITH.
2043         Note that this replaces the previous update which was incorrect.
2044
2045 2004-06-25  Javier Miranda  <miranda@gnat.com>
2046
2047         * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
2048         use-clauses to have a clean environment.
2049
2050         * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
2051         the installation of the use-clauses to stablish a clean environment in
2052         case of compilation of a separate unit; otherwise the call to
2053         use_one_package is protected by the barrier Applicable_Use.
2054
2055         * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
2056         the installation of the use-clauses to stablish a clean environment in
2057         case of compilation of a separate unit.
2058         (End_Use_Clauses): Minor comment cleanup.
2059
2060 2004-06-25  Sergey Rybin  <rybin@act-europe.fr>
2061
2062         * gnat_ugn.texi: Add description of the gnatpp 'files' switch
2063
2064 2004-06-23  Richard Henderson  <rth@redhat.com>
2065
2066         * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
2067
2068 2004-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2069
2070         * decl.c (elaborate_expression, elaborate_expression_1): Arguments
2071         now bool instead of int.
2072         (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
2073         * trans.c (gnu_switch_label_stack): New function.
2074         (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
2075         elaboration of renamed entity returns.
2076         (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
2077         (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
2078         (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
2079         (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
2080         DECL_SIZE_UNIT and simplify variable-sized case.
2081         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
2082         Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
2083         (gnat_stabilize_reference): Add arg to COMPONENT_REF.
2084         (build_unit_elab): Disable for now.
2085         * utils.c (mark_visited): New function.
2086         (pushdecl): Walk tree to call it for global decl.
2087         (update_pointer_to): Update all variants of pointer and ref types.
2088         Add arg to COMPONENT_REF.
2089         (convert): Likewise.
2090         Move check for converting between variants lower down.
2091         * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
2092         (build_allocator): Don't force type of MODIFY_EXPR.
2093         (gnat_mark_addressable, case VAR_DECL): Unconditionally call
2094         put_var_into_stack.
2095
2096 2004-06-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2097
2098         * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
2099         * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
2100         * decl.c (gnat_to_gnu_entity): Also set force_global for imported
2101         subprograms.
2102         * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
2103         all callers changed.
2104         (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
2105         the way that EXIT_STMT finds the loop label.
2106         (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
2107         (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
2108         (add_stmt): Use annotate_with_locus insted of setting directly.
2109         (pos_to_construct): Set TREE_PURPOSE of each entry to index.
2110         (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
2111         * utils.c (gnat_install_builtins): Install __builtin_memcmp.
2112         (build_vms_descriptor): Add extra args to ARRAY_REF.
2113         (convert): Use VIEW_CONVERT_EXPR between aggregate types.
2114         * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
2115         New cases.
2116         (build_binary_op): Don't make explicit CONVERT_EXPR.
2117         Add extra rgs to ARRAY_REF.
2118
2119 2004-06-14  Pascal Obry  <obry@gnat.com>
2120
2121         * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
2122         Windows.  Fix minor typo.
2123
2124         * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
2125         which is now supported on Windows. With this implementation using the
2126         Library Project feature is no different on Windows than on UNIX.
2127
2128 2004-06-14  Vincent Celier  <celier@gnat.com>
2129
2130         * makegpr.adb (Compile_Sources): Nothing to do when there are no
2131         non-Ada sources.
2132
2133         * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
2134
2135         * prj-part.adb (Parse_Single_Project): When a duplicate project name is
2136         found, show the project name and the path of the previously parsed
2137         project file.
2138
2139 2004-06-14  Ed Schonberg  <schonberg@gnat.com>
2140
2141         * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
2142         array, avoid copying the actual before the call.
2143
2144 2004-06-14  Thomas Quinot  <quinot@act-europe.fr>
2145
2146         * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
2147         Instead, allocate memory on worst-case alignment assumptions, and then
2148         return an aligned address within the allocated zone.
2149
2150 2004-06-14  Robert Dewar  <dewar@gnat.com>
2151
2152         * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
2153         elab entities in predefined units in No_Run_Time_Mode.
2154         (Gen_Adainit_C): Same fix
2155         (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
2156         units in No_Run_Time_Mode
2157         (Gen_Elab_Calls_C): Same fix
2158
2159         * symbols-vms-alpha.adb: Minor reformatting
2160
2161         * g-debpoo.ads: Minor reformatting
2162
2163         * lib.adb (In_Same_Extended_Unit): Version working on node id's
2164
2165         * lib.ads (In_Same_Extended_Unit): Version working on node id's
2166
2167         * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
2168         working on nodes.
2169
2170         * make.adb: Minor reformatting
2171
2172         * par-ch12.adb: Minor reformatting
2173
2174         * par-prag.adb: Add dummy entry for pragma Profile_Warnings
2175
2176         * prj-strt.adb: Minor reformatting
2177
2178         * restrict.ads, restrict.adb: Redo handling of profile restrictions to
2179         be more general.
2180
2181         * sem_attr.adb: Minor reformatting
2182
2183         * sem_ch7.adb: Minor reformatting
2184
2185         * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
2186         for type in the same unit as the object declaration.
2187
2188         * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
2189         static string expressions and not just string literals.
2190         Minor reformatting
2191         (Set_Warning): Reset restriction warning flag for restriction pragma
2192         Implement pragma Profile_Warnings
2193         Implement pragma Profile (Restricted)
2194         Give obolescent messages for old restrictions and pragmas
2195
2196         * snames.h, snames.ads, snames.adb: Add new entry for pragma
2197         Profile_Warnings.
2198
2199         * s-rident.ads: Add declarations for restrictions required by profile
2200         Restricted and profile Ravenscar.
2201
2202         * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
2203
2204         * gnat_ugn.texi: Correct some missing entries in the list of GNAT
2205         configuration pragmas.
2206
2207 2004-06-11  Vincent Celier  <celier@gnat.com>
2208
2209         * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
2210         gnatsym, when symbol policy is Restricted.
2211
2212         * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
2213         gnatsym, when symbol policy is Restricted.
2214
2215         * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
2216         read the symbol file.
2217         (Finalize): Fail in symbol policy Restricted if a symbol in the original
2218         symbol file is not in the object files. Do not create a new symbol file
2219         when symbol policy is Restricted.
2220
2221         * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
2222         in Scng.
2223
2224         * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
2225         Restricted.
2226         (Usage): Line for new switch -R
2227
2228         * make.adb (Initialize): When the platform is not VMS, add the
2229         directory where gnatmake is invoked in the front of the path, if
2230         gnatmake is invoked with directory information.  Change the Scan_Args
2231         while loop to a for loop.
2232         (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
2233         if Depth is equal or greater than the proposed depth, there is nothing
2234         to do.
2235         (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
2236         instead of 0.
2237
2238         * prj.ads: Add new symbol policy Restricted.
2239
2240         * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
2241         with the new parameters Check_All_Labels and Case_Location.
2242
2243         * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
2244         (Library_Symbol_File needs to be defined).
2245
2246         * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
2247         and Case_Location If Check_All_Labels is True, check that all values of
2248         the string type are used, and output warning(s) if they are not.
2249
2250         * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
2251         and Case_Location.
2252
2253         * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
2254
2255         * gnat_ugn.texi: Update documentation about the library directory in
2256         Library Projects.
2257
2258         * makegpr.adb (Display_Command): In verbose mode, also display the
2259         value of the CPATH env var, when the compiler is gcc.
2260         (Initialize): Change the Scan_Args while loop to a for loop
2261         (Compile_Individual_Sources): Change directory to object directory
2262         before compilations.
2263
2264         * symbols.ads: New symbol policy Restricted.
2265
2266 2004-06-11  Olivier Hainque  <hainque@act-europe.fr>
2267
2268         * a-except.adb (Raise_After_Setup family): Remove. The responsibility
2269         is now taken care of internally in the Exception_Propagation package
2270         and does not require clients assistance any more.
2271
2272         * a-exexpr.adb (Is_Setup_And_Not_Propagated,
2273         Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
2274         functions. Helpers to maintain a predicate required in the handling of
2275         occurrence transfer between tasks.
2276         This is now handled internally and does not require clients assistance
2277         for the setup/propagate separation anymore.
2278         (Setup_Exception, Propagate_Exception): Simplify the Private_Data
2279         allocation strategy, handle the Setup_And_Not_Propagated predicate and
2280         document.
2281
2282         * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
2283         raise_after_setup, now that everything is handled internally within the
2284         setup/propagation engine.
2285
2286 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
2287
2288         * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
2289         Add additional conditions for the case of an actual being a simple
2290         name or literal. Improve inlining by preventing the generation
2291         of temporaries with a short lifetime (one use).
2292
2293 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
2294
2295         PR ada/15587
2296
2297         * einfo.ads: Minor comment updates for Has_Completion and
2298         E_Constant list of flags.
2299
2300         * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
2301         and constant redeclarations now set the Has_Completion flag of their
2302         defining identifiers.
2303
2304         * sem_ch7.adb (Analyze_Package_Spec): Add procedure
2305         Inspect_Deferred_Constant_Completion.
2306         Used to detect private deferred constants that have not been completed
2307         either by a constant redeclaration or pragma Import. Emits error message
2308         "constant declaration requires initialization expression".
2309
2310         * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
2311         completes a deferred constant.
2312
2313 2004-06-11  Geert Bosch  <bosch@gnat.com>
2314
2315         * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
2316
2317         * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
2318         calculating exponent for scaling denormal numbers.
2319         (Leading_Part): Properly raise Constraint_Error for zero or negative
2320         Adjustment.
2321         (Remainder): Properly raise Constraint_Error for zero divisor.
2322
2323 2004-06-11  Thomas Quinot  <quinot@act-europe.fr>
2324
2325         * sem_util.adb: Minor reformatting.
2326
2327         * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
2328         dereference when accessing the entry parameter record.
2329         (Check_Array_Type): Always check for possible implicit dereference.
2330         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
2331         Abort if a pointer is still present (denoting that an implicit
2332         dereference was left in the tree by the front-end).
2333
2334         * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
2335         dereference when accessing the entry parameter record.
2336         (Check_Array_Type): Always check for possible implicit dereference.
2337         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
2338         Abort if a pointer is still present (denoting that an implicit
2339         dereference was left in the tree by the front-end).
2340
2341 2004-06-11  Emmanuel Briot  <briot@act-europe.fr>
2342
2343         * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
2344         message, like the compiler itself does. Easier to parse the output.
2345
2346         * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
2347
2348         * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
2349         be base names, and not includes directories.
2350
2351 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
2352
2353         * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
2354         so that dependencies are properly taken into account by make.
2355
2356 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
2357
2358         PR ada/15622
2359         * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
2360         exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
2361
2362 2004-06-11  Jerome Guitton  <guitton@act-europe.fr>
2363
2364         * Makefile.in (install-gnatlib): install target-specific run-time files.
2365
2366         * Make-lang.in: Remove obsolete targets.
2367
2368 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
2369
2370         * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
2371         specification, to catch misuses of program unit names.
2372
2373         * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
2374         superfluous conversions in an instance.
2375
2376 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
2377
2378         PR ada/15403
2379
2380         * sem_ch12.adb (Save_References): If operator node has been folded to
2381         enumeration literal, associated_node must be discarded.
2382
2383 2004-06-11  Jose Ruiz  <ruiz@act-europe.fr>
2384
2385         * s-stchop-vxworks.adb: Add required pragma Convention to
2386         Task_Descriptor because it is updated by a C function.
2387
2388 2004-06-08  Arnaud Charlet  <charlet@act-europe.fr>
2389
2390         PR ada/15568
2391
2392         * Makefile.in: Remove target specific SO_OPT on IRIX
2393
2394 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2395
2396         * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
2397         (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
2398         (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
2399         (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
2400         (STMT_STMT, USE_STMT): New statement codes.
2401         (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
2402         * ada-tree.h: Reflect above changes.
2403         (struct tree_loop_id): Deleted.
2404         (union lang_tree_node, struct lang_decl, struct lang_type):
2405         Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
2406         and DECL_LANGUAGE_SPECIFIC to reflect these changes.
2407         (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
2408         (IS_ADA_STMT): New macro.
2409         * decl.c (annotate_decl_with_node): New function.
2410         (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
2411         (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
2412         Call add_stmt_with_node to do needed assignments.
2413         Add call to update setjmp buffer directly, not via EXPR_STMT.
2414         (maybe_variable): Argment GNAT_NODE deleted.
2415         * gigi.h (maybe_variable): Likewise.
2416         (make_transform, add_stmt_with_node, set_block_for_group): New.
2417         (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
2418         (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
2419         (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
2420         (set_lineno, set_lineno_from_sloc): Likewise.
2421         (record_code_position, insert_code_for): Likewise.
2422         (gnat_poplevel): Now returns void.
2423         (end_subprog_body): Now takes argument.
2424         * misc.c (cgraph.h, tree-inline.h): New includes.
2425         (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
2426         (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
2427         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
2428         (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
2429         (gnat_parse_file): Don't set immediate_size_expand.
2430         Call cgraph functions.
2431         (gnat_expand_expr): Remove most cases.
2432         (record_code_position, insert_code_for): Remove from here.
2433         * trans.c (toplev.h, tree-gimple.h): Now included.
2434         (discard_file_names): Deleted.
2435         (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
2436         (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
2437         (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
2438         (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
2439         (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
2440         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
2441         (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
2442         (set_block_for_group, add_stmt_list): Likewise.
2443         (start_stmt_group): Renamed from start_block_stmt.
2444         (end_stmt_group): Likewise, from end_block_stmt.
2445         (build_stmt_group): Likewise, from build_block_stmt, also add arg.
2446         (gigi): Don't set discard_file_names or call set_lineno.
2447         Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
2448         (tree_transform): Deleted, now renamed to be gnat_to_gnu.
2449         Numerous changes throughout to reflect new names and complete
2450         function-at-a-time implementation.
2451         (gnat_expand_stmt): Delete or comment out all cases.
2452         (process_inlined_subprograms): Use add_stmt.
2453         (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
2454         call set_lineno; also remove unneeded block handling.
2455         (process_type): Remove unneeded block handling.
2456         (build_unit_elab): Remove calls to deleted functions.
2457         * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
2458         (tree-dump.h): Likewise.
2459         (struct ada_binding_level): Add field jmpbuf_decl.
2460         (gnat_define_builtin, gnat_install_builtins): New.
2461         (gnat_gimplify_function, gnat_finalize): Likewise.
2462         (gnat_poplevel): No longer return BLOCK, set it instead.
2463         Remove code dealing with nested functions.
2464         (gnat_init_decl_processing): Also set size_type_node.
2465         Call gnat_install_builtins.
2466         (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
2467         (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
2468         Remove special-case for "main".
2469         (end_subprog_body): Add arg and rework for tree-ssa.
2470         (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
2471         Add case for BOOLEAN_TYPE.
2472         * utils2.c (rtl.h): Now include.
2473         (build_call_raise): Test Debug_Flag_NN directly.
2474         (build_call_alloc_dealloc): Don't use local stack allocation for now.
2475         (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
2476         (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
2477
2478 2004-06-07  Robert Dewar  <dewar@gnat.com>
2479
2480         * a-direct.ads, einfo.ads: Minor comment updates
2481
2482         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
2483         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
2484         s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
2485         s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
2486         s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
2487
2488         * s-interr-sigaction.adb: Remove unreferenced variable
2489         (Attached_Interrupts).  Minor reformatting.
2490         Avoid use of variable I (replace by J).
2491
2492         * par-ch10.adb: Fix text of one error message
2493
2494         * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
2495         exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
2496         exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
2497         opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
2498         par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
2499         par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
2500         sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
2501         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
2502         sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
2503         sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
2504         snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
2505         2005 support.
2506
2507 2004-06-07  Doug Rupp  <rupp@gnat.com>
2508
2509         * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
2510
2511         * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
2512
2513         * mlib-tgt-vms-ia64.adb: New file.
2514
2515         * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
2516         Add mlib-tgt-vms-ia64.adb
2517         Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
2518         Move to alpha specific ifeq section.
2519         Add VMS specific versions of symbols.adb
2520         Renaming of 5q vms files.
2521
2522         * 5qsystem.ads renamed to system-vms_64.ads.
2523
2524 2004-06-07  Vincent Celier  <celier@gnat.com>
2525
2526         * a-calend.ads: Add a GNAT Note comment after function Time_Of to
2527         explain that when a time of day corresponding to the non existing hour
2528         on the day switching to DST is specified, Split may return a different
2529         value for Seconds.
2530
2531         * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
2532         to GNAT PRETTY.
2533
2534         * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
2535         (Normalize_Pathname): Only resolve VMS logical names when on VMS.
2536
2537         * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
2538         to False.
2539         If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
2540         the linking options.
2541         (Build_Library.Check_Libs): On VMS, if there is a dependency on
2542         g-trasym.ads, set Gtrasymobj_Needed to True.
2543
2544         * prj-attr.adb: Add new package Metrics for gnatmetric
2545
2546         * prj-nmsc.adb (Record_Other_Sources): Put source file names in
2547         canonical case to take into account files with upper case characters on
2548         Windows.
2549         (Ada_Check): Load the reference symbol file name in the name buffer to
2550         check it, not the symbol file name.
2551
2552         * snames.ads, snames.adb: Add standard name Metrics (name of project
2553         file package for gnatmetric).
2554
2555         * vms_conv.ads: Add Metric to Comment_Type
2556
2557         * vms_conv.adb (Initialize): Add component dor Metric in Command_List
2558
2559         * vms_data.ads: Add qualifiers for GNAT METRIC
2560
2561         * makegpr.adb (Link_Executables): Take into account the switches
2562         specified in package Linker of the main project.
2563
2564 2004-06-07  Thomas Quinot  <quinot@act-europe.fr>
2565
2566         * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
2567         the index of the last element is Units.Last, not Units.Table'Last
2568         (which is usually not a valid index within the actually allocated
2569         storage for the table).
2570
2571         * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
2572         determines whether to generate a call to a checked storage pool
2573         Dereference action.
2574         Generate such a call only for a dereference that either comes from
2575         source, or is the result of rewriting a dereference that comes from
2576         source.
2577
2578 2004-06-07  Romain Berrendonner  <berrendo@act-europe.fr>
2579
2580         * bindgen.adb (Gen_Output_File): Add support for GAP builds.
2581
2582 2004-06-07  Eric Botcazou  <ebotcazou@act-europe.fr>
2583
2584         (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
2585         file level, elaborate the stride for inner dimensions in alignment
2586         units, not bytes.
2587
2588         * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
2589         in a comment.
2590
2591 2004-06-07  Javier Miranda  <miranda@gnat.com>
2592
2593         * exp_ch6.adb: Correct wrong modification in previous patch
2594
2595 2004-06-07  Vasiliy Fofanov  <fofanov@act-europe.fr>
2596
2597         * g-trasym.ads: Corrected comment to properly reflect level of support
2598         on VMS.
2599
2600 2004-06-07  Hristian Kirtchev  <kirtchev@gnat.com>
2601
2602         * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
2603         includes case of a variable referenced on the left hand side of an
2604         assignment, therefore remove redundant code. Variables and prefixes of
2605         indexed or selected components are now marked as referenced on left
2606         hand side. Warnings are now properly emitted when variables or prefixes
2607         are assigned but not read.
2608
2609         * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
2610         left hand side referenced variables. Private access types do not
2611         produce the warning "variable ... is assigned but never read".
2612         Add also additional checks to left hand side referenced variables.
2613         Aliased, renamed objects and access types do not produce the warning
2614         "variable ... is assigned but never read" since other entities may read
2615         the memory location.
2616
2617 2004-06-07  Jerome Guitton  <guitton@act-europe.fr>
2618
2619         * Makefile.in: In the powerpc/vxworks-specific section, restore
2620         EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
2621         by mistake).
2622
2623 2004-06-07  Ed Schonberg  <schonberg@gnat.com>
2624
2625         * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
2626         predefined operators.
2627         Removes spurious type errors from g-trasym-vms.adb.
2628
2629         * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
2630         distinct from the operator appearing in the source, call appropriate
2631         routine to insert conversions when needed, and complete resolution of
2632         node.
2633         (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
2634         interpretations for rewritten right operand.
2635         (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
2636         the other operand is overloaded and the context is a type conversion.
2637
2638 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2639
2640         * ada-tree.def (BLOCK_STMT): Now has two operands.
2641         (BREAK_STMT): New.
2642
2643         * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
2644
2645         * gigi.h: (gnat_poplevel): Now returns a tree.
2646
2647         * trans.c (end_block_stmt): Add arg; all callers changed.
2648         (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
2649         (start_block_stmt): Clear BLOCK_STMT_BLOCK.
2650         (add_stmt): Set TREE_TYPE.
2651         (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
2652         (gnat_expand_stmt, case BREAK_STMT): New case.
2653
2654         * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
2655
2656 2004-06-07  Jose Ruiz  <ruiz@act-europe.fr>
2657
2658         * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
2659         procedure Set_Stack_Size that is not needed.
2660
2661 2004-06-07  Sergey Rybin  <rybin@act-europe.fr>
2662
2663         * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
2664         used for gnatpp input file and for the files upon which it depends
2665
2666 2004-06-07  Ben Brosgol  <brosgol@gnat.com>
2667
2668         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
2669
2670 2004-06-07  Arnaud Charlet  <charlet@act-europe.fr>
2671
2672         * gnatvsn.ads: Bump version numbers appropriately.
2673         Add new build type.
2674
2675 2004-06-07  Pascal Obry  <obry@gnat.com>
2676
2677         * gnat_ugn.texi: Improve comments about imported names and link names
2678         on Windows. Add a note about the requirement to use -k gnatdll's option
2679         when working with a DLL which has stripped stdcall symbols (no @nn
2680         suffix).
2681
2682 2004-05-27  Vincent Celier  <celier@gnat.com>
2683
2684         * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
2685         COMMENTS_LAYOUT=UNTOUCHED
2686
2687         * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
2688         symbols-vms-alpha.adb
2689
2690 2004-05-27  Thomas Quinot  <quinot@act-europe.fr>
2691
2692         * sem.ads: Clarify documentation on checks suppression.
2693
2694         * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
2695
2696 2004-05-27  Ed Schonberg  <schonberg@gnat.com>
2697
2698         * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
2699         the case of multiple derivations.
2700         (Is_Object_Reference): For a selected component, verify that the prefix
2701         is itself an object and not a value.
2702
2703         * sem_ch12.adb (Same_Instantiated_Constant): New name for
2704         Same_Instantiated_Entity.
2705         (Same_Instantiated_Variable): Subsidiary to
2706         Check_Formal_Package_Instance, to recognize actuals for in-out generic
2707         formals that are obtained from a previous formal package.
2708         (Instantiate_Subprogram_Body): Emit proper error when
2709         generating code and the proper body of a stub is missing.
2710
2711         * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
2712         has a universal interpretation, do the disambiguation here.
2713
2714         * exp_ch4.adb (Expand_N_Type_Conversion,
2715         Expand_N_Unchecked_Type_Conversion): Special handling when target type
2716         is Address, to avoid typing anomalies when Address is a visible integer
2717         type.
2718
2719         * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
2720         to determine whether a subprogram should not be marked Pure, even when
2721         declared in a pure package.
2722
2723 2004-05-27  Jose Ruiz  <ruiz@act-europe.fr>
2724
2725         * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
2726
2727         * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
2728         Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
2729         Update the documentation about the Ravenscar profile, following the
2730         definition found in AI-249.
2731
2732         * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
2733         setting the Profile (Ravenscar). This must be done in addition to
2734         setting the required restrictions.
2735
2736         * rtsfind.ads: Add the set of operations defined in package
2737         Ada.Interrupts.
2738
2739         * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
2740         restriction.
2741
2742 2004-05-27  Eric Botcazou  <ebotcazou@act-europe.fr>
2743
2744         lang-specs.h: Always require -c or -S and always redirect to /dev/null
2745         if -gnatc or -gnats is passed.
2746
2747 2004-05-27  Hristian Kirtchev  <kirtchev@gnat.com>
2748
2749         * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
2750         a significant reference. Warnings are now properly emitted when a
2751         discriminated type is not referenced.
2752
2753         * lib-xref.adb (Generate_Reference): A deferred constant completion,
2754         record representation clause or record type discriminant does not
2755         produce a reference to its corresponding entity. Warnings are now
2756         properly emitted when deferred constants and record types are not
2757         referenced.
2758
2759 2004-05-27  Geert Bosch  <bosch@gnat.com>
2760
2761         * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
2762         Fixes ACATS Annex G tests.
2763
2764 2004-05-27  Robert Dewar  <dewar@gnat.com>
2765
2766         * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
2767         handling WITH
2768
2769 2004-05-27  Arnaud Charlet  <charlet@act-europe.fr>
2770
2771         * s-interr.adb (Server_Task): Take into account case of early return
2772         from sigwait under e.g. linux.
2773
2774 2004-05-27  Sergey Rybin  <rybin@act-europe.fr>
2775
2776         * gnat_ugn.texi: Add description for the new gnatpp options:
2777          -rnb - replace the original source without creating its backup copy
2778          -c0 - do not format comments
2779
2780 2004-05-24  Geert Bosch  <bosch@gnat.com>
2781
2782         * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
2783         with 192 bits of precision, sufficient to reduce a double-extended
2784         arguments X with a maximum relative error of T'Machine_Epsilon, for X
2785         in -2.0**32 .. 2.0**32.
2786         (Cos, Sin):  Always reduce arguments of 1/4 Pi or larger, to prevent
2787         reduction by the processor, which only uses a 68-bit approximation of
2788         Pi.
2789         (Tan): Always reduce arguments and compute function either using
2790         the processor's fptan instruction, or by dividing sin and cos as needed.
2791
2792 2004-05-24  Doug Rupp  <rupp@gnat.com>
2793
2794         * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
2795         gcc error on 32/64 bit VMS.
2796
2797 2004-05-24  Olivier Hainque  <hainque@act-europe.fr>
2798
2799         * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
2800         since this is what we get for stack overflows although not documented
2801         as such.
2802         Document the issues which may require adjustments to our signal
2803         handlers.
2804
2805 2004-05-24  Ed Schonberg  <schonberg@gnat.com>
2806
2807         * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
2808         enclosing dynamic scope if the instantiation is within a generic unit.
2809
2810 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
2811
2812         * exp_dbug.ads: Fix typo.
2813
2814         * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
2815         Rename it to its proper name: system-linux-ia64.ads
2816         (stamp-gnatlib1): Remove extra target specific run time files when
2817         setting up the rts directory.
2818
2819 2004-05-24  Javier Miranda  <miranda@gnat.com>
2820
2821         * einfo.ads, einfo.adb (Limited_Views): Removed.
2822         (Limited_View): New attribute that replaces the previous one. It is
2823         now a bona fide package with the limited-view list through the
2824         first_entity and first_private attributes.
2825
2826         * sem_ch10.adb (Install_Private_With_Clauses): Give support to
2827         limited-private-with clause.
2828         (Install_Limited_Withed_Unit): Install the private declarations of a
2829         limited-private-withed package. Update the installation of the shadow
2830         entities according to the new structure (see Build_Limited_Views)
2831         (Build_Limited_Views): Replace the previous implementation of the
2832         limited view by a package entity that references the first shadow
2833         entity plus the first shadow private entity (required for limited-
2834         private-with clause)
2835         (New_Internal_Shadow_Entity): Code cleanup.
2836         (Remove_Limited_With_Clause): Update the implementation to undo the
2837         new work carried out by Build_Limited_Views.
2838         (Build_Chain): Complete documentation.
2839         Replace Ada0Y by Ada 0Y in comments
2840         Minor reformating
2841
2842         * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
2843         types the level of accessibility depends on the enclosing type
2844         declaration.
2845
2846         * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
2847         entities. Complete documentation of previous change.
2848
2849 2004-05-24  Robert Dewar  <dewar@gnat.com>
2850
2851         * namet.adb: Minor reformatting
2852         Avoid use of name I (replace by J)
2853         Minor code restructuring
2854
2855         * sem_ch6.adb: Minor reformatting
2856
2857         * lib-writ.adb: Do not set restriction as active if this is a
2858         Restriction_Warning case.
2859
2860         * sem_prag.adb: Reset restriction warning flag if real pragma
2861         restriction encountered.
2862
2863         * s-htable.adb: Minor reformatting
2864         Change rotate count to 3 in Hash (improves hash for small strings)
2865
2866         * 5qsystem.ads: Add comments for type Address (no literals allowed).
2867
2868         * gnat_ugn.texi: Add new section of documentation "Code Generation
2869         Control", which describes the use of -m switches.
2870
2871 2004-05-24  Eric Botcazou  <ebotcazou@act-europe.fr>
2872
2873         trans.c (tree_transform) <N_Identifier>: Do the dereference directly
2874         through the DECL_INITIAL for renamed variables.
2875
2876 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
2877
2878         * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
2879
2880 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
2881
2882         * exp_dbug.ads: Correct comments concerning handling of overloading,
2883         since we no longer use $ anymore.
2884
2885 2004-05-19  Sergey Rybin  <rybin@act-europe.fr>
2886
2887         * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
2888         ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
2889         with illegal subunits.
2890
2891 2004-05-19  Ed Schonberg  <schonberg@gnat.com>
2892
2893         * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
2894         body with front-end inlining enabled, check whether an inline pragma
2895         appears immediately after the body and applies to it.
2896
2897         * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
2898         enabled and the pragma appears after the body of the subprogram.
2899
2900 2004-05-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2901
2902         Part of function-at-a-time conversion
2903
2904         * misc.c (adjust_decl_rtl): Deleted.
2905         (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
2906         Define.
2907
2908         * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
2909         (add_decl_stmt, add_stmt, block_has_vars): New functions.
2910         (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
2911
2912         * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
2913         when making a decl.
2914         (gnat_to_gnu_entity): Likewise.
2915         Use add_stmt to update setjmp buffer.
2916         Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
2917         flush_addressof.
2918         No longer call adjust_decl_rtl.
2919         (DECL_INIT_BY_ASSIGN_P): New macro.
2920         (DECL_STMT_VAR): Likewise.
2921
2922         * trans.c (gigi): Call start_block_stmt to make the outermost
2923         BLOCK_STMT.
2924         (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
2925         Call start_block_stmt and end_block_stmt temporarily.
2926         Use gnat_expand_stmt instead of expand_expr_stmt.
2927         (add_decl_stmt): New function.
2928         (tree_transform): Call it.
2929         (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
2930         (end_block_stmt): Set type and NULL_STMT.
2931         (gnat_expand_stmt): Make recursize call instead of calling
2932         expand_expr_stmt.
2933         (gnat_expand_stmt, case DECL_STMT): New case.
2934         (set_lineno_from_sloc): Do nothing if global.
2935         (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
2936         (start_block_stmt, add_stmt, end_block_stmt): New functions.
2937         (build_block_stmt): Call them.
2938         (gnat_to_code): Don't expand NULL_STMT.
2939         (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
2940         args.
2941         (tree_transform): Likewise.
2942         (tree_transform, case N_Null_Statement): Return NULL_STMT.
2943         (gnat_expand_stmt, case NULL_STMT): New case.
2944         (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
2945         IF_STMT_TRUE.
2946
2947         * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
2948         TREE_ADDRESSABLE.
2949
2950         * utils.c (create_var_decl): Do not call expand_decl or
2951         expand_decl_init.
2952         Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
2953         Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
2954         here.
2955         (struct e_stack): Add chain_next to GTY.
2956         (struct binding_level): Deleted.
2957         (struct ada_binding_level): New struct.
2958         (free_block_chain): New.
2959         (global_binding_level, clear_binding_level): Deleted.
2960         (global_bindings_p): Rework to see if no chain.
2961         (kept_level_p, set_block): Deleted.
2962         (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
2963         new data structure and work directly on BLOCK node.
2964         (gnat_poplevel): Similarly.
2965         (get_decls): Look at BLOCK_VARS.
2966         (insert_block): Work directly on BLOCK node.
2967         (block_has_var): New function.
2968         (pushdecl): Rework for new binding structures.
2969         (gnat_init_decl_processing): Rename and rework calls to pushlevel and
2970         poplevel.
2971         (build_subprog_body): Likewise.
2972         (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
2973
2974         * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
2975
2976         * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
2977         (DECL_STMT_VAR): Likewise.
2978
2979 2004-05-17  Robert Dewar  <dewar@gnat.com>
2980
2981         * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
2982         procedure
2983
2984         * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
2985         of restriction synonyums by using
2986         Restrict.Process_Restriction_Synonyms.
2987
2988         * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
2989
2990         * s-restri.ads (Tasking_Allowed): Correct missing comment
2991
2992         * s-rident.ads: Add entries for restriction synonyms
2993
2994         * ali.adb: Fix some problems with badly formatted ALI files that can
2995         result in infinite loops.
2996
2997         * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
2998         s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
2999         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
3000         s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
3001         s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
3002         s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
3003         s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
3004         s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
3005         s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
3006         a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
3007         exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
3008         s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
3009         s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
3010         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
3011         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
3012         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
3013         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
3014         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
3015         s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
3016         s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
3017         to Task_Id (minor cleanup).
3018
3019 2004-05-17  Vincent Celier  <celier@gnat.com>
3020
3021         * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
3022         directory separator.
3023
3024         * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
3025         project being extended, if Languages is not declared in extending
3026         project.
3027
3028 2004-05-17  Javier Miranda  <miranda@gnat.com>
3029
3030         * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
3031         limited view of a visible sibling.
3032
3033 2004-05-14  Robert Dewar  <dewar@gnat.com>
3034
3035         * gnat_ugn.texi: Minor change to -gnatS documentation
3036
3037         * sprint.adb: Remove some instances of Assert (False) and for this
3038         purpose replace them by output of a ??? string.
3039
3040         * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
3041         Assert (False).
3042
3043         * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
3044         flag processing. This was suppressing required dependencies in
3045         No_Run_Time mode and is not needed since the binder does not generate
3046         references for things in libgnat anyway.
3047
3048         * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
3049         warning.
3050
3051 2004-05-14  Thomas Quinot  <quinot@act-europe.fr>
3052
3053         * gnat_ugn.texi: Document AIX-specific issue with initialization of
3054         resolver library.
3055
3056         * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
3057         action for the case of an actual parameter in an init proc call.
3058
3059 2004-05-14  Ed Schonberg  <schonberg@gnat.com>
3060
3061         * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
3062         subtype, check visible entities in base type.
3063
3064         * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
3065         actions if the object is a renaming.
3066
3067         * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
3068         Check_Formal_Package_Instance, to determine more precisely when the
3069         formal and the actual denote the same entity.
3070
3071 2004-05-14  Javier Miranda  <miranda@gnat.com>
3072
3073         * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
3074
3075         * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
3076         corresponding to a private_with must be removed from visibility; it
3077         will be made visible later, just before we analyze the private part of
3078         the package.
3079         (Check_Private_Child_Unit): Allow private_with clauses in public
3080         siblings.
3081         (Install_Siblings): Make visible the private entities of private-withed
3082         siblings.
3083         (Install_Withed_Unit): Do not install the private withed unit if we
3084         are compiling a package declaration and the Private_With_OK flag was
3085         not set by the caller. These declarations will be installed later,
3086         just before we analyze the private part of the package.
3087
3088         * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
3089         during the evaluation of the expression that initializes the object,
3090         decorate it with the expected type to avoid cascade errors.
3091         Code cleanup.
3092
3093         * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
3094         subprogram we have to install the private_with clauses after its
3095         specification has been analyzed (as documented in AI-262.TXT).
3096
3097         * sem_ch8.adb (Has_Private_With): New function. Determines if the
3098         current compilation unit has a private with on a given entity.
3099         (Find_Direct_Name): Detect the Beaujolais problem described in
3100         AI-262.TXT
3101
3102         * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
3103         provides the functionality of the function Is_Ancestor that was
3104         previously available in sem_ch10. It has been renamed to avoid
3105         overloading.
3106
3107         * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
3108
3109 2004-05-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3110
3111         * utils.c (build_vms_descriptor): Use SImode pointers.
3112
3113 2004-05-14  Vasiliy Fofanov  <fofanov@act-europe.fr>
3114
3115         * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
3116
3117 2004-05-14  GNAT Script  <nobody@gnat.com>
3118
3119         * Make-lang.in: Makefile automatically updated
3120
3121 2004-05-14  Arnaud Charlet  <charlet@act-europe.fr>
3122
3123         Renaming of target specific files for clarity
3124
3125         * Makefile.in: Rename GNAT target specific files.
3126
3127         * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
3128         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
3129         3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
3130         3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
3131         3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
3132         3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
3133         42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
3134         4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
3135         4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
3136         4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
3137         4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
3138         4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
3139         51osinte.adb, 51osinte.ads, 51system.ads,
3140         52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
3141         55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
3142         56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
3143         56tpopsp.adb, 57system.ads, 58system.ads,
3144         5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
3145         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
3146         5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
3147         5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
3148         5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
3149         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
3150         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
3151         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
3152         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
3153         5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
3154         5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
3155         5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
3156         5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
3157         5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
3158         5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
3159         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
3160         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
3161         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
3162         5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
3163         5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
3164         5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
3165         5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
3166         5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
3167         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
3168         5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
3169         5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
3170         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
3171         5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
3172         5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
3173         5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
3174         5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
3175         5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
3176         5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
3177         5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
3178         5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
3179         5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
3180         7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
3181         7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
3182         7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
3183         7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
3184
3185         * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
3186         a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
3187         a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
3188         a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
3189         a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
3190         a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
3191         a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
3192         a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
3193         a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
3194         a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
3195         g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
3196         g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
3197         g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
3198         g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
3199         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
3200         g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
3201         g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
3202         g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
3203         interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
3204         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
3205         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
3206         mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
3207         s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
3208         s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
3209         s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
3210         s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
3211         s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
3212         s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
3213         s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
3214         s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
3215         s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
3216         s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
3217         s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
3218         s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
3219         s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
3220         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
3221         s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
3222         s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
3223         s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
3224         s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
3225         s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
3226         s-osinte-vms.ads, s-osinte-vxworks.adb,
3227         s-osinte-vxworks.ads, s-osprim-mingw.adb,
3228         s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
3229         s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
3230         s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
3231         s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
3232         s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
3233         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
3234         s-stchop-vxworks.adb, s-taprop-dummy.adb,
3235         s-taprop-hpux-dce.adb, s-taprop-irix.adb,
3236         s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
3237         s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
3238         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
3239         s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
3240         s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
3241         s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
3242         s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
3243         s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
3244         s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
3245         s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
3246         s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
3247         s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
3248         s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
3249         s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
3250         s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
3251         s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
3252         s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
3253         symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
3254         system-hpux.ads, system-interix.ads, system-irix-n32.ads,
3255         system-irix-o32.ads, system-linux-x86_64.ads,
3256         system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
3257         system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
3258         system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
3259         system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
3260         system-vxworks-alpha.ads, system-vxworks-m68k.ads,
3261         system-vxworks-mips.ads, system-vxworks-ppc.ads,
3262         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
3263         above.
3264
3265 2004-05-13  Zack Weinberg  <zack@codesourcery.com>
3266
3267         * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
3268
3269 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
3270
3271         Merge from tree-ssa-20020619-branch.
3272
3273         * config-lang.in (boot_language, build_by_default): Set
3274         to no.
3275         * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
3276         (max_size): Add static chain op for call_expr.
3277
3278 2004-05-12  Richard Sandiford  <rsandifo@redhat.com>
3279
3280         PR target/15331
3281         * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
3282
3283 2004-05-11  Roger Sayle  <roger@eyesopen.com>
3284
3285         * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
3286         COND_EXPR.
3287
3288 2004-05-10  Doug Rupp  <rupp@gnat.com>
3289
3290         * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
3291         system.aux_dec.
3292
3293         * s-auxdec.ads: Add Short_Address subtype (moved here from System).
3294
3295         * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
3296
3297         * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
3298         Fixes undefined symbols in IA64 gnatlib.
3299
3300         * 5vinmaop.adb: Reference s-auxdec for Short_Address.
3301
3302         * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
3303         Short_Address). This will be moved to system.auxdec.
3304
3305 2004-05-10  Thomas Quinot  <quinot@act-europe.fr>
3306
3307         * sem_util.adb: Replace test for presence of a node that is always
3308         present with a call to Discard_Node.
3309
3310         * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
3311         Analyze on the library unit node after generation of distribution stub
3312         constructs.  The call was a no-op because Unit_Node has already been
3313         Analyzed, and the tree fragments for the distribution stubs are
3314         analyzed as they are inserted in Exp_Dist.
3315         Update comment regarding to distribution stubs to reflect that we
3316         do not generate stub in separate files anymore.
3317
3318         * einfo.ads: Clarify the fact that a tagged private type has the
3319         E_Record_Type_With_Private Ekind.
3320
3321         * erroutc.adb: Minor reformatting
3322
3323         * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
3324         values if line length is increased using -gnatyM (noticed during code
3325         reading).
3326
3327         * eval_fat.adb: Minor reformatting
3328         Put spaces around exponentiation operator
3329
3330 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
3331
3332         PR ada/15005
3333         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
3334         has been rewritten as an explicit dereference, retrieve type of
3335         original node to check for possibly unconstrained record type.
3336
3337 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
3338
3339         * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
3340         overriding, use the operation of the parent unconditionally.
3341
3342         * sem_ch4.adb (Remove_Address_Interpretations): Remove address
3343         operation when either operand is a literal, to avoid further
3344         ambiguities.
3345
3346         * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
3347         overridden by a previous explicit declaration, mark the previous entity
3348         as overriding.
3349
3350         * sem_disp.adb (Check_Dispatching_Operation): New predicate
3351         Is_Visibly_Controlled, to determine whether a declaration of a
3352         primitive control operation for a derived type overrides an inherited
3353         one. Add warning if the explicit declaration does not override.
3354
3355 2004-05-10  Vincent Celier  <celier@gnat.com>
3356
3357         * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
3358         some cases when the sources are no longer present.
3359
3360         * make.adb (Collect_Arguments): Fail if an external source, not part
3361         of any project need to be compiled, when switch -x has not been
3362         specified.
3363
3364         * makeusg.adb: Document new switch -x
3365
3366         * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
3367         defaulted to False.
3368
3369         * switch-m.adb (Scan_Make_Switches): New switch -x
3370
3371         * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
3372         gnatmake switch -x.
3373
3374         * gnat_ugn.texi: Document new gnatmake switch -x
3375
3376 2004-05-10  Eric Botcazou  <ebotcazou@act-europe.fr>
3377
3378         * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
3379
3380         * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
3381         (process_attributes): Likewise.
3382
3383 2004-05-10  Joel Brobecker  <brobecker@gnat.com>
3384
3385         * s-inmaop.ads: Fix spelling mistake in one of the comments.
3386
3387 2004-05-10  Robert Dewar  <dewar@gnat.com>
3388
3389         * gnat_ugn.texi: Document that for config pragma files, the maximum
3390         line length is always 32767.
3391
3392         * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
3393         literals is now allowed.
3394
3395         * gnat-style.texi: Remove statement about splitting long lines before
3396         an operator rather than after, since we do not follow this rule at all.
3397         Clarify rule (really lack of rule) for spaces around exponentiation
3398
3399         * sem_elim.adb: Allow concatenation of string literals as well as a
3400         single string literal for pragma arguments.
3401
3402         * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
3403
3404         * a-textio.adb (Terminate_Line): Do not add line feed if nothing
3405         written for append case.
3406
3407         * frontend.adb: Changes to avoid checking max line length in config
3408         pragma files.
3409
3410         * g-os_lib.ads: Minor reformatting
3411
3412         * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
3413         wrong in any case. Instead use standard value. Noticed during code
3414         reading.
3415
3416         * opt.ads (Max_Line_Length): New field, used to implement removal of
3417         limitation on length of lines when scanning config pragma files.
3418
3419         * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
3420         makeutl.ads, makeutl.adb: Minor reformatting
3421
3422         * scn.adb: Do not check line length while scanning config pragma files
3423         Do not check line length while scanning out license information
3424
3425         * scng.adb: Changes to avoid line length checks while parsing config
3426         pragma files.
3427
3428 2004-05-10  GNAT Script  <nobody@gnat.com>
3429
3430         * Make-lang.in: Makefile automatically updated
3431
3432 2004-05-05  Arnaud Charlet  <charlet@act-europe.fr>
3433
3434         * osint.adb (Find_Program_Name): Fix handling of VMS version
3435         number.
3436
3437 2004-05-05  Emmanuel Briot  <briot@act-europe.fr>
3438
3439         * g-os_lib.ads (Invalid_Time): New constant
3440
3441         * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
3442         return OS_Time instead of time_t to match what is imported by Ada.
3443         Now return -1 if the file doesn't exist, instead of a random value
3444
3445 2004-05-05  Robert Dewar  <dewar@gnat.com>
3446
3447         * usage.adb: Add line for -gnatR?s switch
3448
3449         * sem_ch13.adb, exp_ch2.adb: Minor reformatting
3450
3451         * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
3452         and for Match (Data_First, Data_last)
3453
3454         * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
3455         written when we are dealing with multi-unit files.
3456
3457 2004-05-05  Jerome Guitton  <guitton@act-europe.fr>
3458
3459         * Makefile.in: Remove unused targets and variables.
3460
3461 2004-05-05  Vincent Celier  <celier@gnat.com>
3462
3463         * switch-m.adb: New gnatmake switch -eI
3464
3465         * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
3466         of new gnatmake switch -eInnn.
3467
3468         * makegpr.adb: Take into account new parameters Index and Src_Index in
3469         Prj.Util.
3470
3471         * clean.adb: Implement support for multi-unit sources, including new
3472         switch -i.
3473
3474         * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
3475         Src_Index.
3476
3477         * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
3478         (Extract_From_Q): New out parameter Index
3479         (Mark, Is_Marked): Subprograms moved to Makeutl
3480         (Switches_Of): New parameter Source_Index
3481         (Add_Switch): New parameter Index
3482         (Check): New parameter Source_Index
3483         (Collect_Arguments): New parameter Source_Index
3484         (Collect_Arguments_And_Compile): New parameter Source_Index
3485         (Compile): New parameter Source_Index
3486         Put subprograms in alphabetical order
3487         Add support for multi-source sources, including in project files.
3488
3489         * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
3490         (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
3491         Make.
3492
3493         * makeusg.adb: New gnatmake switch -eInnn
3494
3495         * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
3496         Prj.Util.Value_Of.
3497
3498         * opt.ads (Main_Index): New variable, defaulted to 0.
3499
3500         * osint.ads, osinte.adb (Add_File): New parameter Index
3501         (Current_Source_Index): New function
3502
3503         * prj.adb: Take into account new components Index and Src_Index
3504
3505         * prj.ads (String_Element): New component Index
3506         (Variable_Value): New component Index
3507         (Array_Element): New component Src_Index
3508
3509         * prj-attr.adb: Indicate that optional index may be specified for
3510         attributes Main, Executable, Spec, Body and some of Switches.
3511
3512         * prj-attr.ads (Attribute_Kind): New values for optional indexes
3513         (Attribute_Record): New component Optional_Index
3514
3515         * prj-com.ads (File_Name_Data): New component Index
3516
3517         * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
3518
3519         * prj-env.adb (Put): Output optional index
3520
3521         * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
3522         attributes Spec and Body.
3523
3524         * prj-nmsc.adb: Process optional indexes
3525
3526         * prj-pp.adb: Ouput "at" for optional indexes
3527
3528         * prj-proc.adb: Take into account optional indexes
3529
3530         * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
3531         Optional_Index. For string literal,
3532         process optional index when Optional_Index is True.
3533         (Parse_Expresion): New Boolean parameter Optional_Index
3534
3535         * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
3536         (Set_Source_Index_Of): New procedure
3537
3538         * prj-util.adb (Executable_Of, Value_Of): Take into account optional
3539         index.
3540
3541         * prj-util.ads (Executable_Of): New parameter Index
3542         (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
3543         New parameter Src_Index, defaulted to 0.
3544
3545 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
3546
3547         PR ada/15257
3548         * sem_ch3.adb (Access_Definition): If this is an access parameter
3549         whose designated type is imported through a limited_with clause, do
3550         not add the enclosing subprogram to the list of private dependents of
3551         the type.
3552
3553 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
3554
3555         PR ada/15258
3556         * sem_ch6.adb (Base_Types_Match): True if one type is imported through
3557         a limited_with clause, and the other is its non-limited view.
3558
3559 2004-05-05  Thomas Quinot  <quinot@act-europe.fr>
3560
3561         * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
3562
3563         * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
3564         exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
3565         Stand.Boolean_Literals to produce references to entities
3566         Standard_False and Standard_True from compile-time computed boolean
3567         values.
3568
3569         * stand.ads (Boolean_Literals): New variable, provides the entity
3570         values for False and True, for use by the expander.
3571
3572 2004-05-05  Doug Rupp  <rupp@gnat.com>
3573
3574         * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
3575         5vinmaop.adb: Unchecked convert Short_Address vice Address
3576
3577         * adaint.c, raise.c: Caste CRTL function return value
3578         to avoid gcc error on 32/64 bit IVMS.
3579
3580         * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
3581         target = IA64/VMS.
3582
3583         * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
3584
3585         * 5qsystem.ads (Address): Declare as Long_Integer
3586         (Short_Address): Declare as 32 bit subtype of Address
3587         Declare  abstract address operations to avoid gratuitous ambiguities.
3588
3589 2004-05-05  Jose Ruiz  <ruiz@act-europe.fr>
3590
3591         * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
3592         instead of the old Boolean_Entry_Barriers.
3593         Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
3594
3595 2004-05-05  GNAT Script  <nobody@gnat.com>
3596
3597         * Make-lang.in: Makefile automatically updated
3598
3599 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
3600
3601         * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
3602
3603 2004-05-03  Olivier Hainque  <hainque@act-europe.fr>
3604
3605         PR ada/15152
3606
3607         * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
3608         alone. Replacing object references by literals is inappropriate in a
3609         so low level context.
3610
3611 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
3612
3613         * a-exexpr.adb: Add comments
3614
3615 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
3616
3617         * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
3618         declare the Ancestor_Tags array in Type_Specific_Data with a small size
3619         without risking a bounds check error when accessing one of its
3620         components.
3621         (Type_Specific_Data): Define Ancestor_Tags as a small array.
3622         This prevents us from hitting a limitation during the debug info
3623         generation when using stabs.
3624
3625         * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
3626         small array.
3627         This prevents us from hitting a limitation during the debug info
3628         generation when using stabs.
3629
3630 2004-05-03  Eric Botcazou  <ebotcazou@act-europe.fr>
3631
3632         lang-specs.h: Remove -gnatz* from specs.
3633
3634 2004-05-03  Vincent Celier  <celier@gnat.com>
3635
3636         * gprmake.adb, makegpr.ads, makegpr.adb: New files.
3637
3638         * Make-lang.in, Makefile.in: Add gprmake
3639
3640 2004-05-03  Thomas Quinot  <quinot@act-europe.fr>
3641
3642         * sem_aggr.adb: Fix typo in comment.
3643
3644 2004-05-03  Robert Dewar  <dewar@gnat.com>
3645
3646         * make.adb: Minor reformatting
3647
3648         * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
3649
3650         * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
3651         so that it works when address is not a private type.
3652
3653         * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
3654         properly with rewritten unchecked conversions. This prevents
3655         order-of-elaboration issues that can otherwise arise.
3656         (Minimum_Size): Don't check size of access types under VMS
3657
3658         * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
3659         interpretations of integer literals as type System.Address.
3660
3661         * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
3662         (Is_Descendent_Of): New function
3663
3664 2004-05-03  Jose Ruiz  <ruiz@act-europe.fr>
3665
3666         * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
3667         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
3668         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
3669
3670         * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
3671         of the old Max_Entry_Queue_Depth.
3672
3673         * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
3674         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
3675         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
3676
3677         * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
3678         New entry for proper handling of Max_Entry_Queue_Depth.
3679         New entry for proper handling of No_Dynamic_Interrupts.
3680
3681         * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
3682         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
3683         Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
3684         the GNAT specific restriction Max_Entry_Queue_Depth.
3685         Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
3686         the GNAT specific restriction No_Dynamic_Interrupts.
3687
3688         * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
3689         instead of the old Boolean_Entry_Barriers.
3690         Use the new restriction No_Dynamic_Attachment instead of the old
3691         No_Dynamic_Interrupts.
3692
3693         * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
3694         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
3695
3696         * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
3697         of the old Max_Entry_Queue_Depth.
3698
3699 2004-05-03  GNAT Script  <nobody@gnat.com>
3700
3701         * Make-lang.in: Makefile automatically updated
3702
3703 2004-04-29  Ed Schonberg  <schonberg@gnat.com>
3704
3705         * checks.adb (Enable_Range_Check): If the prefix of an index component
3706         is an access to an unconstrained array, perform check unconditionally.
3707
3708 2004-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3709
3710         * decl.c (gnat_to_gnu_field): Also call make_packable_type if
3711         Component_Clause.
3712
3713 2004-04-29  Olivier Hainque  <hainque@act-europe.fr>
3714
3715         * init.c (__gnat_install_handler, __gnat_error_handler): Remove
3716         alternate stack setting. There was no support for the tasking cases
3717         and the changes eventually caused a number of side-effect failures in
3718         the non-tasking case too.
3719
3720 2004-04-29  Eric Botcazou  <ebotcazou@act-europe.fr>
3721
3722         lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
3723         -gnats is passed.
3724
3725 2004-04-29  Vincent Celier  <celier@gnat.com>
3726
3727         * make.adb (Gnatmake): Increase max size of argument array for
3728         gnatbind for the potential addition of -F.
3729         If there are Stand-Alone Library projects, invoke gnatbind with -F to
3730         be sure that elaboration flags will be checked.
3731
3732         * switch-c.adb: Correct call to Scan_Pos for -gnateI
3733
3734 2004-04-29  Thomas Quinot  <quinot@act-europe.fr>
3735
3736         * sem_warn.adb (Check_References): Move '<access-variable> may be
3737         null' warning out of under Warn_On_No_Value_Assigned.
3738
3739 2004-04-29  Ed Falis  <falis@gnat.com>
3740
3741         * gnat_ugn.texi: Fixed texi error
3742
3743 2004-04-29  Robert Dewar  <dewar@gnat.com>
3744
3745         * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
3746         abstract operations if they come from predefined files.
3747
3748         * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
3749         Dynamic, not RM).
3750
3751         * s-addope.adb: Correct obvious error in mod function
3752
3753 2004-04-28  Andrew W. Reynolds  <awreynolds@mac.com>
3754
3755         * Makefile.in: Add target pairs for powerpc darwin*
3756         tasking support.
3757
3758         * a-intnam-darwin.ads, s-osinte-darwin.adb,
3759         s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
3760
3761 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
3762
3763         * Makefile.in: Add target macro definitions for s390*-linux*.
3764         * system-linux-s390.ads: New file.
3765         * system-linux-s390x.ads: New file.
3766
3767 2004-04-28  Joseph S. Myers  <jsm@polyomino.org.uk>
3768
3769         * gnat_ugn.texi: Correct argument to @setfilename.
3770
3771 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
3772
3773         * a-exexpr.adb (Unwind_Word): New data type.
3774         (Unwind_Exception): Use it as type of Private1 and Private2.
3775
3776         * raise.c (db_action_for): Fix debug printf.
3777
3778 2004-04-27  Ed Schonberg  <schonberg@gnat.com>
3779
3780         * a-wtmoio.ads: Formal type must be a modular type, not a signed
3781         integer type.
3782
3783 2004-04-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3784
3785         * decl.c (gnat_to_gnu_entity, case object): Call
3786         __builtin_update_setjmp_buf.
3787
3788         * gigi.h (update_setjmp_buf): Deleted.
3789         (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
3790
3791         * misc.c: (update_setjmp_buf): Deleted.
3792
3793         * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
3794         around block of RTL.
3795
3796         * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
3797
3798 2004-04-26  Thomas Quinot  <quinot@act-europe.fr>
3799
3800         * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
3801         subprogram for which no pragma All_Calls_Remote applies, store the
3802         address of the real subprogram in the underlying record type, so local
3803         dereferences do not go through the PCS.
3804
3805 2004-04-26  Robert Dewar  <dewar@gnat.com>
3806
3807         * i-c.ads: Add some type qualifications to avoid ambiguities when
3808         compiling with s-auxdec.ads and a non-private address type.
3809
3810 2004-04-26  Arnaud Charlet  <charlet@act-europe.fr>
3811
3812         * Makefile.rtl: Fix error in previous check-in:
3813         Add s-addope.o to non tasking object list (rather than tasking object
3814         list).
3815
3816 2004-04-26  Javier Miranda  <miranda@gnat.com>
3817
3818         * sem_aggr.adb: Fix typo in comments
3819         (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
3820         Required to check the null-exclusion attribute.
3821
3822         * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
3823         case of anonymous access types in record and array components. For a
3824         component definition the level is the same of the enclosing composite
3825         type.
3826
3827         * sem_ch3.adb (Analyze_Component_Declaration): In case of components
3828         that are anonymous access types the level of accessibility depends on
3829         the enclosing type declaration. In order to have this information, set
3830         the scope of the anonymous access type to the enclosing record type
3831         declaration.
3832         (Array_Type_Declaration): In case of components that are anonymous
3833         access types the level of accessibility depends on the enclosing type
3834         declaration. In order to have this information, set the scope of the
3835         anonymous access type to the enclosing array type declaration.
3836
3837         * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
3838         access type.
3839
3840         * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
3841         renaming of anonymous access-to-constant types allowed if and only if
3842         the renamed object is access-to-constant.
3843
3844         * sem_util.adb (Type_Access_Level): In case of anonymous access types
3845         that are component_definition or discriminants of a nonlimited type,
3846         the level is the same as that of the enclosing component type.
3847
3848 2004-04-26  Sergey Rybin  <rybin@act-europe.fr>
3849
3850         * sem_elim.adb: Some minor code reorganization from code reading. Fix
3851         misprint in the function name (File_Name_Match).
3852
3853 2004-04-23  Laurent GUERBY <laurent@guerby.net>
3854
3855         * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
3856         install.
3857
3858 2004-04-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3859
3860         * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
3861
3862 2004-04-23  Emmanuel Briot  <briot@act-europe.fr>
3863
3864         * adaint.c (__gnat_try_lock): No longer requires that the parent
3865         directory be writable, the directory itself is enough.
3866         (gnat_is_absolute_path): Change profile, so that the call from
3867         GNAT.OS_Lib can be made more efficient.
3868
3869         * adaint.h (gnat_is_absolute_path): Change profile, so that the call
3870         from GNAT.OS_Lib can be made more efficient.
3871
3872         * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
3873         one copy of the file name. Found by code reading.
3874
3875 2004-04-23  Vincent Celier  <celier@gnat.com>
3876
3877         * gnat_ugn.texi: Add documentation for gnatmake switch -eL
3878         Correct documentation on gnatmake switches transmitted to the compiler
3879
3880         * ali.ads: Minor comment fix
3881
3882 2004-04-23  Javier Miranda  <miranda@gnat.com>
3883
3884         * sem_ch6.adb: (Confirming Types): Code cleanup
3885
3886         * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
3887         subprogram types: E_Anonymous_Access_Subprogram_Type and
3888         E_Anonymous_Access_Protected_Subprogram_Type.
3889
3890 2004-04-23  Thomas Quinot  <quinot@act-europe.fr>
3891
3892         * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
3893         whether a pragma All_Calls_Remote applies to the subprogram on which
3894         'Access is taken.
3895         No functional change is introduced by this revision; the new parameter
3896         will be used to allow calls to local RCI subprograms to be optimized
3897         to not use the PCS in the case where no pragma All_Calls_Remote applies,
3898         as is already done in the PolyORB implementation of the DSA.
3899
3900         * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
3901         whether a pragma All_Calls_Remote applies to the subprogram on which
3902         'Access is taken.
3903         No functional change is introduced by this revision; the new parameter
3904         will be used to allow calls to local RCI subprograms to be optimized
3905         to not use the PCS in the case where no pragma All_Calls_Remote applies,
3906         as is already done in the PolyORB implementation of the DSA.
3907
3908 2004-04-23  Robert Dewar  <dewar@gnat.com>
3909
3910         * Makefile.rtl: Add entry for s-addope.o in run time library list
3911         * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
3912         * s-addope.ads, s-addope.adb: New files.
3913
3914         * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
3915         s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
3916         s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
3917         System.Address to be non-private and signed.
3918
3919         * sem_elim.adb: Minor reformatting (fairly extensive)
3920         Some minor code reorganization from code reading
3921         Add a couple of ??? comments
3922
3923 2004-04-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3924
3925         * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
3926         (tree_transform, case N_If_Statement): Remove non-determinism.
3927
3928         * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
3929
3930 2004-04-23  Sergey Rybin  <rybin@act-europe.fr>
3931
3932         * gnat_rm.texi: Small fixes in the changes made in the 'pragma
3933         Eliminate' section.
3934
3935         * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
3936         no longer used as a parameter name for Eliminate pragma).
3937
3938 2004-04-22  Laurent GUERBY <laurent@guerby.net>
3939
3940         PR optimization/14984
3941         PR optimization/14985
3942         * trans.c (gigi): Fix non determinism leading to bootstrap
3943         comparison failures.
3944
3945 2004-04-21  Pascal Obry  <obry@gnat.com>
3946
3947         * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
3948         passed to spawnvp() to properly handle program pathname with spaces on
3949         Win32.
3950
3951 2004-04-21  Emmanuel Briot  <briot@act-europe.fr>
3952
3953         * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
3954         (Allocate, Deallocate, Free_Physically): Make sure the tasks are
3955         unlocked in case of exceptions.
3956
3957 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
3958
3959         * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
3960         This function does not exist anymore.
3961
3962 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
3963
3964         * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
3965
3966         * link.c: Move variables to the __gnat name space.
3967
3968         * Makefile.in: list link.o explicitly when needed.
3969
3970         * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
3971
3972 2004-04-21  Javier Miranda  <miranda@gnat.com>
3973
3974         * einfo.adb (Original_Access_Type): New subprogram
3975         (Set_Original_Access_Type): New subprogram
3976         (Write_Field21_Name): Write the name of the new field
3977
3978         * einfo.ads (Original_Access_Type): New field present in access to
3979         subprogram types.
3980         Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
3981         E_Anonymous_Access_Protected_Subprogram_Type.
3982
3983         * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
3984         subprogram types.
3985
3986         * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
3987         to anonymous access to subprogram types.
3988
3989         * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
3990         to subprogram types.
3991
3992         * sem_ch3.adb (Access_Definition): Complete decoration of entities
3993         corresponding to anonymous access to subprogram types.
3994         (Analyze_Component_Declaration): Add new actual to the call to
3995         subprogram replace_anonymous_access_to_protected_subprogram.
3996         (Array_Type_Declaration): Add new actual to the call to subprogram
3997         replace_anonymous_access_to_protected_subprogram.
3998         (Process_Discriminants): Add new actual to the call to subprogram
3999         replace_anonymous_access_to_protected_subprogram.
4000         (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
4001
4002         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
4003         formal.
4004
4005         * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
4006         access to subprogram types.
4007
4008         * sem_util.adb (Has_Declarations): Addition of package_specification
4009         nodes.
4010
4011 2004-04-21  Ed Schonberg  <schonberg@gnat.com>
4012
4013         * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
4014         inlined flags to renamed entity only if in current unit.
4015
4016 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
4017
4018         * s-parint.ads: Add DSA implementation marker.
4019
4020         * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
4021         value of System.Partition_Interface.DSA_Implementation to determine
4022         what version of the distributed systems annex is available (no
4023         implementation, GLADE, or PolyORB).
4024
4025 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
4026
4027         * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
4028
4029 2004-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4030
4031         * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
4032         with new type if alias sets differ.
4033         Fixes ACATS c41103b.
4034
4035 2004-04-21  Vincent Celier  <celier@gnat.com>
4036
4037         * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
4038         Add array Lang_Args for the language specific compiling argument
4039         switches.
4040
4041         * gnat_ugn.texi: Explain in more details when a library is rebuilt.
4042
4043 2004-04-21  Sergey Rybin  <rybin@act-europe.fr>
4044
4045         * gnat_rm.texi: Update the descripton of the Eliminate pragma
4046         according to the recent changes in the format of the parameters of the
4047         pragma (replacing Homonym_Number with Source_Location).
4048
4049 2004-04-19  Arnaud Charlet  <charlet@act-europe.fr>
4050
4051         * 5isystem.ads: Removed, unused.
4052
4053         * gnat_rm.texi: Redo 1.13 change.
4054
4055 2004-04-19  Robert Dewar  <dewar@gnat.com>
4056
4057         * s-stoele.ads: Clean up definition of Storage_Offset (the new
4058         definition is cleaner, avoids the kludge of explicit Standard operator
4059         references, and also is consistent with a visible System.Address with
4060         no visible operations.
4061
4062         * s-geveop.adb: Add declarations to avoid assumption of visible
4063         operations on type System.Address (since these might not be available
4064         if Address is a non-private type for which the operations
4065         are made abstract).
4066
4067         * sem_eval.adb: Minor reformatting
4068
4069         * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
4070         s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
4071         reformatting (new function spec format).
4072
4073         * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
4074         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
4075         s-caun64.adb: Add declarations to avoid assumption of visible
4076         operations on type System.Address (since these might not be available
4077         if Address is a non-private type for which the operations are made
4078         abstract).
4079
4080         * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
4081
4082         * exp_intr.adb: Minor comment update
4083
4084         * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
4085
4086         * 5omastop.adb: Add declarations to avoid assumption of visible
4087         operations on type System.Address (since these might not be available
4088         if Address is a non-private type for which the operations
4089         are made abstract).
4090
4091 2004-04-19  Vincent Celier  <celier@gnat.com>
4092
4093         * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
4094
4095         * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
4096         defaulted to Ada.
4097
4098         * prj-proc.adb (Process): New Boolean parameter Process_Languages,
4099         defaulted to Ada.
4100         Call Check with Process_Languages.
4101         (Check): New Boolean parameter Process_Languages. Call Recursive_Check
4102         with Process_Languages.
4103         (Recursive_Check): New Boolean parameter Process_Languages. Call
4104         Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
4105         Process_Languages.
4106
4107         * prj-proc.ads (Process): New Boolean parameter Process_Languages,
4108
4109         * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
4110         parameter Ada_Main, defaulted to True.
4111         Check for Ada specific characteristics only when Ada_Main is True.
4112
4113         * opt.ads: (Follow_Links): New Boolean flag for gnatmake
4114
4115         * prj.adb: (Project_Empty): Add new Project_Data components.
4116
4117         * prj.ads: New types and tables for non Ada languages.
4118         (Project_Data): New components Languages, Impl_Suffixes,
4119         First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
4120         Include_Path, Include_Data_Set.
4121
4122         * prj-env.ads, prj-env.adb: Minor reformatting
4123
4124         * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
4125         Put subprograms in alphabetical order
4126
4127         * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
4128         defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
4129         Opt.Follow_Links.
4130
4131         * mlib-prj.adb: Back out modification in last version, as they are
4132         incorrect.
4133         (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
4134
4135         * make.adb: (Mains): Moved to package Makeutl
4136         (Linker_Opts): Moved to package Makeutl
4137         (Is_External_Assignment): Moved to package Makeutl
4138         (Test_If_Relative_Path): Moved to package Makeutl
4139         (Gnatmake): Move sorting of linker options to function
4140         Makeutl.Linker_Options_Switches.
4141
4142         * makeutl.ads, makeutl.adb: New files.
4143
4144         * Makefile.in: Add makeutl.o to the object files for gnatmake
4145
4146         * makeusg.adb: Add line for new switch -eL.
4147
4148         * gnatls.adb (Image): New function.
4149         (Output_Unit): If in verbose mode, output the list of restrictions
4150         specified by pragmas Restrictions.
4151
4152         * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
4153         Text_IO.
4154
4155         * a-calend.adb (Split): Shift the date by multiple of 56 years, if
4156         needed, to put it in the range 1970 (included) - 2026 (excluded).
4157         (Time_Of): Do not shift Unix_Min_Year (1970).
4158         Shift the date by multiple of 56 years, if needed, to put it in the
4159         range 1970 (included) - 2026 (excluded).
4160
4161         * adaint.h, adaint.c (__gnat_set_executable): New function.
4162
4163 2004-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4164
4165         * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
4166         and pop GC context.
4167         (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
4168         (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
4169         (tree_transform, case N_Procedure_Call_Statement): Build a tree.
4170         (tree_transform, case N_Code_Statement): Likewise.
4171         (gnat_expand_stmt, case LABEL_STMT): Don't look at
4172         LABEL_STMT_FIRST_IN_EH.
4173         (gnat_expand_stmt, case ASM_STMT): New case.
4174
4175         * utils2.c (build_unary_op): Properly set TREE_READONLY of
4176         UNCONSTRAINED_ARRAY_REF.
4177
4178         * utils.c (poplevel): Temporarily push/pop GC context around inline
4179         function expansion.
4180
4181         * decl.c (maybe_variable): Properly set TREE_READONLY of
4182         UNCONSTRAINED_ARRAY_REF.
4183         (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
4184
4185         * ada-tree.def: (ASM_STMT): New.
4186
4187         * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
4188         (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
4189         ASM_STMT_INPUT): New.
4190         (ASM_STMT_CLOBBER): Likewise.
4191
4192 2004-04-19  Thomas Quinot  <quinot@act-europe.fr>
4193
4194         * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
4195         general rcheck mechanism to raise Program_Error for E.4(18), instead
4196         of a custom raiser in System.Partition_Interface.
4197         Part of general cleanup work before PolyORB integration.
4198
4199         * snames.ads, snames.adb: Add new runtime library entities and names
4200         for PolyORB DSA.
4201
4202         * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
4203         exp_dist.
4204         (Build_Subprogram_Id): New subprogram provided by exp_dist
4205         Code reorganisation in preparation for PolyORB integration.
4206
4207         * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
4208         exp_dist.
4209         (Build_Subprogram_Id): New subprogram provided by exp_dist
4210
4211         * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
4212         actual parameter types for call to dereference of an
4213         access-to-subprogram type.
4214
4215         * rtsfind.ads: Add new runtime library entities and names for PolyORB
4216         DSA.
4217
4218         * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
4219         instead, which has the same behaviour here since we never pass it a
4220         NULL pointer.
4221
4222         * link.c (run_path_option, Solaris case): Use -Wl, as for other
4223         platforms.
4224
4225         * Makefile.in: adjust object file lists for gnatlink and gnatmake
4226         to account for new dependency upon Interfaces.C.Strings + link.o
4227         For x86 FreeBSD, use 86numaux.
4228
4229         * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
4230         from Mlib.Tgt to Mlib.
4231
4232         * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
4233         target-independent.
4234
4235         * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
4236         target-specific versions of this subprogram, now implemented as a
4237         target-independent function in Mlib.
4238
4239         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
4240         5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
4241         (Linker_Library_Path_Option): Remove target-specific versions of this
4242         subprogram, now implemented as a target-independent function in Mlib.
4243
4244         * atree.adb: (Allocate_Initialize_Node): New subprogram.
4245         Factors out node table slots allocation.
4246         (Fix_Parents): New subprogram.
4247         Encapsulate the pattern of fixing up parent pointers for syntactic
4248         children of a rewritten node.
4249         (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
4250         (Rewrite): Use New_Copy when creating saved copy of original node.
4251         (Replace): Use Copy_Node to copy nodes.
4252
4253 2004-04-19  Javier Miranda  <miranda@gnat.com>
4254
4255         * sprint.adb (Sprint_Node_Actual): Give support to the new
4256         Access_To_Subprogram node available in Access_Definition nodes. In
4257         addition, give support to the AI-231 node fields: null-exclusion,
4258         all-present, constant-present.
4259
4260         * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
4261
4262         * sinfo.ads, sinfo.adb:
4263         New field Access_To_Subprogram_Definition in Access_Definition nodes
4264
4265         * sem_ch6.adb (Process_Formals): Move here the code that creates and
4266         decorates internal subtype declaration corresponding to the
4267         null-excluding formal. This code was previously in Set_Actual_Subtypes.
4268         In addition, carry out some code cleanup on this code. In case of
4269         access to protected subprogram call
4270         Replace_Anonymous_Access_To_Protected_Subprogram.
4271         (Set_Actual_Subtypes): Code cleanup.
4272
4273         * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
4274         Find_Type in case of anonymous access renamings. Add warning in case of
4275         null-excluding attribute used in anonymous access renaming.
4276
4277         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
4278         subprogram
4279
4280         * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
4281         subprogram.
4282         (Access_Definition): In case of anonymous access to subprograms call
4283         the corresponding semantic routine to decorate the node.
4284         (Access_Subprogram_Declaration): Addition of some comments indicating
4285         some code that probably should be added here. Detected by comparison
4286         with the access_definition subprogram.
4287         (Analyze_Component_Declaration): In case of access to protected
4288         subprogram call Replace_Anonymous_Access_To_Protected.
4289         (Array_Type_Declaration): In case of access to protected subprogram call
4290         Replace_Anonymous_Access_To_Protected_Subprogram.
4291         (Process_Discriminants): In case of access to protected subprogram call
4292         Replace_Anonymous_Access_To_Protected_Subprogram.
4293
4294         * par.adb (P_Access_Definition): New formal that indicates if the
4295         null-exclusion part was present.
4296         (P_Access_Type_Definition): New formal that indicates if the caller has
4297         already parsed the null-excluding part.
4298
4299         * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
4300         (P_Identifier_Declarations): Code cleanup and give support to renamings
4301         of anonymous access to subprogram types.
4302         (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
4303         (P_Array_Type_Definition): Give support to AI-254.
4304         (P_Component_Items): Give support to AI-254.
4305         (P_Access_Definition): New formal that indicates if the header was
4306         already parsed by the caller.
4307         (P_Access_Type_Definition): New formal that indicates if the caller has
4308         already parsed the null-excluding part.
4309
4310         * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
4311         call to P_Access_Definition.
4312
4313 2004-04-19  Geert Bosch  <bosch@gnat.com>
4314
4315         * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
4316         the delicate semantics of floating-point to integer conversion.
4317         (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
4318
4319         * eval_fat.adb (Machine_Mantissa): Moved to spec.
4320         (Machine_Radix): New function.
4321
4322         * eval_fat.ads (Machine_Mantissa): Moved from body for use in
4323         conversion checks.
4324         (Machine_Radix): New function also for use in conversion checks.
4325
4326 2004-04-19  Ed Schonberg  <schonberg@gnat.com>
4327
4328         * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
4329
4330         * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
4331         to decorate the access-to-protected subprogram and the equivalent type.
4332
4333         * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
4334         to anonymous access to subprogram types.
4335
4336         * exp_ch4.adb (Expand_N_In): Preserve Static flag before
4337         constant-folding, for legality checks in contexts that require an RM
4338         static expression.
4339
4340         * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
4341         temporary but stack checking is not enabled, increment serial number
4342         to so that symbol generation is consistent with and without stack
4343         checking.
4344
4345         * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
4346         independent on whether stack checking is enabled, caller must check
4347         the corresponding flag.
4348
4349         * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
4350         range checks.
4351         (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
4352         parent if it has discriminants.
4353         (Build_Derived_Private_Type): Constructed full view does
4354         not come from source.
4355         (Process_Discriminants): Default discriminants on a tagged type are
4356         legal if this is the internal completion of a private untagged
4357         derivation.
4358
4359         * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
4360         no constraint checks, because it corresponds to an existing object.
4361
4362         * sem_prag.adb (Process_Convention): Pragma applies
4363         only to subprograms in the same declarative part, i.e. the same unit,
4364         not the same scope.
4365
4366         * sem_res.adb (Valid_Conversion): In an instance or inlined body,
4367         ignore type mismatch on a numeric conversion if expression comes from
4368         expansion.
4369
4370 2004-04-19  Sergey Rybin  <rybin@act-europe.fr>
4371
4372         * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
4373         Homonym_Number parameter, add processing for Source_Location parameter
4374         corresponding.
4375         (Check_Eliminated): Remove the check for homonym numbers, add the check
4376         for source location traces.
4377
4378         * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
4379         with Arg_Source_Location corresponding to the changes in the format of
4380         the pragma.
4381
4382         * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
4383         Eliminate pragma corresponding to the changes in the format of the
4384         pragma: Homonym_Number is replaced with Source_Location, two ways of
4385         distinguishing homonyms are mutially-exclusive.
4386
4387 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
4388
4389         * get_targ.ads (Get_No_Dollar_In_Label): Remove.
4390
4391         * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
4392         No_Dollar_In_Label, no longer necessary, as it is always True.
4393         (Strip_Suffixes): Likewise.
4394
4395 2004-04-19  Gary Dismukes  <dismukes@gnat.com>
4396
4397         * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
4398         modulus for compatibility with size clause on targets with 16-bit
4399         Integer.
4400
4401         * layout.adb (Discrimify): In the case of private types, set Vtyp to
4402         full type to fix type mismatches on calls to size functions for
4403         discriminant-dependent array components.
4404
4405 2004-04-19  Jerome Guitton  <guitton@act-europe.fr>
4406
4407         * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
4408         lib.
4409
4410 2004-04-19  Pascal Obry  <obry@gnat.com>
4411
4412         * mdll-utl.adb (Locate): New version is idempotent.
4413
4414 2004-04-17  Laurent Guerby <laurent@guerby.net>
4415
4416         PR ada/14988 (partial)
4417         * impunit.adb: Fix typo.
4418
4419 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
4420
4421         * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
4422         and install-rts-cert targets.  Remove all gnatlib and gnattools
4423         targets and all other rts-* targets (moved to libada).  Remove (now)
4424         unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
4425         TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
4426
4427 2004-04-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4428
4429         * trans.c (tree_transform): Shortcut returning error_mark_node for
4430         statements in annotate_only_mode.
4431         (tree_transform, case N_Label, case N_Return_Statement,
4432         N_Goto_Statement): Make statement tree instead of generating code.
4433         (tree_transform, case N_Assignment_Statement): No longer check
4434         type_annotate_only.
4435         (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
4436         RETURN_STMT): New.
4437         (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
4438         New fcns.
4439         (gnat_to_gnu): Collect any RTL generated and deal with it.
4440         (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
4441         (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
4442         (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
4443
4444         * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
4445
4446         * ada-tree.def (EXPR_STMT): Fix typo in name.
4447         (BLOCK_STMT, IF_STMT): New nodes.
4448
4449         * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
4450         LABEL_STMT_FIRST_IN_EH): New macros.
4451         (RETURN_STMT_EXPR): Likewise.
4452
4453         * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
4454         IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
4455
4456 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
4457
4458         * atree.ads: Correct documentation on extended nodes.
4459
4460         * link.c: Set run_path_option for FreeBSD.
4461
4462 2004-04-08  Vincent Celier  <celier@gnat.com>
4463
4464         * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
4465         one of the ALI file, do not link with DEC lib.
4466
4467         * par.adb Remove the last two characters ("%s" or "%b") when checking
4468         if a language defined unit may be recompiled.
4469
4470 2004-04-08  Ed Schonberg  <schonberg@gnat.com>
4471
4472         * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
4473         removal of abstract operation leaves no possible interpretation for
4474         expression.
4475
4476         * sem_eval.adb (Eval_Qualified_Expression): Use
4477         Set_Raises_Constraint_Error on node when needed, so that it does not
4478         get optimized away by subsequent optimizations.
4479
4480         * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
4481         operands even when they are not wrapped in a type conversion.
4482
4483 2004-04-08  Olivier Hainque  <hainque@act-europe.fr>
4484
4485         * sem_prag.adb (Set_Exported): Warn about making static as result of
4486         export only when the export is coming from source. This may be not
4487         be true e.g. on VMS where we expand export pragmas for exception codes
4488         together with imported or exported exceptions, and we don't want the
4489         user to be warned about something he didn't write.
4490
4491 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
4492
4493         * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
4494         duplication between normal entities and those declared as renamings.
4495         No functional change.
4496
4497         * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
4498         inline functions returning an unconstrained result.
4499
4500 2004-04-08  Eric Botcazou  <ebotcazou@act-europe.fr>
4501
4502         * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
4503         conform to what other front-ends do.
4504
4505 2004-04-08  Doug Rupp  <rupp@gnat.com>
4506
4507         * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
4508         libraries.
4509
4510 2004-04-06  Pascal Obry  <obry@gnat.com>
4511
4512         * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
4513
4514         * osint.adb (Program_Name): Do not look past a directory separator.
4515
4516 2004-04-06  Thomas Quinot  <quinot@act-europe.fr>
4517
4518         * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
4519
4520         * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
4521         requirement for preserving a copy of the original assignment node.
4522
4523         * sinfo.ads: Update comment (Original_Tree -> Original_Node).
4524
4525 2004-04-06  Olivier Hainque  <hainque@act-europe.fr>
4526
4527         (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
4528         when supported.
4529
4530 2004-04-06  Ed Schonberg  <schonberg@gnat.com>
4531
4532         * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
4533         operator calls in functional notation, and apply
4534         Universal_Interpretation to operands, not to their type.
4535
4536 2004-04-06  Robert Dewar  <dewar@gnat.com>
4537
4538         * 5wdirval.adb: Minor reformatting
4539
4540 2004-04-06  Ed Falis  <falis@gnat.com>
4541
4542         * gnat_rm.texi: Improve a reference to the GCC manual
4543
4544 2004-04-05  Vincent Celier  <celier@gnat.com>
4545
4546         * adaint.h, adaint.c: Add function __gnat_named_file_length
4547
4548         * impunit.adb: Add Ada.Directories to the list
4549
4550         * Makefile.in: Add VMS and Windows versions of
4551         Ada.Directories.Validity package body.
4552
4553         * Makefile.rtl: Add a-direct and a-dirval
4554
4555         * mlib-tgt.ads: Minor comment update.
4556
4557         * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
4558         a-direct.ads, a-direct.adb: New files.
4559
4560 2004-04-05  Vincent Celier  <celier@gnat.com>
4561
4562         PR ada/13620
4563         * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
4564         just to the compiler.
4565
4566 2004-04-05  Robert Dewar  <dewar@gnat.com>
4567
4568         * a-except.adb (Exception_Name_Simple): Make sure lower bound of
4569         returned string is 1.
4570
4571         * ali-util.adb: Use proper specific form for Warnings (Off, entity)
4572
4573         * eval_fat.ads: Minor reformatting
4574
4575         * g-curexc.ads: Document that lower bound of returned string values
4576         is always one.
4577
4578         * gnatlink.adb: Add ??? comment for previous change
4579         (need to document why this is VMS specific)
4580
4581         * s-stoele.ads: Minor reformatting
4582
4583         * tbuild.ads: Minor reformatting throughout (new function specs)
4584
4585         * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
4586         after WITH.
4587
4588         * scng.adb: Minor reformatting
4589
4590 2004-04-05  Geert Bosch  <bosch@gnat.com>
4591
4592         * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
4593         (Leading_Part): Still perform truncation to machine number if the
4594         specified radix_digits is greater or equal to machine_mantissa.
4595
4596 2004-04-05  Javier Miranda  <miranda@gnat.com>
4597
4598         * par-ch3.adb: Complete documentation of previous change
4599         Correct wrong syntax documentation of the OBJECT_DECLARATION rule
4600         (aliased must appear before constant).
4601
4602         * par-ch4.adb: Complete documentation of previous change.
4603
4604         * par-ch6.adb: Complete documentation of previous change.
4605
4606         * sinfo.ads: Fix typo in commment.
4607
4608 2004-04-05  Ed Schonberg  <schonberg@gnat.com>
4609
4610         * sem_ch3.adb (Inherit_Components): If derived type is private and has
4611         stored discriminants, use its discriminants to constrain parent type,
4612         as is done for non-private derived record types.
4613
4614         * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
4615         Ada 2005 AI-310: an abstract non-dispatching operation is not a
4616         candidate interpretation in an overloaded call.
4617
4618         * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
4619         expression is Null and target type is not an access type (e.g. a
4620         non-private address type).
4621
4622 2004-04-05  Thomas Quinot  <quinot@act-europe.fr>
4623
4624         * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
4625         statement whose right-hand side is an inlined call, save a copy of the
4626         original assignment subtree to preserve enough consistency for
4627         Analyze_Assignment to proceed.
4628
4629         * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
4630         complete assignment subtree which is now unnecessary, as the expansion
4631         of inlined call has been improved to preserve a consistent assignment
4632         tree.  Note_Possible_Modification must be called only
4633         after checks have been applied, or else unnecessary checks will
4634         be generated.
4635
4636         * sem_util.adb (Note_Possible_Modification): Reorganise the handling
4637         of explicit dereferences that do not Come_From_Source:
4638          - be selective on cases where we must go back to the dereferenced
4639            pointer (an assignment to an implicit dereference must not be
4640            recorded as modifying the pointer);
4641          - do not rely on Original_Node being present (Analyze_Assignment
4642            calls Note_Possible_Modification on a copied tree).
4643
4644         * sem_warn.adb (Check_References): When an unset reference to a pointer
4645         that is never assigned is encountered, prefer '<pointer> may be null'
4646         warning over '<pointer> is never assigned a value'.
4647
4648 2004-04-05  Ramon Fernandez  <fernandez@gnat.com>
4649
4650         * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
4651         the ABI.
4652
4653 2004-04-05  Olivier Hainque  <hainque@act-europe.fr>
4654
4655         * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
4656         libexc. We currently don't reference anything in this library and
4657         linking it in triggers linker warnings we don't want to see.
4658
4659         * init.c: Update comments.
4660
4661 2004-04-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4662
4663         * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
4664         * utils.c (create_field_decl): Likewise.
4665         * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
4666
4667 2004-04-02  Arnaud Charlet  <charlet@act-europe.fr>
4668
4669         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
4670         Replace ifinfo by ifnottex, to make makeinfo --html happy again.
4671         Add info directory entry and category.
4672
4673 2004-04-02  Jan Hubicka  <jh@suse.cz>
4674
4675         * utils.c: Include function.h
4676         (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
4677
4678 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
4679
4680         PR ada/14150
4681         * Make-lang.in: Clean up generation of documentation
4682
4683         * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
4684
4685         * xgnatug.adb: Removed, replaced by xgnatugn.adb
4686
4687         * xgnatugn.adb: Replaces xgnatug.adb
4688
4689         * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
4690
4691         * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
4692
4693         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
4694         gnat_ug_wnt.texi: Removed.
4695
4696 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
4697
4698         * utils2.c: Update copyright notice.
4699
4700 2004-04-01  Robert Dewar  <dewar@gnat.com>
4701
4702         * checks.adb: Minor reformatting throughout
4703         Note that prev checkin added RM reference to alignment warning
4704
4705 2004-04-01  Ed Schonberg  <schonberg@gnat.com>
4706
4707         * exp_aggr.adb (Get_Component_Val): Treat a string literal as
4708         non-static when building aggregate for bit-packed array.
4709
4710         * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
4711         function call that is itself the actual in a procedure call, build
4712         temporary for it.
4713
4714         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
4715         a string literal, create a temporary for it, constant folding only
4716         handles scalars here.
4717
4718 2004-04-01  Vincent Celier  <celier@gnat.com>
4719
4720         * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
4721         Error_Msg_SP): New empty procedures to instantiate the Scanner.
4722         (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
4723         tokens.
4724         (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
4725         (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
4726         and get the checksum.
4727
4728         * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
4729         already in the Q.
4730         Increase the Marking_Label at the end of the Multiple_Main_Loop,
4731         instead of at the beginning.
4732
4733         * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
4734         directly.
4735         (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
4736         on VMS.
4737
4738         * osint.ads (Multi_Unit_Index_Character): New Character global variable
4739
4740         * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
4741         not '~' directly.
4742
4743         * par.adb: Remove test on file name to detect language defined units.
4744         Add test on unit name, after parsing, to detect language defined units
4745         that are not compiled with -gnatg (except System.RPC and its children)
4746
4747         * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
4748         following units without style checking.
4749
4750         * switch-c.adb: Change -gnatC to -gnateI
4751
4752         * usage.adb: Document new switch -gnateInnn
4753
4754         * scng.adb (Accumulate_Token_Checksum): New procedure
4755         (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
4756         word or literal number.
4757         (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
4758         numbers.
4759
4760 2004-04-01  Thomas Quinot  <quinot@act-europe.fr>
4761
4762         * a-tasatt.adb,
4763         g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
4764         switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
4765         5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
4766         5vtpopde.adb: Add missing 'constant' keywords.
4767
4768 2004-04-01  Javier Miranda  <miranda@gnat.com>
4769
4770         * par-ch4.adb: (P_Allocator): Code cleanup
4771
4772         * sem_ch3.adb (Access_Definition): Properly set the null-excluding
4773         attribute.
4774
4775         * sinfo.ads: Complete documentation of previous change
4776
4777 2004-04-01  Pascal Obry  <obry@gnat.com>
4778
4779         * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
4780         only on VMS.  This special handling was done because an old GNU/ld bug
4781         on Windows which has been fixed.
4782
4783 2004-04-01  GNAT Script  <nobody@gnat.com>
4784
4785         * Make-lang.in: Makefile automatically updated
4786
4787 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4788
4789         * decl.c (gnat_to_gnu_entity, make_type_from_size):
4790         Use TYPE_UNSIGNED, not TREE_UNSIGNED.
4791         * trans.c (tree_transform, convert_with_check): Likewise.
4792         * utils.c (gnat_signed_or_unsigned_type): Likewise.
4793         (build_vms_descriptor, unchecked_convert): Likewise.
4794         * utils2.c (nonbinary_modular_operation): Likewise.
4795
4796 2004-03-29  Javier Miranda  <miranda@gnat.com>
4797
4798         * checks.adb (Null_Exclusion_Static_Checks): New subprogram
4799         (Install_Null_Excluding_Check): Local subprogram that determines whether
4800         an access node requires a runtime access check and if so inserts the
4801         appropriate run-time check.
4802         (Apply_Access_Check): Call Install_Null_Excluding check if required
4803         (Apply_Constraint_Check): Call Install_Null_Excluding check if required
4804
4805         * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
4806
4807         * einfo.ads: Fix typo in comment
4808
4809         * exp_ch3.adb (Build_Assignment): Generate conversion to the
4810         null-excluding type to force the corresponding run-time check.
4811         (Expand_N_Object_Declaration): Generate conversion to the null-excluding
4812         type to force the corresponding run-time check.
4813
4814         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
4815         the null-excluding type to force the corresponding run-time check.
4816
4817         * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
4818         case of access types unless they have the null-excluding attribute.
4819
4820         * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
4821         part.
4822
4823         * exp_util.ads: Fix typo in comment
4824
4825         * par.adb (P_Null_Exclusion): New subprogram
4826         (P_Subtype_Indication): New formal that indicates if the null-excluding
4827         part has been scanned-out and it was present
4828
4829         * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
4830
4831         * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
4832         (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
4833         type to force the corresponding run-time check
4834         (Resolve_Aggregate): Propagate the null-excluding attribute to the array
4835         components
4836         (Resolve_Array_Aggregate): Carry out some static checks
4837         (Resolve_Record_Aggregate.Get_Value): Carry out some static check
4838
4839         * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
4840         attribute must be set only if specified by means of the null-excluding
4841         part. In addition, we must also propagate the access-constant attribute
4842         if present.
4843         (Access_Subprogram_Declaration, Access_Type_Declaration,
4844         Analyze_Component_Declaration, Analyze_Object_Declaration,
4845         Array_Type_Declaration, Process_Discriminants,
4846         Analyze_Subtype_Declaration): Propagate the null-excluding attribute
4847         and carry out some static checks.
4848         (Build_Derived_Access_Type): Set the null-excluding attribute
4849         (Derived_Type_Declaration, Process_Subtype): Carry out some static
4850         checks.
4851
4852         * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
4853
4854         * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
4855
4856         * sem_ch6.adb (Process_Formals): Carry out some static checks.
4857         (Set_Actual_Subtypes): Generate null-excluding subtype if the
4858         null-excluding part was present; it is not required to be done here in
4859         case of anonymous access types.
4860         (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
4861         value.
4862
4863         * sem_res.adb (Resolve_Actuals): Carry out some static check
4864         (Resolve_Null): Allow null in anonymous access
4865
4866         * sinfo.adb: New subprogram Null_Exclusion_Present
4867         All_Present and Constant_Present available on access_definition nodes
4868
4869         * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
4870         object_declaration, derived_type_definition, component_definition,
4871         discriminant_specification, access_to_object_definition,
4872         access_function_definition, allocator, access_procedure_definition,
4873         access_definition, parameter_specification, All_Present and
4874         Constant_Present flags available on access_definition nodes.
4875
4876 2004-03-29  Robert Dewar  <dewar@gnat.com>
4877
4878         * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
4879         gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
4880         opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
4881         par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
4882         sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
4883         sem_prag.adb: Updates to handle multiple units/file
4884
4885         * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
4886
4887         * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
4888         sem_util.adb: Minor reformatting
4889
4890         * sem_ch12.adb: Add comment for previous change
4891
4892 2004-03-29  Laurent Pautet  <pautet@act-europe.fr>
4893
4894         * osint.adb (Executable_Prefix): Set Exec_Name to the current
4895         executable name when not initialized. Otherwise, use its current value.
4896
4897         * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
4898         initialize it to another executable name than the current one. This
4899         allows to configure paths for an executable name (gnatmake) different
4900         from the current one (gnatdist).
4901
4902 2004-03-29  Ed Schonberg  <schonberg@gnat.com>
4903
4904         * exp_ch6.adb (Expand_Call): A call to a function declared in the
4905         current unit cannot be inlined if it appears in the body of a withed
4906         unit, to avoid order of elaboration problems in gigi.
4907
4908         * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
4909         information for protected (wrapper) operation as well, to simplify gdb
4910         use.
4911
4912         * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
4913         protected body, indicate that the entity for the generated spec comes
4914         from source, to ensure that references are properly generated for it.
4915         (Build_Body_To_Inline): Do not inline a function that returns a
4916         controlled type.
4917
4918         * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
4919         apply convention to homonyms that are declared explicitly.
4920
4921         * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
4922         that renames an equality operator and the operands are overloaded,
4923         resolve them with the declared formal types, before rewriting as an
4924         operator.
4925
4926 2004-03-29  GNAT Script  <nobody@gnat.com>
4927
4928         * Make-lang.in: Makefile automatically updated
4929
4930 2004-03-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
4931
4932         * memtrack.adb: Log realloc calls, which are treated as free followed
4933         by alloc.
4934
4935 2004-03-25  Vincent Celier  <celier@gnat.com>
4936
4937         * prj-makr.adb (Process_Directories): Detect when a file contains
4938         several units. Do not include such files in the config pragmas or
4939         in the naming scheme.
4940
4941         * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
4942         Resolve links only when not in Trusted_Mode.
4943         (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
4944         Do not resolve links for the display names.
4945
4946         * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
4947         resolve links when computing the display names.
4948
4949 2004-03-25  Thomas Quinot  <quinot@act-europe.fr>
4950
4951         * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
4952         attribute reference does not denote a subtype, it can be any
4953         expression that has a classwide type, potentially after an implicit
4954         dereference.  In particular, the prefix can be a view conversion for
4955         a classwide type (for which Is_Object_Reference holds), but it can
4956         also be a value conversion for an access-to-classwide type. In the
4957         latter case, there is an implicit dereference, and the original node
4958         for the prefix does not verify Is_Object_Reference.
4959
4960         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
4961         conversion of a discriminant-dependent component of a mutable object
4962         is one itself.
4963
4964 2004-03-25  Ed Schonberg  <schonberg@gnat.com>
4965
4966         * freeze.adb (Freeze_Entity): When an inherited subprogram is
4967         inherited, has convention C, and has unconstrained array parameters,
4968         place the corresponding warning on the derived type declaration rather
4969         than the original subprogram.
4970
4971         * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
4972         indication on renaming declaration, if formal has a box and actual
4973         is absent.
4974
4975         * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
4976         determine whether to generate an implicit or explicit reference to
4977         the renamed entity.
4978
4979         * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
4980         subprogram renaming comes from a defaulted formal subprogram in an
4981         instance.
4982
4983 2004-03-25  Gary Dismukes  <dismukes@gnat.com>
4984
4985         * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
4986         value expressions to ensure that calls within a component definition
4987         will be checked (since those are evaluated during the record type's
4988         elaboration).
4989
4990 2004-03-25  Arnaud Charlet  <charlet@act-europe.fr>
4991
4992         * s-tpobop.adb: Code clean up:
4993         (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
4994         code.
4995         (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
4996
4997 2004-03-25  Jose Ruiz  <ruiz@act-europe.fr>
4998
4999         * Makefile.in: Clean up in the ravenscar run time.
5000
5001 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5002
5003         * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
5004         of No_Strict_Aliasing to build_pointer_type_for_mode.
5005         * utils.c (update_pointer_to): Walk pointer and ref chains.
5006
5007 2004-03-22  Cyrille Comar  <comar@act-europe.fr>
5008
5009         * ali.ads: Fix Comment about Dynamic_Elab.
5010
5011         * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
5012         Has_RACW, Is_Generic, etc.)
5013         (Output_Object, Gnatls): Take into account ALI files not attached to
5014         an object.
5015
5016 2004-03-22  Vincent Celier  <celier@gnat.com>
5017
5018         * gprep.adb: Change all String_Access to Name_Id
5019         (Is_ASCII_Letter): new function
5020         (Double_File_Name_Buffer): New procedure
5021         (Preprocess_Infile_Name): New procedure
5022         (Process_Files): New procedure
5023         (Gnatprep): Check if output and input are existing directories.
5024         Call Process_Files to do the real job.
5025
5026 2004-03-22  Robert Dewar  <dewar@gnat.com>
5027
5028         * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
5029         s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
5030
5031 2004-03-22  Sergey Rybin  <rybin@act-europe.fr>
5032
5033         * scn.adb (Contains): Add check for EOF, is needed for a degenerated
5034         case when the source contains only comments.
5035
5036 2004-03-22  Ed Schonberg  <schonberg@gnat.com>
5037
5038         * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
5039         declaration for a child subprogram body that acts as a spec, indicate
5040         that the entity in the declaration needs debugging information.
5041
5042         * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
5043         full view if the subtype is created for a constrained record component;
5044         gigi has enough information to construct the record, and there is no
5045         place in the tree for the declaration.
5046
5047         * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
5048         serial number for the dummy body that is built for analysis, to avoid
5049         inconsistencies in the generation of internal names when compiling
5050         with -gnatN.
5051
5052 2004-03-22  Thomas Quinot  <quinot@act-europe.fr>
5053
5054         * sem_util.adb (Is_Object_Reference): A view conversion denotes an
5055         object.
5056
5057 2004-03-22  GNAT Script  <nobody@gnat.com>
5058
5059         * Make-lang.in: Makefile automatically updated
5060
5061 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5062
5063         * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
5064         * trans.c (tree_transform, emit_index_check): Likewise.
5065         * utils.c (build_template): Likewise.
5066         (max_size, convert): Remove handling of WITH_RECORD_EXPR.
5067         (maybe_unconstrained_array, unchecked_convert): Likewise.
5068         * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
5069         (build_unary_op): Likewise.
5070         (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
5071         (fill_vms_descriptor): Likewise.
5072         (build_call_alloc_dealloc): Likewise.
5073         ALIGN is unsigned.
5074         * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
5075
5076 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
5077
5078         PR other/14630
5079         * gnat_ug.texi: Add info directory category and entry.
5080         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
5081         gnat_ug_wnt.texi: Regenerate.
5082
5083 2004-03-19  Arnaud Charlet  <charlet@act-europe.fr>
5084
5085         * ada-tree.h: Update copyright notice.
5086         Minor reformatting.
5087
5088 2004-03-19  Olivier Hainque  <hainque@act-europe.fr>
5089
5090         * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
5091         as regular exception objects and not as mere integers representing the
5092         condition code.  The latter approach required some dynamics to mask off
5093         severity bits, which did not fit well into the GCC table based model.
5094         (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
5095         exception data objects. We don't it and it would conflict with the other
5096         external symbol we have to generate for such exceptions.
5097
5098         * trans.c (tree_transform, case N_Exception_Handler): Remove part of
5099         the special code for VMS exceptions, since these are now represented
5100         as regular exceptions objects.
5101
5102 2004-03-19 Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5103
5104         * decl.c (debug_no_type_hash): Remove.
5105         (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
5106         * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
5107
5108 2004-03-19  Laurent Guerby <laurent@guerby.net>
5109
5110         * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
5111         aggregate, allows bootstrap from 3.3 on powerpc-darwin.
5112
5113 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5114
5115         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
5116         (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
5117         (TYPE_RM_SIZE_INT): Directly use type.values.
5118         (TREE_LOOP_ID): Clean up check.
5119         * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
5120         TYPE_VALUES, not TYPE_FIELDS.
5121         * trans.c (convert_with_check): Delay access of bounds of basetype
5122         until sure is numeric.
5123
5124 2004-03-18  Arnaud Charlet  <charlet@act-europe.fr>
5125
5126         * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
5127
5128         Code clean up:
5129         * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
5130         5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
5131         Specific.Set instead of direct call to e.g pthread_setspecific.
5132
5133 2004-03-18  Thomas Quinot  <quinot@act-europe.fr>
5134
5135         * adaint.c: Update comments.
5136
5137         * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
5138         GNATLIB_SHARED for FreeBSD.
5139
5140 2004-03-18  Jose Ruiz  <ruiz@act-europe.fr>
5141
5142         * init.c [VxWorks]: Do not fix the stack size for the environment task.
5143         When needed (stack checking) the stack size is retrieved
5144         from the VxWorks kernel.
5145
5146         * Makefile.in: Flag -nostdinc is required when building the run time
5147         for avoiding looking for files in the base compiler.
5148         Add the VxWorks specific version of the package body for
5149         System.Stack_checking.Operations (5zstchop.adb).
5150
5151         * Make-lang.in: Add the object file for
5152         System.Stack_Checking.Operations.
5153
5154         * Makefile.rtl: Add object file for the package
5155         System.Stack_Checking.Operations.
5156
5157         * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
5158
5159         * s-stache.ads, s-stache.adb: Move the operations related to stack
5160         checking from this package to package System.Stack_Checking.Operations.
5161         This way, stack checking operations are only linked in the final
5162         executable when using the -fstack-check flag.
5163
5164 2004-03-18  Doug Rupp  <rupp@gnat.com>
5165
5166         * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
5167         Reorganize ifeq's.
5168
5169         * 5qsystem.ads, 5xcrtl.ads: New files.
5170
5171 2004-03-18  Vincent Celier  <celier@gnat.com>
5172
5173         * prj.adb (Reset): Reset hash table Files_Htable
5174
5175         * prj-env.adb (Source_Paths, Object_Paths): New tables.
5176         (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
5177         the procedures Add_To_Path_File.
5178         (Set_Ada_Paths): Accumulate source and object dirs in the tables,
5179         making sure that each directory is present only once and, for object
5180         dirs, when a directory already present is added, the duplicate is
5181         removed and the directory is always put as the last in the table.
5182         Write the path files at the end of these accumulations.
5183
5184         * prj-nmsc.adb (Record_Source): Add source file name in hash table
5185         Files_Htable for all sources.
5186
5187         * prj-proc.adb (Process): Remove restrictions between not directly
5188         related extending projects.
5189
5190 2004-03-18  Emmanuel Briot  <briot@act-europe.fr>
5191
5192         * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
5193         (Find_Sources): Minor speed optimization.
5194
5195         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
5196         parameter Trusted_Mode.
5197
5198 2004-03-18  Sergey Rybin  <rybin@act-europe.fr>
5199
5200         * scn.adb (Determine_License): Take into account a degenerated case
5201         when the source contains only comments.
5202
5203 2004-03-18  Ed Schonberg  <schonberg@gnat.com>
5204
5205         * sem_warn.adb (Check_References): For a warning on a selected
5206         component that does not come from source, locate an uninitialized
5207         component of the record type to produce a more precise error message.
5208
5209 2004-03-15  Jerome Guitton  <guitton@act-europe.fr>
5210
5211         * 3zsoccon.ads: Fix multicast options.
5212
5213         * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
5214         in the spec.
5215
5216 2004-03-15  Robert Dewar  <dewar@gnat.com>
5217
5218         * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
5219         pragma used for a private type.
5220
5221         * lib-xref.adb (Generate_Reference): Do not generate warning if
5222         reference is in a different unit from the pragma Unreferenced.
5223
5224         * 5vtpopde.adb: Minor reformatting
5225         Fix casing of To_Task_ID
5226
5227         * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
5228         flag if we have an unchecked conversion to an access type in the same
5229         unit.
5230
5231 2004-03-15  Geert Bosch  <bosch@gnat.com>
5232
5233         * a-ngcoty.adb (Modulus): In alternate formula for large real or
5234         imaginary parts, use Double precision throughout.
5235
5236         * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
5237         we want to be able to compile run-time with -gnata for testing, but
5238         this may also be instantiated in user code that is compiled with -gnata.
5239
5240 2004-03-15  Olivier Hainque  <hainque@act-europe.fr>
5241
5242         * s-stalib.ads (Exception_Code): New type, to represent Import/Export
5243         codes. Having a separate type for this is useful to enforce consistency
5244         throughout the various run-time units.
5245         (Exception_Data): Use Exception_Code for Import_Code.
5246
5247         * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
5248         Natural and Integer in various places.
5249         (Register_VMS_Exception): Use Base_Code_In to compute the exception code
5250         with the severity bits masked off.
5251         (Register_VMS_Exception): Handle the additional exception data pointer
5252         argument.
5253
5254         * raise.c (_GNAT_Exception structure): Remove the handled_by_others
5255         component, now reflected by an exported accessor.
5256         (is_handled_by): New routine to compute whether the propagated
5257         occurrence matches some handler choice specification. Extracted out of
5258         get_action_description_for, and expanded to take care of the VMS
5259         specifities.
5260         (get_action_description_for): Use is_handled_by instead of an explicit
5261         complex condition to decide if the current choice at hand catches the
5262         propagated occurrence.
5263
5264         * raise.h (Exception_Code): New type for C.
5265
5266         * rtsfind.ads (RE_Id, RE_Unit_Table): Add
5267         System.Standard_Library.Exception_Code, to allow references from the
5268         pragma import/export expander.
5269
5270         * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
5271         New accessors to allow easy access to GNAT exception data
5272         characteristics.
5273         (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
5274         redundant Handled_By_Others component, helper for the personality
5275         routine which will now be able to call the appropriate exception data
5276         accessor instead.
5277
5278         * cstand.adb (Create_Standard): Adjust the type of the Import_Code
5279         component of Standard_Exception_Type to be the closest possible to
5280         Exception_Code in System.Standard_Library, that we cannot get at this
5281         point. Expand a ??? comment to notify that this type node should
5282         probably be rewritten later on.
5283
5284         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
5285         registration call to include a pointer to the exception object in the
5286         arguments.
5287
5288         * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
5289         instead of int and explicit bitmasks.
5290
5291 2004-03-15  Vincent Celier  <celier@gnat.com>
5292
5293         * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
5294         equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
5295
5296         * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
5297         longer needed now that it is in the spec of
5298         System.Tasking.Task_Attributes.
5299
5300         * adaint.h, adaint.c: (__gnat_create_output_file): New function
5301
5302         * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
5303
5304         * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
5305
5306         * make.adb (Gnatmake): Do not check the executable suffix; it is being
5307         taken care of in Scan_Make_Arg.
5308         (Scan_Make_Arg): Add the executable suffix only if the argument
5309         following -o, in canonical case, does not end with the executable
5310         suffix.  When in verbose mode and executable file name does not end
5311         with executable suffix, output the executable name, in canonical case.
5312
5313         * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
5314         to avoid warnings when instantiating Ada.Task_Attributes.
5315         Minor reformating.
5316
5317         * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
5318         in the correct order.
5319
5320         * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
5321         redirect standard output and error to a file for the invocation of the
5322         compiler, then read the file.
5323
5324         * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
5325         directory, instead of the Value.
5326         (Find_Source_Dirs): Remove useless code & comments.
5327
5328 2004-03-15  Ed Schonberg  <schonberg@gnat.com>
5329
5330         * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
5331         tagged type is inherited, and the parent operation is not frozen yet,
5332         force generation of a freeze node for the inherited operation, so the
5333         corresponding dispatch entry is properly initialized.
5334         (Make_Predefined_Primitive_Specs): Check that return type is Boolean
5335         when looking for user-defined equality operation.
5336
5337         * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
5338         boolean when locating primitive equality of tagged component.
5339
5340         * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
5341         bit-aligned field and the right-hand side a string literal, introduce
5342         a temporary before expanding assignment into a loop.
5343
5344         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
5345         priority in full, to ensure that any expanded subepxressions of it are
5346         elaborated in the scope of the init_proc.
5347
5348         * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
5349         after object declaration, skipping over code that may have been
5350         generated for validity checks.
5351
5352         * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
5353         discriminants, ignore the known discriminants of its full view, if
5354         any, to check legality.
5355
5356         * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
5357         component if type has unknown discriminants.
5358         (Analyze_Private_Extension_Declaration): Discriminant constraint is
5359         null if type has unknown discriminants.
5360
5361         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
5362         for end label when present.
5363
5364         * s-fileio.adb (Open): When called with a C_Stream, use given name for
5365         temporary file, rather than an empty string.
5366
5367 2004-03-15  Ed Falis  <falis@gnat.com>
5368
5369         * s-thread.adb: Removed, no longer used.
5370
5371 2004-03-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5372
5373         * decl.c (target.h): Now include.
5374         (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
5375         in new build_pointer_from_mode calls for non-fat/non-thin pointer.
5376         (validate_size): For POINTER_TYPE, get smallest size permitted on
5377         machine.
5378
5379         * fe.h: Sort Einfo decls and add Set_Mechanism.
5380
5381         * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
5382         (ada/decl.o): Depends on target.h.
5383
5384         * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
5385         FUNCTION_BOUNDARY; always use TYPE_ALIGN.
5386
5387 2004-03-15  Thomas Quinot  <quinot@act-europe.fr>
5388
5389         * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
5390
5391         * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
5392         Insert_Dereference_Action when rewriting an implicit dereference into
5393         an explicit one, this will be taken care of during expansion of the
5394         explicit dereference.
5395         (Expand_N_Slice): Same. Always do the rewriting, even for the case
5396         of non-packed slices, since the dereference action generated by
5397         expansion of the explicit dereference is needed in any case.
5398         (Expand_N_Selected_Component): When rewriting an implicit dereference,
5399         analyze and resolve the rewritten explicit dereference so it is seen
5400         by the expander.
5401         (Insert_Dereference_Action): This procedure is now called only for the
5402         expansion of an N_Explcit_Dereference_Node. Do insert a check even for
5403         dereferences that do not come from source (including explicit
5404         dereferences resulting from rewriting implicit ones), but do not
5405         recursively insert a check for the dereference nodes contained within
5406         the check.
5407         (Insert_Dereference_Action): Clarify and correct comment.
5408
5409 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
5410
5411         PR ada/14131
5412         Move language detection to the top level.
5413         * config-lang.in: Build by default.
5414
5415 2004-03-05  Robert Dewar  <dewar@gnat.com>
5416
5417         * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
5418
5419         * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
5420         i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
5421         5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
5422         5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
5423         unchecked conversion to spec to avoid warnings.
5424
5425         * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
5426         to Task_ID
5427
5428         * 7stpopsp.adb: Correct casing in To_Task_ID call
5429
5430         * a-strsea.ads, a-strsea.adb: Minor reformatting
5431
5432         * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
5433
5434         * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
5435         Adjust Max_Msg_Length to be clearly large enough.
5436
5437         * fe.h: Define In_Same_Source_Unit
5438
5439         * osint.adb: Add pragma Warnings Off to suppress warnings
5440         * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
5441         aliasing warnings.
5442
5443         * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
5444
5445         * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
5446
5447         * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
5448
5449         * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
5450
5451         * sem_prag.adb: Implement pragma No_Strict_Aliasing.
5452
5453         * sinfo.ads: Remove obsolete comment on validate unchecked conversion
5454         node. We now do generate them for gcc back end.
5455
5456         * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
5457         warning.
5458
5459         * sinput-c.adb: Fix bad name in header.
5460         Add pragma Warnings Off to suppress aliasing warning.
5461
5462         * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
5463
5464         * snames.h, snames.ads, snames.adb: Add entry for pragma
5465         No_Strict_Aliasing.
5466
5467 2004-03-05  Vincent Celier  <celier@gnat.com>
5468
5469         * prj-com.ads: Add hash table Files_Htable to check when a file name
5470         is already a source of another project.
5471
5472         * prj-nmsc.adb (Record_Source): Before recording a new source, check
5473         if its file name is not already a source of another project. Report an
5474         error if it is.
5475
5476         * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
5477         source file name, call gnatpp with all the sources of the main project.
5478
5479         * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
5480         of file names.
5481
5482         * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
5483         NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
5484         /RUNTIME_SYSTEM=, converted to --RTS=
5485         /NOTABS, converted to -notabs
5486
5487 2004-03-05  Pascal Obry  <obry@gnat.com>
5488
5489         * make.adb: Minor reformatting.
5490
5491 2004-03-05  Ed Schonberg  <schonberg@gnat.com>
5492
5493         Part of implemention of AI-262.
5494         * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
5495
5496         * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
5497         procedure.
5498
5499         * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
5500         when component type is a partially constrained class-wide subtype.
5501         (Constrain_Discriminated_Type): If parent type has unknown
5502         discriminants, a constraint is illegal, even if full view has
5503         discriminants.
5504         (Build_Derived_Record_Type): Inherit discriminants when deriving a type
5505         with unknown discriminants whose full view is a discriminated record.
5506
5507         * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
5508         flag, to handle properly derivations of tagged types with unknown
5509         discriminants.
5510         (Analyze_Package_Spec, Analyze_Package_Body): Install
5511         Private_With_Clauses before analyzing private part or body.
5512
5513         * einfo.ads: Indicate that both Has_Unknown_Discriminants and
5514         Has_Discriminants can be true for a given type (documentation).
5515
5516 2004-03-05  Arnaud Charlet  <charlet@act-europe.fr>
5517
5518         * s-restri.ads: Fix license (GPL->GMGPL).
5519
5520         * s-tassta.adb: Minor reformatting.
5521
5522         * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
5523         by calls to Exit_One_ATC_Level, since additional clean up is performed
5524         by this function.
5525
5526         * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
5527         by calls to Exit_One_ATC_Level, since additional clean up is performed
5528         by this function.
5529
5530 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5531
5532         * trans.c: Reflect GCC changes to fix bootstrap problem.
5533         Add warning for suspicious aliasing unchecked conversion.
5534
5535 2004-03-05  GNAT Script  <nobody@gnat.com>
5536
5537         * Make-lang.in: Makefile automatically updated
5538
5539 2004-03-02  Emmanuel Briot  <briot@act-europe.fr>
5540
5541         * ali.adb (Read_Instantiation_Instance): Do not modify the
5542         current_file_num when reading information about instantiations, since
5543         this corrupts files in later references.
5544
5545 2004-03-02  Vincent Celier  <celier@gnat.com>
5546
5547         * bcheck.adb (Check_Consistency): Get the full path of an ALI file
5548         before checking if it is read-only.
5549
5550         * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
5551         of SRC_DIRS and eliminate duplicates.
5552
5553         * gprcmd.adb: Replace command "path" with command "path_sep" to return
5554         the path separator.
5555         (Usage): Document path_sep
5556
5557         * Makefile.generic: For Ada and GNU C++ cases, link directly with the
5558         C++ compiler. No need for a script.
5559         Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
5560         Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
5561         subst.
5562
5563         * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
5564         where there are Ada sources.
5565         (Set_Ada_Paths): Only add to the include path the source dirs of project
5566         with Ada sources.
5567         (Add_To_Path): Add the Display_Values of the directories, not their
5568         Values.
5569
5570         * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
5571         data.
5572
5573         * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
5574         is not No_Name.
5575         (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
5576         Value is canonicalized.
5577         (Language_Independent_Check): Do not copy Value to Display_Value when
5578         canonicalizing Value.
5579
5580         * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
5581         path to find limited with cycles.
5582         (Parse_Single_Project): Use canonical cased path to find the end of a
5583         with cycle.
5584
5585 2004-03-02  Ed Schonberg  <schonberg@gnat.com>
5586
5587         * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
5588         and not a child unit.
5589
5590         * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
5591         appear in a with_clause.
5592
5593         * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
5594         only happen in type_annotate mode, do not try to elaborate it.
5595
5596         * exp_util.adb (Force_Evaluation): If expression is a selected
5597         component on the left of an assignment, use a renaming rather than a
5598         temporary to remove side effects.
5599
5600         * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
5601         inlined instance body, which is analyzed before the end of the
5602         enclosing scope.
5603
5604 2004-03-02  Robert Dewar  <dewar@gnat.com>
5605
5606         * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
5607         sem_ch4.adb: Use new feature for substitution of keywords in VMS
5608
5609         * errout.ads, errout.adb: Implement new circuit for substitution of
5610         keywords in VMS.
5611
5612         * sem_case.adb (Analyze_Choices): Place message properly when case is
5613         a subtype reference rather than an explicit range.
5614
5615         * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
5616
5617 2004-03-02  Doug Rupp  <rupp@gnat.com>
5618
5619         * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
5620
5621 2004-03-02  Thomas Quinot  <quinot@act-europe.fr>
5622
5623         * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
5624
5625 2004-03-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5626
5627         * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
5628         BLKmode bitfield.
5629
5630 2004-02-25  Robert Dewar  <dewar@gnat.com>
5631
5632         * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
5633         55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
5634         5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
5635         5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
5636         5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
5637         5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
5638         the defining instance of the type to avoid aliasing problems.
5639         Fix copyright header.  Fix bad comments in package header.
5640
5641         * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
5642
5643 2004-02-25  Ed Schonberg  <schonberg@gnat.com>
5644
5645         * exp_ch2.adb (Param_Entity): Handle properly formals that have been
5646         rewritten as references when aliased through an address clause.
5647
5648         * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
5649         whether call can be interpreted as an indirect call to the result of a
5650         parameterless function call returning an access subprogram.
5651
5652 2004-02-25  Arnaud Charlet  <charlet@act-europe.fr>
5653
5654         Code clean up:
5655         * exp_ch7.adb (Make_Clean): Remove generation of calls to
5656         Unlock[_Entries], since this is now done by Service_Entries directly.
5657
5658         * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
5659
5660         * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
5661         Requeue_Call for better code readability. Change spec and update calls:
5662         PO_Service_Entries now unlock the PO on exit.
5663         (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
5664         PO_Service_Entries.
5665
5666         * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
5667
5668         * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
5669
5670 2004-02-25  Sergey Rybin  <rybin@act-europe.fr>
5671
5672         * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
5673         protected subprogram call and analyzing the result of such expanding
5674         in case when the called protected subprogram is eliminated.
5675
5676         * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
5677         names.
5678
5679 2004-02-25  Jerome Guitton  <guitton@act-europe.fr>
5680
5681         * Makefile.in: Clean ups.
5682
5683 2004-02-23  Ed Schonberg  <schonberg@gnat.com>
5684
5685         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
5686         protected operations if original subprogram is flagged as eliminated.
5687         (Expand_N_Subprogram_Body): For a protected operation, create
5688         discriminals for next operation before checking whether the operation
5689         is eliminated.
5690
5691         * exp_ch9.adb (Expand_N_Protected_Body,
5692         Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
5693         for internal protected operations if the original subprogram is
5694         eliminated.
5695
5696         * sem_elim.adb (Check_Eliminated): Handle properly protected operations
5697         declared in a single protected object.
5698
5699 2004-02-23  Vincent Celier  <celier@gnat.com>
5700
5701         * prj-attr.adb: Make attribute Builder'Executable an associative array,
5702         case insensitive if file names are case insensitive, instead of a
5703         standard associative array.
5704
5705         * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
5706         them as case insensitive on platforms where the file names are case
5707         sensitive.
5708
5709         * prj-part.adb (Parse_Single_Project): Make sure, when checking if
5710         project file has already been parsed that canonical path are compared.
5711
5712 2004-02-23  Robert Dewar  <dewar@gnat.com>
5713
5714         * sinput-c.ads: Correct bad unit title in header
5715
5716         * freeze.adb: Minor reformatting
5717
5718 2004-02-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5719
5720         * trans.c (tree_transform, case N_Procedure_Call_Statement): For
5721         nonaddressable COMPONENT_REF that is removing padding that we are
5722         taking the address of, take the address of the padded record instead
5723         if item is variable size.
5724
5725 2004-02-20  Robert Dewar  <dewar@gnat.com>
5726
5727         * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
5728
5729 2004-02-20  Ed Schonberg  <schonberg@gnat.com>
5730
5731         * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
5732         itype references for the constrained designated type of a component
5733         whose base type is already frozen.
5734
5735 2004-02-20  Arnaud Charlet  <charlet@act-europe.fr>
5736
5737         * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
5738         avoid GCC warnings.
5739
5740 2004-02-20  Sergey Rybin  <rybin@act-europe.fr>
5741
5742         * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
5743         identifier for a phantom package that rewrites the formal package
5744         declaration with a box. The Add semantic decorations for the defining
5745         identifier from the original node (that represents the formal package).
5746
5747 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
5748
5749         * Make-lang.in (ada/stamp-sdefault): Use the top level
5750         move-if-change.
5751
5752 2004-02-19  Richard Henderson  <rth@redhat.com>
5753
5754         * misc.c (record_code_position): Add third build arg for RTL_EXPR.
5755
5756 2004-02-18  Emmanuel Briot  <briot@act-europe.fr>
5757
5758         * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
5759         Scan_ALI can be used for multiple ALI files without reinitializing
5760         between calls.
5761
5762 2004-02-18  Robert Dewar  <dewar@gnat.com>
5763
5764         * debug.adb: Minor reformatting.
5765
5766 2004-02-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5767
5768         * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
5769         to zero if there is an address clause.
5770
5771 2004-02-18  Thomas Quinot  <quinot@act-europe.fr>
5772
5773         * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
5774
5775 2004-02-18  Gary Dismukes  <dismukes@gnat.com>
5776
5777         * layout.adb (Layout_Component_List): Revise generation of call to
5778         discriminant-checking function to pass selections of all of the type's
5779         discriminants rather than just the variant-controlling discriminant.
5780
5781 2004-02-18  Olivier Hainque  <hainque@act-europe.fr>
5782
5783         * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
5784         fail in the current setup and triggers spurious system error messages.
5785         Pretend it occurred and failed instead.
5786
5787 2004-02-18  Vincent Celier  <celier@gnat.com>
5788
5789         * bld.adb: Mark FLDFLAGS as saved
5790         (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
5791         it is not the root project.  Put each directory to be
5792         extended between double quotes to prevent it to be expanded on Windows.
5793         (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
5794         the project file. Set them back to their initial values if they have not
5795         been set in the project file.
5796
5797         * gprcmd.adb: (Gprdebug, Debug): New global variables
5798         (Display_Command): New procedure
5799         (Usage): Document new command "linkopts"
5800         Call Display_Command when env var GPRDEBUG has the value "TRUE"
5801         Implement new command "linkopts"
5802         Remove quotes that may be around arguments for "extend"
5803         Always call Normalize_Pathname with arguments formatted for the platform
5804
5805         * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
5806         Change @echo to @$(display) in target clean to be able to clean silently
5807
5808         * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
5809
5810         * prj-part.adb (Project_Path_Name_Of): Do not put final result in
5811         canonical case.
5812
5813         * prj-part.adb (Parse_Single_Project): Always call with From_Extended
5814         = Extending_All when current project is an extending all project.
5815
5816         * vms_conv.adb (Output_File_Expected): New Boolean global variable,
5817         set to True only for LINK command, after Unix switch -o.
5818         (Process_Arguments): Set Output_File_Expected to True for LINK command
5819         after Unix switch -o. When Output_File_Expected is True, never add an
5820         extension to a file name.
5821
5822         * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
5823         option file name, only to the --for-linker= switch.
5824         (Option_File_Name): If option file name do not end with ".opt", append
5825         "/OPTIONS".
5826
5827 2004-02-18  GNAT Script  <nobody@gnat.com>
5828
5829         * Make-lang.in: Makefile automatically updated
5830
5831 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
5832
5833         * Make-lang.in (stamp-sdefault): Do not depend on
5834         move-if-change.
5835
5836 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
5837
5838         * config-lang.in: Disable Ada by default until probe logic for
5839         a bootstrap Ada compiler can be moved to the top level configure
5840         script.
5841
5842 2004-02-12  Olivier Hainque  <hainque@act-europe.fr>
5843
5844         * decl.c (components_to_record): Don't claim that the internal fields
5845         we make to hold the variant parts are semantically addressable, because
5846         they are not.
5847
5848         * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
5849         adjust the comment describing the modular type form when we can use it.
5850         (Install_PAT): Account for the Esiz renaming.
5851
5852         * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
5853         sc_onstack context indication before raising the exception to which
5854         the signal is mapped. Allows better handling of later signals possibly
5855         triggered by the resumed user code if the exception is handled.
5856
5857 2004-02-12  Arnaud Charlet  <charlet@act-europe.fr>
5858
5859         * 5zinit.adb: Removed, no longer used.
5860
5861 2004-02-12  Robert Dewar  <dewar@gnat.com>
5862
5863         * ali.adb: Remove separating space between parameters on R line. Makes
5864         format consistent with format used by the binder for Set_Globals call.
5865
5866         * atree.ads, atree.adb: Minor reformatting (new function header format)
5867
5868         * bindgen.adb: Add Run-Time Globals documentation section containing
5869         detailed documentation of the globals passed from the binder file to
5870         the run time.
5871
5872         * gnatls.adb: Minor reformatting
5873
5874         * init.c (__gnat_set_globals): Add note pointing to documentation in
5875         bindgen.
5876
5877         * lib-writ.ads, lib-writ.adb: Remove separating space between
5878         parameters on R line.
5879         Makes format consistent with format used by the binder for Set_Globals
5880         call.
5881
5882         * osint.ads: Add 2004 to copyright notice
5883         Minor reformatting
5884
5885         * snames.ads: Correct capitalization of FIFO_Within_Priorities
5886         Noticed during code reading, documentation issue only
5887
5888         * usage.adb: Remove junk line for obsolete C switch
5889         Noticed during code reading
5890
5891 2004-02-12  Vincent Celier  <celier@gnat.com>
5892
5893         * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
5894         extend for each directory, so that multiple /** directories are
5895         extended individually.
5896         (Recursive_Process): Set the default for LANGUAGES to ada
5897
5898         * gprcmd.adb: Define new command "ignore", to do nothing.
5899         Implement new comment "path".
5900
5901         * Makefile.generic: Suppress output when SILENT is set
5902         Make sure that when compiler for C/C++ is gcc, the correct -x switch is
5903         used, so that the correct compiler is invoked.
5904         When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
5905         CXX_INCLUDE_PATH, to avoid failure with too long command lines.
5906
5907 2004-02-12  Jerome Guitton  <guitton@act-europe.fr>
5908
5909         * Makefile.in: Clean ups and remove obsolete targets.
5910
5911 2004-02-12  Ed Schonberg  <schonberg@gnat.com>
5912
5913         * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
5914         predicate declared in exp_util.
5915
5916         * exp_util.adb: Add comments.
5917
5918         * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
5919         visibility before compiling context of the subunit.
5920
5921         * sem_res.adb (Check_Parameterless_Call): If the context expects a
5922         value but the name is a procedure, do not attempt to analyze as a call,
5923         in order to obtain more telling diagnostics.
5924
5925         * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
5926         'Access on parameterless function calls.
5927         (Normalize_Actuals): For a parameterless function call with missing
5928         actuals, defer diagnostic until resolution of enclosing call.
5929
5930         * sem_util.adb (Wrong_Type): If the context type is an access to
5931         subprogram and the expression is a procedure name, suggest a missing
5932         'attribute.
5933
5934 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>,
5935             Nathanael Nerode  <neroden@gcc.gnu.org>
5936
5937         PR ada/6637, PR ada/5911
5938         Merge with libada-branch:
5939         * config-lang.in: Build libada only when ada is built.
5940
5941 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
5942
5943         * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
5944         for a tagged type, verify that both formals have the same type.
5945
5946         * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
5947         temporary when the formal is an in-parameter and the actual a possibly
5948         unaligned slice.
5949
5950         * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
5951         when expansion is disabled, to ensure proper name capture with
5952         overloaded literals.  Condition can be of any boolean type, resolve
5953         accordingly.
5954
5955         * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
5956         renaming is for a formal subprogram with a default operator name, and
5957         there is a usable operator that is visible at the point of
5958         instantiation.
5959
5960 2004-02-09  Robert Dewar  <dewar@gnat.com>
5961
5962         * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
5963         rewrite to ignore errors in ali files, intended to allow tools downward
5964         compatibility with new versions of ali files.
5965
5966         * ali.ads: Add new parameter Ignore_Errors
5967
5968         * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
5969         duplicating the error message giving the file with restrictions.
5970
5971         * debug.adb: Add debug flag I for gnatbind
5972
5973         * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
5974         operators for the case where the operator is a defining operator.
5975
5976         * exp_ch3.adb: Minor reformatting (new function spec format).
5977
5978         * exp_ch4.adb: Add comment for previous change, and make minor
5979         adjustment to loop to always check for improper loop termination.
5980         Minor reformatting throughout (new function spec format).
5981
5982         * gnatbind.adb: Implement -di debug flag for gnatbind
5983
5984         * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
5985
5986         * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
5987
5988         * lib-load.adb: Fix bad assertion.
5989         Found by testing and code reading.
5990         Minor reformatting.
5991
5992         * lib-load.ads: Minor reformatting.
5993
5994         * lib-writ.adb: There is only one R line now.
5995
5996         * lib-writ.ads: Add documentation on making downward compatible changes
5997         to ali files so old tools work with new ali files.
5998         There is only one R line now.
5999         Add documentation on format incompatibilities (with special GPS note)
6000
6001         * namet.ads, namet.adb: (Is_Operator_Name): New procedure
6002
6003         * par-load.adb: Minor reformatting
6004
6005         * sem_ch8.adb: Fix to error message from last update
6006         Minor reformatting and restructuring of code from last update
6007
6008         * par-prag.adb, snames.adb, snames.ads, snames.h,
6009         sem_prag.adb: Implement pragma Profile.
6010
6011         * stylesw.adb: Implement -gnatyN switch to turn off all style check
6012         options.
6013
6014         * usage.adb: Add line for -gnatyN switch
6015
6016         * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
6017
6018 2004-02-09  Albert Lee  <lee@gnat.com>
6019
6020         * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
6021
6022 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
6023
6024         * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
6025         slices.
6026
6027         * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
6028         is nested in an instance that is not frozen yet, to avoid
6029         order-of-elaboration problems in gigi.
6030
6031         * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
6032         body the attribute is legal.
6033
6034 2004-02-09  Robert Dewar  <dewar@gnat.com>
6035
6036         * s-rident.ads: Minor comment correction
6037
6038         * targparm.adb: Remove dependence on uintp completely. There was
6039         always a bug in Make in that it called Targparm before initializing
6040         the Uint package. The old code appeared to get away with this, but
6041         the new code did not! This caused an assertion error in gnatmake.
6042
6043         * targparm.ads: Fix bad comment, restriction pragmas with parameters
6044         are indeed fully supported.
6045
6046 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
6047
6048         * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
6049
6050 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
6051
6052         * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
6053         with targetm.calls.promote_prototypes.
6054
6055 2004-02-04  Robert Dewar  <dewar@gnat.com>
6056
6057         * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
6058         ali.ads, gprcmd.adb: Minor reformatting
6059
6060         * bindgen.adb: Output restrictions string for new style restrictions
6061         handling
6062
6063         * impunit.adb: Add s-rident.ads (System.Rident) and
6064         s-restri (System.Restrictions)
6065
6066         * lib-writ.adb: Fix bug in writing restrictions string (last few
6067         entries wrong)
6068
6069         * s-restri.ads, s-restri.adb: Change name Restrictions to
6070         Run_Time_Restrictions to avoid conflict with package name.
6071         Add circuit to read and acquire run time restrictions.
6072
6073 2004-02-04  Jose Ruiz  <ruiz@act-europe.fr>
6074
6075         * restrict.ads, restrict.adb: Use the new restriction
6076         No_Task_Attributes_Package instead of the old No_Task_Attributes.
6077
6078         * sem_prag.adb: No_Task_Attributes is a synonym of
6079         No_Task_Attributes_Package.
6080
6081         * snames.ads, snames.adb: New entry for proper handling of
6082         No_Task_Attributes.
6083
6084         * s-rident.ads: Adding restriction No_Task_Attributes_Package
6085         (AI-00249) that supersedes the GNAT specific restriction
6086         No_Task_Attributes.
6087
6088 2004-02-04  Ed Schonberg  <schonberg@gnat.com>
6089
6090         * sem_prag.adb:
6091         (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
6092          body, an identifier may be wrapped in an unchecked conversion.
6093
6094 2004-02-04  Vincent Celier  <celier@gnat.com>
6095
6096         * lib-writ.ads: Comment update for the W lines
6097
6098         * bld.adb: (Expression): An empty string list is static
6099
6100         * fname-uf.adb: Minor comment update
6101
6102         * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
6103
6104         * gnatbind.adb: Initialize Cumulative_Restrictions with the
6105         restrictions on the target.
6106
6107 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
6108
6109         * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
6110         gen_rtx.
6111
6112 2004-02-02  Arnaud Charlet  <charlet@gnat.com>
6113
6114         * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
6115
6116 2004-02-02  Vincent Celier  <celier@gnat.com>
6117
6118         * gprcmd.adb (Check_Args): If condition is false, print the invoked
6119         comment before the usage.
6120         Gprcmd: Fail when command is not recognized.
6121         (Usage): Document command "prefix"
6122
6123         * g-md5.adb (Digest): Process last block.
6124         (Update): Do not process last block. Store remaining characters and
6125         length in Context.
6126
6127         * g-md5.ads (Update): Document that several call to update are
6128         equivalent to one call with the concatenated string.
6129         (Context): Add fields to allow new Update behaviour.
6130
6131         * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
6132         defaulted to False.
6133         When May_Fail is True and no existing file can be found, return No_File.
6134
6135         * 6vcstrea.adb: Inlined functions are now wrappers to implementation
6136         functions.
6137
6138         * lib-writ.adb (Write_With_Lines): When body file does not exist, use
6139         spec file name instead on the W line.
6140
6141 2004-02-02  Robert Dewar  <dewar@gnat.com>
6142
6143         * ali.adb: Read and acquire info from new format restrictions lines
6144
6145         * bcheck.adb: Add circuits for checking restrictions with parameters
6146
6147         * bindgen.adb: Output dummy restrictions data
6148         To be changed later
6149
6150         * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
6151         exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
6152         freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
6153         sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
6154         sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
6155
6156         * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
6157         the warning message on access to possibly uninitialized variable S)
6158         Minor changes for new restrictions handling.
6159
6160         * gnatbind.adb: Minor reformatting
6161         Minor changes for new restrictions handling
6162         Move circuit for -r processing here from bcheck (cleaner)
6163
6164         * gnatcmd.adb, gnatlink.adb: Minor reformatting
6165
6166         * lib-writ.adb: Output new format restrictions lines
6167
6168         * lib-writ.ads: Document new R format lines for new restrictions
6169         handling.
6170
6171         * s-restri.ads/adb: New files
6172
6173         * Makefile.rtl: Add entry for s-restri.ads/adb
6174
6175         * par-ch3.adb: Fix bad error messages starting with upper case letter
6176         Minor reformatting
6177
6178         * restrict.adb: Major rewrite throughout for new restrictions handling
6179         Major point is to handle restrictions with parameters
6180
6181         * restrict.ads: Major changes in interface to handle restrictions with
6182         parameters. Also generally simplifies setting of restrictions.
6183
6184         * snames.ads/adb: New entry for proper handling of No_Requeue
6185
6186         * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
6187         restriction counting.
6188         Other minor changes for new restrictions handling
6189
6190         * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
6191         Restriction_Warnings now allows full parameter notation
6192         Major rewrite of Restrictions for new restrictions handling
6193
6194 2004-02-02  Javier Miranda  <miranda@gnat.com>
6195
6196         * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
6197         syntax rule for object renaming declarations.
6198         (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
6199         component definitions.
6200
6201         * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
6202         components.
6203         (Array_Type_Declaration): Give support to access components. In addition
6204         it was also modified to reflect the name of the object in anonymous
6205         array types. The old code did not take into account that it is possible
6206         to have an unconstrained anonymous array with an initial value.
6207         (Check_Or_Process_Discriminants): Allow access discriminant in
6208         non-limited types.
6209         (Process_Discriminants): Allow access discriminant in non-limited types
6210         Initialize the new Access_Definition field in N_Object_Renaming_Decl
6211         node.  Change Ada0Y to Ada 0Y in comments
6212
6213         * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
6214         equality operators.
6215         Change Ada0Y to Ada 0Y in comments
6216
6217         * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
6218         renamings Change Ada0Y to Ada 0Y in comments
6219
6220         * sem_type.adb (Find_Unique_Type): Give support to the equality
6221         operators for universal access types
6222         Change Ada0Y to Ada 0Y in comments
6223
6224         * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
6225
6226         * sinfo.ads (N_Component_Definition): Addition of Access_Definition
6227         field.
6228         (N_Object_Renaming_Declaration): Addition of Access_Definition field
6229         Change Ada0Y to Ada 0Y in comments
6230
6231         * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
6232         component definition and object renaming nodes
6233         Change Ada0Y to Ada 0Y in comments
6234
6235 2004-02-02  Jose Ruiz  <ruiz@act-europe.fr>
6236
6237         * restrict.adb: Use the new restriction identifier
6238         No_Requeue_Statements instead of the old No_Requeue for defining the
6239         restricted profile.
6240
6241         * sem_ch9.adb (Analyze_Requeue): Check the new restriction
6242         No_Requeue_Statements.
6243
6244         * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
6245         that supersedes the GNAT specific restriction No_Requeue. The later is
6246         kept for backward compatibility.
6247
6248 2004-02-02  Ed Schonberg  <schonberg@gnat.com>
6249
6250         * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
6251         5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
6252         pragma and fix incorrect ones.
6253
6254         * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
6255         warning if the pragma is redundant.
6256
6257 2004-02-02  Thomas Quinot  <quinot@act-europe.fr>
6258
6259         * 5staprop.adb: Add missing 'constant' keywords.
6260
6261         * Makefile.in: use consistent value for SYMLIB on
6262         platforms where libaddr2line is supported.
6263
6264 2004-02-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6265
6266         * utils.c (end_subprog_body): Do not call rest_of_compilation if just
6267         annotating types.
6268
6269 2004-02-02  Olivier Hainque  <hainque@act-europe.fr>
6270
6271         * init.c (__gnat_install_handler): Setup an alternate stack for signal
6272         handlers in the environment thread. This allows proper propagation of
6273         an exception on stack overflows in this thread even when the builtin
6274         ABI stack-checking scheme is used without support for a stack reserve
6275         region.
6276
6277         * utils.c (create_field_decl): Augment the head comment about bitfield
6278         creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
6279         here, because the former is not accurate enough at this point.
6280         Let finish_record_type decide instead.
6281         Don't make a bitfield if the field is to be addressable.
6282         Always set a size for the field if the record is packed, to ensure the
6283         checks for bitfield creation are triggered.
6284         (finish_record_type): During last pass over the fields, clear
6285         DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
6286         not covered by the calls to layout_decl.  Adjust DECL_NONADDRESSABLE_P
6287         from DECL_BIT_FIELD.
6288
6289 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
6290
6291         * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
6292         (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
6293         (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
6294
6295 2004-01-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6296
6297         * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
6298
6299         * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
6300         (ZCX_By_Default): Likewise.
6301         (Front_End_ZCX_Support): Likewise.
6302
6303         * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
6304         (Initialize_Lock): Mark Level unreferenced.
6305         (Sleep): Mark Reason unreferenced.
6306         (Timed_Sleep): Likewise.
6307         (Wakeup): Likewise.
6308         (Exit_Task): Use Result.
6309         (Check_No_Locks): Mark Self_ID unreferenced.
6310
6311         * 5gtasinf.adb (New_Sproc): Make Attr constant.
6312         (Bound_Thread_Attributes): Make Sproc constant.
6313         (New_Bound_Thread_Attributes): Likewise.
6314
6315 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
6316
6317         * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
6318         one-dimensional array an slice assignments, when component type is
6319         controlled.
6320
6321         * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
6322         component type is controlled, and control_actions are in effect, use
6323         TSS procedure rather than generating inline code.
6324
6325         * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
6326         arrays with controlled components.
6327
6328 2004-01-26  Vincent Celier  <celier@gnat.com>
6329
6330         * gnatcmd.adb (GNATCmd): Add specification of argument file on the
6331         command line for the non VMS case.
6332
6333         * gnatlink.adb (Process_Binder_File): When building object file, if
6334         GNU linker is used, put all object paths between quotes, to prevent ld
6335         error when there are unusual characters (such as '!') in the paths.
6336
6337         * Makefile.generic: When there are sources in Ada and the main is in
6338         C/C++, invoke gnatmake with -B, instead of -z.
6339
6340         * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
6341         from VMS_Conversion.
6342         (Process_Argument): New procedure, extracted from VMS_Conversion. Add
6343         specification of argument file on the command line.
6344
6345 2004-01-26  Bernard Banner  <banner@gnat.com>
6346
6347         * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
6348
6349 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
6350
6351         * snames.adb: Update copyright notice.
6352         Add info on slice assignment for controlled arrays.
6353
6354 2004-01-23  Robert Dewar  <dewar@gnat.com>
6355
6356         * exp_aggr.adb: Minor reformatting
6357
6358         * exp_ch9.adb: Minor code clean up
6359         Minor reformatting
6360         Fix bad character in comment
6361
6362         PR ada/13471
6363         * targparm.adb (Get_Target_Parameters): Give clean abort error on
6364         unexpected end of file, along with more detailed message.
6365
6366 2004-01-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6367
6368         * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
6369         PAT.
6370
6371         * decl.c (copy_alias_set): New function.
6372         (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
6373
6374 2004-01-23  Doug Rupp  <rupp@gnat.com>
6375
6376         * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
6377         lib$${file} in case subsequent character is not a separator.
6378
6379 2004-01-23  Vincent Celier  <celier@gnat.com>
6380
6381         * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
6382         when the GCC version is at least 3.
6383
6384         * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
6385         Remove all "Opt.", to prepare for opt split
6386
6387         * prj-part.adb (Parse_Single_Project): New Boolean out parameter
6388         Extends_All. Set to True when the project parsed is an extending all
6389         project. Fails for importing an extending all project only when the
6390         imported project is an extending all project.
6391         (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
6392         depending on the value of Extends_All returned.
6393
6394         * prj-proc.adb (Process): Check that no project shares its object
6395         directory with a project that extends it, directly or indirectly,
6396         including a virtual project.
6397         Check that no project extended by another project shares its object
6398         directory with another also extended project.
6399
6400         * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
6401         Kind = N_With_Clause
6402
6403         * prj-tree.ads: Minor reformatting
6404         Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
6405
6406 2004-01-23  Ed Schonberg  <schonberg@gnat.com>
6407
6408         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
6409         applies to a type with an incomplete view, use full view in Name of
6410         clause, for consistency with uses of Get_Attribute_Definition_Clause.
6411
6412 2004-01-23  Arnaud Charlet  <charlet@act-europe.fr>
6413
6414         * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
6415         SCHED_RR, since other values are not supported by this policy.
6416         (Initialize): Move initialization of mutex attribute to package
6417         elaboration, to prevent early access to this variable.
6418
6419         * Makefile.in: Remove mention of Makefile.adalib, unused.
6420
6421         * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
6422         1ssecsta.ads: Removed, unused.
6423
6424 2004-01-21  Javier Miranda  <miranda@gnat.com>
6425
6426         * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
6427         entity if already built in the current scope.
6428
6429         * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
6430         reminder in internal scopes. Required for nested limited aggregates.
6431
6432 2004-01-21  Doug Rupp  <rupp@gnat.com>
6433
6434         * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
6435         VMS. Replace all occurences of libgnat- and libgnarl- with
6436         libgnat$(hyphen) and libgnarl$(hyphen).
6437         Fixed shared library build problem on VMS.
6438
6439 2004-01-21  Robert Dewar  <dewar@gnat.com>
6440
6441         * mlib-prj.adb: Minor reformatting
6442
6443 2004-01-21  Thomas Quinot  <quinot@act-europe.fr>
6444
6445         * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
6446         'constant' keywords for declaration of pointers that are not modified.
6447
6448         * exp_pakd.adb: Fix English in comment.
6449
6450 2004-01-21  Ed Schonberg  <schonberg@gnat.com>
6451
6452         PR ada/10889
6453         * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
6454         copy all attributes of the parent, including the foreign language
6455         convention.
6456
6457 2004-01-21  Sergey Rybin  <rybin@act-europe.fr>
6458
6459         PR ada/10565
6460         * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
6461         for 'delay until' statement.
6462
6463 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
6464
6465         * Make-lang.in: Replace $(docdir) with doc.
6466         (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
6467         doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
6468         to use consistent MAKEINFO rule.
6469         (ada.man, ada.srcman): Dummy entry.
6470         (ADA_INFOFILES): Define.
6471         (ada.info, ada.srcinfo): New rules.
6472
6473 2004-01-19  Arnaud Charlet  <charlet@act-europe.fr>
6474
6475         * utils.c: Update copyright notice, missed in previous change.
6476
6477 2004-01-19  Vincent Celier  <celier@gnat.com>
6478
6479         * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
6480         args if Bind is True. Set First_ALI, if not already done.
6481         (Build_Library): For Stand Alone Libraries, extract from one ALI file
6482         an eventual --RTS switch, for gnatbind, and all backend switches +
6483         --RTS, for linking.
6484
6485 2004-01-19  Robert Dewar  <dewar@gnat.com>
6486
6487         * sem_attr.adb, memtrack.adb: Minor reformatting
6488
6489 2004-01-19  Ed Schonberg  <schonberg@gnat.com>
6490
6491         * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
6492         that rename enumeration literals. This is properly done in sem_eval.
6493
6494         * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
6495         to functions that rename enumeration literals.
6496
6497         * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
6498         functions that rename enumeration literals.
6499
6500 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
6501
6502         * Make-lang.in (utils.o): Depend on target.h.
6503         * utils.c: Include target.h.
6504         (process_attributes): Use targetm.have_named_sections instead
6505         of ASM_OUTPUT_SECTION_NAME.
6506
6507 2004-01-16  Andreas Jaeger  <aj@suse.de>
6508
6509         * Makefile.in: Add $(DESTDIR).
6510
6511 2004-01-15  Olivier Hainque  <hainque@act-europe.fr>
6512
6513         * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
6514         also when not defining if a Size clause applies. That information is
6515         not to be ignored.
6516
6517 2004-01-15  Arnaud Charlet  <charlet@act-europe.fr>
6518
6519         * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
6520         symbolic links for the shared gnat run time when needed.
6521
6522 2004-01-15  Vasiliy Fofanov  <fofanov@act-europe.fr>
6523
6524         * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
6525         for writing, and terminate with an error message if not.
6526
6527 2004-01-15  Ed Schonberg  <schonberg@gnat.com>
6528
6529         * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
6530         warning on an access to subprogram in an instance, when the target
6531         type is declared in the same generic unit.
6532         (Eval_Attribute): If 'access is known to fail accessibility check,
6533         rewrite as a raise statement.
6534
6535 2004-01-15  GNAT Script  <nobody@gnat.com>
6536
6537         * Make-lang.in: Makefile automatically updated
6538
6539 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
6540
6541         * Make-lang.in (ada.srcextra): Dummy entry.
6542
6543 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
6544
6545         * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
6546
6547 2004-01-13  Ed Schonberg  <schonberg@gnat.com>
6548
6549         * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
6550         components that are initialized with aggregates.
6551
6552 2004-01-13  Vincent Celier  <celier@gnat.com>
6553
6554         * gnatlink.adb (Process_Binder_File): To find directory of shared
6555         libgcc, if "gcc-lib" is not a subdirectory, look for the last
6556         subdirectory "lib" in the path of the shared libgnat or libgnarl.
6557
6558         * make.adb (Gnatmake): If GCC version is at least 3, link with
6559         -shared-libgcc, when there is at least one shared library project.
6560
6561         * opt.ads (GCC_Version): New integer constant.
6562
6563         * adaint.c (get_gcc_version): New function.
6564
6565 2004-01-13  Robert Dewar  <dewar@gnat.com>
6566
6567         * sem_dist.adb, sem_res.adb, sem_util.adb,
6568         sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
6569         exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
6570
6571 2004-01-13  Thomas Quinot  <quinot@act-europe.fr>
6572
6573         * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
6574         g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
6575         declarations.
6576
6577 2004-01-12  Arnaud Charlet  <charlet@act-europe.fr>
6578
6579         * misc.c: Remove trailing spaces.
6580         Update copyright notice missed in previous change.
6581
6582         PR ada/13572
6583         * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
6584         prefix/share/make
6585
6586         * Makefile.generic: Update copyright.
6587         Add license notice.
6588
6589         * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
6590         of prefix/share/make.
6591
6592         * Makefile.prolog: Update copyright.
6593         Add license notice.
6594
6595 2004-01-12  Laurent Pautet  <pautet@act-europe.fr>
6596
6597         * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
6598         3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
6599         g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
6600         instead of String.
6601
6602         * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
6603         signature.
6604
6605 2004-01-12  Javier Miranda  <miranda@gnat.com>
6606
6607         * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
6608         exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
6609         sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
6610         sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
6611         Component_Definition node.
6612
6613 2004-01-12  Ed Falis  <falis@gnat.com>
6614
6615         * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
6616
6617 2004-01-12  Thomas Quinot  <quinot@act-europe.fr>
6618
6619         * link.c: Change default libgnat kind to STATIC for FreeBSD.
6620
6621 2004-01-12  Bernard Banner  <banner@gnat.com>
6622
6623         * Makefile.in: map 86numaux to a-numaux for x86_64
6624
6625 2004-01-12  Ed Schonberg  <schonberg@gnat.com>
6626
6627         * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
6628         generated to rename a generic actual, go to the actual itself, the
6629         subtype is not a user-visible entity.
6630
6631         * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
6632         part is a private subtype, reset the visibility of its full view, if
6633         any, to be consistent.
6634
6635         PR ada/13417
6636         * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
6637         to use a generic package G as a formal package for another generic
6638         declared within G.
6639
6640 2004-01-12  Robert Dewar  <dewar@gnat.com>
6641
6642         * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
6643
6644         * usage.adb: Remove mention of obsolete -gnatwb switch
6645         Noticed during code reading
6646
6647 2004-01-12  Jerome Guitton  <guitton@act-europe.fr>
6648
6649         * 1ssecsta.adb: Minor changes for -gnatwa warnings
6650
6651 2004-01-12  GNAT Script  <nobody@gnat.com>
6652
6653         * Make-lang.in: Makefile automatically updated
6654
6655 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
6656
6657         * misc.c (gnat_expand_expr): Add alt_rtl parameter.
6658
6659 2004-01-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6660
6661         * link.c [sgi] (shared_libgnat_default): Change to STATIC.
6662
6663 2004-01-05  Kelley Cook  <kcook@gcc.gnu.org>
6664
6665         * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
6666         Update comment and copyright date.
6667         * stamp-xgnatug: Delete.
6668
6669 2004-01-05  Robert Dewar  <dewar@gnat.com>
6670
6671         * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
6672         be modified by the binder generated main program if the -D switch is
6673         used.
6674
6675         * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
6676         imported functions (since now we expect this to be done for imported
6677         functions)
6678
6679         * 5vtaprop.adb: Add several ??? for sections requiring more comments
6680         Minor reformatting throughout
6681
6682         * 5zinit.adb: Minor reformatting
6683         Add 2004 to copyright date
6684         Minor changes to avoid -gnatwa warnings
6685         Correct some instances of using OR instead of OR ELSE (noted while
6686         doing reformatting)
6687
6688         * sprint.adb: Minor updates to avoid -gnatwa warnings
6689
6690         * s-secsta.ads, s-secsta.adb:
6691         (SS_Get_Max): New function to obtain high water mark for ss stack
6692         Default_Secondary_Stack is not a constant since it may be modified by
6693         the binder generated main program if the -D switch is used.
6694
6695         * switch-b.adb: New -Dnnn switch for binder
6696
6697         * switch-c.adb:
6698         Make -gnatg imply all warnings currently in -gnatwa
6699
6700         * vms_conv.adb: Minor reformatting
6701         Add 2004 to copyright notice
6702         Add 2004 to printed copyright notice
6703
6704         * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
6705         3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
6706         5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
6707         5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
6708         5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
6709         5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
6710         5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
6711         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
6712         5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
6713         5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
6714         6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
6715         vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
6716         xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
6717         sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
6718         checks.adb, clean.adb, cstand.adb, einfo.ads,
6719         einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
6720         exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
6721         prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
6722         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
6723         g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
6724         lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
6725         Minor reformatting and code clean ups.
6726         Minor changes to prevent -gnatwa warnings
6727
6728         * ali.adb: Minor reformatting and cleanup of code
6729         Acquire new SS indication of secondary stack use from ali files
6730
6731         * a-numaux.ads: Add Pure_Function pragmas for all imported functions
6732         (since now we expect this to be done for imported functions)
6733
6734         * bindgen.adb: Generate call to modify default secondary stack size if
6735         -Dnnn switch given
6736
6737         * bindusg.adb: Add line for new -D switch
6738
6739         * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
6740         replacement name for Type_May_Have_Non_Bit_Aligned_Components!
6741         Add circuitry for both records and arrays to avoid gigi
6742         processing if the type involved has non-bit-aligned components
6743
6744         * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
6745         N_String_Literal node always references an E_String_Literal_Subtype
6746         entity. This may not be true in the future.
6747         (Possible_Bit_Aligned_Component): Move processing of
6748         Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
6749
6750         * exp_ch6.adb (Expand_Thread_Body): Pick up
6751         Default_Secondary_Stack_Size as variable so that we get value modified
6752         by possible -Dnnn binder parameter.
6753
6754         * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
6755         (Type_May_Have_Bit_Aligned_Components): New function.
6756
6757         * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
6758         (Type_May_Have_Bit_Aligned_Components): New function.
6759
6760         * fe.h: (Set_Identifier_Casing): Fix prototype.
6761         Add declaration for Sem_Elim.Eliminate_Error_Msg.
6762         Minor reformatting.
6763
6764         * freeze.adb (Freeze_Entity): Add RM reference to error message about
6765         importing constant atomic/volatile objects.
6766         (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
6767         unless explicit Pure_Function pragma given, to avoid insidious bug of
6768         call to non-pure imported function getting eliminated.
6769
6770         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
6771         gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
6772         gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
6773         Add 2004 to printed copyright notice
6774
6775         * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
6776         stack used.
6777
6778         * Makefile.rtl: Add entry for g-sestin.o
6779         g-sestin.ads: New file.
6780
6781         * mdll.adb: Minor changes to avoid -gnatwa warnings
6782
6783         * mlib-tgt.adb: Minor reformatting
6784
6785         * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
6786         New switch Sec_Stack_Used (GNAT, GNATBIND)
6787         Make Default_Secondary_Stack_Size a variable instead of a constant,
6788         so that it can be modified by the new -Dnnn bind switch.
6789
6790         * rtsfind.adb (Load_Fail): Give full error message in configurable
6791         run-time mode if all_errors mode is set. This was not done in the case
6792         of a file not found, which was an oversight.
6793         Note if secondary stack unit is used by compiler.
6794
6795         * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
6796         ineffective elaborate all pragmas on non-visible packages (this
6797         happened when a renamed subprogram was called). Now the elaborate all
6798         always goes on the package containing the renaming rather than the one
6799         containing the renamed subprogram.
6800
6801         * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
6802         (Process_Eliminate_Pragma): Add parameter to capture pragma location.
6803
6804         * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
6805         has an Etype that references an E_String_Literal.
6806         (Eval_String_Literal): Avoid assumption that N_String_Literal node
6807         always references an E_String_Literal_Subtype entity. This may not
6808         be true in the future.
6809
6810         * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
6811         pragma location.
6812
6813         * sem_res.adb (Resolve): Specialize msg for function name used in proc
6814         call.
6815
6816 2004-01-05  Ed Falis  <falis@gnat.com>
6817
6818         * g-debuti.adb: Replaced direct boolean operator with short-circuit
6819         form.
6820
6821 2004-01-05  Vincent Celier  <celier@gnat.com>
6822
6823         * bld.adb: Minor comment updates
6824         (Process_Declarative_Items): Correct incorrect name (Index_Name instead
6825         of Item_Name).
6826
6827         * make.adb (Gnatmake): Special process for files to compile/check when
6828         -B is specified. Fail when there are only foreign mains in attribute
6829         Main of the project file and -B is not specified. Do not skip bind/link
6830         steps when -B is specified.
6831
6832         * makeusg.adb: Document new switch -B
6833
6834         * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
6835
6836         * switch-m.adb: (Scan_Make_Switches): Process -B switch
6837
6838         * vms_data.ads: Add new GNAT PRETTY qualifier
6839         /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
6840
6841 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6842
6843         * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
6844         case.
6845
6846         * misc.c (gnat_printable_name): If VERBOSITY is 2, call
6847         Set_Identifier_Casing.
6848
6849         * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
6850         has size that overflows.
6851
6852 2004-01-05  Gary Dismukes  <dismukes@gnat.com>
6853
6854         * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
6855         -gnatwa warning on static condition.
6856
6857 2004-01-05  Doug Rupp  <rupp@gnat.com>
6858
6859         * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
6860
6861 2004-01-05  Arnaud Charlet  <charlet@act-europe.fr>
6862
6863         * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
6864         all attributes, including read-only attribute.
6865
6866 2004-01-05  Pascal Obry  <obry@gnat.com>
6867
6868         * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
6869         library naming scheme.
6870
6871         * mlib-prj.adb (Build_Library): Generate different names for the static
6872         or dynamic version of the GNAT runtime. This is needed to support the
6873         new shared library naming scheme.
6874         (Process_Binder_File): Add detection of shared library in binder file
6875         based on the new naming scheme.
6876
6877         * gnatlink.adb (Process_Binder_File): Properly detect the new naming
6878         scheme for the shared runtime libraries.
6879
6880         * Makefile.in:
6881         (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
6882         scheme.
6883         (install-gnatlib): Do not create symlinks for shared libraries.
6884         (gnatlib-shared-default): Idem.
6885         (gnatlib-shared-dual-win32): New target. Not used for now as the
6886         auto-import feature does not support arrays/records.
6887         (gnatlib-shared-win32): Do not create copy for the shared libraries.
6888         (gnatlib-shared-vms): Fix shared runtime libraries names.
6889
6890         * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
6891         dependent runtime shared library name.
6892
6893 2004-01-05  Vasiliy Fofanov  <fofanov@act-europe.fr>
6894
6895         * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
6896         than the object.
6897
6898 2004-01-05  Ed Schonberg  <schonberg@gnat.com>
6899
6900         * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
6901         protected objects when allocator has a subtype indication, not a
6902         qualified expression. Note that qualified expressions may have to be
6903         checked when limited aggregates are implemented.
6904
6905         * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
6906         pure, emit warning.
6907         (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
6908         subprogram is imported, remove warning.
6909
6910 2004-01-05  Geert Bosch  <bosch@gnat.com>
6911
6912         * s-poosiz.adb: Update copyright notice.
6913         (Allocate): Use Task_Lock to protect against concurrent access.
6914         (Deallocate): Likewise.
6915
6916 2004-01-05  Joel Brobecker  <brobecker@gnat.com>
6917
6918         * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
6919         comment.
6920
6921 2003-12-23  Kelley Cook  <kcook@gcc.gnu.org>
6922
6923         * gnat_ug.texi: Force a CVS commit by updating copyright.
6924         * gnat_ug_vxw.texi: Regenerate.
6925         * gnat_ug_wnt.texi: Regenerate.
6926         * gnat_ug_vms.texi: Regenerate.
6927         * gnat_ug_unx.texi: Regenerate.
6928
6929 2003-12-20  Kazu Hirata  <kazu@cs.umass.edu>
6930
6931         * trans.c: Remove uses of "register" specifier in
6932         declarations of local variables.
6933
6934 2003-12-18  Kelley Cook  <kcook@gcc.gnu.org>
6935
6936         * stamp-xgnatug: New stamp file.
6937         * Make-lang.in (stamp-xgnatug):  New stamp file and comment.
6938         (ada/doctools/xgnatug): Add $(build_exeext).
6939         (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
6940         ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
6941
6942 2003-12-17  Ed Falis  <falis@gnat.com>
6943
6944         * a-elchha.adb (Tailored_Exception_Information): made Info constant to
6945         eliminate warning.
6946
6947         * a-exextr.adb: Add context clause for
6948         Ada.Exceptions.Last_Chance_Handler.
6949
6950 2003-12-17  Sergey Rybin  <rybin@act-europe.fr>
6951
6952         * cstand.adb (Create_Standard): Change the way how the declaration of
6953         the Duration type is created (making it the same way as it is for all
6954         the other standard types).
6955
6956 2003-12-17  Robert Dewar  <dewar@gnat.com>
6957
6958         * s-crtl.ads: Fix header format
6959         Change Pure to Preelaborate
6960
6961 2003-12-17  Ed Schonberg  <schonberg@gnat.com>
6962
6963         * checks.adb (Selected_Length_Checks): Generate an Itype reference for
6964         the expression type only if it is declared in the current unit.
6965
6966         * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
6967         are universal and already analyzed, as can occur in constrained
6968         subcomponents that depend on discriminants, when one constraint is a
6969         subtype mark.
6970
6971         * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
6972         type Any_Fixed is legal as the argument of a conversion, if only one
6973         fixed-point type is in context.
6974
6975 2003-12-17  GNAT Script  <nobody@gnat.com>
6976
6977         * Make-lang.in: Makefile automatically updated
6978
6979 2003-12-15  Robert Dewar  <dewar@gnat.com>
6980
6981         * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
6982         sec stack size.
6983
6984 2003-12-15  Vincent Celier  <celier@gnat.com>
6985
6986         * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
6987         (Gnatchop): Do not set failure status when reporting the number of
6988         warnings.
6989
6990 2003-12-15  Doug Rupp  <rupp@gnat.com>
6991
6992         * s-ctrl.ads: New file.
6993
6994         * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
6995
6996         * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
6997         (GNATBIND_OBJS): Add ada/s-crtl.o.
6998
6999         * Makefile.in [VMS]: Clean up ifeq rules.
7000
7001         * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
7002         a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
7003         g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
7004         s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
7005         s-tasdeb.adb: Update copyright.
7006         Import System.CRTL.
7007         Make minor modifications to use System.CRTL declared functions instead
7008         of importing locally.
7009
7010 2003-12-15  GNAT Script  <nobody@gnat.com>
7011
7012         * Make-lang.in: Makefile automatically updated
7013
7014 2003-12-11  Ed Falis  <falis@gnat.com>
7015
7016         * 5zinit.adb: Clean up.
7017
7018         * 5zintman.adb (Notify_Exception): replaced case statement with a call
7019         to __gnat_map_signal, imported from init.c to support
7020         signal -> exception mappings that depend on the vxWorks version.
7021
7022         * init.c:
7023         Created and exported __gnat_map_signal to support signal -> exception
7024         mapping that is dependent on the VxWorks version.
7025         Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
7026
7027 2003-12-11  Vasiliy Fofanv  <fofanov@act-europe.fr>
7028
7029         * 5wosinte.ads: Link with -mthreads switch.
7030
7031 2003-12-11  Arnaud Charlet  <charlet@act-europe.fr>
7032
7033         * init.c (__gnat_install_handler [NetBSD]): Set
7034         __gnat_handler_installed, as done on all other platforms.
7035         Remove duplicated code.
7036
7037 2003-12-11  Jerome Guitton  <guitton@act-europe.fr>
7038
7039         * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
7040
7041 2003-12-11  Thomas Quinot  <quinot@act-europe.fr>
7042
7043         * sinfo.ads: Fix inconsistent example code in comment.
7044
7045 2003-12-11  Robert Dewar  <dewar@gnat.com>
7046
7047         * a-tiinau.adb: Add a couple of comments
7048
7049         * sem_ch3.adb: Minor reformatting
7050
7051         * sem_prag.adb:
7052         Fix bad prototype of Same_Base_Type in body (code reading cleanup)
7053         Minor reformatting throughout
7054
7055 2003-12-11  Ed Schonberg  <schonberg@gnat.com>
7056
7057         * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
7058         bounds of a loop, create a separate block in order to generate proper
7059         cleanup actions to prevent memory leaks.
7060
7061         * sem_res.adb (Resolve_Call): After a call to
7062         Establish_Transient_Scope, the call may be rewritten and relocated, in
7063         which case no further processing is needed.
7064
7065         * sem_util.adb: (Wrong_Type): Refine previous fix.
7066          Fixes ACATS regressions.
7067
7068         PR ada/13353
7069
7070         * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
7071         be inlined.
7072
7073 2003-12-08  Jerome Guitton  <guitton@act-europe.fr>
7074
7075         * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
7076         i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
7077         obsolete files.
7078
7079         * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
7080         (rts-zfp): Ditto.
7081
7082 2003-12-08  Robert Dewar  <dewar@gnat.com>
7083
7084         * 7sintman.adb: Minor reformatting
7085
7086         * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
7087         standard linker options to get standard libraries linked. We now plan
7088         to provide dummy versions of these libraries to match the appropriate
7089         configurable run-time (e.g. if a library is not needed at all, provide
7090         a dummy empty library).
7091
7092         * targparm.ads: Configurable_Run_Time mode no longer affects linker
7093         options (-L parameters and standard libraries). What we plan to do is
7094         to provide dummy libraries where the libraries are not required.
7095
7096         * gnatbind.adb: Minor comment improvement
7097
7098 2003-12-08  Javier Miranda  <miranda@gnat.com>
7099
7100         * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
7101         aggregate in the parent. Otherwise constants with limited aggregates
7102         are not supported. Add new formal to pass the component type (Ctype).
7103         It is required to call the corresponding IP subprogram in case of
7104         default initialized components.
7105         (Gen_Assign): In case of default-initialized component, generate a
7106         call to the IP subprogram associated with the component.
7107         (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
7108         of aggregate with default initialized components.
7109         (Has_Default_Init_Comps): Improve implementation to recursively check
7110         all the present expressions.
7111
7112         * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
7113         to indicate that the initialization call corresponds to a
7114         default-initialized component of an aggregate.
7115         In case of default initialized aggregate with tasks this parameter is
7116         used to generate a null string (this is just a workaround that must be
7117         improved later). In case of discriminants, this parameter is used to
7118         generate a selected component node that gives access to the discriminant
7119         value.
7120
7121         * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
7122         subprogram, based on Build_Task_Allocate_Block, but adapted to expand
7123         allocated aggregates with default-initialized components.
7124
7125         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
7126         the box notation is used in positional aggregates.
7127
7128 2003-12-08  Samuel Tardieu  <tardieu@act-europe.fr>
7129
7130         * lib.ads: Fix typo in comment
7131
7132 2003-12-08  Vincent Celier  <celier@gnat.com>
7133
7134         * prj.adb (Project_Empty): New component Unkept_Comments
7135         (Scan): Remove procedure; moved to Prj.Err.
7136
7137         * prj.ads (Project_Data): New Boolean component Unkept_Comments
7138         (Scan): Remove procedure; moved to Prj.Err.
7139
7140         * prj-dect.adb: Manage comments for the different declarations.
7141
7142         * prj-part.adb (With_Record): New component Node
7143         (Parse): New Boolean parameter Store_Comments, defaulted to False.
7144         Set the scanner to return ends of line and comments as tokens, if
7145         Store_Comments is True.
7146         (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
7147         comments are associated with these nodes. Store the node IDs in the
7148         With_Records.
7149         (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
7150         With_Records.
7151         (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
7152         the N_Project node. Call Tree.Save and Tree.Reset before scanning the
7153         current project. Call Tree.Restore afterwards. Set the various nodes
7154         for comment storage (Next_End, End_Of_Line, Previous_Line,
7155         Previous_End).
7156
7157         * prj-part.ads (Parse): New Boolean parameter Store_Comments,
7158         defaulted to False.
7159
7160         * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
7161         to False. When Truncated is True, truncate the string, never go to the
7162         next line.
7163         (Write_End_Of_Line_Comment): New procedure
7164         (Print): Process comments for nodes N_With_Clause,
7165         N_Package_Declaration, N_String_Type_Declaration,
7166         N_Attribute_Declaration, N_Typed_Variable_Declaration,
7167         N_Variable_Declaration, N_Case_Construction, N_Case_Item.
7168         Process nodes N_Comment.
7169
7170         * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
7171         without comments and there are some comments, set the flag
7172         Unkept_Comments to True.
7173         (Scan): If there are comments, set the flag Unkept_Comments to True and
7174         clear the comments.
7175         (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
7176         (Next_End_Nodes: New table
7177         (Comment_Zones_Of): New function
7178         (Scan): New procedure; moved from Prj. Accumulate comments in the
7179         Comments table and set end of line comments, comments after, after end
7180         and before end.
7181         (Add_Comments): New procedure
7182         (Save, Restore, Seset_State): New procedures
7183         (There_Are_Unkept_Comments): New function
7184         (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
7185         (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
7186         procedures.
7187         (First_Comment_After, First_Comment_After_End): New functions
7188         (First_Comment_Before, First_Comment_Before_End): New functions
7189         (Next_Comment): New function
7190         (End_Of_Line_Comment, Follows_Empty_Line,
7191         Is_Followed_By_Empty_Line): New functions
7192         (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
7193         (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
7194         (Set_Next_Comment): New procedure
7195         (Default_Project_Node): Associate comment before if the node can store
7196         comments.
7197
7198         * scans.ads (Token_Type): New enumeration value Tok_Comment
7199         (Comment_Id): New global variable
7200
7201         * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
7202         defaulted to False.
7203         (Scan): Store position of start of comment. If comments are tokens, set
7204         Comment_Id and set Token to Tok_Comment when scanning a comment.
7205         (Set_Comment_As_Token): New procedure
7206
7207         * sinput-p.adb: Update Copyright notice
7208         (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
7209         that no longer exists.
7210
7211 2003-12-08  Javier Miranda  <miranda@gnat.com>
7212
7213         * sem_aggr.adb: Add dependence on Exp_Tss package
7214         Correct typo in comment
7215         (Resolve_Aggregate): In case of array aggregates set the estimated
7216         type of the aggregate before calling resolve. This is needed to know
7217         the name of the corresponding IP in case of limited array aggregates.
7218         (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
7219         in case of default initialized array components.
7220
7221         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
7222         types. Required to give support to limited aggregates in generic
7223         formals.
7224
7225 2003-12-08  Ed Schonberg  <schonberg@gnat.com>
7226
7227         * sem_ch3.adb (Check_Initialization): For legality purposes, an
7228         inlined body functions like an instantiation.
7229         (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
7230         until bounds are analyzed, to diagnose premature use of type.
7231
7232         * sem_util.adb (Wrong_Type): Improve error message when the type of
7233         the expression is used prematurely.
7234
7235 2003-12-08  GNAT Script  <nobody@gnat.com>
7236
7237         * Make-lang.in: Makefile automatically updated
7238
7239 2003-12-08  Arnaud Charlet  <charlet@act-europe.fr>
7240
7241         * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
7242         they are automatically generated by Make-lang.in and cause nothing but
7243         maintenance troubles.
7244
7245 2003-12-05  Thomas Quinot  <quinot@act-europe.fr>
7246
7247         * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
7248         version of this unit).
7249
7250 2003-12-05  Olivier Hainque  <hainque@act-europe.fr>
7251
7252         * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
7253         5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
7254         5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
7255         the body of System.Interrupt_Management common to several targets.
7256         Update copyright notice when appropriate.
7257
7258         * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
7259         constant.
7260
7261         * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
7262         to ensure that the kernel fills in the interrupted context structure
7263         before calling a signal handler, which is necessary to be able to
7264         unwind past it. Update the copyright notice.
7265
7266 2003-12-05  Jerome Guitton  <guitton@act-europe.fr>
7267
7268         * a-elchha.ads: New file.
7269
7270         * a-elchha.adb: New default last chance handler. Contents taken from
7271         Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
7272
7273         * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
7274         is moved to a-elchha.adb to provide a target-independent default last
7275         chance handler.
7276
7277         * Makefile.rtl: Add a-elchha.o
7278
7279         * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
7280
7281 2003-12-05  Ed Schonberg  <schonberg@gnat.com>
7282
7283         * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
7284         declared in an instance, do not inline the call if the instance is not
7285         frozen yet, to prevent order of elaboration problems.
7286
7287         * sem_prag.adb: Add comments for previous fix.
7288
7289 2003-12-05  Samuel Tardieu  <tardieu@act-europe.fr>
7290
7291         * g-table.adb: Use the right variable in Set_Item.
7292         Update copyright notice.
7293
7294 2003-12-05  Arnaud Charlet  <charlet@act-europe.fr>
7295
7296         * Makefile.in: Remove unused rules.
7297
7298 2003-12-05  Vincent Celier  <celier@gnat.com>
7299
7300         * switch-c.adb (Scan_Front_End_Switches): Remove processing of
7301         -nostdlib. Not needed here after all.
7302
7303 2003-12-03  Thomas Quinot  <quinot@act-europe.fr>
7304
7305         PR ada/11724
7306
7307         * adaint.h, adaint.c, g-os_lib.ads:
7308         Do not assume that the offset argument to lseek(2) is a 32 bit integer,
7309         on some platforms (including FreeBSD), it is a 64 bit value.
7310         Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
7311
7312 2003-12-03  Arnaud Charlet  <charlet@act-europe.fr>
7313
7314         * gnatvsn.ads (Library_Version): Now contain only the relevant
7315         version info.
7316         (Verbose_Library_Version): New constant.
7317
7318         * g-spipat.adb, g-awk.adb, g-debpoo.adb,
7319         g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
7320         s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
7321
7322         * gnatlbr.adb: Clean up: replace Library_Version by
7323         Verbose_Library_Version.
7324
7325         * make.adb, lib-writ.adb, exp_attr.adb:
7326         Clean up: replace Library_Version by Verbose_Library_Version.
7327
7328         * 5lintman.adb: Removed.
7329
7330         * Makefile.in:
7331         Update and simplify computation of LIBRARY_VERSION.
7332         Fix computation of GSMATCH_VERSION.
7333         5lintman.adb is no longer used: replaced by 7sintman.adb.
7334
7335 2003-12-03  Robert Dewar  <dewar@gnat.com>
7336
7337         * exp_ch5.adb:
7338         (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
7339         name. Modified to consider small non-bit-packed arrays as troublesome
7340         and in need of component-by-component assigment expansion.
7341
7342 2003-12-03  Vincent Celier  <celier@gnat.com>
7343
7344         * lang-specs.h: Process nostdlib as nostdinc
7345
7346         * back_end.adb: Update Copyright notice
7347         (Scan_Compiler_Arguments): Process -nostdlib directly.
7348
7349 2003-12-03  Jose Ruiz  <ruiz@act-europe.fr>
7350
7351         * Makefile.in:
7352         When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
7353         redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
7354         included in HIE_NONE_TARGET_PAIRS.
7355
7356 2003-12-03  Ed Schonberg  <schonberg@gnat.com>
7357
7358         * sem_attr.adb:
7359         (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
7360         is legal in an instance, because legality is cheched in the template.
7361
7362         * sem_prag.adb:
7363         (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
7364         appplied to an unchecked conversion of a formal parameter.
7365
7366         * sem_warn.adb:
7367         (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
7368         variables.
7369
7370 2003-12-03  Olivier Hainque  <hainque@act-europe.fr>
7371
7372         * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
7373         routines. The second one is new functionality to deal with backtracing
7374         through signal handlers.
7375         (unwind): Split into the two separate subroutines above.
7376         Update the documentation, and deal properly with sizeof (REG) different
7377         from sizeof (void*).
7378
7379 2003-12-01  Nicolas Setton  <setton@act-europe.fr>
7380
7381         * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
7382         so that the debugger can reliably access the value of the parameter,
7383         and therefore is able to display the exception name when an exception
7384         breakpoint is reached.
7385
7386 2003-12-01  Thomas Quinot  <quinot@act-europe.fr>
7387
7388         * fmap.adb: Fix typo in warning message.
7389
7390         * g-socket.ads, g-socket.adb: Make Free a visible instance of
7391         Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
7392
7393 2003-12-01  Vincent Celier  <celier@gnat.com>
7394
7395         * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
7396         ther is no Afile.
7397         (Build_Library): Get the switches only if Default_Switches is declared
7398         in package Binder.
7399
7400 2003-12-01  Ed Schonberg  <schonberg@gnat.com>
7401
7402         * exp_ch6.adb (Expand_Actuals): When applying validity checks to
7403         actuals that are indexed components, reanalyze actual to ensure that
7404         packed array references are properly expanded.
7405
7406         * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
7407         attempted assignment to a discriminant.
7408
7409 2003-12-01  Robert Dewar  <dewar@gnat.com>
7410
7411         * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
7412         reformatting.
7413
7414         * switch-c.adb: Minor reformatting of comments
7415
7416 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
7417
7418         * Makefile.in: Clean ups.
7419
7420 2003-12-01  GNAT Script  <nobody@gnat.com>
7421
7422         * Make-lang.in: Makefile automatically updated
7423
7424 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
7425
7426         * 5wsystem.ads: Disable zero cost exception, not ready yet.
7427
7428 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
7429
7430         * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
7431         to force serialization.
7432
7433 2003-11-26  Thomas Quinot  <quinot@act-europe.fr>
7434
7435         * g-socket.ads, g-socket.adb:
7436         Clarify documentation of function Stream. Introduce a Free procedure
7437         to release the returned Stream once it becomes unused.
7438
7439         * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
7440
7441 2003-11-26  Arnaud Charlet  <charlet@act-europe.fr>
7442
7443         (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
7444         since NT 4 cannot handle timeout values that are too large,
7445         e.g. DWORD'Last - 1.
7446
7447 2003-11-26  Ed Schonberg  <schonberg@gnat.com>
7448
7449         * exp_ch4.adb:
7450         (Expand_N_Slice): Recognize all cases of slices that appear as actuals
7451         in procedure calls and whose expansion must be deferred.
7452
7453         * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
7454         is in exp_ch4.
7455
7456         * sem_ch3.adb:
7457         (Build_Derived_Array_Type): Create operator for unconstrained type
7458         if ancestor is unconstrained.
7459
7460 2003-11-26  Vincent Celier  <celier@gnat.com>
7461
7462         * make.adb (Project_Object_Directory): New global variable
7463         (Change_To_Object_Directory): New procedure
7464         (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
7465         of Change_Dir directly. Do not change working directory to object
7466         directory of main project after each compilation.
7467         (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
7468         directly.
7469         Change to object directory of main project before binding step.
7470         (Initialize): Initialize Project_Object_Directory to No_Project
7471
7472         * mlib-prj.adb:
7473         (Build_Library): Take into account Builder'Default_Switches ("Ada") when
7474         binding a Stand-Alone Library.
7475
7476         * output.adb: Update Copyright notice
7477         (Write_Char): Output buffer when full
7478
7479 2003-11-26  Robert Dewar  <dewar@gnat.com>
7480
7481         * sem_ch13.adb: (Check_Size): Reset size if size is too small
7482
7483         * sem_ch13.ads:
7484         (Check_Size): Fix documentation to include bit-packed array case
7485
7486         * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
7487
7488         * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
7489
7490         * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
7491
7492 2003-11-24  Arnaud Charlet <charlet@act-europe.fr>
7493
7494         PR ada/13142
7495         * utils.c (init_gigi_decls): Change name of built-in setjmp to
7496         __builtin_setjmp, since this is apparently needed by recent
7497         non Ada changes.
7498
7499 2003-11-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7500
7501         * adadecode.c: Only include ctype.h if not IN_GCC.
7502         (__gnat_decode): Use ISDIGIT from safe-ctype.h.
7503
7504 2003-11-24  Jose Ruiz  <ruiz@act-europe.fr>
7505
7506         * Makefile.in:
7507         Use 5zintman.ads for VxWorks targets. This file avoid confusion between
7508         signals and interrupts.
7509
7510         * 5zintman.ads: New File.
7511
7512         * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
7513         add exception signals to the set of unmasked signals.
7514
7515         * 5ztaprop.adb:
7516         Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
7517         between signals and interrupts.
7518         Add to Unblocked_Signal_Mask the set of signals that are in
7519         Keep_Unmasked.
7520
7521         * 7sinmaop.adb:
7522         Adding a check to see whether the Interrupt_ID we want to unmask is in
7523         the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
7524         reason is that the index type of the Keep_Unmasked array is not always
7525         Interrupt_ID; it may be a subtype of Interrupt_ID.
7526
7527 2003-11-24  Gary Dismukes  <dismukes@gnat.com>
7528
7529         * exp_util.adb:
7530         (Remove_Side_Effects): Condition constantness of object created for a
7531          an unchecked type conversion on the constantness of the expression
7532          to ensure the correct value for 'Constrained when passing components
7533          of view-converted class-wide objects.
7534
7535 2003-11-24  Robert Dewar  <dewar@gnat.com>
7536
7537         * par-load.adb (Load): Improve handling of misspelled and missing units
7538         Removes several cases of compilation abandoned messages
7539
7540         * lib.adb: (Remove_Unit): New procedure
7541
7542         * lib.ads: (Remove_Unit): New procedure
7543
7544         * lib-load.adb: Minor reformatting
7545
7546 2003-11-24  Vincent Celier  <celier@gnat.com>
7547
7548         * make.adb:
7549         (Gnatmake, Initialize): Call Usage instead of Makeusg directly
7550         (Marking_Label): Label to mark processed source files. Incremented for
7551         each executable.
7552         (Gnatmake): Increase Marking_Labet for each executable
7553         (Is_Marked): Compare against marking label
7554         (Mark): Mark with marking label
7555
7556 2003-11-24  Jerome Guitton  <guitton@act-europe.fr>
7557
7558         * s-thread.ads:
7559         Move the declaration of the TSD for System.Threads to System.Soft_Links.
7560         Add some comments.
7561
7562         * Makefile.in: Added target pair for s-thread.adb for cert runtime.
7563         (rts-cert): build a single relocatable object for the run-time lib.
7564         Fix perms.
7565
7566 2003-11-24  Vasiliy Fofanov  <fofanov@act-europe.fr>
7567
7568         * Make-lang.in:
7569         Use gnatls rather than gcc to obtain the location of GNAT RTL for
7570         crosstools build.
7571
7572 2003-11-24  Sergey Rybin  <rybin@act-europe.fr>
7573
7574         * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
7575         can not use it as before (that is, as a variable) when dumping it into
7576         the tree file. Add a local variable to store the result of this
7577         function and to be used as the string to be written into the tree.
7578
7579         * scn.adb (Initialize_Scanner): Add comments explaining the recent
7580         changes.
7581
7582         * sinput.adb (Source_First, Source_Last): In case of
7583         Internal_Source_File, replace returning attributes of
7584         Internal_Source_Ptr (which is wrong) with returning attributes of
7585         Internal_Source.
7586
7587 2003-11-24  Ed Schonberg  <schonberg@gnat.com>
7588
7589         * sem_ch3.adb:
7590         (New_Concatenation_Op): Proper name for New_Binary_Operator, only
7591         used for implicit concatenation operators.
7592         Code cleanup.
7593
7594         * sem_elab.adb:
7595         (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
7596         task bodies that are in the scope of a Suppress pragma.
7597         (Check_A Call): Use the flag to prevent spurious elaboration checks.
7598
7599         * sinfo.ads, sinfo.adb:
7600         New flag No_Elaboration_Check on function/procedure calls, to properly
7601         suppress checks on calls in task bodies that are within a local suppress
7602         pragma.
7603
7604         * exp_ch4.adb:
7605         (Expand_Concatenate_Other): Use the proper integer type for the
7606         expression for the upper bound, to avoid universal_integer computations
7607         when possible.
7608
7609 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
7610
7611         * .cvsignore: Delete.
7612
7613 2003-11-21  Andreas Schwab  <schwab@suse.de>
7614
7615         * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
7616
7617 2003-11-21  Vasiliy Fofanov  <fofanov@act-europe.fr>
7618
7619         * 5wsystem.ads: Enable zero cost exception.
7620
7621 2003-11-21  Jerome Guitton  <guitton@act-europe.fr>
7622
7623         * 5ztiitho.adb: Remove an unreferenced variable.
7624
7625 2003-11-21  Thomas Quinot  <quinot@act-europe.fr>
7626
7627         * adaint.c: For FreeBSD, use mkstemp.
7628
7629 2003-11-21  Arnaud Charlet  <charlet@act-europe.fr>
7630
7631         * gnatlbr.adb: Now reference Gnat_Static_Version_String.
7632
7633 2003-11-21  Robert Dewar  <dewar@gnat.com>
7634
7635         * bld.adb: Remove useless USE of gnatvsn
7636
7637         * gnatchop.adb: Minor reformatting
7638         Clean up version handling to be more consistent
7639
7640         * gnatxref.adb: Minor reformatting
7641
7642         * gprcmd.adb: Minor reformatting
7643         Fix output of copyright to be more consistent with other tools
7644
7645 2003-11-21  Vincent Celier  <celier@gnat.com>
7646
7647         * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
7648
7649 2003-11-21  Sergey Rybin  <rybin@act-europe.fr>
7650
7651         * atree.adb (Initialize): Add initializations for global variables
7652         used in New_Copy_Tree.
7653
7654         * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
7655         Internal_Source_File as the actual).
7656         Put the set of statements creating Any_Character before the set of
7657         statements creating Any_Array to have Any_Character fully initialized
7658         when it is used in creating Any_Array.
7659
7660         * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
7661         not call Scan in case if the actual is Internal_Source_File
7662         Add 2003 to copyright note.
7663
7664         * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
7665         processing Internal_Source_File.
7666
7667         * types.ads: Add the constant Internal_Source_File representing the
7668         source buffer for artificial source-code-like strings created within
7669         the compiler (the definition of Source_File_Index is changed).
7670
7671 2003-11-20  Arnaud Charlet  <charlet@act-europe.fr>
7672
7673         * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
7674         56system.ads: New file, FreeBSD version.
7675
7676 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
7677
7678         * Make-lang.in (ada.extraclean): Delete.
7679
7680 2003-11-19  Arnaud Charlet  <charlet@act-europe.fr>
7681
7682         * gnatmem.adb: Clean up verbose output.
7683
7684         * gprcmd.adb: Change copyright to FSF.
7685
7686 2003-11-19  Vincent Celier  <celier@gnat.com>
7687
7688         * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
7689         and Version (ignored).
7690
7691         * symbols.ads: (Policy): New type
7692         (Initialize): New parameter Reference, Symbol_Policy and
7693         Library_Version.
7694         Remove parameter Force.
7695         Minor reformatting.
7696
7697         * snames.ads, snames.adbadb: New standard names
7698         Library_Reference_Symbol_File and Library_Symbol_Policy
7699
7700         * mlib-prj.adb:
7701         (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
7702         project.
7703
7704         * mlib-tgt.adb:
7705         (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
7706
7707         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
7708
7709         * prj.adb: (Project_Empty): New component Symbol_Data
7710
7711         * prj.ads: (Policy, Symbol_Record): New types
7712         (Project_Data): New component Symbol_Data
7713
7714         * prj-attr.adb:
7715         New attributes Library_Symbol_File, Library_Symbol_Policy and
7716         Library_Reference_Symbol_File.
7717
7718         * prj-nmsc.adb:
7719         (Ada_Check): When project is a Stand-Alone library project, process
7720         attribute Library_Symbol_File, Library_Symbol_Policy and
7721         Library_Reference_Symbol_File.
7722
7723         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
7724         5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
7725         5sml-tgt.adb (Build_Dynamic_Library): New parameter
7726         Symbol_Data (ignored).
7727
7728         * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
7729         (Build_Dynamic_Library): New parameter Symbol_Data. New internal
7730         functions Option_File_Name and Version_String. Set new options of
7731         gnatsym related to symbol file, symbol policy and reference symbol
7732         file.
7733
7734         * 5vsymbol.adb:
7735         Extensive modifications to take into account the reference symbol file,
7736         the symbol policy, the library version and to put in the symbol file the
7737         minor and major IDs.
7738
7739         * bld.adb (Process_Declarative_Items): Put second argument of
7740         gprcmd to_absolute between single quotes, to avoid problems with
7741         Windows.
7742
7743         * bld-io.adb: Update Copyright notice.
7744         (Flush): Remove last character of a line, if it is a back slash, to
7745         avoid make problems.
7746
7747         * gnatsym.adb:
7748         Implement new scheme with reference symbol file and symbol policy.
7749
7750         * g-os_lib.ads: (Is_Directory): Clarify comment
7751
7752 2003-11-19  Robert Dewar  <dewar@gnat.com>
7753
7754         * atree.adb: Move New_Copy_Tree global variables to head of package
7755
7756         * errout.adb: Minor reformatting
7757
7758 2003-11-19  Javier Miranda  <miranda@gnat.com>
7759
7760         * sem_ch4.adb: (Diagnose_Call): Improve error message.
7761         Add reference to Ada0Y (AI-50217)
7762
7763         * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
7764         sem_util.adb: Add reference to AI-50217
7765
7766         * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
7767
7768         * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
7769
7770         * sem_aggr.adb: Complete documentation of AI-287 changes
7771
7772         * par-ch4.adb: Document previous changes.
7773
7774         * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
7775         sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
7776         Ada0Y (AI-50217)
7777
7778         * exp_aggr.adb: Add references to AI-287 in previous changes
7779
7780 2003-11-19  Ed Schonberg  <schonberg@gnat.com>
7781
7782         * exp_ch6.adb:
7783         (Add_Call_By_Copy_Node): Do not original node of rewritten expression
7784         in the rewriting is the result of an inlined call.
7785
7786         * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
7787         parameter is a type conversion, use original node to construct the
7788         post-call assignment, because expression may have been rewritten, e.g.
7789         if it is a packed array.
7790
7791         * sem_attr.adb:
7792         (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
7793         body, just as it is in an instance.
7794         Categorization routines
7795
7796         * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
7797         Instantiate_Object): Set proper sloc reference for message on missing
7798         actual.
7799
7800 2003-11-19  Thomas Quinot  <quinot@act-europe.fr>
7801
7802         * Makefile.in: Add FreeBSD libgnat pairs.
7803
7804         * usage.adb: Fix typo in usage message.
7805
7806 2003-11-19  Jerome Guitton  <guitton@act-europe.fr>
7807
7808         * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
7809         s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
7810         pragma Thread_Body.
7811         Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
7812
7813         * s-thread.adb: This file is now a dummy implementation of
7814         System.Thread.
7815
7816 2003-11-19  Sergey Rybin  <rybin@act-europe.fr>
7817
7818         * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
7819
7820 2003-11-19  Emmanuel Briot  <briot@act-europe.fr>
7821
7822         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
7823         instanciation references in the parent type description.
7824
7825 2003-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7826
7827         * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
7828
7829         * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
7830         TYPE_PRECISION directly from esize.
7831
7832 2003-11-18  Thomas Quinot  <quinot@act-europe.fr>
7833
7834         * cstreams.c:
7835         Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
7836
7837         * init.c: Initialization routines for FreeBSD
7838
7839         * link.c: Link info for FreeBSD
7840
7841         * sysdep.c: Add the case of FreeBSD
7842
7843 2003-11-17  Jerome Guitton  <guitton@act-europe.fr>
7844
7845         * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
7846         already called in System.Threads.
7847
7848         * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
7849         environment task, as it has been moved to System.Threads.Initialization.
7850
7851 2003-11-17  Arnaud Charlet  <charlet@act-europe.fr>
7852
7853         * adaint.c (__gnatlib_install_locks): Only reference
7854         __gnat_install_locks on VMS, since other platforms can avoid using
7855         --enable-threads=gnat
7856
7857 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7858
7859         * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
7860
7861         * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
7862         TYPE_PACKED_ARRAY_TYPE_P.
7863         (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
7864
7865         Part of PR ada/12806
7866         * utils.c (float_type_for_precision): Renamed from float_type_for_size.
7867         Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
7868
7869 2003-11-17  Vincent Celier  <celier@gnat.com>
7870
7871         * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
7872         to False.
7873         Do not set exit status to Failure when Warning is True.
7874         (Gnatchop): Make errors "no compilation units found" and
7875         "no source files written" warnings only.
7876
7877         * make.adb (Gnatmake): When using a project file, set
7878         Look_In_Primary_Dir to False.
7879         (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
7880         and Local_Configuration_Pragmas in the project where they are declared
7881         not an extending project which might have inherited them.
7882
7883         * osint.adb (Locate_File): If Name is already an absolute path, do not
7884         look for a directory.
7885
7886         * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
7887         -gnats (Check_Syntax) is used, issue only a warning, not an error.
7888
7889         * prj.adb (Register_Default_Naming_Scheme): Add new component Project
7890         in objects of type Variable_Value.
7891
7892         * prj.ads: (Variable_Value): New component Project
7893
7894         * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
7895         is in a project extended by Project.
7896
7897         * prj-proc.adb (Add_Attributes): New parameter Project. Set component
7898         Project of Variable_Values to this new parameter value.
7899         (Expression): Set component Project of Variable_Values.
7900         (Process_Declarative_Items): Call Add_Attributes with parameter Project.
7901         Set the component Project in array elements.
7902
7903 2003-11-17  Sergey Rybin  <rybin@act-europe.fr>
7904
7905         * errout.adb: (Initialize): Add initialization for error nodes.
7906
7907         * sem_ch12.adb (Initialize): Add missing initializations for
7908         Exchanged_Views and Hidden_Entities.
7909
7910 2003-11-17  Ed Schonberg  <schonberg@gnat.com>
7911
7912         * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
7913         already instantiated tree for use in subsequent inlining.
7914         (Analyze_Associations, Instantiate_Formal_Subprogram,
7915         Instantiate_Object): improve error message for mismatch in
7916         instantiations.
7917
7918         * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
7919         instantiations of subprograms declared in instances.
7920
7921 2003-11-17  Javier Miranda  <miranda@gnat.com>
7922
7923         * sem_ch4.adb (Analyze_Allocator): Previous modification must be
7924         executed only under the Extensions_Allowed flag.
7925
7926 2003-11-17  Robert Dewar  <dewar@gnat.com>
7927
7928         * a-exexda.adb (Address_Image): Fix documentation to indicate leading
7929         zeroes suppressed.
7930         (Address_Image): Fix bug of returning 0x instead of 0x0
7931         Minor reformatting (function specs).
7932
7933         * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
7934         (missed case of 33-63)
7935
7936         * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
7937
7938         * s-thread.adb: Add comments for pragma Restriction
7939
7940         * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
7941         sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
7942
7943 2003-11-17  Ed Falis  <falis@gnat.com>
7944
7945         * s-thread.adb: Added No_Tasking restriction for this implementation.
7946
7947 2003-11-17  Emmanuel Briot  <briot@act-europe.fr>
7948
7949         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
7950         instanciation references in the parent type description.
7951
7952 2003-11-17  GNAT Script  <nobody@gnat.com>
7953
7954         * Make-lang.in: Makefile automatically updated
7955
7956 2003-11-16  Jason Merrill  <jason@redhat.com>
7957
7958         * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
7959         and TAGS files that include them for each front end.
7960
7961 2003-11-14  Andreas Jaeger  <aj@suse.de>
7962
7963         * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
7964         is the canonical version.
7965         * misc.c (gnat_handle_option): Likewise.
7966
7967         * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
7968
7969         * 5nsystem.ads: New file for x86_64-linux-gnu.
7970
7971 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
7972
7973         * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
7974
7975         * comperr.adb: Fix logic in previous change.
7976
7977 2003-11-13  Vincent Celier  <celier@gnat.com>
7978
7979         * 5bml-tgt.adb (Build_Dynamic_Library): Use
7980         Osint.Include_Dir_Default_Prefix instead of
7981         Sdefault.Include_Dir_Default_Name.
7982
7983         * gnatlbr.adb: Update Copyright notice
7984         (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
7985         Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
7986         instead of Sdefault.Object_Dir_Default_Name
7987
7988         * gnatlink.adb:
7989         (Process_Binder_File): Never suppress the option following -Xlinker
7990
7991         * mdll-utl.adb:
7992         (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
7993         Sdefault.Object_Dir_Default_Name.
7994
7995         * osint.ads, osint.adb:
7996         (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
7997         Minor reformatting.
7998
7999         * vms_conv.ads: Minor reformating
8000         Remove GNAT STANDARD and GNAT PSTA
8001
8002         * vms_conv.adb:
8003         Allow GNAT MAKE to have several files on the command line.
8004         (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
8005         Sdefault.Object_Dir_Default_Name.
8006         Minor Reformating
8007         Remove data for GNAT STANDARD
8008
8009         * vms_data.ads:
8010         Add new compiler qualifier /PRINT_STANDARD (-gnatS)
8011         Remove data for GNAT STANDARD
8012         Remove options and documentation for -gnatwb/-gnatwB: these warning
8013         options no longer exist.
8014
8015 2003-11-13  Ed Falis  <falis@gnat.com>
8016
8017         * 5zthrini.adb: (Init_RTS): Made visible
8018
8019         * 5zthrini.adb:
8020         (Register): Removed unnecessary call to taskVarGet that checked whether
8021          an ATSD was already set as a task var for the argument thread.
8022
8023         * s-thread.adb:
8024         Updated comment to reflect that this is a VxWorks version
8025         Added context clause for System.Threads.Initialization
8026         Added call to System.Threads.Initialization.Init_RTS
8027
8028 2003-11-13  Jerome Guitton  <guitton@act-europe.fr>
8029
8030         * 5zthrini.adb:
8031         (Init_RTS): New procedure, for the initialization of the run-time lib.
8032
8033         * s-thread.adb:
8034         Remove dependancy on System.Init, so that this file can be used in the
8035         AE653 sequential run-time lib.
8036
8037 2003-11-13  Robert Dewar  <dewar@gnat.com>
8038
8039         * bindgen.adb: Minor reformatting
8040
8041 2003-11-13  Ed Schonberg  <schonberg@gnat.com>
8042
8043         * checks.adb:
8044         (Apply_Discriminant_Check): Do no apply check if target type is derived
8045         from source type with no applicable constraint.
8046
8047         * lib-writ.adb:
8048         (Ensure_System_Dependency): Do not apply the style checks that may have
8049         been specified for the main unit.
8050
8051         * sem_ch8.adb:
8052         (Find_Selected_Component): Further improvement in error message, with
8053         RM reference.
8054
8055         * sem_res.adb:
8056         (Resolve): Handle properly the case of an illegal overloaded protected
8057         procedure.
8058
8059 2003-11-13  Javier Miranda  <miranda@gnat.com>
8060
8061         * exp_aggr.adb:
8062         (Has_Default_Init_Comps): New function to check the presence of
8063         default initialization in an aggregate.
8064         (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
8065         extension aggregate of a limited record. In addition, a new formal
8066         was added to do not initialize the record controller (if any) during
8067         this recursive expansion of ancestors.
8068         (Init_Controller): Add support for limited record components.
8069         (Expand_Record_Aggregate): In case of default initialized components
8070         convert the aggregate into a set of assignments.
8071
8072         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
8073         describing the new syntax.
8074         Nothing else needed to be done because this subprogram delegates part of
8075         its work to P_Precord_Or_Array_Component_Association.
8076         (P_Record_Or_Array_Component_Association): Give support to the new
8077         syntax for default initialization of components.
8078
8079         * sem_aggr.adb:
8080         (Resolve_Aggregate): Relax the strictness of the frontend in case of
8081         limited aggregates.
8082         (Resolve_Record_Aggregate): Give support to default initialized
8083         components.
8084         (Get_Value): In case of default initialized components, duplicate
8085         the corresponding default expression (from the record type
8086         declaration). In case of default initialization in the *others*
8087         choice, do not check that all components have the same type.
8088         (Resolve_Extension_Aggregate): Give support to limited extension
8089         aggregates.
8090
8091         * sem_ch3.adb:
8092         (Check_Initialization): Relax the strictness of the front-end in case
8093         of aggregate and extension aggregates. This test is now done in
8094         Get_Value in a per-component manner.
8095
8096         * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
8097         expression corresponds to a limited aggregate. This test is now done
8098         in Get_Value.
8099
8100         * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
8101         Box_Present flag.
8102
8103         * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
8104         present in an N_Component_Association node
8105
8106 2003-11-13  Thomas Quinot  <quinot@act-europe.fr>
8107
8108         * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
8109         type-conformant entry only if they are homographs.
8110
8111 2003-11-13  GNAT Script  <nobody@gnat.com>
8112
8113         * Make-lang.in: Makefile automatically updated
8114
8115 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8116
8117         * adadecode.c: Use <> form of include for ctype.h.
8118         * sysdep.c [IN_RTS]: Use <> form of include for time.h.
8119
8120 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8121
8122         * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
8123         Works around PR middle-end/6552.
8124
8125 2003-11-10  Ed Falis  <falis@gnat.com>
8126
8127         * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
8128
8129         * 5zinit.adb: (Install_Handler): Moved back to spec
8130         (Install_Signal_Handlers): Deleted
8131
8132         * 5zthrini.adb: Added context clause for System.Storage_Elements
8133         (Register): Only handles creation of taskVar; initialization moved to
8134         Thread_Body_Enter.
8135         (Reset_TSD): Deleted; replaced by Thread_Body_Enter
8136         Added declaration of environment task secondary stack and
8137         initialization.
8138
8139         * s-thread.adb: Implement bodies for thread body processing
8140
8141         * s-thread.ads:
8142         Added comment identifying supported targets for pragma Thread_Body.
8143
8144 2003-11-10  Pascal Obry  <obry@gnat.com>
8145
8146         * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
8147         GNAT_MAX_PATH_LEN.
8148
8149         * s-fileio.adb:
8150         (Open): Properly check for string length before copying into the buffer.
8151         Raises Name_Error if buffer is too small. Note that this was a potential
8152         buffer overflow.
8153
8154 2003-11-10  Romain Berrendonner  <berrendo@act-europe.fr>
8155
8156         * bindgen.adb, comperr.adb: Code clean ups.
8157         * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
8158
8159 2003-11-10  Sergey Rybin  <rybin@act-europe.fr>
8160
8161         * gnat1drv.adb: Add call to Sem_Elim.Initialize.
8162
8163 2003-11-10  Vincent Celier  <celier@gnat.com>
8164
8165         * gprcmd.adb:
8166         (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
8167         installation.
8168
8169         * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
8170
8171         * prj.adb: (Project_Empty): Add new boolean component Virtual
8172
8173         * prj.ads: (Virtual_Prefix): New constant string
8174         (Project_Data): New boolean component Virtual
8175
8176         * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
8177         a library project is extended by a virtual extending project.
8178
8179         * prj-part.adb:
8180         Modifications throughout to implement extending-all project, including:
8181         (Virtual_Hash, Processed_Hash): New hash tables
8182         (Create_Virtual_Extending_Project): New procedure
8183         (Look_For_Virtual_Projects_For): New procedure
8184
8185         * prj-proc.adb:
8186         (Process): After checking the projects, if main project is an
8187         extending-all project, set the object directory of all virtual extending
8188         project to the object directory of the main project.
8189         Adjust error message when a virtual extending project has the same
8190         object directory as an project being extended.
8191         (Recursive_Process): If name starts with the virtual prefix, set Virtual
8192         to True in the project data.
8193
8194         * prj-tree.adb:
8195         (Default_Project_Node): Add new boolean component Extending_All
8196         (Is_Extending_All): New function
8197         (Set_Is_Extending_All): New procedure
8198
8199         * prj-tree.ads: (Is_Extending_All): New function
8200         (Set_Is_Extending_All): New procedure
8201         (Project_Node_Record): New boolean component Extending_All
8202
8203         * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
8204
8205         * vms_data.ads:
8206         Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
8207
8208         * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
8209         "gprcmd prefix" to define it.
8210
8211 2003-11-10  Thomas Quinot  <quinot@act-europe.fr>
8212
8213         * einfo.ads: Fix a typo and remove an extraneous word in comments.
8214
8215         * lib-load.adb:
8216         (Create_Dummy_Package_Unit): Set the scope of the entity for the
8217         created dummy package to Standard_Standard, not to itself, to
8218         defend other parts of the front-end against encoutering a cycle in
8219         the scope chain.
8220
8221         * sem_ch10.adb:
8222         (Analyze_With_Clause): When setting the entities for the successive
8223         N_Expanded_Names that constitute the name of a child unit, do not
8224         attempt to go further than Standard_Standard in the chain of scopes.
8225         This case arises from the placeholder units created by
8226         Create_Dummy_Package_Unit in the case of a with_clause for a
8227         nonexistent child unit.
8228
8229 2003-11-10  Ed Schonberg  <schonberg@gnat.com>
8230
8231         * exp_ch6.adb:
8232         (Expand_Thread_Body): Place subprogram on scope stack, so that new
8233         declarations are given the proper scope.
8234
8235         * sem_ch13.adb:
8236         (Check_Expr_Constants): Reject an expression that contains a constant
8237         created during expansion, and that appears after the object to which
8238         the address clause applies.
8239
8240         * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
8241         Analyze_Iteration_Scheme, to rewrite a loop parameter specification
8242         that uses 'Range of a function call with controlled components, so
8243         that the function result can be finalized before starting the loop.
8244
8245         * sem_ch8.adb:
8246         (Find_Selected_Component): Improve error message when prefix is
8247         an implicit dereference of an incomplete type.
8248
8249 2003-11-10  Robert Dewar  <dewar@gnat.com>
8250
8251         * opt.ads: New Print_Standard flag for -gnatS switch
8252
8253         * sem_ch13.adb: Remove some additional checks for unaligned arrays
8254
8255         * cstand.adb (Create_Standard): Print out package standard if -gnatS
8256         switch set
8257
8258         * debug.adb: Update doc for -gnatds to discuss relationship with new
8259         -gnatS flag
8260
8261         * sinfo.adb: Add new field Entity_Or_Associated_Node
8262
8263         * sinfo.ads: Add new field Entity_Or_Associated_Node
8264         Update documentation for Associated_Node and Entity fields to clarify
8265         relationship and usage.
8266
8267         * sprint.adb:
8268         (Write_Id): Properly process Associated_Node field in generic template
8269
8270         * switch-c.adb:
8271         Recognize new -gnatS switch for printing package Standard
8272         This replaces gnatpsta
8273
8274         * usage.adb:
8275         Add line for  new -gnatS switch for printing package Standard
8276         This replaces gnatpsta
8277
8278 2003-11-10  Andreas Jaeger  <aj@suse.de>
8279
8280         * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
8281         integer.
8282
8283 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
8284
8285         * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
8286         by gnat1.
8287
8288 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
8289
8290         * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
8291         no longer needed.
8292
8293         * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
8294
8295         * sysdep.c: Add handling of cygwin.
8296
8297 2003-11-10  GNAT Script  <nobody@gnat.com>
8298
8299         * Make-lang.in: Makefile automatically updated
8300
8301 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
8302
8303         PR 12950
8304         * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
8305         functions. Used to handle dynamic prefix relocation, via set_std_prefix.
8306         Replace GNAT_ROOT by GCC_ROOT.
8307
8308         * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
8309
8310 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
8311
8312         * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
8313         and update for changed meaning of GET_MODE_BITSIZE.
8314
8315 2003-11-04  Doug Rupp  <rupp@gnat.com>
8316
8317         * sysdep.c: Problem discovered during IA64 VMS port.
8318         [VMS] #include <unixio.h> to get proper prototypes.
8319
8320         * adaint.c:
8321         Issues discovered/problems fixed during IA64 VMS port.
8322         [VMS] #define _POSIX_EXIT for proper semantics.
8323         [VMS] #include <unixio.h> for proper prototypes.
8324         [VMS] (fork): #define IA64 version.
8325         (__gnat_os_exit): Remove unnecessary VMS specific code.
8326
8327 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8328
8329         Part of PR ada/12806
8330
8331         * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
8332         tree, not integer.
8333
8334         * decl.c:
8335         (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
8336         not integer.
8337
8338         * targtyps.c, decl.c, misc.c,
8339         gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
8340         routines to work around change in FP sizing semantics in GCC.
8341
8342         * utils.c:
8343         (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
8344
8345         * gigi.h: (enumerate_modes): New function.
8346
8347         * Make-lang.in: (ada/misc.o): Add real.h.
8348
8349         * misc.c: (enumerate_modes): New function.
8350
8351 2003-11-04  Robert Dewar  <dewar@gnat.com>
8352
8353         * 3vtrasym.adb: Minor reformatting
8354         Use terminology encoded/decoded name, rather than C++ specific notion
8355         of mangling (this is the terminology used throughout GNAT).
8356
8357         * einfo.h: Regenerated
8358
8359         * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
8360
8361         * exp_ch6.adb:
8362         (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
8363
8364         * par-prag.adb: Add dummy entry for Thread_Body pragma
8365
8366         * rtsfind.ads:
8367         Add entries for System.Threads entities for thread body processing
8368
8369         * sem_attr.adb:
8370         (Analyze_Pragma, Access attributes): Check these are not applied to a
8371         thread body, since this is not permitted
8372
8373         * sem_prag.adb: Add processing for Thread_Body pragma.
8374         Minor comment fix.
8375
8376         * sem_res.adb:
8377         (Resolve_Call): Check for incorrect attempt to call a thread body
8378          procedure with a direct call.
8379
8380         * snames.ads, snames.adb: Add entry for Thread_Body pragma
8381         Add names associated with thread body expansion
8382
8383         * snames.h: Add entry for Thread_Body pragma
8384
8385         * s-thread.adb: Add entries for thread body processing
8386         These are dummy bodies so far
8387
8388         * s-thread.ads: Add documentation on thread body handling.
8389         Add entries for thread body processing.
8390
8391 2003-11-04  Javier Miranda  <miranda@gnat.com>
8392
8393         * sem_ch10.adb:
8394         (Build_Limited_Views): Return after posting an error in case of limited
8395         with_clause on subprograms, generics, instances or generic renamings
8396         (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
8397         on subprograms, generics, instances or generic renamings
8398
8399 2003-11-04  Arnaud Charlet  <charlet@act-europe.fr>
8400
8401         * raise.c (setup_to_install): Correct mistake in last revision; two
8402         arguments out of order.
8403
8404         * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
8405         gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
8406         notice, missed in previous change.
8407         Remove trailing blanks and other style errors introduced in previous
8408         change.
8409
8410 2003-11-04  Olivier Hainque  <hainque@act-europe.fr>
8411
8412         * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
8413         rid of the wrapper for a LJM type, ensuring we don't do that if the
8414         field is addressable.  This avoids potential low level type view
8415         mismatches later on, for instance in a by-reference argument passing
8416         process.
8417
8418 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8419
8420         * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
8421         aligned at byte boundary.
8422
8423 2003-11-04  Joel Brobecker  <brobecker@gnat.com>
8424
8425         * decl.c (components_to_record): Do not delete the empty variants from
8426         the end of the union type.
8427
8428 2003-11-04  Ed Schonberg  <schonberg@gnat.com>
8429
8430         * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
8431         operation for a derived type, an explicit declaration may use a local
8432         subtype of Boolean.
8433
8434 2003-11-04  Vincent Celier  <celier@gnat.com>
8435
8436         * make.adb (Gnatmake): Allow main sources on the command line with a
8437         library project when it is only for compilation (no binding or
8438         linking).
8439
8440 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8441
8442         * Makefile.in: Remove many duplicate variables.
8443
8444 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
8445
8446         * Make-lang.in (dvi): Move targets to $(docobjdir).
8447         (gnat_ug_vms.dvi): Simplify rule and adjust target.
8448         (gnat_ug_wnt.dvi): Likewise.
8449         (gnat_ug_unx.dvi): Likewise.
8450         (gnat_ug_vxw.dvi): Likewise.
8451         (gnat_rm.dvi): Likewise.
8452         (gnat-style.dvi): Likewise.
8453
8454 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
8455
8456         * gigi.h: Missed commit from update for C90.
8457
8458 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
8459
8460         * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
8461
8462 2003-10-31  Andreas Schwab  <schwab@suse.de>
8463
8464         * raise.c (get_action_description_for): Fix typo in last change.
8465
8466 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
8467
8468         PR ada/12761
8469         * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
8470         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
8471
8472 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
8473
8474         * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
8475         ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
8476         gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
8477         sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
8478         trans.c, utils.c, utils2.c: Convert function prototypes to C90.
8479
8480 2003-10-30  Vasiliy Fofanov  <fofanov@act-europe.fr>
8481
8482         * 3vtrasym.adb:
8483         Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
8484         numbers when symbol name is too long.
8485
8486 2003-10-30  Ed Falis  <falis@gnat.com>
8487
8488         * g-signal.ads, g-signal.adb: New files
8489
8490         * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
8491
8492         * Makefile.rtl: Introduce GNAT.Signals
8493
8494 2003-10-30  Robert Dewar  <dewar@gnat.com>
8495
8496         * freeze.adb: Minor reformatting
8497
8498         * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
8499
8500         * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
8501         par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
8502         New handling of Id_Check parameter to improve recognition of keywords
8503         used as identifiers.
8504         Update copyright notice to include 2003
8505
8506 2003-10-29  Robert Dewar  <dewar@gnat.com>
8507
8508         * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
8509         sem_ch10.adb: Minor reformatting
8510
8511         * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
8512         (Expand_Assign_Record): Test right hand side for bit unaligned as well
8513
8514 2003-10-29  Vasiliy Fofanov  <fofanov@act-europe.fr>
8515
8516         * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
8517         Support for TBK$SYMBOLIZE-based symbolic traceback.
8518
8519 2003-10-29  Jose Ruiz  <ruiz@act-europe.fr>
8520
8521         * exp_disp.adb:
8522         Revert previous change, that did not work well when pragma No_Run_Time
8523         was used in conjunction with a run-time other than ZFP.
8524
8525 2003-10-29  Vincent Celier  <celier@gnat.com>
8526
8527         * make.adb:
8528         (Gnatmake): When there are no Ada mains in attribute Main, disable the
8529          bind and link steps only is switch -z is not used.
8530
8531 2003-10-29  Arnaud Charlet  <charlet@act-europe.fr>
8532
8533         * Makefile.generic: Remove duplicated setting of CC.
8534
8535         * Makefile.prolog: Set CC to gcc by default, to override make's
8536         default (cc).
8537
8538         * einfo.h: Regenerated.
8539
8540 2003-10-29  Ed Schonberg  <schonberg@gnat.com>
8541
8542         * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
8543         current body, after compiling subunit.
8544
8545         * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
8546         when in deleted code, because gigi needs properly ordered freeze
8547         actions to annotate types.
8548
8549         * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
8550         prevent the premature freezing of record type that contains
8551         subcomponents with a private type that does not yet have a completion.
8552
8553 2003-10-29  Javier Miranda  <miranda@gnat.com>
8554
8555         * sem_ch12.adb:
8556         (Analyze_Package_Instantiation): Check that instances can not be used in
8557         limited with_clauses.
8558
8559         * sem_ch8.adb:
8560         (Analyze_Package_Renaming): Check that limited withed packages cannot
8561         be renamed. Improve text on error messages related to limited
8562         with_clauses.
8563
8564         * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
8565
8566         * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
8567         Update copyright notice.
8568
8569         * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
8570         (Install_Limited_Context_Clauses): New subprogram that isolates all the
8571         checks required for limited context_clauses and installs the limited
8572         view.
8573         (Install_Limited_Withed_Unit): Complete its documentation.
8574         (Analyze_Context): Check that limited with_clauses are only allowed in
8575         package specs.
8576         (Install_Context): Call Install_Limited_Context_Clauses after the
8577         parents have been installed.
8578         (Install_Limited_Withed_Unit): Add documentation. Mark the installed
8579         package as 'From_With_Type'; this mark indicates that the limited view
8580         is installed. Used to check bad usages of limited with_clauses.
8581         (Build_Limited_Views): Do not add shadow entities to the scope's list
8582         of entities. Do not add real entities to the Non_Limited_Views chain.
8583         Improve error notification.
8584         (Remove_Context_Clauses): Remove context clauses in two phases:
8585         limited views first and regular views later (to maintain the
8586         stack model).
8587         (Remove_Limited_With_Clause): If the package is analyzed then reinstall
8588         its visible entities.
8589
8590 2003-10-29  Thomas Quinot  <quinot@act-europe.fr>
8591
8592         * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
8593         with any type that Is_Fixed_Point_Type.
8594
8595         * sinfo.ads: Fix documentation for Associated_Node attribute.
8596
8597 2003-10-29  Sergey Rybin  <rybin@act-europe.fr>
8598
8599         * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
8600         both '-gnatc' and '-gnatt' are specified.
8601
8602         * atree.adb (Initialize): Add initialization for Node_Count (set to
8603         zero).
8604
8605 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8606
8607         * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
8608         do not consider as Pure.
8609
8610         Part of implementation of function-at-a-time:
8611
8612         * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
8613         (tree_transform): Add new argument to build_component_ref.
8614         (tree_transform, case N_Assignment_Statement): Make and return an
8615         EXPR_STMT.
8616         (tree_transform): If result IS_STMT, set flags and return it.
8617         (gnat_expand_stmt, set_lineno_from_sloc): New functions.
8618
8619         * utils2.c (build_simple_component_ref, build_component_ref): Add new
8620         arg, NO_FOLD_P.
8621         (build_binary_op, case EQ_EXPR): Pass additional arg to it.
8622         (build_allocator): Likewise.
8623
8624         * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
8625         Add new arg to build_component_ref.
8626         (maybe_unconstrained_array, unchecked_convert): Likewise.
8627
8628         * ada-tree.def (EXPR_STMT): New code.
8629
8630         * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
8631
8632         * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
8633         build_component_ref calls.
8634
8635         * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
8636
8637         * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
8638         (build_component_ref): Add new argument, NO_FOLD_P.
8639
8640 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
8641
8642         * Makefile.generic: Add missing substitution on object_deps handling.
8643
8644         PR ada/5909:
8645         * Make-lang.in (check-ada): Enable ACATS test suite.
8646
8647 2003-10-27  Robert Dewar  <dewar@gnat.com>
8648
8649         * exp_ch3.adb:
8650         (Freeze_Array_Type): We do not need an initialization routine for types
8651         derived from String or Wide_String. They should be treated the same
8652         as String and Wide_String themselves. This caused problems with the
8653         use of Initialize_Scalars.
8654
8655         * exp_ch5.adb:
8656         (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
8657         composites. This allows use of component clauses that are not byte
8658         aligned.
8659
8660         * sem_prag.adb:
8661         (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
8662         is an attempt to pack an array of atomic objects.
8663
8664         * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
8665
8666 2003-10-27  Pascal Obry  <obry@gnat.com>
8667
8668         * g-dirope.adb:
8669         (Basename): Check for drive letters in a pathname only on DOS based OS.
8670
8671 2003-10-27  Vincent Celier  <celier@gnat.com>
8672
8673         * make.adb:
8674         (Gnatmake): When unable to change dir to the object dir, display the
8675         content of the parent dir of the obj dir, to try to understand why this
8676         happens.
8677
8678 2003-10-27  GNAT Script  <nobody@gnat.com>
8679
8680         * Make-lang.in: Makefile automatically updated
8681
8682 2003-10-27  Ed Schonberg  <schonberg@gnat.com>
8683
8684         * sem_ch12.adb:
8685         (Inline_Instance_Body): Indicate that the save/restore of use_clauses
8686         should not be done in Save/Restore_Scope_Stack, because it is performed
8687         locally.
8688
8689         * sem_ch8.adb:
8690         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
8691         whether use clauses should be removed/restored.
8692
8693         * sem_ch8.ads:
8694         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
8695         whether use clauses should be removed/restored.
8696
8697 2003-10-26  Andreas Jaeger  <aj@suse.de>
8698
8699         * Makefile.in: Remove duplicated lines.
8700
8701 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
8702
8703         * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
8704         minimize the differences with ACT tree.
8705
8706         * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
8707         gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
8708         Gnatvsn.Gnat_Static_Version_String to reduce differences between
8709         ACT and FSF trees.
8710
8711 2003-10-24  Pascal Obry  <obry@gnat.com>
8712
8713         * adadecode.c (ostrcpy): New function.
8714         (__gnat_decode): Use ostrcpy of strcpy.
8715         (has_prefix): Set first parameter a const.
8716         (has_suffix): Set first parameter a const.
8717         Update copyright notice. Fix source name in header.
8718         Removes a trailing space.
8719         PR ada/12014.
8720
8721 2003-10-24  Jose Ruiz  <ruiz@act-europe.fr>
8722
8723         * exp_disp.adb:
8724         Remove the test against being in No_Run_Time_Mode before generating a
8725         call to Register_Tag. It is redundant with the test against the
8726         availability of the function Register_Tag.
8727
8728 2003-10-24  Vincent Celier  <celier@gnat.com>
8729
8730         * g-catiio.adb: (Month_Name): Correct spelling of February
8731
8732         * make.adb: (Mains): New package
8733         (Initialize): Call Mains.Delete
8734         (Gnatmake): Check that each main on the command line is a source of a
8735         project file and, if there are several mains, each of them is a source
8736         of the same project file.
8737         (Gnatmake): When a foreign language is specified in attribute Languages,
8738         no main is specified on the command line and attribute Mains is not
8739         empty, only build the Ada main. If there is no Ada main, just compile
8740         the Ada sources and their closure.
8741         (Gnatmake): If a main is specified on the command line with directory
8742         information, check that the source exists and, if it does, that the path
8743         is the actual path of a source of a project.
8744
8745         * prj-env.adb:
8746         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
8747         Full_Path is True, return the full path instead of the simple file name.
8748         (Project_Of): New function
8749
8750         * prj-env.ads:
8751         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
8752         defaulted to False.
8753         (Project_Of): New function
8754
8755 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
8756
8757         * Makefile.generic:
8758         Ensure objects of main project are always checked and rebuilt if needed.
8759         Set CC to gcc by default.
8760         Prepare new handling of link by creating a global archive (not activated
8761         yet).
8762
8763         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
8764         stringt.h: Update copyright notice. Remove trailing blanks.
8765         Fix source name in header.
8766
8767 2003-10-24  Robert Dewar  <dewar@gnat.com>
8768
8769         * sem_ch12.adb: Minor reformatting
8770
8771         * sem_ch3.adb:
8772         Minor reformatting (including new function return style throughout)
8773
8774         * sem_ch3.ads:
8775         Minor reformatting (including new function return style throughout)
8776
8777 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
8778
8779         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
8780         stringt.h: Update copyright notice. Remove trailing blanks.
8781         Fix source name in header.
8782
8783 2003-10-24  GNAT Script  <nobody@gnat.com>
8784
8785         * Make-lang.in: Makefile automatically updated
8786
8787 2003-10-23  Nathanael Nerode  <neroden@gcc.gnu.org>
8788
8789         * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
8790         stringt.h: Convert to ISO C90 declarations and definitions.
8791
8792 2003-10-23  Thomas Quinot  <quinot@act-europe.fr>
8793
8794         PR ada/11978:
8795         * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
8796         External_Tag attribute definition clauses.
8797
8798 2003-10-23  Ed Schonberg  <schonberg@gnat.com>
8799
8800         PR ada/7613:
8801         * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
8802         child unit, generate a fully qualified name to avoid spurious errors
8803         when the context contains renamings of different child units with
8804         the same simple name.
8805
8806         * exp_dbug.ads: Add documentation on name qualification for renamings
8807         of child units.
8808
8809 2003-10-23  Robert Dewar  <dewar@gnat.com>
8810
8811         * g-regpat.ads, g-regpat.adb: Minor reformatting
8812
8813 2003-10-23  Jose Ruiz  <ruiz@act-europe.fr>
8814
8815         * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
8816
8817 2003-10-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8818
8819         * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
8820         Machine call.
8821
8822         * urealp.h: (Machine): Update to proper definition.
8823
8824 2003-10-23  Arnaud Charlet  <charlet@act-europe.fr>
8825
8826         * init.c, adaint.c: Minor reformatting.
8827
8828 2003-10-23  Danny Smith  <dannysmith@users.sourceforge.net>
8829
8830         * adaint.c (w32_epoch_offset): Define static const at file level.
8831         (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
8832         rather than t_create, t_access in call to GetFileTime. Use union
8833         to convert between FILETIME and  unsigned long long.
8834         (__gnat_file_time_name): Test for invalid file handle.
8835         (__gnat_set_filetime_name): Support win32 targets using
8836         w32api SetFileTime.
8837
8838 2003-10-22  Danny Smith  <dannysmith@users.sourceforge.net>
8839
8840         * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
8841
8842         * ctrl_c.c (__gnat_int_handler): Remove declaration.
8843
8844         * decl.c (creat_concat_name):  Const-ify prefix.
8845
8846         * adaint.c: Include ctype.h if __MINGW32__.
8847         (__gnat_readlink): Mark arguments as possibly unused.
8848         (__gnat_symlink): Likewise.
8849         (__gnat_is_symbolic_link): Likewise.
8850         (__gnat_portable_spawn): Likewise.  Cast last arg of spawnvp to match
8851         declaration
8852         (__gnat_file_time_name): Don't declare struct stat statbuf when
8853         not needed.
8854         (__gnat_is_absolute_path): Add parenthesis around condition of
8855         'if' statement to avoid warning.
8856         (__gnat_plist_init): Specify void as parameter.
8857         (plist_enter): Likewise.
8858         (plist_leave): Likewise.
8859         (remove_handle): Make static. Initialize prev.
8860
8861 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
8862
8863         * Makefile.in: Disable build of gnatpsta. PR ada/10110.
8864         * cstreams.c (__gnat_full_name): Minor improvements and clean up
8865         of previous change.
8866
8867 2003-10-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8868
8869         * tracebak.c (MAX): Avoid redefinition warning.
8870
8871         * init.c [sgi] (__gnat_error_handler): Remove i, unused.
8872         Change msg to const char *.
8873         (__gnat_install_handler): Remove ss, unused.
8874         [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
8875         to const char *.
8876         * cstreams.c (__gnat_full_name): Declare p only when used.
8877         (__gnat_full_name) [sgi] Return buffer.
8878
8879 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
8880
8881         * mingw32.h: New file.
8882         * gnat_wrapper.adb: New file.
8883
8884 2003-10-22  Jerome Roussel  <roussel@act-europe.fr>
8885
8886         * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
8887         string match a pre compiled regular expression (the corresponding
8888         version of the function working on a raw regular expression)
8889         Fix typos in various comments
8890         Update copyright notice in spec
8891
8892 2003-10-21  Gary Dismukes  <dismukes@gnat.com>
8893
8894         * exp_ch3.adb:
8895         (Component_Needs_Simple_Initialization): Return False when the type is a
8896         packed bit array. Revise spec comments to document this case.
8897
8898         * exp_prag.adb:
8899         (Expand_Pragma_Import): Set any expression on the imported object to
8900         empty to avoid initializing imported objects (in particular this
8901         covers the case of zero-initialization of bit arrays).
8902         Update copyright notice.
8903
8904 2003-10-21  Ed Schonberg  <schonberg@gnat.com>
8905
8906         * sem_ch12.adb:
8907         (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
8908         a subunit is missing.
8909         (Instantiate_Subprogram_Body): If body of function is missing, set type
8910         of return expression explicitly in dummy body, to prevent cascaded
8911         errors when a subunit is missing.
8912         Fixes PR 5677.
8913
8914         * sem_ch3.adb:
8915         (Access_Subprogram_Declaration): Verify that return type is valid.
8916         Fixes PR 8693.
8917
8918         * sem_elab.adb:
8919         (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
8920         generic.
8921         Fixes PR 12318.
8922
8923         * sem_util.adb:
8924         (Corresponding_Discriminant): If the scope of the discriminant is a
8925         private type without discriminant, use its full view.
8926         Fixes PR 8247.
8927
8928 2003-10-21  Arnaud Charlet  <charlet@act-europe.fr>
8929
8930         * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
8931         3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
8932         3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
8933         55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
8934         56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
8935         59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
8936         5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
8937         5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
8938         5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
8939         5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
8940         5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
8941         5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
8942         5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
8943         5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
8944         7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
8945         a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
8946         a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
8947         a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
8948         bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
8949         erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
8950         err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
8951         g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
8952         g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
8953         g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
8954         g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
8955         g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
8956         g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
8957         gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
8958         g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
8959         g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
8960         i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
8961         prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
8962         prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
8963         s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
8964         s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
8965         s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
8966         s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
8967         s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
8968         s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
8969         s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
8970         s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
8971         socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
8972         s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
8973         s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
8974         s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
8975         styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
8976         s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
8977         tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
8978         vms_conv.ads, vms_conv.adb, vms_data.ads,
8979         vxaddr2line.adb: Files added. Merge with ACT tree.
8980
8981         * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
8982         5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
8983         5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
8984         5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
8985         g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
8986         s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
8987         s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
8988         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
8989         s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
8990         s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
8991
8992         * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
8993         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
8994         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
8995         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
8996         4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
8997         4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
8998         4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
8999         4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
9000         51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
9001         53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
9002         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
9003         5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
9004         5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
9005         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
9006         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
9007         5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
9008         5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
9009         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
9010         5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
9011         5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
9012         5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
9013         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
9014         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
9015         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
9016         5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
9017         5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
9018         5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
9019         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
9020         5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
9021         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
9022         5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
9023         5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
9024         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
9025         5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
9026         6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
9027         7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
9028         7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
9029         a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
9030         a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
9031         a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
9032         a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
9033         a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
9034         ali.adb, ali.ads, ali-util.adb, ali-util.ads,
9035         a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
9036         a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
9037         a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
9038         a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
9039         a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
9040         a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
9041         a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
9042         a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
9043         a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
9044         a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
9045         a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
9046         a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
9047         atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
9048         a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
9049         a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
9050         bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
9051         checks.adb, checks.ads, cio.c, comperr.adb,
9052         comperr.ads, csets.adb, cstand.adb, cstreams.c,
9053         debug_a.adb, debug_a.ads, debug.adb, decl.c,
9054         einfo.adb, einfo.ads, errout.adb, errout.ads,
9055         eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
9056         expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
9057         exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
9058         exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
9059         exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
9060         exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
9061         exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
9062         exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
9063         exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
9064         fe.h, fmap.adb, fmap.ads, fname.adb,
9065         fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
9066         freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
9067         g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
9068         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
9069         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
9070         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
9071         g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
9072         g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
9073         g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
9074         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
9075         g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
9076         g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
9077         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
9078         g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
9079         gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
9080         gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
9081         gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
9082         gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
9083         gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
9084         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
9085         g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
9086         g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
9087         g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
9088         g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
9089         g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
9090         g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
9091         g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
9092         i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
9093         i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
9094         inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
9095         itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
9096         layout.adb, lib.adb, lib.ads, lib-list.adb,
9097         lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
9098         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
9099         link.c, live.adb, make.adb, make.ads,
9100         Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
9101         mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
9102         mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
9103         misc.c, mkdir.c, mlib.adb, mlib.ads,
9104         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
9105         mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
9106         namet.adb, namet.ads, namet.h, nlists.ads,
9107         nlists.h, nmake.adt, opt.adb, opt.ads,
9108         osint.adb, osint.ads, osint-b.adb, osint-c.adb,
9109         par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
9110         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
9111         par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
9112         par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
9113         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
9114         prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
9115         prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
9116         prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
9117         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
9118         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
9119         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
9120         prj-util.adb, prj-util.ads, raise.c, raise.h,
9121         repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
9122         rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
9123         s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
9124         s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
9125         scans.ads, scn.adb, scn.ads, s-crc32.adb,
9126         s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
9127         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
9128         sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
9129         sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
9130         sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
9131         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
9132         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
9133         sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
9134         sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
9135         sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
9136         sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
9137         sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
9138         s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
9139         s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
9140         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
9141         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
9142         s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
9143         s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
9144         s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
9145         sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
9146         sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
9147         sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
9148         s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
9149         s-memory.adb, s-memory.ads, snames.adb, snames.ads,
9150         snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
9151         s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
9152         s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
9153         s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
9154         s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
9155         s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
9156         s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
9157         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
9158         s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
9159         s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
9160         s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
9161         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
9162         s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
9163         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
9164         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
9165         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
9166         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
9167         stringt.adb, stringt.ads, stringt.h, style.ads,
9168         stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
9169         s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
9170         s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
9171         switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
9172         s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
9173         table.adb, table.ads, targparm.adb, targparm.ads,
9174         targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
9175         trans.c, tree_io.adb, treepr.adb, treeprs.adt,
9176         ttypes.ads, types.ads, types.h, uintp.adb,
9177         uintp.ads, uintp.h, uname.adb, urealp.adb,
9178         urealp.ads, urealp.h, usage.adb, utils2.c,
9179         utils.c, validsw.adb, validsw.ads, widechar.adb,
9180         xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
9181         xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
9182         einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
9183         gnatvsn.ads: Merge with ACT tree.
9184
9185         * gnatvsn.adb: Rewritten in a simpler and more efficient way.
9186
9187 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
9188
9189         * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
9190         (gnat_ug_vmx.info): Likewise.
9191         (gnat_ug_vxw.info): Likewise.
9192         (gnat_ug_wnt.info): Likewise.
9193         (gnat_rm.info): Likewise.
9194         (gnat-style.info): Likewise.
9195
9196         * Make-lang.in (ada.install-info): Remove target.
9197         (info): New target.
9198         (install-info): Likewise.
9199         (gnat_ug_unx.info): Simplify rule.
9200         (gnat_ug_vmx.info): Likewise.
9201         (gnat_ug_vxw.info): Likewise.
9202         (gnat_ug_wnt.info): Likewise.
9203         (gnat_rm.info): Likewise.
9204         (gnat-style.info): Likewise.
9205
9206 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
9207
9208         * Make-lang.in: Replace uses of $(target_alias) with
9209         $(target_noncanonical).
9210         * ada/Makefile.in: Remove unused mention of $(target_alias).
9211
9212 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
9213
9214         * Make-lang.in (ada.info): Replace with ...
9215         (info): ... this.
9216         (ada.dvi): Replace with ...
9217         (dvi): ... this.
9218
9219 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
9220
9221         * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
9222         initialize dconstp5 and dconstmp5.
9223
9224 2003-09-28  Richard Henderson  <rth@redhat.com>
9225
9226         * trans.c (tree_transform): Update call to expand_asm_operands.
9227
9228 2003-09-21  Richard Henderson  <rth@redhat.com>
9229
9230         * trans.c, utils.c: Revert.
9231
9232 2003-09-21  Richard Henderson  <rth@redhat.com>
9233
9234         * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
9235         change to const.
9236
9237 2003-09-04  Michael Matz  <matz@suse.de>
9238
9239         * misc.c: Include "target.h".
9240         * Make-lang.in (misc.o): Add dependency on target.h.
9241
9242 2003-09-03  DJ Delorie  <dj@redhat.com>
9243
9244         * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
9245         hook.
9246
9247 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
9248
9249         * Makefile.in: Update substitutions to match changes to
9250         configure.  Use include directives instead of @-insertions
9251         to read in host and target fragments.  Add a rule to
9252         regenerate ada/Makefile.
9253
9254 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
9255
9256         * lang-options.h: Remove.
9257         * lang.opt: Add help text.
9258
9259 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
9260
9261         * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
9262         calls.
9263
9264 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
9265
9266         * misc.c (gnat_handle_option): Don't handle filenames.
9267
9268 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
9269
9270         * Make-lang.in: Replace PWD with PWD_COMMAND.
9271         * Makefile.adalib: Likewise.
9272         * Makefile.in: Likewise.
9273
9274 2003-07-04  Matt Kraai  <kraai@alumni.cmu.edu>
9275
9276         * misc.c (gnat_argv): Revert last change.
9277         (gnat_handle_option, gnat_init_options): Copy arguments.
9278
9279 2003-07-03  Neil Booth  <neil@daikokuya.co.uk>
9280
9281         * misc.c (gnat_argv): Make const.
9282
9283 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
9284
9285         * misc.c (save_argc, save_argv): Keep non-static!
9286
9287 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
9288
9289         * misc.c (save_argc, save_argv): Make static.
9290         (gnat_init_options): New prototype.
9291         (gnat_init_options): Update.
9292
9293 2003-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
9294
9295         * gnat_ug.texi: Remove unlikely characters from @vars.
9296         * gnat_ug_vms.texi: Regenerate.
9297
9298 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
9299
9300         * misc.c (record_code_position): Adjust emit_note call.
9301
9302 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
9303
9304         * misc.c (gnat_handle_option): Don't check for missing arguments.
9305
9306 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
9307
9308         * utils.c (end_subprog_body): Adjust expand_function_end call.
9309
9310 2003-06-16  Matt Kraai  <kraai@alumni.cmu.edu>
9311
9312         * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
9313         Bind_Main_Program.
9314
9315 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
9316
9317         * lang.opt: Declare Ada.
9318         * misc.c (gnat_init_options): Update.
9319
9320 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
9321
9322         * utils.c (begin_subprog_body): Adjust init_function_start call.
9323
9324 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
9325
9326         * Make-lang.in: Update to use options.c and options.h.
9327         * misc.c: Include options.h not aoptions.h.
9328         (gnat_handle_option): Abort on unrecognized switch.
9329         (gnat_init_options): Request Ada switches.
9330
9331 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
9332
9333         * lang.opt: Add -Wall.
9334         * misc.c (gnat_handle_option): Handle it.
9335
9336 2003-06-12  Neil Booth  <neil@daikokuya.co.uk>
9337
9338         * misc.c (gnat_handle_option): Fix warnings.
9339
9340 2003-06-11  Matt Kraai  <kraai@alumni.cmu.edu>
9341
9342         * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
9343
9344 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
9345
9346         * Make-lang.in: Update to handle command-line options.
9347         * lang.opt: New file.
9348         * misc.c: Include aoptions.h.
9349         (cl_options_count, cl_options): Remove.
9350         (gnat_handle_option): New.
9351         (gnat_decode_option): Remove.
9352         (LANG_HOOKS_DECODE_OPTION): Remove.
9353         (LANG_HOOKS_HANDLE_OPTION): Override.
9354
9355 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
9356
9357         * init.c, misc.c, trans.c, utils.c: Remove dead code.
9358
9359 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
9360
9361         * Makefile.in: Replace "host_canonical" with "host" for autoconf
9362         substitution.
9363
9364 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
9365
9366         * Make-lang.in: Update.
9367         * misc.c: Include opts.h. Define cl_options_count and cl_options.
9368
9369 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
9370
9371         * misc.c (gnat_init_options): Update.
9372
9373 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
9374
9375         * Make-lang.in (ada/b_gnatb.o-warn): Remove.
9376         * bindgen.adb (Gen_Main_C): Mark ensure_reference with
9377         __attribute__ ((__unused__)).
9378
9379 2003-06-05  Jan Hubicka  <jh@suse.cz>
9380
9381         * Make-lang.in:  Add support for stageprofile and stagefeedback
9382
9383 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
9384
9385         * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
9386         (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
9387
9388 2003-06-04  Matt Kraai  <kraai@alumni.cmu.edu>
9389
9390         * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
9391         Remove non-VMS directive.
9392         (Switches for gnatlbr, Optimization Levels): Remove non-VMS
9393         alternatives.
9394         (Examples of gnatls Usage): Remove VMS alternative.
9395
9396 2003-06-04  Olivier Hainque  <hainque@act-europe.fr>
9397
9398         PR ada/9953:
9399         * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
9400         and turn ZCX_By_Default back to False since the underlying support
9401         is not quite there yet.
9402
9403 2003-06-01  Andreas Jaeger  <aj@suse.de>
9404
9405         * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
9406         and ROUND_TYPE_SIZE_UNIT.
9407
9408 2003-05-22   Geert Bosch <bosch@gnat.com>
9409
9410         * gnat_rm.texi : Remove reference to Ada Core Technologies.
9411
9412 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
9413
9414         * trans.c (tree_transform): Use location_t and input_location
9415         directly.
9416         (build_unit_elab): Likewise.
9417         * utils.c (create_label_decl): Likewise.
9418
9419 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
9420
9421         * trans.c (tree_transform, build_unit_elab,
9422         set_lineno): Rename lineno to input_line.
9423         * utils.c (pushdecl, create_label_decl, begin_subprog_body,
9424         end_subprog_body): Likewise.
9425         * utils2.c (build_call_raise): Likewise.
9426
9427 2003-05-01  Laurent Guerby <guerby@acm.org>
9428
9429         PR ada/10546
9430         * 5iosinte.ads: Increase pthread_cond_t size to match recent
9431         LinuxThread and NPTL version, merge from ACT.
9432
9433 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
9434
9435         * utils.c (convert): No need to clear TREE_CST_RTL.
9436
9437 2003-04-23   Geert Bosch <bosch@gnat.com>
9438
9439         * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
9440         1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
9441         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
9442         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
9443         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
9444         4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
9445         4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
9446         4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
9447         4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
9448         4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
9449         4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
9450         4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
9451         52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
9452         5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
9453         5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
9454         5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
9455         5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
9456         5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
9457         5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
9458         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
9459         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
9460         5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
9461         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
9462         5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
9463         5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
9464         5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
9465         5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
9466         5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
9467         5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
9468         5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
9469         5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
9470         5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
9471         5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
9472         5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
9473         5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
9474         5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
9475         5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
9476         5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
9477         5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
9478         5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
9479         5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
9480         5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
9481         5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
9482         5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
9483         6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
9484         7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
9485         7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
9486         9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
9487         a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
9488         a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
9489         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
9490         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
9491         a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
9492         a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
9493         a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
9494         a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
9495         a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
9496         a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
9497         a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
9498         a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
9499         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
9500         a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
9501         a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
9502         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
9503         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
9504         a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
9505         a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
9506         a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
9507         a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
9508         a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
9509         a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
9510         a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
9511         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
9512         a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
9513         a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
9514         a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
9515         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
9516         a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
9517         a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
9518         a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
9519         a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
9520         a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
9521         a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
9522         a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
9523         a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
9524         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
9525         a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
9526         a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
9527         a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
9528         a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
9529         a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
9530         a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
9531         a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
9532         a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
9533         a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
9534         a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
9535         a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
9536         a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
9537         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
9538         a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
9539         a-wttest.ads, ada-tree.h, ada.ads, ada.h,
9540         adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
9541         ali.adb, ali.ads, alloc.ads, argv.c,
9542         atree.adb, atree.ads, atree.h, aux-io.c,
9543         back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
9544         binde.adb, binde.ads, binderr.adb, binderr.ads,
9545         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
9546         butil.adb, butil.ads, cal.c, calendar.ads,
9547         casing.adb, casing.ads, ceinfo.adb, checks.adb,
9548         checks.ads, cio.c, comperr.adb, comperr.ads,
9549         config-lang.in, csets.adb, csets.ads, csinfo.adb,
9550         cstand.adb, cstand.ads, cuintp.c, debug.adb,
9551         debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
9552         dec-io.ads, dec.ads, deftarg.c, directio.ads,
9553         einfo.adb, einfo.ads, elists.adb, elists.ads,
9554         elists.h, errno.c, errout.adb, errout.ads,
9555         eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
9556         exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
9557         exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
9558         exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
9559         exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
9560         exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
9561         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
9562         exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
9563         exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
9564         exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
9565         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
9566         exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
9567         exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
9568         exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
9569         exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
9570         fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
9571         fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
9572         freeze.adb, freeze.ads, frontend.adb, frontend.ads,
9573         g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
9574         g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
9575         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
9576         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
9577         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
9578         g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
9579         g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
9580         g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
9581         g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
9582         g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
9583         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
9584         g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
9585         g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
9586         g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
9587         g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
9588         g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
9589         g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
9590         g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
9591         g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
9592         g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
9593         g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
9594         g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
9595         get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
9596         gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
9597         gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
9598         gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
9599         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
9600         gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
9601         gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
9602         gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
9603         hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
9604         i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
9605         i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
9606         i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
9607         i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
9608         i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
9609         i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
9610         inline.adb, inline.ads, interfac.ads, ioexcept.ads,
9611         itypes.adb, itypes.ads, krunch.adb, krunch.ads,
9612         layout.adb, layout.ads, lib-list.adb, lib-load.adb,
9613         lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
9614         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
9615         lib.adb, lib.ads, live.adb, live.ads,
9616         machcode.ads, make.adb, make.ads, makeusg.adb,
9617         makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
9618         mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
9619         memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
9620         mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
9621         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
9622         mlib.ads, namet.adb, namet.ads, nlists.adb,
9623         nlists.ads, opt.adb, opt.ads, osint-b.adb,
9624         osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
9625         osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
9626         osint.ads, output.adb, output.ads, par-ch10.adb,
9627         par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
9628         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
9629         par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
9630         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
9631         par-tchk.adb, par-util.adb, par.adb, par.ads,
9632         prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
9633         prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
9634         prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
9635         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
9636         prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
9637         prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
9638         prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
9639         prj.adb, prj.ads, repinfo.adb, repinfo.ads,
9640         restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
9641         rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
9642         s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
9643         s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
9644         s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
9645         s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
9646         s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
9647         s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
9648         s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
9649         s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
9650         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
9651         s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
9652         s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
9653         s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
9654         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
9655         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
9656         s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
9657         s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
9658         s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
9659         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
9660         s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
9661         s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
9662         s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
9663         s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
9664         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
9665         s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
9666         s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
9667         s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
9668         s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
9669         s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
9670         s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
9671         s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
9672         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
9673         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
9674         s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
9675         s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
9676         s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
9677         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
9678         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
9679         s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
9680         s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
9681         s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
9682         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
9683         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
9684         s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
9685         s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
9686         s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
9687         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
9688         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
9689         s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
9690         s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
9691         s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
9692         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
9693         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
9694         s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
9695         s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
9696         s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
9697         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
9698         s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
9699         s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
9700         s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
9701         s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
9702         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
9703         s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
9704         s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
9705         s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
9706         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
9707         s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
9708         s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
9709         s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
9710         s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
9711         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
9712         s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
9713         s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
9714         s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
9715         s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
9716         s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
9717         s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
9718         s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
9719         s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
9720         s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
9721         s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
9722         s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
9723         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
9724         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
9725         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
9726         s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
9727         s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
9728         s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
9729         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
9730         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
9731         s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
9732         s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
9733         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
9734         s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
9735         scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
9736         sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
9737         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
9738         sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
9739         sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
9740         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
9741         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
9742         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
9743         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
9744         sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
9745         sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
9746         sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
9747         sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
9748         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
9749         sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
9750         sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
9751         sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
9752         sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
9753         sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
9754         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
9755         sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
9756         snames.ads, sprint.adb, sprint.ads, stand.adb,
9757         stand.ads, stringt.adb, stringt.ads, style.adb,
9758         style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
9759         switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
9760         switch-m.ads, switch.adb, switch.ads, system.ads,
9761         table.adb, table.ads, targparm.adb, targparm.ads,
9762         tbuild.adb, tbuild.ads, text_io.ads, trans.c,
9763         tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
9764         tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
9765         ttypef.ads, ttypes.ads, types.adb, types.ads,
9766         uintp.adb, uintp.ads, uname.adb, uname.ads,
9767         unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
9768         usage.adb, usage.ads, validsw.adb, validsw.ads,
9769         widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
9770         xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
9771         xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
9772         formatting and other trivial changes from ACT.
9773
9774 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
9775
9776         * gigi.h, utils2.c (build_constructor):
9777         Rename gnat_build_constructor. Use build_constructor.
9778         * decl.c (gnat_to_gnu_entity)
9779         * trans.c (tree_transform, pos_to_constructor, extract_values)
9780         * ada/utils.c (build_template, convert_to_fat_pointer, convert)
9781         (unchecked_convert)
9782         * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
9783         (fill_vms_descriptor):
9784         Update to match.
9785
9786 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
9787
9788         * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
9789         * misc.c (gnat_tree_size): New function.
9790         (LANG_HOOKS_TREE_SIZE): Override.
9791
9792 2003-04-03  Jason Merrill  <jason@redhat.com>
9793
9794         * misc.c (gnat_adjust_rli): #if 0.
9795
9796 2003-03-31   Geert Bosch <bosch@gnat.com>
9797
9798         PR ada/10020
9799         * link.c : Fix misspelled "const" keyword
9800
9801 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
9802
9803         PR c++/7086
9804         * utils2.c: Adjust calls to put_var_into_stack.
9805
9806 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
9807
9808         * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
9809
9810 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
9811
9812         * misc.c (gnat_init): Update for new prototype.
9813
9814 2003-03-05  Olivier Hainque  <hainque@gnat.com>
9815
9816         ada/9961
9817         * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
9818         warning, and fix return type for the IN_RTS && !SJLJ case.
9819
9820 2003-03-04  Tom Tromey  <tromey@redhat.com>
9821
9822         * Make-lang.in (ada.tags): New target.
9823
9824 2003-03-04  Olivier Hainque  <hainque@act-europe.fr>
9825
9826         ada/9911
9827         * a-except.adb (Unwind_RaiseException): Import a GNAT specific
9828         wrapper, which name remains constant whatever underlying GCC
9829         scheme.
9830
9831         * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
9832         the stable interface needed for a-except.
9833
9834 2003-03-02  Andreas Jaeger  <aj@suse.de>
9835
9836         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
9837         gnat_ug_wnt.texi: Regenerate.
9838
9839 2003-03-02  Laurent Guerby <guerby@acm.org>
9840
9841         * Makefile.in (install-gnatlib): Match previous change there
9842         so it works.
9843
9844 2003-02-28  Andreas Schwab  <schwab@suse.de>
9845
9846         * Make-lang.in (install-gnatlib): Change to ada directory before
9847         running make instead of using ada/Makefile directly.
9848
9849 2003-02-18  Ben Elliston  <bje@redhat.com>
9850
9851         Part of fix for PR ada/9406
9852         * gnat_ug.texi (Binder output file): Grammar fix.
9853
9854 2003-02-18  Ben Elliston  <bje@redhat.com>
9855
9856         PR other/7350
9857         * 5qtaprop.adb (Sleep): Fix typo in comment.
9858
9859 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
9860
9861         * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
9862         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
9863         gnat_ug_wnt.texi: Regenerate.
9864
9865 2003-02-03  Christian Cornelssen <ccorn@cs.tu-berlin.de>
9866
9867         * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
9868         be created if necessary.
9869         (ada.install-common): Let $(DESTDIR)$(bindir) be created
9870         if necessary.  Remove erroneous and redundant gnatchop
9871         installation commands.  Test for gnatdll before attempting
9872         to install it.
9873         (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
9874         and gnatdll from all plausible locations.
9875
9876 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
9877
9878         * utils2.c (build_unary_op): Don't check flag_volatile.
9879         * gnat_ug.texi: Remove -fvolatile from example.
9880         * gnat_ug_vxw.texi: Likewise.
9881
9882 2003-01-29  Laurent Guerby <guerby@acm.org>
9883
9884         PR ada/8344
9885         * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
9886         * Makefile.in: match previous change.
9887         * Make-lang.in: match previous change.
9888
9889 2003-01-29      Joel Sherrill <joel@OARcorp.com>
9890
9891         * 5rosinte.ads: Add SIGXCPU.
9892         * 5rtpopsp.adb: New file.
9893         * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
9894         * Makefile.in: Recognize more RTEMS targets and add the RTEMS
9895         specific file 5rtpopsp.adb.
9896         * adaint.h: Add include of <stdio.h> when target is RTEMS.  This
9897         is likely needed for all newlib targets.
9898         * init.c: Add RTEMS specific version of __gnat_initialize().
9899
9900 2003-01-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9901
9902         * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
9903
9904 2003-01-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9905
9906         * init.c (__gnat_error_handler): Make msg const.
9907
9908         * gmem.c (convert_addresses): Move declaration ...
9909         * adaint.h: ... here.
9910         * adaint.c (convert_addresses): Adapt addrs type to match
9911         prototype.
9912
9913         * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
9914
9915 2003-01-24  Andreas Schwab  <schwab@suse.de>
9916
9917         * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
9918         size_t to avoid warning.
9919
9920 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
9921
9922         * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
9923
9924 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
9925
9926         * gnat_rm.texi: Remove RCS version number.
9927
9928         * ada-tree.h (union lang_tree_node): Add chain_next option.
9929
9930 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
9931
9932         * Make-lang.in (ada.install-info, ada.install-common,
9933         ada.uninstall): Prepend $(DESTDIR) to the destination
9934         directory in all (un)installation commands.
9935         * Makefile.in (install-gnatlib, install-rts): Ditto.
9936
9937 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
9938
9939         * gnat_rm.texi, gnat_ug.texi: Use @copying.
9940         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
9941         gnat_ug_wnt.texi: Regenerate.
9942
9943 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
9944
9945         * gnat_rm.texi: Include gcc-common.texi.  Use GCC version number
9946         only.
9947         * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
9948         $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
9949         $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
9950         ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
9951         ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
9952         $(srcdir)/doc/include/gcc-common.texi.
9953
9954 2002-12-15   Geert Bosch <bosch@gnat.com>
9955
9956         * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
9957
9958 2002-12-14   Geert Bosch <bosch@gnat.com>
9959
9960         * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
9961         case of a body created for a Renaming_As_Body, on which
9962         conformance checks are not performed. Fixes PR ada/5690.
9963
9964 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
9965
9966         * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
9967         utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
9968         not already included.
9969         * Make-lang.in: Update dependencies.
9970
9971 2002-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
9972         * adaint.c (__gnat_tmp_name): Better, but good enough for now,
9973         solution to buffer overflow bug on GNU/Linux.
9974
9975 2002-11-14  Nathanael Nerode  <neroden@gcc.gnu.org>
9976         Closes PR ada/5856 and PR ada/6919 !
9977         * bindgen.adb: Remove all references to Public_Version.
9978         * comperr.adb: Remove all references to Public_Version and
9979         GNATPRO_Version; correct bug reporting instructions.
9980         * comperr.ads: Change to match bug box.
9981         * gnatvsn.ads: Remove all references to Public version and
9982         GNATPRO version.
9983
9984 2002-11-13  Nathanael Nerode  <neroden@gcc.gnu.org>
9985         PR ada/6919
9986         * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
9987         GNU/Linux.
9988
9989         PR ada/6558
9990         * config-lang.in: Remove diff_excludes.
9991
9992 2002-11-05  Graham Stott  <graham.stott@btinternet.com>
9993         PR ada/8358
9994         * trans.c (gnu_pending_elaboration_lists): New GC root.
9995         (build_unit_elab): Use..
9996
9997 2002-10-30   Geert Bosch <bosch@gnat.com>
9998         PR ada/6558
9999         * misc.c : Include optabs.h
10000
10001         * Make-lang.in (misc.o): Add dependency on optabs.h
10002
10003 2002-10-29   Geert Bosch <bosch@gnat.com>
10004         PR ada/6558
10005         * Make-lang.in (gnatbind): Depend on CONFIG_H
10006
10007 2002-10-29  Geert bosch  <bosch@gnat.com>
10008         PR ada/6558
10009         * misc.c: Unrevert misc.c (1.13)
10010
10011 2002-10-28  Nathanael Nerode  <neroden@gcc.gnu.org>
10012
10013         * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
10014         maintainership comments.
10015
10016 2002-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
10017         PR ada/5904
10018         * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
10019         5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
10020         5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
10021         7staprop.adb: Correct statements in comments about
10022         maintainership of GNAT.
10023
10024         PR ada/5904
10025         * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
10026         gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
10027         osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
10028         osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
10029         s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
10030         s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
10031         sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
10032         switch-c.ads switch-m.adb switch-m.ads: Correct statements in
10033         comments about maintainership of GNAT.
10034
10035         PR ada/6919 (forward port of patch for PR ada/5904)
10036         * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
10037         4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
10038         4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
10039         4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
10040         4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
10041         4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
10042         4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
10043         52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
10044         5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
10045         5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
10046         5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
10047         5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
10048         5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
10049         5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
10050         5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
10051         5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
10052         5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
10053         5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
10054         5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
10055         5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
10056         5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
10057         5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
10058         5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
10059         5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
10060         5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
10061         5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
10062         5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
10063         5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
10064         7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
10065         a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
10066         a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
10067         a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
10068         a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
10069         a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
10070         a-except.adb a-except.ads a-excpol.adb a-exctra.adb
10071         a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
10072         a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
10073         a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
10074         a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
10075         a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
10076         a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
10077         a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
10078         a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
10079         a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
10080         a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
10081         a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
10082         a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
10083         a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
10084         a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
10085         a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
10086         a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
10087         a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
10088         a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
10089         a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
10090         a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
10091         a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
10092         a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
10093         a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
10094         a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
10095         a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
10096         a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
10097         a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
10098         a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
10099         a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
10100         a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
10101         a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
10102         a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
10103         a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
10104         adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
10105         alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
10106         back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
10107         binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
10108         bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
10109         ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
10110         csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
10111         cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
10112         debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
10113         einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
10114         errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
10115         exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
10116         exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
10117         exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
10118         exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
10119         exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
10120         exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
10121         exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
10122         exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
10123         exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
10124         exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
10125         exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
10126         exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
10127         exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
10128         final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
10129         fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
10130         freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
10131         g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
10132         g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
10133         gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
10134         gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
10135         gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
10136         gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
10137         gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
10138         gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
10139         i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
10140         i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
10141         i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
10142         i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
10143         impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
10144         itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
10145         lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
10146         lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
10147         lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
10148         lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
10149         makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
10150         namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
10151         nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
10152         osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
10153         par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
10154         par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
10155         par-endh.adb par-labl.adb par-load.adb par-prag.adb
10156         par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
10157         prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
10158         prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
10159         prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
10160         prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
10161         prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
10162         prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
10163         repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
10164         rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
10165         s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
10166         s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
10167         s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
10168         s-direio.adb s-direio.ads s-except.ads s-exctab.adb
10169         s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
10170         s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
10171         s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
10172         s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
10173         s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
10174         s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
10175         s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
10176         s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
10177         s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
10178         s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
10179         s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
10180         s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
10181         s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
10182         s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
10183         s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
10184         s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
10185         s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
10186         s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
10187         s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
10188         s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
10189         s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
10190         s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
10191         s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
10192         s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
10193         s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
10194         s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
10195         s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
10196         s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
10197         s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
10198         s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
10199         s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
10200         s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
10201         s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
10202         s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
10203         s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
10204         s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
10205         s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
10206         s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
10207         s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
10208         s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
10209         s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
10210         s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
10211         s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
10212         s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
10213         s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
10214         s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
10215         s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
10216         s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
10217         s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
10218         s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
10219         s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
10220         s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
10221         s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
10222         s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
10223         s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
10224         s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
10225         s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
10226         s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
10227         s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
10228         s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
10229         s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
10230         s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
10231         s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
10232         s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
10233         s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
10234         s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
10235         s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
10236         s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
10237         s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
10238         s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
10239         s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
10240         s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
10241         s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
10242         s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
10243         s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
10244         s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
10245         s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
10246         s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
10247         scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
10248         sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
10249         sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
10250         sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
10251         sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
10252         sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
10253         sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
10254         sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
10255         sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
10256         sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
10257         sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
10258         sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
10259         sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
10260         sem_type.adb sem_type.ads sem_util.adb sem_util.ads
10261         sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
10262         sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
10263         sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
10264         sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
10265         snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
10266         stringt.ads stringt.h style.adb style.ads stylesw.adb
10267         stylesw.ads switch.adb switch.ads sysdep.c system.ads
10268         table.adb table.ads targparm.adb targparm.ads targtyps.c
10269         tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
10270         tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
10271         treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
10272         types.adb types.ads types.h uintp.adb uintp.ads uintp.h
10273         uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
10274         usage.ads utils.c utils2.c validsw.adb validsw.ads
10275         widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
10276         xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
10277         xtreeprs.adb: Correct statements in comments about maintainership
10278         of GNAT.
10279
10280 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
10281
10282         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
10283         * Makefile.in (TOOLS_LIBS): Add ../../version.o.
10284         * gnatvsn.ads: Gnat_Version_String is now a function.
10285         * gnatvsn.adb: New file.  When asked for Gnat_Version_String,
10286         copy the C version_string into a String and return it.
10287         * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
10288         gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
10289         Remove pragma Ident (Gnat_Version_String).  If this was the
10290         sole use of package Gnatvsn, remove the with statement too.
10291         * gnat1drv.adb: Tweak -gnatv output.
10292
10293 2002-09-17  Richard Henderson  <rth@redhat.com>
10294
10295         * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
10296         * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
10297         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
10298         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
10299         * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
10300         and real_2expN instead of a loop.
10301         * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
10302         (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
10303
10304 2002-08-25  Andre Leis <a.leis@gmx.net>
10305             David Billinghurst (David.Billinghurst@riotinto.com>
10306
10307         * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
10308
10309 2002-08-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10310
10311         * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
10312         Remove $(CONFIG_H) dependency.
10313
10314 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
10315
10316         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
10317
10318 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10319
10320         * adadecode.c (ada_demangle): Use xstrdup in lieu of
10321         xmalloc/strcpy.
10322         * misc.c (gnat_decode_option): Likewise.
10323
10324 2002-07-15  Florian Weimer  <fw@deneb.enyo.de>
10325
10326         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
10327         function approach did not work well because of a side effect (the
10328         function call could reallocate the table which was being indexed
10329         using its result). Fixes ada/4851. [RESURRECTED]
10330
10331 2002-07-01  Roger Sayle  <roger@eyesopen.com>
10332
10333         * ada/utils.c (builtin_function): Accept an additional parameter.
10334
10335 2002-06-28  Andreas Jaeger  <aj@suse.de>
10336
10337         PR ada/7144
10338         * Makefile.in: Fix typo in comment, patch by Adrian Knoth
10339         <adi@thur.de>.
10340
10341 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10342
10343         * Makefile.in (SHELL): Set to @SHELL@.
10344
10345 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10346
10347         * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
10348         array size calculation.
10349
10350 2002-06-04  Andreas Jaeger  <aj@suse.de>
10351
10352         * Make-lang.in (gnatbind): Readd rule that has been lost in last
10353         patch.
10354
10355 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
10356
10357         Merge from pch-branch:
10358
10359         * config-lang.in (gtfiles): Add ada-tree.h.
10360         * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
10361         (SET_TYPE_MODULUS): New.
10362         (SET_TYPE_INDEX): New.
10363         (SET_TYPE_DIGITS_VALUE): New.
10364         (SET_TYPE_RM_SIZE): New.
10365         (SET_TYPE_UNCONSTRAINED_ARRAY): New.
10366         (SET_TYPE_ADA_SIZE): New.
10367         (SET_TYPE_ACTUAL_BOUNDS): New.
10368         (SET_DECL_CONST_CORRESPONDING_VAR): New.
10369         (SET_DECL_ORIGINAL_FIELD): New.
10370         (TREE_LOOP_ID): Correct typo.
10371         * decl.c: Use new macros.
10372         * utils.c: Include debug.h, use new macros.
10373         * utils2.c: Use new macros.
10374
10375         * ada-tree.h: Update all macros for new tree description.
10376         (struct tree_loop_id): New.
10377         (union lang_tree_node): New.
10378         (struct lang_decl): New.
10379         (struct lang_type): New.
10380         * misc.c (gnat_mark_tree): Delete.
10381         (LANG_HOOKS_MARK_TREE): Delete.
10382         * trans.c (tree_transform): No longer any need to cast
10383         for TREE_LOOP_ID.
10384
10385         * utils.c (struct language_function): New dummy structure.
10386
10387         * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
10388         (misc.o): Likewise.
10389         (utils.o): Likewise; also gtype-ada.h.
10390         * Make-lang.in (gnat1): Add dependency on s-gtype.
10391         (gnatbind): Add dependency on $(CONFIG_H).
10392         * utils.c: Correct last #include.
10393         (stuct e_stack): Remove unnecessary 'static'.
10394         (mark_e_stack): Remove unused prototype.
10395
10396         * scn-nlit.adb: Remove whitespace after version number to
10397         keep lines under 80 chars.
10398         * snames.adb: Likewise.
10399         * treepr.ads: Likewise.
10400
10401         * Makefile.in (decl.o): Include gt-ada-<filename>.h.
10402         (misc.o): Likewise.
10403         (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
10404         * config-lang.in (gtfiles): New.
10405         * decl.c: Use gengtype for roots.
10406         * gigi.h: Use gengtype for roots.
10407         * trans.c: Use gengtype for roots.
10408         * utils.c: Use gengtype for roots, marking.  Include gtype-ada.h.
10409
10410 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
10411
10412         * misc.c (gnat_init): Adjust setting of internal_error_function.
10413
10414 2002-06-01  Joseph S. Myers  <jsm28@cam.ac.uk>
10415
10416         * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
10417         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
10418         gnat_ug_wnt.texi: Regenerate.
10419
10420 2002-05-31  Florian Weimer  <fw@deneb.enyo.de>
10421
10422         * 5ntaprop.adb (with System.OS_Primitives): Remove.
10423
10424         * cstreams.c (max_path_len): Move from here ...
10425         * adaint.c (__gnat_max_path_len): ... to here.
10426         * adaint.c (__gnat_max_path_len): Declare.
10427         * g-dirope.adb (Max_Path): Adjust.
10428         * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
10429         * i-cstrea.ads (max_path_len): Adjust.
10430         * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
10431         * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
10432
10433         * Makefile.in, Make-lang.in: Documentation is now built in
10434         Make-lang.in.  Store Info and generated Texinfo files in the
10435         source directory.
10436         * gnat_ug.texi: Remove CVS keywords, correct version number.
10437         Set file name correctly.
10438
10439         * gnat_ug_*.texi: Add.
10440         * .cvsignore: Ignore generated Texinfo files.
10441
10442 2002-05-30  Zack Weinberg  <zack@codesourcery.com>
10443
10444         * ada.h: Add MI guard macro.
10445         (SUBTYPE): Define constants with an anonymous enum, not static
10446         const variables.
10447         (IN): Cast constants to appropriate type before use.
10448
10449 2002-05-26  Joseph S. Myers  <jsm28@cam.ac.uk>
10450
10451         * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
10452         (experimental)".
10453
10454 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10455
10456         * Make-lang.in (CP, ECHO): Copy from Makefile.in.
10457         (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
10458         (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
10459         (ALL_ADA_CFLAGS): Likewise.
10460         (ADA_INCLUDES): Likewise.
10461         Adapt for new working dir.
10462         (GNATBIND): Use Makefile.in version.
10463         (.SUFFIXES): Copy from Makefile.in.
10464         (ada-warn): Define.
10465         (.adb.o, .ads.o): Copy from Makefile.in.
10466         Added $(OUTPUT_OPTION).
10467         (GNAT1_C_OBJS): Moved from Makefile.in.
10468         Prefix with ada subdir.
10469         (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
10470         (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
10471         Adapt for new working dir.
10472         (EXTRA_GNATBIND_OBJS): Likewise.
10473         (ADA_BACKEND): Moved from Makefile.in.
10474         Renamed to avoid conflict with global BACKEND.
10475         Use that one.
10476         (TARGET_ADA_SRCS): Moved from Makefile.in.
10477         (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
10478         Use ADA_BACKEND.
10479         (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
10480         (ada_extra_files): Moved from Makefile.in.
10481         Prefix with ada subdir.
10482         (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
10483         (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
10484         (ada/nmake.ads): Likewise.
10485         (update-sources): Moved from Makefile.in.
10486         Prefix with ada subdir.
10487         (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
10488         (ADA_TREE_H): Likewise.
10489         (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
10490         (ada/memtrack.o): Likewise.
10491         (ada/adadecode.o): Likewise.
10492         Update dependencies.
10493         (ada/adaint.o): New.
10494         (ada/argv.o): Moved from Makefile.in.
10495         Prefix with ada subdir.
10496         Update dependencies.
10497         (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
10498         (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
10499         (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
10500         Prefix with ada subdir.
10501         (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
10502         (GNAT DEPENDENCIES): Regenerate.
10503         * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
10504         toplevel Makefile.in.
10505         (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
10506         (TARGET_ADA_SRCS): Removed.
10507         (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
10508         (GNATBIND_OBJS): Likewise.
10509         (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
10510         (BACKEND): Removed.
10511         (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
10512         (TREE_H): Likewise.
10513         (ada_extra_files): Likewise.
10514         (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
10515         (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
10516         (update-sources): Likewise.
10517         (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
10518         (ADA_TREE_H): Likewise.
10519         (adadecoce.o): Likewise.
10520         (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
10521         (GNAT DEPENDENCIES): Likewise.
10522
10523 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10524
10525         * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
10526         * Makefile.in: Likewise.
10527
10528 2002-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10529
10530         * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
10531         Restore $(CONFIG_H) and prefix.o dependencies.
10532         (ada.stage[1-4]): Depend on stage?-start.
10533
10534         * Makefile.in (b_gnatb.c): Depend on interfac.o.
10535
10536 2002-05-02  Jim Wilson  <wilson@redhat.com>
10537
10538         * utils.c (finish_record_type): Change record_size to record_type.
10539
10540 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10541
10542         * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
10543         (ALL_ADA_CFLAGS): Define.  Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
10544         ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
10545
10546 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
10547
10548         * misc.c (gnat_parse_file): Update.
10549
10550 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
10551
10552         * misc.c (gnat_init): Don't set lang_attribute_common.
10553
10554 2002-04-21  Joseph S. Myers  <jsm28@cam.ac.uk>
10555
10556         * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
10557
10558 2002-04-21  Florian Weimer  <fw@deneb.enyo.de>
10559
10560         * gnat_ug.texi: New file.
10561
10562         * gnat_rm.texi: Do not include texiplus.texi.  Include fdl.texi
10563         instead of gfdl.texi
10564
10565         * xgnatug.adb, ug_words: New files.
10566
10567         * Makefile.in (doc, dvi): New targets.  Build gnat_ug_*,
10568         gnat_rm and gnat-style manuals.
10569
10570 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
10571
10572         * gigi.h (incomplete_type_error): Remove.
10573         * utils.c (incomplete_type_error): Remove.
10574
10575 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
10576
10577         * trans.c (tree_transform): Add has_scope argument to
10578         expand_start_stmt_expr.
10579
10580 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
10581
10582         * gigi.h (truthvalue_conversion): Rename.
10583         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
10584         * trans.c (tree_transform): Update.
10585         * utils2.c (truthvalue_conversion): Rename, update.
10586         (build_binary_op, build_unary_op): Update.
10587
10588 2002-04-04  Laurent Guerby  <guerby@acm.org>
10589
10590         * make.adb: Implement -margs, remove restriction about file name placement.
10591         * makeusg.adb: Documentation update.
10592         * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
10593         * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
10594
10595 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
10596
10597         * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
10598         (builtin_function): Similarly.
10599
10600 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
10601
10602         * decl.c (gnat_to_gnu_entity): Update.
10603         * gigi.h (mark_addressable): Rename.
10604         * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
10605         * trans.c (tree_transform): Update.
10606         * utils.c (create_var_decl): Update.
10607         * util2.c (build_binary_op, build_unary_op,
10608         fill_vms_descriptor): Update.
10609         (mark_addressable): Rename, update.
10610
10611 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
10612
10613         * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
10614         Rename.
10615         * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
10616         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
10617         * trans.c (tree_transform, convert_with_check): Update.
10618         * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
10619         Rename.
10620
10621 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
10622
10623         * gigi.h (finish_incomplete_decl): Rename.
10624         * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
10625         * utils.c (gnat_init_decl_processing): Don't set hook.
10626         (finish_incomplete_decl): Rename.
10627
10628 2002-03-29  Andreas Schwab  <schwab@suse.de>
10629
10630         * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
10631         directory.
10632
10633 2001-03-28  Robert Dewar <dewar@gnat.com>
10634
10635         * checks.ads:
10636         (Remove_Checks): New procedure
10637
10638         * checks.adb:
10639         (Remove_Checks): New procedure
10640
10641         * exp_util.adb:
10642         Use new Duplicate_Subexpr functions
10643         (Duplicate_Subexpr_No_Checks): New procedure
10644         (Duplicate_Subexpr_No_Checks_Orig): New procedure
10645         (Duplicate_Subexpr): Restore original form (checks duplicated)
10646         (Duplicate_Subexpr): Call Remove_Checks
10647
10648         * exp_util.ads:
10649         (Duplicate_Subexpr_No_Checks): New procedure
10650         (Duplicate_Subexpr_No_Checks_Orig): New procedure
10651         Add 2002 to copyright notice
10652
10653         * sem_util.adb: Use new Duplicate_Subexpr functions
10654
10655         * sem_eval.adb:
10656         (Eval_Indexed_Component): This is the place to call
10657         Constant_Array_Ref and to replace the value. We simply merge
10658         the code of this function in here, since it is now no longer
10659         used elsewhere. This fixes the problem of the back end not
10660         realizing we were clever enough to see that this was
10661         constant.
10662         (Expr_Val): Remove call to Constant_Array_Ref
10663         (Expr_Rep_Val): Remove call to Constant_Array_Ref
10664         Minor reformatting
10665         (Constant_Array_Ref): Deal with string literals (patch
10666         suggested by Zack Weinberg on the gcc list)
10667
10668 2001-03-28  Ed Schonberg <schonber@gnat.com>
10669
10670         * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
10671         Duplicate_Subexpr_Move_Checks.
10672
10673         * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
10674         Duplicate_Subexpr_Move_Checks.
10675
10676         * sem_eval.adb: (Constant_Array_Ref): Verify that constant
10677         value of array exists before retrieving it (it may a private
10678         protected component in a function).
10679
10680 2002-03-28   Geert Bosch <bosch@gnat.com>
10681
10682         * prj-pp.adb : New file.
10683
10684         * prj-pp.ads : New file.
10685
10686 2002-03-28  Andreas Jaeger  <aj@suse.de>
10687
10688         * Makefile.in (stamp-sdefault): Fix path for Makefile.
10689
10690 2002-03-28  Neil Booth  <neil@daikokuya.demon.co.uk>
10691
10692         * misc.c (gnat_expand_expr): Move prototype.
10693
10694 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
10695
10696         * misc.c (insert_default_attributes): Remove.
10697
10698 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
10699
10700         * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
10701         (gnat_init): Don't set hook.
10702         (gnat_expand_expr): Fix prototype.
10703
10704 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
10705
10706         * misc.c (ggc_p): Remove.
10707
10708 2002-03-27  Geert Bosch  <bosch@gnat.com>
10709
10710         * prj-makr.ads, prj-makr.adb : New files.
10711
10712 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
10713
10714         * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
10715         (lang_mark_tree): Make static, rename.
10716
10717 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
10718
10719         * misc.c (maybe_build_cleanup): Remove.
10720
10721 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
10722
10723         * gigi.h (yyparse): Remove.
10724
10725 2002-03-23  Florian Weimer  <fw@deneb.enyo.de>
10726
10727         * gnat_rm.texi: Sync with ACT version.
10728           (From Ben Brosgol <brosgol@gnat.com>)
10729
10730 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
10731
10732         * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
10733         (gnat_init): Remove old hook.
10734
10735 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
10736
10737         * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
10738         (yyparse): Rename gnat_parse_file.
10739
10740 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
10741
10742         Delete all lines containing "$Revision:".
10743         * xeinfo.adb: Don't look for revision numbers.
10744         * xnmake.adb: Likewise.
10745         * xsinfo.adb: Likewise.
10746         * xsnames.adb: Likewise.
10747         * xtreeprs.adb: Likewise.
10748
10749 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10750
10751         * misc.c (gnat_tree_code_type, gnat_tree_code_length,
10752         gnat_tree_code_name): Delete.
10753         (tree_code_type, tree_code_length, tree_code_name): Define.
10754         (gnat_init): Don't try to copy into the various tree_code
10755         arrays.
10756
10757 2002-03-11  Richard Henderson  <rth@redhat.com>
10758
10759         * Makefile.in (.NOTPARALLEL): Add fake tag.
10760
10761 2002-03-07  Geert Bosch  <bosch@gnat.com>
10762
10763         * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
10764         s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
10765         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
10766         switch-m.adb, switch-m.ads : New files.
10767
10768 2002-03-07  Geert Bosch  <bosch@gnat.com>
10769
10770         * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
10771         4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
10772         4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
10773         4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
10774         5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
10775         5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
10776         5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
10777         5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
10778         5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
10779         5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
10780         5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
10781         5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
10782         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
10783         5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
10784         5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
10785         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
10786         5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
10787         5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
10788         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
10789         5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
10790         7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
10791         Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
10792         a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
10793         a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
10794         a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
10795         a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
10796         a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
10797         a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
10798         a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
10799         adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
10800         atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
10801         bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
10802         csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
10803         einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
10804         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
10805         exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
10806         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
10807         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
10808         exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
10809         exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
10810         expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
10811         freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
10812         g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
10813         g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
10814         g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
10815         g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
10816         g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
10817         g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
10818         gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
10819         gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
10820         gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
10821         i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
10822         impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
10823         lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
10824         lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
10825         memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
10826         mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
10827         nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
10828         output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
10829         par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
10830         prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
10831         prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
10832         prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
10833         rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
10834         s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
10835         s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
10836         s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
10837         s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
10838         s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
10839         s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
10840         s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
10841         s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
10842         s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
10843         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
10844         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
10845         s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
10846         s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
10847         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
10848         s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
10849         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
10850         sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
10851         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
10852         sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
10853         sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
10854         sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
10855         sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
10856         sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
10857         sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
10858         sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
10859         snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
10860         stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
10861         table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
10862         tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
10863         treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
10864         types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
10865         utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
10866         xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
10867
10868         * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
10869         g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
10870         mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
10871         osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
10872
10873         * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
10874         5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
10875
10876         * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
10877         to mdll-fil.ad[bs] and mdll-util.ad[bs]
10878
10879         * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
10880         from mdllfile.ad[bs] and mdlltool.ad[bs]
10881
10882 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10883
10884         * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
10885         lieu of explicit sizeof/sizeof.
10886
10887 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
10888
10889         * misc.c (copy_lang_decl): Remove.
10890
10891 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
10892
10893         * misc.c: Delete traditional-mode-related code copied from the
10894         C front end but not used, or used only to permit the compiler
10895         to link.
10896
10897 2002-02-07  Richard Henderson  <rth@redhat.com>
10898
10899         * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
10900         * adaint.h (__gnat_to_gm_time): Update prototype.
10901
10902 2002-01-30  Richard Henderson  <rth@redhat.com>
10903
10904         * trans.c (tree_transform) [N_Loop_Statement]: Use
10905         expand_exit_loop_top_cond.
10906
10907 2001-12-23  Richard Henderson  <rth@redhat.com>
10908
10909         * utils.c (end_subprog_body): Push GC context around
10910         rest_of_compilation for nested functions.
10911
10912 2001-12-23  Richard Henderson  <rth@redhat.com>
10913
10914         * 5nosinte.ads: Get definition of "int" from Interfaces.C.
10915
10916 2001-12-23  Florian Weimer  <fw@deneb.enyo.de>
10917
10918         * gnat-style.texi (Declarations and Types): Remove ancient style
10919         rule which was mandated by code generation issues.
10920
10921         * gnat-style.texi (header): Add @dircategory, @direntry.
10922         (title page): Remove date.
10923         (general) Add @./@: where approriate, and two spaces after the
10924         full stop at the end of a sentence.  Use @samp markup when
10925         referring concrete lexical entities (keywords, attribute names
10926         etc.), and @syntax for ARM grammar elements. Use @r for English
10927         text in comments.  Use @emph for emphasis.  Change "if-statements"
10928         etc. to "if statements" (without @samp). Break long lines.  Make
10929         casing of section names consistent.
10930         (Identifiers): Use @samp markup for variable names.
10931         (Comments): Use @samp markup for comment characters. Line-end
10932         comments may follow any Ada code, not just statements.  Fix
10933         misspelling of "Integer" as "integer".
10934         (Loop statements): Do not use variable name "I", use "J".
10935         (Subprogram Declarations): Document alignment.
10936         (Subprogram Bodies, Block statements): Document empty line before
10937         "begin".
10938
10939 2001-12-22  Florian Weimer  <fw@deneb.enyo.de>
10940
10941         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
10942         function approach did not work well because of a side effect (the
10943         function call could reallocate the table which was being indexed
10944         using its result). Fixes ada/4851.
10945
10946 2001-12-19  Robert Dewar <dewar@gnat.com>
10947
10948         * bindgen.adb: Minor reformatting
10949
10950         * cstand.adb: Minor reformatting
10951
10952         * fmap.adb: Minor reformatting
10953         Change name from Add for Add_To_File_Map (Add is much too generic)
10954         Change Path_Name_Of to Mapped_Path_Name
10955         Change File_Name_Of to Mapped_File_Name
10956         Fix copyright dates in header
10957
10958         * fmap.ads:
10959         Change name from Add for Add_To_File_Map (Add is much too generic)
10960         Change Path_Name_Of to Mapped_Path_Name
10961         Change File_Name_Of to Mapped_File_Name
10962         Fix copyright dates in header
10963
10964         * fname-uf.adb: Minor reformatting.  New names of stuff in Fmap.
10965         Add use clause for Fmap.
10966
10967         * make.adb: Minor reformatting
10968
10969         * osint.adb: Minor reformatting.  Change of names in Fmap.
10970         Add use clause for Fmap.
10971
10972         * prj-env.adb: Minor reformatting
10973
10974         * prj-env.ads: Minor reformatting
10975
10976         * switch.adb: Minor reformatting.  Do proper raise of Bad_Switch if
10977         error found (there were odd exceptions to this general rule in
10978         -gnatec/-gnatem processing)
10979
10980 2001-12-19  Olivier Hainque <hainque@gnat.com>
10981
10982         * raise.c (__gnat_eh_personality): Exception handling personality
10983         routine for Ada.  Still in rough state, inspired from the C++ version
10984         and still containing a bunch of debugging artifacts.
10985         (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
10986         inspired from the C++ library.
10987
10988         * raise.c (eh_personality): Add comments. Part of work for the GCC 3
10989         exception handling integration.
10990
10991 2001-12-19  Arnaud Charlet <charlet@gnat.com>
10992
10993         * Makefile.in: Remove use of 5smastop.adb which is obsolete.
10994         (HIE_SOURCES): Add s-secsta.ad{s,b}.
10995         (HIE_OBJS): Add s-fat*.o
10996         (RAVEN_SOURCES): Remove files that are no longer required. Add
10997         interrupt handling files.
10998         (RAVEN_MOD): Removed, no longer needed.
10999
11000 2001-12-19  Robert Dewar <dewar@gnat.com>
11001
11002         * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
11003         Add 2001 to copyright date
11004
11005         * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
11006         need to force universal inlining for these cases.
11007
11008 2001-12-19  Arnaud Charlet <charlet@gnat.com>
11009
11010         * s-taprob.adb: Minor clean ups so that this unit can be used in
11011         Ravenscar HI.
11012
11013         * exp_ch7.adb: Allow use of secondary stack in HI mode.
11014         Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
11015
11016 2001-12-19  Vincent Celier <celier@gnat.com>
11017
11018         * prj-tree.ads (Project_Node_Record): Add comments for components
11019         Pkg_Id and Case_Insensitive.
11020
11021 2001-12-19  Pascal Obry <obry@gnat.com>
11022
11023         * g-socket.adb: Minor reformatting. Found while reading code.
11024
11025 2001-12-19  Robert Dewar <dewar@gnat.com>
11026
11027         * prj-tree.ads: Minor reformatting
11028
11029 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
11030
11031         * config-lang.in (diff_excludes): Remove.
11032
11033 2001-12-17  Ed Schonberg <schonber@gnat.com>
11034
11035         * sem_res.adb (Resolve_Selected_Component): do not generate a
11036         discriminant check if the selected component is a component of
11037         the argument of an initialization procedure.
11038
11039         * trans.c (tree_transform, case of arithmetic operators): If result
11040         type is private, the gnu_type is the base type of the full view,
11041         given that the full view itself may be a subtype.
11042
11043 2001-12-17  Robert Dewar <dewar@gnat.com>
11044
11045         * sem_res.adb: Minor reformatting
11046
11047         * trans.c (tree_transform, case N_Real_Literal): Add missing third
11048         parameter in call to Machine (unknown horrible effects from this
11049         omission).
11050
11051         * urealp.h: Add definition of Round_Even for call to Machine
11052         Add third parameter for Machine
11053
11054 2001-12-17  Ed Schonberg <schonber@gnat.com>
11055
11056         * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
11057         predefined units in No_Run_Time mode.
11058
11059 2001-12-17  Richard Kenner <kenner@gnat.com>
11060
11061         * misc.c (insn-codes.h): Now include.
11062
11063 2001-12-17  Olivier Hainque <hainque@gnat.com>
11064
11065         * a-except.adb: Preparation work for future integration of the GCC 3
11066         exception handling mechanism
11067         (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
11068         to factorize previous code sequences and make them externally callable,
11069         e.g. for the Ada personality routine when the GCC 3 mechanism is used.
11070         (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
11071         Use the new notification routines.
11072
11073 2001-12-17  Emmanuel Briot <briot@gnat.com>
11074
11075         * prj-tree.ads (First_Choice_Of): Document the when others case
11076
11077 2001-12-17  Arnaud Charlet <charlet@gnat.com>
11078
11079         * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
11080         HI-E mode, in order to support Ravenscar profile properly.
11081
11082         * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
11083         mode on 32 bits targets.
11084
11085 2001-12-17  Vincent Celier <celier@gnat.com>
11086
11087         * fmap.adb: Initial version.
11088
11089         * fmap.ads: Initial version.
11090
11091         * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
11092         If search is successfully done, add to mapping.
11093
11094         * frontend.adb: Initialize the mapping if a -gnatem switch was used.
11095
11096         * make.adb:
11097         (Gnatmake): Add new local variable Mapping_File_Name.
11098          Create mapping file when using project file(s).
11099          Delete mapping file before exiting.
11100
11101         * opt.ads (Mapping_File_Name): New variable
11102
11103         * osint.adb (Find_File): Use path name found in mapping, if any.
11104
11105         * prj-env.adb (Create_Mapping_File): New procedure
11106
11107         * prj-env.ads (Create_Mapping_File): New procedure.
11108
11109         * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
11110         (Mapping_File)
11111
11112         * usage.adb: Add entry for new switch -gnatem.
11113
11114         * Makefile.in: Add dependencies for fmap.o.
11115
11116 2001-12-17  Ed Schonberg <schonber@gnat.com>
11117
11118         * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
11119         is a package instantiation rewritten as a package body.
11120         (Install_Withed_Unit): Undo previous change, now redundant.
11121
11122 2001-12-17  Gary Dismukes <dismukes@gnat.com>
11123
11124         * layout.adb:
11125         (Compute_Length): Move conversion to Unsigned to callers.
11126         (Get_Max_Size): Convert Len expression to Unsigned after calls to
11127         Compute_Length and Determine_Range.
11128         (Layout_Array_Type): Convert Len expression to Unsigned after calls to
11129         Compute_Length and Determine_Range.
11130         Above changes fix problem with length computation for supernull arrays
11131         where Max (Len, 0) wasn't getting applied due to the Unsigned
11132         conversion used by Compute_Length.
11133
11134 2001-12-17  Arnaud Charlet <charlet@gnat.com>
11135
11136         * rtsfind.ads:
11137         (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
11138          System.Secondary_Stack.
11139         (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
11140          in HI-E mode.
11141         Remove unused entity RE_Exception_Data.
11142
11143         * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
11144
11145         * rident.ads (No_Secondary_Stack): New restriction.
11146
11147 2001-12-17  Joel Brobecker <brobecke@gnat.com>
11148
11149         * gnat_rm.texi: Fix minor typos. Found while reading the section
11150         regarding "Bit_Order Clauses" that was sent to a customer.
11151         Very interesting documentation!
11152
11153 2001-12-17  Robert Dewar <dewar@gnat.com>
11154
11155         * sem_case.adb (Choice_Image): Avoid creating improper character
11156         literal names by using the routine Set_Character_Literal_Name. This
11157         fixes bombs in certain error message cases.
11158
11159 2001-12-17  Arnaud Charlet <charlet@gnat.com>
11160
11161         * a-reatim.adb: Minor reformatting.
11162
11163 2001-12-17  Ed Schonberg <schonber@gnat.com>
11164
11165         * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
11166         case where the formal is an extension of another formal in the current
11167         unit or in a parent generic unit.
11168
11169 2001-12-17  Arnaud Charlet <charlet@gnat.com>
11170
11171         * s-tposen.adb: Update comments.  Minor reformatting.
11172         Minor code clean up.
11173
11174         * s-tarest.adb: Update comments.  Minor code reorganization.
11175
11176 2001-12-17  Gary Dismukes <dismukes@gnat.com>
11177
11178         * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
11179         when Java_VM.
11180
11181 2001-12-17  Robert Dewar <dewar@gnat.com>
11182
11183         * exp_attr.adb: Minor reformatting
11184
11185 2001-12-17  Ed Schonberg <schonber@gnat.com>
11186
11187         * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
11188         derivations nested within a child unit: verify that the parent
11189         type is declared in an outer scope.
11190
11191 2001-12-17  Robert Dewar <dewar@gnat.com>
11192
11193         * sem_ch12.adb: Minor reformatting
11194
11195 2001-12-17  Ed Schonberg <schonber@gnat.com>
11196
11197         * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
11198         warning if current unit is a predefined one, from which bodies may
11199         have been deleted.
11200
11201 2001-12-17  Robert Dewar <dewar@gnat.com>
11202
11203         * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
11204         Fix header format. Add 2001 to copyright date.
11205
11206         * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
11207         which caused CE during compilation if checks were enabled.
11208
11209 2001-12-17  Vincent Celier <celier@gnat.com>
11210
11211         * make.adb:
11212         (Switches_Of): New function
11213         (Test_If_Relative_Path): New procedure
11214         (Add_Switches): Use new function Switches_Of
11215         (Collect_Arguments_And_Compile): Use new function Switches_Of.
11216         When using a project file, test if there are any relative
11217         search path. Fail if there are any.
11218         (Gnatmake): Only add switches for the primary directory when not using
11219         a project file. When using a project file, change directory to the
11220         object directory of the main project file. When using a project file,
11221         test if there are any relative search path. Fail if there are any.
11222         When using a project file, fail if specified executable is relative
11223         path with directory information, and prepend executable, if not
11224         specified as an absolute path, with the exec directory.  Make sure
11225         that only one -o switch is transmitted to the linker.
11226
11227         * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
11228
11229         * prj-nmsc.adb:
11230         (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
11231         when using a non standard naming scheme.
11232         (Check_Ada_Naming_Scheme): Make sure that error messages
11233         do not raise exceptions.
11234         (Is_Illegal_Append): Return True if there is no dot in the suffix.
11235         (Language_Independent_Check): Check the exec directory.
11236
11237         * prj.adb (Project_Empty): Add new component Exec_Directory
11238
11239         * prj.ads:
11240         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
11241         (Project_Data): Add component Exec_Directory
11242
11243         * snames.adb: Updated to match snames.ads revision 1.215
11244
11245         * snames.ads: Added Exec_Dir
11246
11247 2001-12-17  Robert Dewar <dewar@gnat.com>
11248
11249         * make.adb: Minor reformatting
11250
11251         * prj-nmsc.adb: Minor reformatting
11252
11253         * snames.adb: Updated to match snames.ads
11254
11255         * snames.ads: Alphebetize entries for project file
11256
11257 2001-12-17  Ed Schonberg <schonber@gnat.com>
11258
11259         * trans.c (process_freeze_entity): Do nothing if the entity is a
11260         subprogram that was already elaborated.
11261
11262 2001-12-17  Richard Kenner <kenner@gnat.com>
11263
11264         * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
11265         and Esize if object is referenced via pointer.
11266
11267 2001-12-17  Ed Schonberg <schonber@gnat.com>
11268
11269         * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
11270         is discrete before analyzing choices.
11271
11272 2001-12-17  Joel Brobecker <brobecke@gnat.com>
11273
11274         * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
11275         containing the name of the Ada Main Program. This string is mainly
11276         intended for the debugger.
11277         (Gen_Output_File_C): Do the equivalent change when generating a C file.
11278
11279 2001-12-17  Robert Dewar <dewar@gnat.com>
11280
11281         * ali.adb: Set new Dummy_Entry field in dependency entry
11282
11283         * ali.ads: Add Dummy_Entry field to source dependency table
11284
11285         * bcheck.adb (Check_Consistency): Ignore dummy D lines
11286
11287         * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
11288
11289         * lib-writ.ads: Document dummy D lines for missing files.
11290
11291         * types.ads: (Dummy_Time_Stamp): New value for non-existant files
11292
11293 2001-12-17  Robert Dewar <dewar@gnat.com>
11294
11295         * ali.adb: Type reference does not reset current file.
11296
11297         * ali.adb: Recognize and scan renaming reference
11298
11299         * ali.ads: Add spec for storing renaming references.
11300
11301         * lib-xref.ads: Add documentation for handling of renaming references
11302
11303         * lib-xref.adb: Implement output of renaming reference.
11304
11305         * checks.adb:
11306         (Determine_Range): Document local variables
11307         (Determine_Range): Make sure Hbound is initialized. It looks as though
11308          there could be a real problem here with an uninitialized reference
11309          to Hbound, but no actual example of failure has been found.
11310
11311 2001-12-17  Laurent Pautet <pautet@gnat.com>
11312
11313         * g-socket.ads:
11314         Fix comment of Shutdown_Socket and Close_Socket. These functions
11315         should not fail silently because if they are called twice, this
11316         probably means that there is a race condition in the user program.
11317         Anyway, this behaviour is consistent with the rest of this unit.
11318         When an error occurs, an exception is raised with the error message
11319         as exception message.
11320
11321 2001-12-17  Robert Dewar <dewar@gnat.com>
11322
11323         * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
11324         that it happens before modification of Sloc values for -gnatD.
11325
11326         * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
11327         so that it happens before modification of Sloc values for -gnatD.
11328
11329         * switch.adb: Minor reformatting
11330
11331 2001-12-15  Richard Henderson  <rth@redhat.com>
11332
11333         * sem_ch7.adb: Wrap comment.
11334
11335 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
11336
11337         * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
11338         5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
11339         5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
11340         5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
11341         5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
11342         7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
11343         a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
11344         a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
11345         cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
11346         exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
11347         exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
11348         g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
11349         gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
11350         make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
11351         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
11352         repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
11353         s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
11354         s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
11355         s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
11356         s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
11357         sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
11358         sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
11359         sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
11360         sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
11361         spelling errors.
11362
11363 2001-12-14  Vincent Celier <celier@gnat.com>
11364
11365         * osint.adb(Create_Debug_File): When an object file is specified,
11366         put the .dg file in the same directory as the object file.
11367
11368 2001-12-14  Robert Dewar <dewar@gnat.com>
11369
11370         * osint.adb: Minor reformatting
11371
11372         * lib-xref.adb (Output_Instantiation): New procedure to generate
11373         instantiation references.
11374
11375         * lib-xref.ads: Add documentation of handling of generic references.
11376
11377         * ali.adb (Read_Instantiation_Ref): New procedure to read
11378         instantiation references
11379
11380         * ali.ads: Add spec for storing instantiation references
11381
11382         * bindusg.adb: Minor reformatting
11383
11384         * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
11385
11386         * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
11387
11388         * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
11389
11390         * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
11391
11392         * csets.ads:
11393         Fix header format
11394         Add 2001 to copyright date
11395         Add entry for Latin-5 (Cyrillic ISO-8859-5)
11396
11397 2001-12-14  Matt Gingell <gingell@gnat.com>
11398
11399         * adaint.c: mktemp is a macro on Lynx and can not be used as an
11400         expression.
11401
11402 2001-12-14  Richard Kenner <kenner@gnat.com>
11403
11404         * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
11405         if operand is CONSTRUCTOR.
11406
11407 2001-12-14  Ed Schonberg <schonber@gnat.com>
11408
11409         * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
11410         before emiting check on right-hand side, so that exception information
11411         is correct.
11412
11413 2001-12-14  Richard Kenner <kenner@gnat.com>
11414
11415         * utils.c (create_var_decl): Throw away initializing expression
11416         if just annotating types and non-constant.
11417
11418 2001-12-14  Vincent Celier <celier@gnat.com>
11419
11420         * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
11421         Default_Ada_...
11422
11423         * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
11424         Remove functions.
11425         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
11426
11427         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
11428         Remove functions.
11429         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
11430
11431 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
11432
11433         * ChangeLog: Remove piece of diff output.
11434
11435 2001-12-14  Geert Bosch <bosch@gnat.com>
11436
11437         * config-lang.in: Update copyright notice
11438
11439         * layout.adb: Remove commented out code.
11440
11441         * mdllfile.ads: Update copyright notice. Fix header format.
11442
11443         * sem_case.ads: Likewise.
11444
11445         * sem_ch3.adb: Minor reformatting.
11446
11447 2001-12-12  Geert Bosch <bosch@gnat.com>
11448
11449         * freeze.ads: Update copyright date.
11450
11451         * g-comlin.ads: Minor reformatting.
11452
11453         * gnat-style.texi: Fix typo.
11454
11455 2001-12-12  Geert Bosch <bosch@gnat.com>
11456
11457         *  einfo.h: Regenerate.
11458
11459 2001-12-12  Ed Schonberg <schonber@gnat.com>
11460
11461         * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
11462         on known node types, rather than untyped fields. Further cleanups.
11463
11464 2001-12-12  Robert Dewar <dewar@gnat.com>
11465
11466         * sem_ch12.adb:
11467         (Save_Entity_Descendant): Minor comment update.
11468         (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
11469          of an N_Attribute_Reference node. As per note below, this does not
11470         eliminate need for Associated_Node in attribute ref nodes.
11471         (Associated_Node): Documentation explicitly mentions attribute
11472         reference nodes, since this field is used in such nodes.
11473
11474         * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
11475
11476 2001-12-12  Robert Dewar <dewar@gnat.com>
11477
11478         * s-stalib.adb: Add more comments on with statements being needed
11479
11480         * par-ch12.adb: Minor reformatting
11481
11482         * prj-dect.ads: Fix copyright header
11483
11484         * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
11485         inputs fit in 32 bits, but the result still overflows.
11486
11487         * s-fatgen.ads: Minor comment improvement
11488
11489 2001-12-12  Ed Schonberg <schonber@gnat.com>
11490
11491         * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
11492         formal derived type, look for an inherited component from the full
11493         view of the parent, if any.
11494
11495 2001-12-12  Robert Dewar <dewar@gnat.com>
11496
11497         * checks.ads (Apply_Alignment_Check): New procedure.
11498
11499         * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
11500         ensure that the alignment of objects with address clauses is
11501         appropriate, and raise PE if not.
11502
11503         * exp_util.ads (Must_Be_Aligned): Removed, replaced by
11504         Exp_Pakd.Known_Aligned_Enough
11505
11506         * mdllfile.ads: Minor reformatting
11507
11508         * mlib-fil.ads: Minor reformatting
11509
11510 2001-12-12  Ed Schonberg <schonber@gnat.com>
11511
11512         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
11513         fix to any component reference if enclosing record has non-standard
11514         representation.
11515
11516 2001-12-12  Vincent Celier <celier@gnat.com>
11517
11518         * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
11519         Iteration
11520
11521 2001-12-12  Ed Schonberg <schonber@gnat.com>
11522
11523         * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
11524         sem_attr.
11525
11526 2001-12-12  Robert Dewar <dewar@gnat.com>
11527
11528         * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
11529
11530 2001-12-12  Emmanuel Briot <briot@gnat.com>
11531
11532         * g-regexp.adb: Remove all debug code, since it isn't required anymore,
11533         and it adds dependencies to system.io.
11534
11535 2001-12-12  Pascal Obry <obry@gnat.com>
11536
11537         * g-dirope.adb (Expand_Path.Var): Correctly detect end of
11538         variable name.
11539
11540 2001-12-11  Ed Schonberg <schonber@gnat.com>
11541
11542         * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
11543         that is the parent of other generics, the instance body replaces the
11544         instance node.  Retrieve the instance of the spec, which is the one
11545         that is visible in clients and within the body.
11546
11547 2001-12-11  Vincent Celier <celier@gnat.com>
11548
11549         * gnatmain.adb: Initial version.
11550
11551         * gnatmain.ads: Initial version.
11552
11553         * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
11554
11555         * snames.adb: Updated to match snames.ads.
11556
11557         * snames.ads: Added Gnatstub.
11558
11559 2001-12-11  Vincent Celier <celier@gnat.com>
11560
11561         * prj-attr.adb (Initialization_Data): Change name from
11562         Initialisation_Data.
11563
11564 2001-12-11  Emmanuel Briot <briot@gnat.com>
11565
11566         * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
11567         + and * applied to backslashed expressions like \r.
11568
11569 2001-12-11  Vasiliy Fofanov <fofanov@gnat.com>
11570
11571         * g-os_lib.ads: String_List type added, Argument_List type is now
11572         subtype of String_List.
11573
11574 2001-12-11  Robert Dewar <dewar@gnat.com>
11575
11576         * g-os_lib.ads: Change copyright to FSF
11577         Add comments for String_List type
11578
11579 2001-12-11  Vincent Celier <celier@gnat.com>
11580
11581         * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
11582         string to the buffer).
11583
11584 2001-12-11  Ed Schonberg <schonber@gnat.com>
11585
11586         * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
11587         sem_attr.
11588
11589         * sem_attr.adb: Simplify previous fix for Address.
11590         (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
11591         to avoid anomalies where the bound of the type appears to raise
11592         constraint error.
11593
11594 2001-12-11  Robert Dewar <dewar@gnat.com>
11595
11596         * lib-xref.adb (Output_Refs): Make sure pointers are always properly
11597         handled.
11598
11599 2001-12-11  Ed Schonberg <schonber@gnat.com>
11600
11601         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
11602         renamed unit before checking for recursive instantiations.
11603
11604 2001-12-11  Emmanuel Briot <briot@gnat.com>
11605
11606         * prj.ads: Add comments for some of the fields.
11607
11608 2001-12-11  Robert Dewar <dewar@gnat.com>
11609
11610         * lib-xref.adb (Output_Refs): Don't output type references outside
11611         the main unit if they are not otherwise referenced.
11612
11613 2001-12-11  Ed Schonberg <schonber@gnat.com>
11614
11615         * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
11616         code and diagnose additional illegal uses
11617
11618         * sem_util.adb (Is_Object_Reference): An indexed component is an
11619         object only if the prefix is.
11620
11621 2001-12-11  Vincent Celier <celier@gnat.com>
11622
11623         * g-diopit.adb: Initial version.
11624
11625         * g-diopit.ads: Initial version.
11626
11627         * g-dirope.adb:
11628         (Expand_Path): Avoid use of Unbounded_String
11629         (Find, Wildcard_Iterator): Moved to child package Iteration
11630
11631         * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
11632
11633 2001-12-11  Robert Dewar <dewar@gnat.com>
11634
11635         * sem_attr.adb: Minor reformatting
11636
11637 2001-12-11  Ed Schonberg <schonber@gnat.com>
11638
11639         * sem_ch3.adb: Clarify some ???.
11640
11641 2001-12-11  Robert Dewar <dewar@gnat.com>
11642
11643         * exp_util.adb (Must_Be_Aligned): Removed, replaced by
11644         Exp_Pakd.Known_Aligned_Enough
11645
11646         * sem_ch13.adb (Check_Address_Alignment): Removed, extended
11647         version is moved to Exp_Ch13.
11648
11649 2001-12-11  Robert Dewar <dewar@gnat.com>
11650
11651         * einfo.ads: Minor reformatting
11652
11653         * exp_ch5.adb: Add comment for previous.change
11654
11655         * ali.adb: New interface for extended typeref stuff.
11656
11657         * ali.ads: New interface for typeref stuff.
11658
11659         * checks.adb (Apply_Alignment_Check): New procedure.
11660
11661         * debug.adb: Add -gnatdM for modified ALI output
11662
11663         * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
11664
11665         * lib-xref.adb: Extend generation of <..> notation to cover
11666         subtype/object types. Note that this is a complete rewrite,
11667         getting rid of the very nasty quadratic algorithm previously
11668         used for derived type output.
11669
11670         * lib-xref.ads: Extend description of <..> notation to cover
11671         subtype/object types. Uses {..} for these other cases.
11672         Also use (..) for pointer types.
11673
11674         * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
11675
11676         * exp_pakd.adb: Minor reformatting.  Note that prevous RH should say:
11677         (Known_Aligned_Enough): Replaces Must_Be_Aligned.
11678
11679 2001-12-11  Vincent Celier <celier@gnat.com>
11680
11681         * gnatcmd.adb:
11682         Changed /COMPILE_ONLY to /ACTIONS=COMPILE
11683         Changed /BIND_ONLY to /ACTIONS=BIND
11684         Changed /LINK_ONLY to /ACTIONS=LINK
11685
11686 2001-12-11  Ed Schonberg  <schonber@gnat.com>
11687
11688         * sem_ch8.adb (Find_Selected_Component): improved search for a
11689         candidate package in case of error.
11690
11691         * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
11692         chain back on scope stack before reinstalling use clauses.
11693
11694         * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
11695         is enabled, do not kill the code for the condition, to preserve
11696         warning.
11697
11698 2001-12-11  Robert Dewar <dewar@gnat.com>
11699
11700         * checks.adb (Insert_Valid_Check): Apply validity check to expression
11701         of conversion, not to result of conversion.
11702
11703 2001-12-11  Ed Schonberg <schonber@gnat.com>
11704
11705         * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
11706         before freezing parent. If the declarations are mutually recursive,
11707         an access to the current record type may be frozen before the
11708         derivation is complete.
11709
11710 2001-12-05  Vincent Celier <celier@gnat.com>
11711
11712         * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
11713         -c /COMPILE_ONLY, -l /LINK_ONLY
11714
11715         * opt.ads:
11716         (Bind_Only): New Flag
11717         (Link_Only): New flag
11718
11719         * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
11720         and -l (Link_Only)
11721
11722         * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
11723
11724         * make.adb:
11725         (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
11726         (Gnatmake): Set the step flags. Only perform a step if the
11727         corresponding step flag is True.
11728         (Scan_Make_Arg): Reset the bind and link step flags when -u
11729         or -gnatc has been specified.
11730
11731 2001-12-05  Ed Schonberg <schonber@gnat.com>
11732
11733         * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
11734         get bounds from right operand.
11735
11736         * sem_eval.adb: Minor reformatting
11737
11738         * exp_util.adb (Make_Literal_Range): use bound of literal rather
11739         than Index'First, its lower bound may be different from 1.
11740
11741         * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
11742         and C48009J
11743
11744 2001-12-05  Vincent Celier <celier@gnat.com>
11745
11746         * prj-nmsc.adb Minor reformatting
11747
11748         * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
11749         set and libraries are not supported.
11750
11751 2001-12-05  Ed Schonberg <schonber@gnat.com>
11752
11753         * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
11754         private view explicitly, so the back-end can treat as a global
11755         when appropriate.
11756
11757 2001-12-05  Ed Schonberg <schonber@gnat.com>
11758
11759         * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
11760          unit, always replace instance node with new body, for ASIS use.
11761
11762 2001-12-05  Vincent Celier <celier@gnat.com>
11763
11764         * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
11765         libraries are not supported and both attributes Library_Name and
11766         Library_Dir are specified.
11767
11768         * prj-proc.adb (Expression): Set location of Result to location of
11769         first term.
11770
11771         * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
11772         (prj-nmsc is now importing MLib.Tgt)
11773
11774         * prj-proc.adb: Put the change indicated above that was forgotten.
11775
11776 2001-12-05  Robert Dewar <dewar@gnat.com>
11777
11778         * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
11779
11780 2001-12-05  Ed Schonberg <schonber@gnat.com>
11781
11782         * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
11783         constraint, introduce explicit subtype declaration and derive from it.
11784
11785         * sem_ch3.adb: Minor reformatting
11786
11787 2001-12-05  Robert Dewar <dewar@gnat.com>
11788
11789         * checks.adb (Determine_Range): Increase cache size for checks.
11790         Minor reformatting
11791
11792         * exp_ch6.adb: Minor reformatting
11793         (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
11794         a parameter whose root type is System.Address, since treating such
11795         subprograms as pure in the code generator is almost surely a mistake
11796         that will lead to unexpected results.
11797
11798         * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
11799         change handling of conversions.
11800
11801         * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
11802
11803 2001-12-05  Ed Schonberg <schonber@gnat.com>
11804
11805         * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
11806         aggregate with static wrong size, attach generated Raise node to
11807         declaration.
11808
11809 2001-12-05  Robert Dewar <dewar@gnat.com>
11810
11811         * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
11812         Fixes compilation abandoned bomb in B24009B.
11813
11814 2001-12-05  Ed Schonberg <schonber@gnat.com>
11815
11816         * sem_ch12.adb:
11817         Document use of Associated_Node on Selected_Components.
11818         (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
11819         to clarify use of untyped descendant fields.
11820
11821 2001-12-05  Robert Dewar <dewar@gnat.com>
11822
11823         * prj-dect.ads: Add ??? comment
11824         Add 2001 to copyright notice (was not done in after all)
11825
11826         * prj-part.adb: Minor reformatting. Reword one awkward error message.
11827
11828         * prj.ads: Minor reformatting throughout, and add some ??? comments
11829
11830         * snames.ads: Minor reformatting
11831
11832 2001-12-05  Geert Bosch <bosch@gnat.com>
11833
11834         * snames.adb: Autoupdate
11835
11836 2001-12-05  Vincent Celier <celier@gnat.com>
11837
11838         * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
11839
11840         * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
11841
11842         * prj-env.adb: Minor comment changes (modifying -> extends).
11843
11844         * prj-nmsc.adb: Minor comment changes (modifying -> extends).
11845
11846         * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
11847         Tok_Extends.
11848
11849         * prj.adb (Initialize): Change Modifying to Extends.
11850
11851         * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
11852
11853         * prj.ads: Minor comment change (Modifying -> extending).
11854
11855         * snames.ads: Change modifying to extends.
11856
11857 2001-12-05  Robert Dewar <dewar@gnat.com>
11858
11859         * sem_warn.adb: Remove stuff for conditionals, we are not going to
11860         do this after all.
11861
11862         * sem_warn.ads: Remove stuff for conditionals, we are not going to
11863         do this after all.  Add 2001 to copyright notice
11864
11865 2001-12-04  Geert Bosch <bosch@gnat.com>
11866
11867         *  einfo.h, sinfo.h, treeprs.ads: Regenerate.
11868
11869 2001-12-04  Robert Dewar <dewar@gnat.com>
11870
11871         * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
11872         location if we already have errors. Stops some cases of cascaded
11873         errors.
11874
11875         * errout.adb: Improve comment.
11876
11877 2001-12-04  Robert Dewar <dewar@gnat.com>
11878
11879         * sem_ch12.adb:
11880         (Analyze_Formal_Type_Definition): Defend against Error.
11881         (Analyze_Formal_Subprogram): Defend against Error.
11882
11883         * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
11884         remove following semicolon if present. Removes cascaded error.
11885
11886 2001-12-04  Douglas B. Rupp <rupp@gnat.com>
11887
11888         * bindgen.adb:
11889         (Gen_Exception_Table_Ada): Write "begin" and then return if Num
11890          exceptions equals 0.
11891         (Gen_Exception_Table_C): Return if Num exceptions equals 0.
11892         Fixes PIWG E tests (which have to be run with -gnatL).
11893
11894 2001-12-04  Robert Dewar <dewar@gnat.com>
11895
11896         * einfo.ads: Minor reformatting
11897
11898 2001-12-04  Ed Schonberg <schonber@gnat.com>
11899
11900         * einfo.ads: Block_Node points to the identifier of the block, not to
11901         the block node itself, to preserve the link when the block is
11902         rewritten, e.g. within an if-statement with a static condition.
11903
11904         * inline.adb (Cleanup_Scopes): recover block statement from block
11905         entity using new meaning of Block_Node.
11906
11907         * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
11908         identifier of block node, rather than to node itself.
11909
11910 2001-12-04  Gary Dismukes <dismukes@gnat.com>
11911
11912         * layout.adb:
11913         (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
11914         (Discrimify): Go back to setting the Etypes of the selected component
11915         because the Vname component does not exist at this point and will
11916         fail name resolution. Also set Analyzed.
11917         Remove with and use of Sem_Res.
11918
11919 2001-12-04  Arnaud Charlet <charlet@gnat.com>
11920
11921         * Makefile.in: (HIE_SOURCES): add s-fat*.
11922
11923 2001-12-04  Robert Dewar <dewar@gnat.com>
11924
11925         * sem_attr.adb:
11926         (Compile_Time_Known_Attribute): New procedure.
11927         (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
11928          proper range check.
11929
11930 2001-12-04  Ed Schonberg <schonber@gnat.com>
11931
11932         * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
11933         processing discriminants to diagnose illegal default values.
11934
11935 2001-12-04  Ed Schonberg <schonber@gnat.com>
11936
11937         * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
11938         access discriminant within a type extension that constrains its
11939         parent discriminants.
11940
11941 2001-12-04  Ed Schonberg <schonber@gnat.com>
11942
11943         * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
11944         is malformed, use instance of Any_Id to allow analysis to proceed.
11945
11946         * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
11947         type definition is illegal.
11948         (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
11949         misplaced.
11950
11951 2001-12-04  Ed Schonberg <schonber@gnat.com>
11952
11953         * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
11954         constants.
11955
11956 2001-12-04  Robert Dewar <dewar@gnat.com>
11957
11958         * errout.adb: Minor reformatting
11959
11960 2001-12-04  Robert Dewar <dewar@gnat.com>
11961
11962         * exp_util.adb: Minor reformatting from last change
11963
11964         * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
11965         which is a rewriting of an expression, traverse the original
11966         expression to remove warnings that may have been posted on it.
11967
11968 2001-12-04  Ed Schonberg <schonber@gnat.com>
11969
11970         * exp_util.adb (Must_Be_Aligned): Return false for a component of a
11971         record that has other packed components.
11972
11973 2001-12-04  Douglass B. Rupp <rupp@gnat.com>
11974
11975         * adaint.c: Minor cleanups.
11976
11977 2001-12-04  Douglass B. Rupp <rupp@gnat.com>
11978
11979         * adaint.c: Do not use utime.h on vxworks.
11980
11981 2001-12-04  Arnaud Charlet <charlet@gnat.com>
11982
11983         * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
11984         more confusion than it solves.
11985
11986 2001-12-04  Geert bosch <bosch@gnat.com>
11987
11988         * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
11989
11990 2001-12-04  Geert Bosch  <bosch@gnat.com>
11991
11992         * Makefile.in (update-sources): New target.
11993         For use by gcc_release script.
11994
11995 2001-12-04  Ed Schonberg <schonber@gnat.com>
11996
11997         * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
11998         a configuration pragma, it is now legal wherever a pragma can appear.
11999
12000 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
12001
12002         * Makefile.in: Don't set ALL.  Delete @cross_defines@,
12003         @cross_overrides@, @build_overrides@ stanzas.  INTERNAL_CFLAGS
12004         is now @CROSS@ -DIN_GCC; update comment.
12005
12006 2001-12-04  Robert Dewar <dewar@gnat.com>
12007
12008         * einfo.adb (Has_Pragma_Pure_Function): New flag.
12009         Fix problem that stopped ceinfo from working
12010
12011         * einfo.ads (Has_Pragma_Pure_Function): New flag.
12012
12013         * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
12014
12015 2001-12-04  Douglas B. Rupp <rupp@gnat.com>
12016
12017         * gnatchop.adb:
12018         (File_Time_Stamp): New procedure.
12019         (Preserve_Mode): New boolean.
12020         (Write_Unit): Pass time stamp.
12021         Implement -p switch (preserve time stamps).
12022
12023         * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
12024
12025         * gnatchop.adb: Do usage info for -p switch
12026
12027         * adaint.h (__gnat_set_file_time_name): New function
12028
12029         * adaint.c (__gnat_set_file_time_name): Implement
12030
12031         * adaint.h: Fix typo
12032
12033 2001-12-03  Robert Dewar <dewar@gnat.com>
12034
12035         * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
12036         have Associated_Node.
12037
12038 2001-12-03  Robert Dewar <dewar@gnat.com>
12039
12040         * prj-proc.adb: Minor reformatting
12041
12042         * make.adb: Minor reformatting
12043
12044 2001-12-03  Geert Bosch <bosch@gnat.com>
12045
12046         * make.adb: Minor reformatting.
12047
12048 2001-12-03 Robert Dewar  <dewar@gnat.com>
12049
12050         * sem_ch12.adb: Minor reformatting
12051
12052 2001-12-03  Ed Schonberg <schonber@gnat.com>
12053
12054         * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
12055         push Standard on the stack before analyzing the instance body,
12056         in order to have a clean visibility environment.
12057
12058         * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
12059
12060 2001-12-03  Ed Schonberg <schonber@gnat.com>
12061
12062         * sem_ch12.adb (Instantiate_Package_Body): Protect against double
12063         instantiation of a body that contains an inlined body.
12064
12065 2001-12-03  Ed Schonberg <schonber@gnat.com>
12066
12067         * sem_ch12.adb:
12068         (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
12069         to prevent freezing within formal packages.
12070         (Freeze_Subprogram_Body): If body comes from another instance that
12071         appeared before its own body, place freeze node at end of current
12072         declarative part, to prevent a back-end crash.
12073         (Inline_Instance_Body): Handle properly a package instance within
12074         a subprogram instance that is a child unit.
12075
12076 2001-12-01  Graham Stott  <grahams@redhat.com>
12077
12078         * Makefile.in (misc.o): Add missing $(srcdir) prefix
12079         and add optabs.h dependency.
12080
12081         * misc.c: Include optabs.h
12082         (gnat_tree_code_type): Make static and const.
12083         (gnat_tree_code_length): Likewise.
12084         (gnat_tree_code_name): Likewise.
12085         (update_setjmp_buf): Obtain operands mode from insn_data.
12086
12087 2001-11-29  Richard Henderson  <rth@redhat.com>
12088
12089         * init.c: Remove obsolete dwarf2 frame.h section.
12090
12091 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
12092
12093         * Make-lang.in (ada.generated-manpages): New dummy target.
12094
12095 2001-11-29  Ed Schonberg <schonber@gnat.com>
12096
12097         * g-os_lib.adb (Add_To_Command): use explicit loop to move string
12098         into Command, an array conversion is illegal here. Uncovered by
12099         ACATS B460005.
12100
12101 2001/11/28  Geert Bosch <bosch@gnat.com>
12102
12103         * init.c: Minor whitespace changes.
12104
12105 2001-11-28  Doug Rupp <rupp@gnat.com>
12106
12107         * init.c: (__gnat_install_handler,VMS): Increase size of alternate
12108         signal stack.
12109
12110 2001-11-28  Zack Weinberg  <zack@codesourcery.com>
12111
12112         * misc.c (gnat_expand_constant): Move declaration above
12113         definition of lang_hooks.
12114         (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
12115         (gnat_init): lang_expand_constant no longer exists.
12116
12117         (internal_error_function): Remove #ifdef HAVE_VPRINTF.  We
12118         always have vprintf.
12119         (gnat_init): Always call set_internal_error_function.
12120
12121 2001-11-27  Andreas Jaeger  <aj@suse.de>
12122
12123         * Makefile.in (stamp-tool_src_dir): Use symbolic link.
12124
12125 2001-11-27  Laurent Guerby  <guerby@acm.org>
12126
12127         * Makefile.in: Regenerate Ada dependencies.
12128
12129 2001-11-26  Richard Henderson  <rth@redhat.com>
12130
12131         * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
12132         gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
12133         gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
12134
12135 2001-11-25  Laurent Guerby  <guerby@acm.org>
12136
12137         * sysdep.c (rts_get_*): Fix style.
12138
12139 2001-11-19  Laurent Guerby  <guerby@acm.org>
12140
12141         * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
12142         since it is of no apparent use and cause warnings.
12143
12144 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
12145
12146         * misc.c (gnat_decode_option, gnat_init_options): Make definitions
12147         static too.
12148         (gnat_init): Don't return NULL.
12149         (finish_parse): Remove.
12150
12151 2001-11-17  Laurent Guerby  <guerby@acm.org>
12152
12153         * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
12154         * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
12155         * io-aux.c: Provide K&R prototypes to all functions, reformat code.
12156         * lang-spec.h: Add missing struct field to silence warnings.
12157         * sysdep.c (rts_get_*): Provide K&R prototype.
12158         * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
12159         * traceback.c (Unlock_Task, Lock_Task): Likewise.
12160         * tracebak.c (__gnat_backtrace): Remove unused variable.
12161         * utils.c (end_subprog_body): Move to K&R style.
12162
12163 Thu Nov 15 18:16:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12164
12165         * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
12166
12167 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
12168
12169         * misc.c (gnat_init): Change prototype.  Include the
12170         functionality of the old init_parse and init_decl_processing.
12171         (gnat_init_decl_processing): New prototype.
12172         (init_parse): Remove.
12173         * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
12174
12175 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
12176
12177         * misc.c (gnat_print_decl, gnat_print_type): Renamed.
12178         (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
12179         (print_lang_statistics, lang_print_xnode, print_lang_identifier,
12180         set_yydebug): Remove.
12181
12182 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
12183
12184         * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
12185         (struct lang_hooks): Constify.
12186         (language_string, lang_identify): Remove.
12187         * utils.c (init_decl_processing): Update.
12188
12189 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
12190
12191         * misc.c: Include langhooks-def.h.
12192         * Makefile.in: Update.
12193
12194 2001-10-30  Robert Dewar <dewar@gnat.com>
12195
12196         * style.adb:
12197         (Check_Identifier): Rewrite circuit to be compatible with use of letters
12198         in the upper half of ASCII.
12199         (Check_Identifier): Minor reformatting
12200
12201 2001-10-30  Geert Bosch <bosch@gnat.com>
12202
12203         * (Associated_Node, Set_Associated_Node): Do not check for
12204         Freeze_Entity.
12205
12206 2001-10-30  Robert Dewar <dewar@gnat.com>
12207
12208         * a-reatim.ads: Minor reformatting
12209
12210 2001-10-30  Robert Dewar <dewar@gnat.com>
12211
12212         * gnatdll.adb: Minor reformatting throughout. Many ??? added for
12213         undocumented declarations.
12214
12215 2001-10-30  Pascal Obry <obry@gnat.com>
12216
12217         * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
12218         to the binder and linker.
12219         Minor style fix.
12220
12221         * mdll.ads: Fix layout.  Update copyright notice.
12222
12223         * mdll.adb: Fix layout.  Update copyright notice.
12224
12225 2001-10-30  Robert Dewar <dewar@gnat.com>
12226
12227         * usage.adb: Minor fix to output for -gnaty.
12228
12229 2001-10-30  Ed Schonberg <schonber@gnat.com>
12230
12231         * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
12232         to accommodate all its possible values.
12233
12234         * a-reatim.adb (Split): Special-case handling of Time_Span_First
12235         and of small absolute values of T.
12236
12237 2001-10-30  Richard Kenner <kenner@gnat.com>
12238
12239         * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
12240         set_mem_attributes since not needed and wrong if RESULT if a REG;
12241         fixes ACATS failures.
12242
12243 2001-10-30  Geert Bosch <bosch@gnat.com>
12244
12245         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
12246         s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
12247
12248 2001-10-30  Robert Dewar <dewar@gnat.com>
12249
12250         * bindusg.adb: Undocument -f switch.
12251
12252         * gnatcmd.adb: Remove /FULL_ELABORATION.
12253
12254         * opt.ads (Force_RM_Elaboration_Order): Document that this is
12255         obsolescent.
12256
12257         * gnatbind.adb: Output new warning for use of obsolescent -f switch.
12258
12259         * gnatbind.adb: Minor update of warning msg.
12260
12261 2001-10-30  Vincent Celier <celier@gnat.com>
12262
12263         * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
12264         for project file switches (-P (/PROJECT_FILE=),
12265          -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
12266         or MEDIUM or HIGH)
12267
12268 2001-10-30  Geert Bosch <bosch@gnat.com>
12269
12270         * decl.c: Minor whitespace fixes.
12271
12272 2001-10-30  Richard Kenner <kenner@gnat.com>
12273
12274         * utils2.c (build_allocator): Test for SIZE overflow in array case too
12275
12276 2001-10-30  Geert Bosch <bosch@gnat.com>
12277
12278         * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
12279         Found due to GCC 3.0 warning of using uninitialized value.
12280
12281         * layout.adb:
12282         (Get_Max_Size): Use variant record for tracking value/expression.
12283          Makes logic clearer and prevents warnings for uninitialized variables.
12284         (Layout_Array_Type): Use variant record for tracking value/expression.
12285          Makes logic clearer and prevents warnings for uninitialized variables.
12286
12287 2001-10-30  Robert Dewar <dewar@gnat.com>
12288
12289         * lib.adb: Minor reformatting
12290
12291         * s-taprop.ads: Minor reformatting
12292
12293 2001-10-29  Laurent Guerby  <guerby@acm.org>
12294
12295         * init.c:
12296         (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
12297         const.
12298         (_gnat_error_handler): Make MSG const.
12299
12300 2001-10-29  Richard Kenner <kenner@gnat.com>
12301
12302         * sysdep.c: Fix localtime_r problem on LynxOS.
12303         Also remove #elif to avoid warnings.
12304
12305         * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
12306         used by this.
12307
12308         * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
12309
12310 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
12311
12312         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
12313         exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
12314         g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
12315         g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
12316         layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
12317         s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
12318         sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
12319         sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
12320         sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
12321         types.ads, urealp.adb: Fix spelling errors.
12322
12323 2001-10-27  Laurent Guerby <guerby@acm.org>
12324
12325         * trans.c (gigi): Fix non determinism leading to bootstrap
12326         comparison failures for debugging information.
12327
12328 2001-10-26  Florian Weimer  <fw@deneb.enyo.de>
12329
12330         * gnat_rm.texi: Use @./@: where appropriate.
12331
12332 2001-10-26  Robert Dewar <dewar@gnat.com>
12333
12334         * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
12335
12336 2001-10-26  Richard Kenner <kenner@gnat.com>
12337
12338         * gmem.c (__gnat_gmem_read_next): Properly check for EOF
12339
12340 2001-10-26  Richard Kenner <kenner@gnat.com>
12341
12342         * decl.c (validate_size): Modify message for bad size to avoid
12343         implication that compiler is modifying the size.
12344
12345 2001-10-26  Robert Dewar <dewar@gnat.com>
12346
12347         * prj-util.adb: Minor reformatting. Fix bad header format.
12348
12349 2001-10-26  Robert Dewar <dewar@gnat.com>
12350
12351         * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
12352
12353         * sinfo.ads: Clarify use of Associated_Node (documentation only).
12354
12355         * sem_ch12.adb: Change Node4 to Associated_Node. Change
12356         Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
12357         much more narrowly in places where needed. These are cleanups.
12358
12359 2001-10-26  Joel Brobecker <brobecke@gnat.com>
12360
12361         * 5zosinte.ads (null_pthread): new constant.
12362
12363         * 5ztaprop.adb:
12364         (Initialize_TCB): Initialize thread ID to null, to be able to verify
12365          later that this field has been set.
12366         (Finalize_TCB): ditto.
12367         (Suspend_Task): Verify that the thread ID is not null before using it.
12368         (Resume_Task): ditto.
12369
12370         * s-tasdeb.adb:
12371         (Resume_All_Tasks): Lock the tasks list before using it.
12372         (Suspend_All_Tasks): ditto.
12373
12374 2001-10-26  Richard Kenner <kenner@gnat.com>
12375
12376         * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
12377         Make constant variant of designated type for Is_Access_Constant.
12378         Call update_pointer_to with main variant.
12379
12380         * trans.c (process_freeze_entity, process_type):
12381         Call update_pointer_to on main variant.
12382
12383         * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
12384         If main variant, update all other variants.
12385
12386         * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
12387         TREE_STATIC.
12388
12389 2001-10-26  Robert Dewar <dewar@gnat.com>
12390
12391         * prj-util.adb: Minor reformatting
12392
12393 2001-10-26  Robert Dewar <dewar@gnat.com>
12394
12395         * prj-util.adb: Minor reformatting
12396
12397 2001-10-26  Robert Dewar <dewar@gnat.com>
12398
12399         * prj-attr.adb: Minor reformatting throughout
12400
12401 2001-10-26  Robert Dewar <dewar@gnat.com>
12402
12403         * prj-attr.ads: Minor reformatting
12404         Add ??? comment (this whole spec has almost no comments)
12405
12406 2001-10-26  Vincent Celier <celier@gnat.com>
12407
12408         * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
12409         ("//") that precede the drive letter on Interix.
12410
12411 2001-10-26  Geert Bosch <bosch@gnat.com>
12412
12413         * gnat_rm.texi: Add GNAT Reference Manual.
12414
12415 2001-10-25  Robert Dewar <dewar@gnat.com>
12416
12417         * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
12418         is Error. Similar change for other renaming cases.
12419
12420 2001-10-25  Robert Dewar <dewar@gnat.com>
12421
12422         * s-atacco.ads: Add pragma Inline_Always for functions.
12423         Fix header format. Add copyright 2001
12424
12425 2001-10-25  Ed Schonberg <schonber@gnat.com>
12426
12427         * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
12428         return Error rather than Empty so that analysis can proceed.
12429
12430 2001-10-25  Ed Schonberg <schonber@gnat.com>
12431
12432         * sem_util.adb (Enter_Name): better handling of cascaded error
12433         messages when a unit appears in its own context.
12434
12435 2001-10-25  Ed Schonberg <schonber@gnat.com>
12436
12437         * sem_util.adb (Defining_Entity): in case of error, attach created
12438         entity to specification, so that semantic analysis can proceed.
12439
12440 2001-10-25  Robert Dewar <dewar@gnat.com>
12441
12442         * sem_util.adb
12443         (Defining_Entity): Deal with Error.
12444         (Process_End_Label): Deal with bad end label for.
12445
12446 2001-10-25  Ed Schonberg <schonber@gnat.com>
12447
12448         * sem_elab.adb (Check_A_Call): refine message when call is in an
12449         instance but callee is not declared in the generic unit.
12450
12451 2001-10-25  Ed Schonberg <schonber@gnat.com>
12452
12453         * sem_elab.adb (Check_A_Call): check for renaming before finding the
12454         enclosing unit, which may already be different from the calling unit.
12455
12456 2001-10-25  Geert Bosch <bosch@gnat.com>
12457
12458         * 4gintnam.ads: fix header format.
12459
12460 2001-10-25  Ed Schonberg <schonber@gnat.com>
12461
12462         * sem_res.adb (Resolve_Call): if the call is actually an indexing
12463         operation on the result of a parameterless call, perform elaboration
12464         check after the node has been properly rewritten.
12465
12466         * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
12467         inlined within the generic tree, the defining identifier is not a
12468         compilation_unit.
12469
12470 2001-10-25  Ed Schonberg <schonber@gnat.com>
12471
12472         * sem_res.adb (Resolve): special-case resolution of Null in an
12473          instance or an inlined body to avoid view conflicts.
12474
12475         * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
12476          compatibility by retrieving the access type of the generic copy.
12477
12478 2001-10-25  Robert Dewar <dewar@gnat.com>
12479
12480         * sem_ch3.adb:
12481         (Analyze_Number_Declaration): Handle error expression.
12482         (Signed_Integer_Type_Declaration): Handle error bound.
12483         (Analyze_Subtype_Indication): Handle error range.
12484
12485         * sem_util.adb (Get_Index_Bounds): Check for Error.
12486
12487 2001-10-25  Robert Dewar <dewar@gnat.com>
12488
12489         * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
12490         in no run time mode.
12491
12492 2001-10-25  Pascal Obry <obry@gnat.com>
12493
12494         * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
12495         mode case for ALLOC case.
12496
12497         * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
12498         all platforms. Improvement of last change.
12499
12500 2001-10-25  Robert Dewar <dewar@gnat.com>
12501
12502         * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
12503
12504 2001-10-25  Geert Bosch  <bosch@gnat.com>
12505
12506         * osint.adb (Is_Relative): Remove duplicate.
12507
12508 2001-10-25  Pascal Obry <obry@gnat.com>
12509
12510         * osint.adb (Read_Default_Search_Dirs): correctly detect relative
12511         pathnames in UNIX and DOS style with drive letter.
12512         (Is_Relative): new routine.
12513
12514         * osint.adb: Minor reformatting
12515
12516         * osint.adb (Is_Relative): implementation using
12517         GNAT.OS_Lib.Is_Absolute_Path. Better fix.
12518
12519 2001-10-25  Pascal Obry <obry@gnat.com>
12520
12521         * g-dirope.adb (Basename): correctly compute offset between the
12522         original Path and the translated one.
12523
12524         * g-dirope.adb: (Base_Name): add some comments.
12525
12526 2001-10-25  Robert Dewar <dewar@gnat.com>
12527
12528         * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
12529         in HIE mode, avoids compilation abandoned message
12530
12531         * exp_imgv.adb: Correct typo in previous change
12532
12533         * exp_imgv.adb: Correct typo in previous change (not my day!)
12534
12535 2001-10-25  Robert Dewar <dewar@gnat.com>
12536
12537         * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
12538
12539 2001-10-25  Pascal Obry <obry@gnat.com>
12540
12541         * g-awk.ads: Move all pragma inlines next to the routine
12542          declarations. This is more uniform with other GNAT spec.
12543
12544 2001-10-22  Geert Bosch  <bosch@gnat.com>
12545
12546         * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
12547
12548 2001-10-19  Geert Bosch  <bosch@gnat.com>
12549
12550         * Makefile.in (tools, gnattools): Remove gnatmem.
12551
12552 2001-10-17  Richard Henderson  <rth@redhat.com>
12553
12554         * Makefile.in (misc.o): Depend on langhooks.h.
12555         * misc.c: Include it.
12556         (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
12557         (LANG_HOOKS_DECODE_OPTION): New.
12558         (lang_hooks): Use LANG_HOOKS_INITIALIZER.
12559
12560 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
12561
12562         * trans.c (tree_transform): Adjust to recent change in
12563         expand_asm_operands to implement named asm operands.
12564
12565 2001-10-11  Ed Schonberg  <schonber@gnat.com>
12566
12567         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
12568         renaming of discriminant for mutable record type.
12569
12570 2001-10-11  Robert Dewar  <dewar@gnat.com>
12571
12572         * validsw.adb: Properly save -gnatVn status.
12573
12574 2001-10-11  Robert Dewar <dewar@gnat.com>
12575
12576         * usage.adb: Add lines for V switch.
12577
12578         * gnatcmd.adb (COMPILE): Revise translations for -gnatV
12579         (/VALIDITY_CHECKING).
12580
12581 2001-10-11  Ed Schonberg <schonber@gnat.com>
12582
12583         * sem_type.adb (Add_One_Interp): an operator for a type declared in
12584         an extension of System is known to be visible.
12585
12586 2001-10-11  Ed Schonberg <schonber@gnat.com>
12587
12588         * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
12589         properly. Fixes regression on ACATS C34005G.
12590
12591 2001-10-11  Robert Dewar <dewar@gnat.com>
12592
12593         * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
12594         loop in generic instance, since this is likely not very useful.
12595
12596 2001-10-11  Robert Dewar <dewar@gnat.com>
12597
12598         * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
12599         the error message for high integrity mode.
12600
12601         * rtsfind.adb (RTE): Give message if we try to find an entity that
12602         is not available in high integrity mode.
12603
12604         * rtsfind.ads:
12605         (OK_To_Use_In_HIE_Mode): New array.
12606         (RTE): May return Empty in high integrity mode.
12607
12608         * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
12609         OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
12610
12611         * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
12612         unit if not inlined always and in no runtime mode. Fixes problem
12613         caused by new Rtsfind changes.
12614
12615         * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
12616         body is deleted.
12617
12618         * rtsfind.adb (RTE): Make sure we do not try to load unit after
12619         giving message for entity not available in high integrity mode.
12620
12621 2001-10-11  Pascal Obry <obry@gnat.com>
12622
12623         * impunit.adb: Add GNAT.CRC32.
12624
12625 2001-10-11  Ed Schonberg <schonber@gnat.com>
12626
12627         * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
12628         properly the case where one universal operand in a non-static
12629         exponentiation of a real literal.
12630
12631 2001-10-11  Ed Schonberg <schonber@gnat.com>
12632
12633         * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
12634         clause, return the gobal finalization list, for lack of anthing else.
12635
12636 2001-10-11  Ed Schonberg <schonber@gnat.com>
12637
12638         * exp_ch7.adb (Make_Transient_Block): if statement is within
12639         exception handler, always use new transient scope to place Clean
12640         procedure.
12641
12642 2001-10-11  Pascal Obry <obry@gnat.com>
12643
12644         * Makefile.in:
12645         (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
12646         (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
12647         (GNATLS_RTL_OBJS): add g-crc32.o
12648         (GNATMAKE_RTL_OBJS): add g-crc32.o
12649
12650         * ali-util.adb:
12651         (CRC_Match): new function.
12652         (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
12653         instead of the previous simple checksum algorithm.
12654         (Time_Stamp_Mismatch): use CRC_Match for comparison.
12655         (Set_Source_Table): idem.
12656
12657         * ali-util.ads:
12658         (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
12659         instead of simple checksum.
12660         (CRC_Match): new function.
12661         (CRC_Error): new constant.
12662
12663         * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
12664         a CRC now and not a simple checksum. A CRC uses lower-case hex
12665         letters, fixes ambiguity in parsing.
12666
12667         * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
12668         is what this variable will store.
12669
12670         * bcheck.adb: Change reference to chechsum in comments by CRC.
12671         (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
12672         rename All_Checksum_Match to All_CRC_Match. Change due to API
12673         renaming since now GNAT does not use a simple checksum but a
12674         CRC using GNAT.CRC32.
12675
12676         * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
12677         now and not anymore a simple checksum.
12678
12679         * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
12680         places.
12681
12682         * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
12683
12684         * scans.adb:
12685         (Restore_Scan_State): rename Checksum to CRC.
12686         (Save_Scan_State): idem.
12687
12688         * scans.ads:
12689         With GNAT.CRC32.
12690         (Checksum): rename to CRC.
12691         (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
12692
12693         * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
12694         GNAT.CRC32).  Update copyright notice.
12695
12696         * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
12697         GNAT.CRC32).  Update copyright notice.
12698
12699         * scn.adb:
12700         (Accumulate_Checksum): removed.
12701         (Update): new procedure. Add a wide-character into the CRC.
12702
12703         * sinput-l.adb:
12704         (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
12705         (Load_File): fix initialization of S (change Source_Checksum to
12706         Source_CRC)
12707
12708         * sinput-p.adb (Load_Project_File): rename Source_Checksum to
12709         Source_CRC in S initialization.
12710
12711         * sinput.adb (Source_Checksum): renamed to Source_CRC.
12712
12713         * sinput.ads (Source_Checksum): renamed to Source_CRC.
12714         Update comments for the CRC.
12715
12716         * types.adb (Hex): Use lowercase for the letter part.
12717
12718         * types.ads (Get_Hex_String): Returns the hexadecimal representation
12719         for a word. This is currently used only for CRC. In previous version,
12720         the checksum was using a representation with all letter being
12721         upper-case. With the new implementation (using CRC) we do not remove
12722         the 32th bit of the CRC, so we can have an upper-case starting letter
12723         in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
12724         It is ambigous since the CRC was optional and could be followed by
12725         options like EB, EE. So now this routines uses lower-case letter for
12726         the hexadecimal representation. Strange enough only lower case letters
12727         where checked in Scan_ALI (even if this was not a possible case).
12728
12729         * gnatvsn.ads (Library_Version): changed to 3.15a.
12730
12731         * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
12732         for the compiler.
12733
12734         * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
12735         for the compiler.
12736
12737         * ali-util.adb: Redo previous change to avoid using word CRC everywhere
12738         Add 2001 to copyright notice
12739         (Accumulate_Checksum): Modify to use System.CRC32.
12740
12741         * ali-util.ads: Redo changes of previous revision to continue to use
12742         the word Checksum. Add 2001 to copyright notice.
12743
12744         * ali.adb: Undo some of previous changes, not needed.
12745         Keep the change for lower case letters in the checksum.
12746
12747         * ali.ads: Undo previous change not needed.
12748
12749         * bcheck.adb: Undo most of previous change, not needed.
12750         But do use Checksums_Match for checksum comparison.
12751
12752         * gnatls.adb: Undo most of previous change, not needed.
12753         But do use Checksums_Match for comparing checksums.
12754
12755         * lib-load.adb: Undo previous change, not needed.
12756
12757         * lib-writ.adb: Undo previous change, not needed.
12758
12759         * lib-writ.ads: Document that checksums use lower case,
12760         not upper case letters.
12761
12762         * scans.adb: Undo previous change, not needed
12763
12764         * scans.ads: Undo previous change, not needed.
12765
12766         * scn-nlit.adb: Undo previous changes, not needed.
12767
12768         * scn-slit.adb: Undo previous change, not needed.  Fix header format.
12769
12770         * scn.adb:
12771         (Accumulate_Checksum): Use System.CRC32.
12772         (Initialize_Checksum): New procedure.
12773         Remove other changes of previous revision.
12774
12775         * sinput-p.adb: Undo previous change, not needed.
12776
12777         * sinput.adb: Undo previous change, not needed.
12778
12779         * sinput-l.adb: Undo previous change, not needed.
12780
12781         * sinput.ads: Undo previous change, not needed.  Keep only comment
12782         on new checksum algorithm
12783
12784         * Makefile.in: Add s-crc32 as needed, remove g-crc32.
12785         Also remove a-tags and a-stream from GNAT sources.
12786
12787         * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
12788
12789         * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
12790
12791 2001-10-11  Geert Bosch  <bosch@gnat.com>
12792
12793         * einfo.h: Regenerate.
12794
12795         * nmake.ads: Regenerate.
12796
12797         * nmake.adb: Regenerate.
12798
12799         * sinfo.h: Regenerate.
12800
12801         * treeprs.adb: Regenerate.
12802
12803 2001-10-10  Geert Bosch  <bosch@gnat.com>
12804
12805         * gnat-style.texi: New file describing coding guidelines for Ada.
12806
12807 2001-10-10  Ed Schonberg <schonber@gnat.com>
12808
12809         * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
12810         is Flag174.
12811
12812 2001-10-10  Geert Bosch  <bosch@gnat.com>
12813
12814         * snames.ads: Add new names for project facility.
12815
12816         * snames.adb: Update to reflect snames.ads changes.
12817
12818         * snames.h: Update to reflect snames.ads changes.
12819
12820 2001-10-10  Vincent Celier <celier@gnat.com>
12821
12822         * make.adb:
12823         (Add_Switches): reflect the changes for the switches attributes
12824         Default_Switches indexed by the programming language,
12825         Switches indexed by the file name.
12826         (Collect_Arguments_And_Compile): Idem.
12827         Reflect the attribute name changes.
12828
12829         * prj-attr.adb:
12830         (Initialisation_Data): Change the names of some packages and
12831         attributes.
12832         (Initialize): process case insensitive associative arrays.
12833
12834         * prj-attr.ads:
12835         (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
12836
12837         * prj-dect.adb:
12838         (Parse_Attribute_Declaration): For case insensitive associative
12839          arrays, set the index string to lower case.
12840
12841         * prj-env.adb:
12842         Reflect the changes of the project attributes.
12843
12844         * prj-nmsc.adb:
12845         Replace Check_Naming_Scheme by Ada_Check and
12846         Language_Independent_Check.
12847
12848         * prj-nmsc.ads:
12849         Replaced Check_Naming_Scheme by 2 procedures:
12850         Ada_Check and Language_Independent_Check.
12851
12852         * prj-proc.adb:
12853         (Process_Declarative_Items): For case-insensitive associative
12854         arrays, set the index string to lower case.
12855         (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
12856         Prj.Nmsc.Check_Naming_Scheme.
12857
12858         * prj-tree.adb:
12859         (Case_Insensitive): New function
12860         (Set_Case_Insensitive): New procedure
12861
12862         * prj-tree.ads:
12863         (Case_Insensitive): New function
12864         (Set_Case_Insensitive): New procedure
12865         (Project_Node_Record): New flag Case_Insensitive.
12866
12867         * prj-util.adb:
12868         (Value_Of): new function to get the string value of a single
12869         string variable or attribute.
12870
12871         * prj-util.ads:
12872         (Value_Of): new function to get the string value of a single
12873         string variable or attribute.
12874
12875         * prj.adb:
12876         (Ada_Default_Spec_Suffix): New function
12877         (Ada_Default_Impl_Suffix): New function
12878         Change definitions of several constants to reflect
12879         new components of record types.
12880
12881         * prj.ads:
12882         (Naming_Data): Change several components to reflect new
12883         elements of naming schemes.
12884         (Project_Data): New flags Sources_Present and
12885         Language_Independent_Checked.
12886         (Ada_Default_Spec_Suffix): New function.
12887         (Ada_Default_Impl_Suffix): New function.
12888
12889         * snames.ads:
12890         Modification of predefined names for project manager: added
12891         Implementation, Specification_Exceptions, Implementation_Exceptions,
12892         Specification_Suffix, Implementation_Suffix, Separate_Suffix,
12893         Default_Switches, _Languages, Builder, Cross_Reference,
12894         Finder. Removed Body_Part, Specification_Append, Body_Append,
12895         Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
12896         Gnatlink.
12897
12898         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
12899         Add comments.
12900
12901         * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
12902         not that it is Nil_Variable_Value.
12903
12904         * prj.ads: Add ??? for uncommented declarations
12905
12906 2001-10-10  Ed Schonberg <schonber@gnat.com>
12907
12908         * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
12909         constant, do not indicate possible modification, so that gigi can
12910         treat it as a bona fide constant.
12911
12912 2001-10-10  Robert Dewar <dewar@gnat.com>
12913
12914         * sem_prag.adb: Add processing for pragma External.
12915
12916         * snames.ads: Add entry for pragma External.
12917
12918         * par-prag.adb: Add pragma External.
12919
12920         * snames.adb: Updated to match snames.ads.
12921
12922 2001-10-10  Ed Schonberg <schonber@gnat.com>
12923
12924         * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
12925         a dynamic task if the allocator appears in an indexed assignment
12926         or selected component assignment.
12927
12928         * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
12929         For a dynamic task in an assignment statement, use target of
12930         assignment to generate meaningful name.
12931
12932 2001-10-10  Ed Schonberg <schonber@gnat.com>
12933
12934         * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
12935         a generic package.
12936
12937         * einfo.ads: Body_Entity is also defined for generic package.
12938         Documentation change only
12939
12940         * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
12941         others_choice for a discriminated component initialization,
12942         convert discriminant references into the corresponding discriminals.
12943
12944         * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
12945         only if original type is private and expression has to be wrapped
12946         in a conversion.
12947
12948         * checks.adb:
12949         (Apply_Constraint_Check): Do not perform length check
12950         if expression is an aggregate with only an others_choice.
12951         (Length_N_Cond): two references to the same in_parameter
12952         (typically the discriminal in an init_proc) denote the same value.
12953         Two useful optimization uncovered by bugfixes above.
12954
12955 2001-10-10  Robert Dewar <dewar@gnat.com>
12956
12957         * xeinfo.adb: Change int to char in translation of enumeration types.
12958         This fixes a problem in the C representation of component alignment.
12959         Add 2001 to copyright notice
12960
12961 2001-10-10  Richard Kenner <kenner@gnat.com>
12962
12963         * decl.c: (validate_size): Do check size of object of integral type
12964         if it is a packed array type.
12965
12966 2001-10-10  Richard Kenner <kenner@gnat.com>
12967
12968         * decl.c: (gnat_to_gnu_entity, case object): Also materialize
12969         VAR_DECL for constant if not Is_Public but -O0.
12970
12971 2001-10-10  Richard Kenner  <kenner@gnat.com>
12972
12973         * misc.c (struct lang_hooks): Add new initializer to match GCC change.
12974
12975 2001-10-10  Geert Bosch  <bosch@gnat.com>
12976
12977         * xnmake.adb (XNmake): Fix handling of -s/-b options.  No longer
12978         use '/' as switch character, allowing for absolute file names.
12979
12980 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
12981
12982         * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
12983         FSF address.
12984
12985 2001-10-08  Geert Bosch  <bosch@gnat.com>
12986
12987         * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
12988         Automatically build utilities when files need to be regenerated.
12989
12990 2001-10-08  Geert Bosch  <bosch@gnat.com>
12991
12992         * xsnames.adb: New utility for updating snames.ads and snames.adb
12993
12994 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
12995
12996         * Make-lang.in (ADAFLAGS): Add -W -Wall.
12997         (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
12998         (gnat1): Also depend on attribs.o.
12999         (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
13000         * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
13001         (ADAC): Set to @ADAC@ in stage1, $(CC) later.
13002         (ADAFLAGS): Add -W -Wall.
13003         (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
13004         take out CFLAGS.
13005
13006         (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
13007         s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
13008         s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
13009         Use $(ADAC), not $(CC), as compilation command.
13010
13011         (gnattools): Depend directly on tools to build, don't use
13012         recursive make.
13013         (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
13014
13015         * einfo.h, sinfo.h: New files (autogenerated).
13016
13017 2001-10-08  Richard Henderson  <rth@redhat.com>
13018
13019         * comperr.adb (Abort_In_Progress): New.
13020         (Compiler_Abort): Use it to prevent recursion.
13021
13022 2001-10-08  Robert Dewar <dewar@gnat.com>
13023
13024         * atree.adb: Set Error_Posted in Error node, helps error recovery.
13025
13026         * par-endh.adb (Output_End_Expected): We should also not test
13027         Error_Posted on the Error node, since now it is always set.
13028
13029         * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
13030         to help error recovery. Part of general work on 9407-004.
13031
13032         * par.adb: Add ??? for misuse of error
13033
13034         * sem_res.adb:
13035         (Resolve): Defend against Error, fixes 9407-003.
13036         (Resolve_Discrete_Subtype_Indication): Defend against Error.
13037
13038         * sinfo.ads (N_Error): Now has Etype field (which will be set
13039         to Any_Type to help error recovery).
13040
13041 2001-10-08  Richard Kenner (kenner@gnat.com)
13042
13043         * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
13044         Consistently set MEM attributes from expression; fixes
13045         bootstrap failure on x86.
13046
13047 2001-10-08  Geert Bosch  (bosch@gnat.com)
13048
13049         * 5oosinte.adb: Add 2001 to copyright notice.
13050
13051 2001-10-08  Geert Bosch  (bosch@gnat.com)
13052
13053         * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
13054
13055         * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
13056
13057 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
13058
13059         * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
13060
13061 2001-10-05  Geert Bosch  (bosch@gnat.com)
13062
13063         * adaint.h: Small formatting fix.
13064
13065 2001-10-04  Geert Bosch  <bosch@gnat.com>
13066
13067         * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
13068         Arg is int, not FILE *, in dummy version of functions.
13069
13070         * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
13071         Arg is int, not FILE *.
13072
13073 2001-10-04  Geert Bosch  <bosch@gnat.com>
13074
13075         * 3lsoccon.ads: Added file, missed with initial check ins.
13076
13077         * 4lintnam.ads: Fix header format.
13078         Change Linux to GNU/Linux.
13079
13080         * 5iosinte.adb: Change Linux to GNU/Linux.
13081
13082         * 5iosinte.ads: Change Linux to GNU/Linux.
13083
13084         * 5itaprop.adb: Change Linux to GNU/Linux.
13085
13086         * 5itaspri.ads: Change Linux to GNU/Linux.
13087         Update copyright notice.
13088
13089         * 5lintman.adb: Change Linux to GNU/Linux.
13090
13091         * 5lml-tgt.adb: Change Linux to GNU/Linux.
13092
13093         * 5losinte.ads: Change Linux to GNU/Linux.
13094
13095         * 5lsystem.ads: Change Linux to GNU/Linux.
13096
13097         * 5qosinte.adb: Change Linux to GNU/Linux.
13098
13099         * 5qosinte.ads: Change Linux to GNU/Linux.
13100
13101         * 5qparame.ads: Change Linux to GNU/Linux.
13102
13103         * 5qtaprop.adb: Change Linux to GNU/Linux.
13104
13105         * 5qtaspri.ads: Change Linux to GNU/Linux.
13106         Add 2001 to copyright notice.
13107
13108         * 5vintman.ads: Change Linux to GNU/Linux.
13109         Fix header format.  Add 2001 to copyright notice.
13110
13111         * g-soccon.ads: Change Linux to GNU/Linux.
13112
13113         * g-trasym.ads: Change Linux to GNU/Linux.
13114         Add 2001 to copyright notice.
13115
13116         * memtrack.adb: Change Linux to GNU/Linux.
13117
13118         * s-intman.ads: Change Linux to GNU/Linux.
13119         Add 2001 to copyright notice.  Fix header format.
13120
13121         * s-stache.adb: Change Linux to GNU/Linux.
13122
13123         * adaint.c: Change Linux to GNU/Linux.
13124
13125         * cio.c: Change Linux to GNU/Linux.
13126
13127         * cstreams.c: Change Linux to GNU/Linux.
13128
13129         * init.c: Change Linux to GNU/Linux.
13130
13131         * gmem.c: Change Linux to GNU/Linux.
13132
13133         * tracebak.c: Change Linux to GNU/Linux.
13134
13135
13136 2001-10-02  Geert Bosch  <bosch@gnat.com>
13137
13138         * misc.c (insert_default_attributes): Add dummy version.